@automate.ax/api-contract 0.159.2 → 0.161.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 +25 -2
- package/dist/account.js +28 -1
- package/dist/index.d.ts +93 -5
- package/dist/index.js +1 -1
- package/dist/org.d.ts +20 -2
- package/dist/org.js +6 -3
- package/dist/runtime.d.ts +1 -1
- package/package.json +4 -4
- package/src/account.ts +30 -1
- package/src/index.ts +4 -2
- package/src/org.ts +8 -4
package/dist/account.d.ts
CHANGED
|
@@ -61,7 +61,8 @@ export declare const integrationServiceOutputSchema: z.ZodObject<{
|
|
|
61
61
|
name: z.ZodString;
|
|
62
62
|
requiredPlan: z.ZodEnum<{
|
|
63
63
|
free: "free";
|
|
64
|
-
|
|
64
|
+
starter: "starter";
|
|
65
|
+
growth: "growth";
|
|
65
66
|
}>;
|
|
66
67
|
preferredConnectionMethodId: z.ZodOptional<z.ZodString>;
|
|
67
68
|
}, z.core.$strip>;
|
|
@@ -180,6 +181,27 @@ export declare const integrationAccountRevocationImpactOutputSchema: z.ZodObject
|
|
|
180
181
|
}, z.core.$strip>;
|
|
181
182
|
}, z.core.$strip>;
|
|
182
183
|
export declare const accountContract: {
|
|
184
|
+
integrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
185
|
+
token: z.ZodUUID;
|
|
186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
+
expiresAt: z.ZodDate;
|
|
188
|
+
label: z.ZodString;
|
|
189
|
+
requiredPlan: z.ZodEnum<{
|
|
190
|
+
free: "free";
|
|
191
|
+
starter: "starter";
|
|
192
|
+
growth: "growth";
|
|
193
|
+
}>;
|
|
194
|
+
serviceId: z.ZodString;
|
|
195
|
+
serviceName: z.ZodString;
|
|
196
|
+
serviceSub: z.ZodString;
|
|
197
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
198
|
+
claimIntegrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
199
|
+
organizationId: z.ZodString;
|
|
200
|
+
token: z.ZodUUID;
|
|
201
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
202
|
+
accountId: z.ZodString;
|
|
203
|
+
txid: z.ZodNumber;
|
|
204
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
183
205
|
beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
184
206
|
connectionMethodId: z.ZodString;
|
|
185
207
|
organizationId: z.ZodString;
|
|
@@ -347,7 +369,8 @@ export declare const accountContract: {
|
|
|
347
369
|
name: z.ZodString;
|
|
348
370
|
requiredPlan: z.ZodEnum<{
|
|
349
371
|
free: "free";
|
|
350
|
-
|
|
372
|
+
starter: "starter";
|
|
373
|
+
growth: "growth";
|
|
351
374
|
}>;
|
|
352
375
|
preferredConnectionMethodId: z.ZodOptional<z.ZodString>;
|
|
353
376
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
package/dist/account.js
CHANGED
|
@@ -67,7 +67,7 @@ export const integrationServiceOutputSchema = z.object({
|
|
|
67
67
|
icon: z.string().optional(),
|
|
68
68
|
id: z.string(),
|
|
69
69
|
name: z.string(),
|
|
70
|
-
requiredPlan: z.enum(["free", "
|
|
70
|
+
requiredPlan: z.enum(["free", "starter", "growth"]),
|
|
71
71
|
preferredConnectionMethodId: z.string().optional(),
|
|
72
72
|
});
|
|
73
73
|
export const integrationAccountRevocationOutputSchema = z.object({
|
|
@@ -159,6 +159,33 @@ const organizationAccountInputSchema = z.object({
|
|
|
159
159
|
organizationId: z.string(),
|
|
160
160
|
});
|
|
161
161
|
export const accountContract = {
|
|
162
|
+
integrationInstall: oc
|
|
163
|
+
.route({
|
|
164
|
+
method: "GET",
|
|
165
|
+
path: "/integration-installs/{token}",
|
|
166
|
+
operationId: "getIntegrationInstall",
|
|
167
|
+
summary: "Get pending integration installation",
|
|
168
|
+
tags: ["Integration Accounts"],
|
|
169
|
+
})
|
|
170
|
+
.input(z.object({ token: z.uuid() }))
|
|
171
|
+
.output(z.object({
|
|
172
|
+
expiresAt: z.date(),
|
|
173
|
+
label: z.string(),
|
|
174
|
+
requiredPlan: z.enum(["free", "starter", "growth"]),
|
|
175
|
+
serviceId: z.string(),
|
|
176
|
+
serviceName: z.string(),
|
|
177
|
+
serviceSub: z.string(),
|
|
178
|
+
})),
|
|
179
|
+
claimIntegrationInstall: oc
|
|
180
|
+
.route({
|
|
181
|
+
method: "POST",
|
|
182
|
+
path: "/organizations/{organizationId}/integration-installs/{token}/claim",
|
|
183
|
+
operationId: "claimIntegrationInstall",
|
|
184
|
+
summary: "Connect installed integration account",
|
|
185
|
+
tags: ["Integration Accounts"],
|
|
186
|
+
})
|
|
187
|
+
.input(z.object({ organizationId: z.string(), token: z.uuid() }))
|
|
188
|
+
.output(z.object({ accountId: z.string(), txid: z.number().int() })),
|
|
162
189
|
beginConnection: oc
|
|
163
190
|
.route({
|
|
164
191
|
description: "Starts an OAuth-style organization account connection.",
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { integrationAccountOutputSchema, integrationAccountRevocationImpactOutpu
|
|
|
7
7
|
export { AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT, AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX, AUTOMATION_IMAGE_GENERATION_ENTRYPOINT_PREFIX, AUTOMATION_LOG_MAX_ENTRIES, AUTOMATION_LOG_MAX_MESSAGE_LENGTH, AUTOMATION_OBSERVABILITY_MAX_ENCODED_BYTES, AUTOMATION_OBSERVABILITY_MAX_FIELDS, DEFAULT_GATEWAY_EVALUATION_MODEL_ID, DEFAULT_GATEWAY_IMAGE_MODEL_ID, DEFAULT_GATEWAY_MODEL_ID, DEFAULT_ACTION_MAX_ATTEMPTS, MAX_ACTION_ATTEMPTS, actionReplaySafetySchema, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, evaluationInputSchema, evaluationResultSchema, generationInputSchema, generationResultSchema, imageGenerationInputSchema, imageGenerationCompletionSchema, imageGenerationResultSchema, platformImageGenerationInputSchema, platformImageGenerationStartSchema, hashSignalCoordinatorConfiguration, runtimeContract, type GenerationInput, type GenerationResult, type EvaluationInput, type EvaluationResult, type ImageGenerationInput, type ImageGenerationCompletion, type ImageGenerationResult, type PlatformImageGenerationInput, type RuntimeGenerationInput, type RuntimeCoordinationOffer, type ActionReplaySafety, type RuntimeActionAttemptCompletion, type RuntimeActionAttemptStart, } from "./runtime.js";
|
|
8
8
|
export type { GatewayEvaluationModelId, GatewayImageModelId, GatewayModelId, } from "@ai-sdk/gateway";
|
|
9
9
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
10
|
-
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationRoles, organizationSummaryOutputSchema,
|
|
10
|
+
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationRoles, organizationSummaryOutputSchema, billingPeriodSchema, paidBillingPlanSchema, publicOrganizationOutputSchema, type BillingPeriod, type PaidBillingPlan, } from "./org.js";
|
|
11
11
|
export { projectOutputSchema } from "./project.js";
|
|
12
12
|
export { cursorPageInfoSchema, cursorPageOutputSchema, cursorPaginationInputSchema, reasonableNameSchema, } from "./schemas.js";
|
|
13
13
|
export { userOutputSchema } from "./auth.js";
|
|
@@ -15,6 +15,27 @@ export { managementPermissionStatement, managementRolePermissions, organizationA
|
|
|
15
15
|
/** Procedures exposed by the public Node client and OpenAPI document. */
|
|
16
16
|
export declare const publicContract: {
|
|
17
17
|
account: {
|
|
18
|
+
integrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
19
|
+
token: import("zod").ZodUUID;
|
|
20
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
21
|
+
expiresAt: import("zod").ZodDate;
|
|
22
|
+
label: import("zod").ZodString;
|
|
23
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
24
|
+
free: "free";
|
|
25
|
+
starter: "starter";
|
|
26
|
+
growth: "growth";
|
|
27
|
+
}>;
|
|
28
|
+
serviceId: import("zod").ZodString;
|
|
29
|
+
serviceName: import("zod").ZodString;
|
|
30
|
+
serviceSub: import("zod").ZodString;
|
|
31
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
32
|
+
claimIntegrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
33
|
+
organizationId: import("zod").ZodString;
|
|
34
|
+
token: import("zod").ZodUUID;
|
|
35
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
36
|
+
accountId: import("zod").ZodString;
|
|
37
|
+
txid: import("zod").ZodNumber;
|
|
38
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
18
39
|
beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
19
40
|
connectionMethodId: import("zod").ZodString;
|
|
20
41
|
organizationId: import("zod").ZodString;
|
|
@@ -182,7 +203,8 @@ export declare const publicContract: {
|
|
|
182
203
|
name: import("zod").ZodString;
|
|
183
204
|
requiredPlan: import("zod").ZodEnum<{
|
|
184
205
|
free: "free";
|
|
185
|
-
|
|
206
|
+
starter: "starter";
|
|
207
|
+
growth: "growth";
|
|
186
208
|
}>;
|
|
187
209
|
preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
188
210
|
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
@@ -1414,6 +1436,8 @@ export declare const publicContract: {
|
|
|
1414
1436
|
executionRetentionDays: import("zod").ZodNumber;
|
|
1415
1437
|
plan: import("zod").ZodEnum<{
|
|
1416
1438
|
free: "free";
|
|
1439
|
+
starter: "starter";
|
|
1440
|
+
growth: "growth";
|
|
1417
1441
|
pro: "pro";
|
|
1418
1442
|
enterprise: "enterprise";
|
|
1419
1443
|
}>;
|
|
@@ -1509,6 +1533,8 @@ export declare const publicContract: {
|
|
|
1509
1533
|
executionRetentionDays: import("zod").ZodNumber;
|
|
1510
1534
|
plan: import("zod").ZodEnum<{
|
|
1511
1535
|
free: "free";
|
|
1536
|
+
starter: "starter";
|
|
1537
|
+
growth: "growth";
|
|
1512
1538
|
pro: "pro";
|
|
1513
1539
|
enterprise: "enterprise";
|
|
1514
1540
|
}>;
|
|
@@ -2519,7 +2545,12 @@ export declare const firstPartyContract: {
|
|
|
2519
2545
|
quarterly: "quarterly";
|
|
2520
2546
|
annual: "annual";
|
|
2521
2547
|
}>>;
|
|
2548
|
+
confirmImmediateChange: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
2522
2549
|
organizationId: import("zod").ZodString;
|
|
2550
|
+
plan: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
2551
|
+
starter: "starter";
|
|
2552
|
+
growth: "growth";
|
|
2553
|
+
}>>;
|
|
2523
2554
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2524
2555
|
url: import("zod").ZodURL;
|
|
2525
2556
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -2560,6 +2591,8 @@ export declare const firstPartyContract: {
|
|
|
2560
2591
|
executionRetentionDays: import("zod").ZodNumber;
|
|
2561
2592
|
plan: import("zod").ZodEnum<{
|
|
2562
2593
|
free: "free";
|
|
2594
|
+
starter: "starter";
|
|
2595
|
+
growth: "growth";
|
|
2563
2596
|
pro: "pro";
|
|
2564
2597
|
enterprise: "enterprise";
|
|
2565
2598
|
}>;
|
|
@@ -2655,6 +2688,8 @@ export declare const firstPartyContract: {
|
|
|
2655
2688
|
executionRetentionDays: import("zod").ZodNumber;
|
|
2656
2689
|
plan: import("zod").ZodEnum<{
|
|
2657
2690
|
free: "free";
|
|
2691
|
+
starter: "starter";
|
|
2692
|
+
growth: "growth";
|
|
2658
2693
|
pro: "pro";
|
|
2659
2694
|
enterprise: "enterprise";
|
|
2660
2695
|
}>;
|
|
@@ -2786,6 +2821,27 @@ export declare const firstPartyContract: {
|
|
|
2786
2821
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2787
2822
|
};
|
|
2788
2823
|
account: {
|
|
2824
|
+
integrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2825
|
+
token: import("zod").ZodUUID;
|
|
2826
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2827
|
+
expiresAt: import("zod").ZodDate;
|
|
2828
|
+
label: import("zod").ZodString;
|
|
2829
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
2830
|
+
free: "free";
|
|
2831
|
+
starter: "starter";
|
|
2832
|
+
growth: "growth";
|
|
2833
|
+
}>;
|
|
2834
|
+
serviceId: import("zod").ZodString;
|
|
2835
|
+
serviceName: import("zod").ZodString;
|
|
2836
|
+
serviceSub: import("zod").ZodString;
|
|
2837
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2838
|
+
claimIntegrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2839
|
+
organizationId: import("zod").ZodString;
|
|
2840
|
+
token: import("zod").ZodUUID;
|
|
2841
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2842
|
+
accountId: import("zod").ZodString;
|
|
2843
|
+
txid: import("zod").ZodNumber;
|
|
2844
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2789
2845
|
beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2790
2846
|
connectionMethodId: import("zod").ZodString;
|
|
2791
2847
|
organizationId: import("zod").ZodString;
|
|
@@ -2953,7 +3009,8 @@ export declare const firstPartyContract: {
|
|
|
2953
3009
|
name: import("zod").ZodString;
|
|
2954
3010
|
requiredPlan: import("zod").ZodEnum<{
|
|
2955
3011
|
free: "free";
|
|
2956
|
-
|
|
3012
|
+
starter: "starter";
|
|
3013
|
+
growth: "growth";
|
|
2957
3014
|
}>;
|
|
2958
3015
|
preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2959
3016
|
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
|
@@ -8564,8 +8621,8 @@ export declare const contract: {
|
|
|
8564
8621
|
body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
8565
8622
|
loginCustomerId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8566
8623
|
method: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8567
|
-
POST: "POST";
|
|
8568
8624
|
GET: "GET";
|
|
8625
|
+
POST: "POST";
|
|
8569
8626
|
}>>;
|
|
8570
8627
|
path: import("zod").ZodString;
|
|
8571
8628
|
}, import("zod/v4/core").$strict>, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
@@ -10195,7 +10252,12 @@ export declare const contract: {
|
|
|
10195
10252
|
quarterly: "quarterly";
|
|
10196
10253
|
annual: "annual";
|
|
10197
10254
|
}>>;
|
|
10255
|
+
confirmImmediateChange: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
10198
10256
|
organizationId: import("zod").ZodString;
|
|
10257
|
+
plan: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
10258
|
+
starter: "starter";
|
|
10259
|
+
growth: "growth";
|
|
10260
|
+
}>>;
|
|
10199
10261
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
10200
10262
|
url: import("zod").ZodURL;
|
|
10201
10263
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -10236,6 +10298,8 @@ export declare const contract: {
|
|
|
10236
10298
|
executionRetentionDays: import("zod").ZodNumber;
|
|
10237
10299
|
plan: import("zod").ZodEnum<{
|
|
10238
10300
|
free: "free";
|
|
10301
|
+
starter: "starter";
|
|
10302
|
+
growth: "growth";
|
|
10239
10303
|
pro: "pro";
|
|
10240
10304
|
enterprise: "enterprise";
|
|
10241
10305
|
}>;
|
|
@@ -10331,6 +10395,8 @@ export declare const contract: {
|
|
|
10331
10395
|
executionRetentionDays: import("zod").ZodNumber;
|
|
10332
10396
|
plan: import("zod").ZodEnum<{
|
|
10333
10397
|
free: "free";
|
|
10398
|
+
starter: "starter";
|
|
10399
|
+
growth: "growth";
|
|
10334
10400
|
pro: "pro";
|
|
10335
10401
|
enterprise: "enterprise";
|
|
10336
10402
|
}>;
|
|
@@ -10462,6 +10528,27 @@ export declare const contract: {
|
|
|
10462
10528
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10463
10529
|
};
|
|
10464
10530
|
account: {
|
|
10531
|
+
integrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10532
|
+
token: import("zod").ZodUUID;
|
|
10533
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
10534
|
+
expiresAt: import("zod").ZodDate;
|
|
10535
|
+
label: import("zod").ZodString;
|
|
10536
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
10537
|
+
free: "free";
|
|
10538
|
+
starter: "starter";
|
|
10539
|
+
growth: "growth";
|
|
10540
|
+
}>;
|
|
10541
|
+
serviceId: import("zod").ZodString;
|
|
10542
|
+
serviceName: import("zod").ZodString;
|
|
10543
|
+
serviceSub: import("zod").ZodString;
|
|
10544
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10545
|
+
claimIntegrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10546
|
+
organizationId: import("zod").ZodString;
|
|
10547
|
+
token: import("zod").ZodUUID;
|
|
10548
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
10549
|
+
accountId: import("zod").ZodString;
|
|
10550
|
+
txid: import("zod").ZodNumber;
|
|
10551
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10465
10552
|
beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10466
10553
|
connectionMethodId: import("zod").ZodString;
|
|
10467
10554
|
organizationId: import("zod").ZodString;
|
|
@@ -10629,7 +10716,8 @@ export declare const contract: {
|
|
|
10629
10716
|
name: import("zod").ZodString;
|
|
10630
10717
|
requiredPlan: import("zod").ZodEnum<{
|
|
10631
10718
|
free: "free";
|
|
10632
|
-
|
|
10719
|
+
starter: "starter";
|
|
10720
|
+
growth: "growth";
|
|
10633
10721
|
}>;
|
|
10634
10722
|
preferredConnectionMethodId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10635
10723
|
}, import("zod/v4/core").$strip>>, Record<never, never>, Record<never, never>>;
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ export { AUTOMATION_ERROR_CAUSE_DEPTH, automationErrorSchema, } from "./errors.j
|
|
|
17
17
|
export { integrationAccountOutputSchema, integrationAccountRevocationImpactOutputSchema, integrationAccountRevocationOutputSchema, integrationServiceOutputSchema, } from "./account.js";
|
|
18
18
|
export { AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT, AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX, AUTOMATION_IMAGE_GENERATION_ENTRYPOINT_PREFIX, AUTOMATION_LOG_MAX_ENTRIES, AUTOMATION_LOG_MAX_MESSAGE_LENGTH, AUTOMATION_OBSERVABILITY_MAX_ENCODED_BYTES, AUTOMATION_OBSERVABILITY_MAX_FIELDS, DEFAULT_GATEWAY_EVALUATION_MODEL_ID, DEFAULT_GATEWAY_IMAGE_MODEL_ID, DEFAULT_GATEWAY_MODEL_ID, DEFAULT_ACTION_MAX_ATTEMPTS, MAX_ACTION_ATTEMPTS, actionReplaySafetySchema, automationInvocationInputSchema, automationInvocationOutputSchema, automationInvocationScheduleSchema, evaluationInputSchema, evaluationResultSchema, generationInputSchema, generationResultSchema, imageGenerationInputSchema, imageGenerationCompletionSchema, imageGenerationResultSchema, platformImageGenerationInputSchema, platformImageGenerationStartSchema, hashSignalCoordinatorConfiguration, runtimeContract, } from "./runtime.js";
|
|
19
19
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
20
|
-
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationRoles, organizationSummaryOutputSchema,
|
|
20
|
+
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationRoles, organizationSummaryOutputSchema, billingPeriodSchema, paidBillingPlanSchema, publicOrganizationOutputSchema, } from "./org.js";
|
|
21
21
|
export { projectOutputSchema } from "./project.js";
|
|
22
22
|
export { cursorPageInfoSchema, cursorPageOutputSchema, cursorPaginationInputSchema, reasonableNameSchema, } from "./schemas.js";
|
|
23
23
|
export { userOutputSchema } from "./auth.js";
|
package/dist/org.d.ts
CHANGED
|
@@ -4,12 +4,17 @@ export declare const organizationRoleSchema: z.ZodEnum<{
|
|
|
4
4
|
member: "member";
|
|
5
5
|
admin: "admin";
|
|
6
6
|
}>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const billingPeriodSchema: z.ZodEnum<{
|
|
8
8
|
monthly: "monthly";
|
|
9
9
|
quarterly: "quarterly";
|
|
10
10
|
annual: "annual";
|
|
11
11
|
}>;
|
|
12
|
-
export type
|
|
12
|
+
export type BillingPeriod = z.infer<typeof billingPeriodSchema>;
|
|
13
|
+
export declare const paidBillingPlanSchema: z.ZodEnum<{
|
|
14
|
+
starter: "starter";
|
|
15
|
+
growth: "growth";
|
|
16
|
+
}>;
|
|
17
|
+
export type PaidBillingPlan = z.infer<typeof paidBillingPlanSchema>;
|
|
13
18
|
export { organizationRoles };
|
|
14
19
|
export declare const publicOrganizationOutputSchema: z.ZodObject<{
|
|
15
20
|
id: z.ZodString;
|
|
@@ -45,6 +50,8 @@ export declare const organizationSummaryOutputSchema: z.ZodObject<{
|
|
|
45
50
|
executionRetentionDays: z.ZodNumber;
|
|
46
51
|
plan: z.ZodEnum<{
|
|
47
52
|
free: "free";
|
|
53
|
+
starter: "starter";
|
|
54
|
+
growth: "growth";
|
|
48
55
|
pro: "pro";
|
|
49
56
|
enterprise: "enterprise";
|
|
50
57
|
}>;
|
|
@@ -115,6 +122,8 @@ export declare const organizationDetailsOutputSchema: z.ZodObject<{
|
|
|
115
122
|
executionRetentionDays: z.ZodNumber;
|
|
116
123
|
plan: z.ZodEnum<{
|
|
117
124
|
free: "free";
|
|
125
|
+
starter: "starter";
|
|
126
|
+
growth: "growth";
|
|
118
127
|
pro: "pro";
|
|
119
128
|
enterprise: "enterprise";
|
|
120
129
|
}>;
|
|
@@ -186,7 +195,12 @@ export declare const orgContract: {
|
|
|
186
195
|
quarterly: "quarterly";
|
|
187
196
|
annual: "annual";
|
|
188
197
|
}>>;
|
|
198
|
+
confirmImmediateChange: z.ZodDefault<z.ZodBoolean>;
|
|
189
199
|
organizationId: z.ZodString;
|
|
200
|
+
plan: z.ZodDefault<z.ZodEnum<{
|
|
201
|
+
starter: "starter";
|
|
202
|
+
growth: "growth";
|
|
203
|
+
}>>;
|
|
190
204
|
}, z.core.$strip>, z.ZodObject<{
|
|
191
205
|
url: z.ZodURL;
|
|
192
206
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -227,6 +241,8 @@ export declare const orgContract: {
|
|
|
227
241
|
executionRetentionDays: z.ZodNumber;
|
|
228
242
|
plan: z.ZodEnum<{
|
|
229
243
|
free: "free";
|
|
244
|
+
starter: "starter";
|
|
245
|
+
growth: "growth";
|
|
230
246
|
pro: "pro";
|
|
231
247
|
enterprise: "enterprise";
|
|
232
248
|
}>;
|
|
@@ -322,6 +338,8 @@ export declare const orgContract: {
|
|
|
322
338
|
executionRetentionDays: z.ZodNumber;
|
|
323
339
|
plan: z.ZodEnum<{
|
|
324
340
|
free: "free";
|
|
341
|
+
starter: "starter";
|
|
342
|
+
growth: "growth";
|
|
325
343
|
pro: "pro";
|
|
326
344
|
enterprise: "enterprise";
|
|
327
345
|
}>;
|
package/dist/org.js
CHANGED
|
@@ -3,7 +3,8 @@ import * as z from "zod";
|
|
|
3
3
|
import { cursorPageOutputSchema, cursorPaginationInputSchema, reasonableNameSchema, } from "./schemas.js";
|
|
4
4
|
import { organizationRoles } from "./permissions.js";
|
|
5
5
|
export const organizationRoleSchema = z.enum(organizationRoles);
|
|
6
|
-
export const
|
|
6
|
+
export const billingPeriodSchema = z.enum(["monthly", "quarterly", "annual"]);
|
|
7
|
+
export const paidBillingPlanSchema = z.enum(["starter", "growth"]);
|
|
7
8
|
export { organizationRoles };
|
|
8
9
|
export const publicOrganizationOutputSchema = z.object({
|
|
9
10
|
id: z.string(),
|
|
@@ -28,7 +29,7 @@ export const organizationSummaryOutputSchema = z.object({
|
|
|
28
29
|
projectCount: z.number(),
|
|
29
30
|
activeSubscription: activeSubscriptionOutputSchema.nullable(),
|
|
30
31
|
executionRetentionDays: z.number().int().positive(),
|
|
31
|
-
plan: z.enum(["free", "pro", "enterprise"]),
|
|
32
|
+
plan: z.enum(["free", "pro", "starter", "growth", "enterprise"]),
|
|
32
33
|
limits: z.object({
|
|
33
34
|
aiSpendUsd: z.number(),
|
|
34
35
|
automationRuntimeMinutes: z.number(),
|
|
@@ -87,8 +88,10 @@ export const orgContract = {
|
|
|
87
88
|
.output(z.object({ url: z.url() })),
|
|
88
89
|
createCheckout: oc
|
|
89
90
|
.input(z.object({
|
|
90
|
-
billingPeriod:
|
|
91
|
+
billingPeriod: billingPeriodSchema.default("monthly"),
|
|
92
|
+
confirmImmediateChange: z.boolean().default(false),
|
|
91
93
|
organizationId: z.string(),
|
|
94
|
+
plan: paidBillingPlanSchema.default("starter"),
|
|
92
95
|
}))
|
|
93
96
|
.output(z.object({ url: z.url() })),
|
|
94
97
|
create: oc
|
package/dist/runtime.d.ts
CHANGED
|
@@ -2577,8 +2577,8 @@ export declare const runtimeContract: {
|
|
|
2577
2577
|
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
2578
2578
|
loginCustomerId: z.ZodOptional<z.ZodString>;
|
|
2579
2579
|
method: z.ZodOptional<z.ZodEnum<{
|
|
2580
|
-
POST: "POST";
|
|
2581
2580
|
GET: "GET";
|
|
2581
|
+
POST: "POST";
|
|
2582
2582
|
}>>;
|
|
2583
2583
|
path: z.ZodString;
|
|
2584
2584
|
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.161.0",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ai-sdk/gateway": "4.0.87",
|
|
34
|
-
"@automate.ax/catalog": "0.
|
|
35
|
-
"@automate.ax/codec": "0.
|
|
36
|
-
"@automate.ax/integration-contracts": "0.
|
|
34
|
+
"@automate.ax/catalog": "0.161.0",
|
|
35
|
+
"@automate.ax/codec": "0.161.0",
|
|
36
|
+
"@automate.ax/integration-contracts": "0.161.0",
|
|
37
37
|
"@orpc/contract": "1.15.0",
|
|
38
38
|
"fast-json-stable-stringify": "^2.1.0",
|
|
39
39
|
"zod": "^4.3.6"
|
package/src/account.ts
CHANGED
|
@@ -69,7 +69,7 @@ export const integrationServiceOutputSchema = z.object({
|
|
|
69
69
|
icon: z.string().optional(),
|
|
70
70
|
id: z.string(),
|
|
71
71
|
name: z.string(),
|
|
72
|
-
requiredPlan: z.enum(["free", "
|
|
72
|
+
requiredPlan: z.enum(["free", "starter", "growth"]),
|
|
73
73
|
preferredConnectionMethodId: z.string().optional(),
|
|
74
74
|
})
|
|
75
75
|
|
|
@@ -168,6 +168,35 @@ const organizationAccountInputSchema = z.object({
|
|
|
168
168
|
})
|
|
169
169
|
|
|
170
170
|
export const accountContract = {
|
|
171
|
+
integrationInstall: oc
|
|
172
|
+
.route({
|
|
173
|
+
method: "GET",
|
|
174
|
+
path: "/integration-installs/{token}",
|
|
175
|
+
operationId: "getIntegrationInstall",
|
|
176
|
+
summary: "Get pending integration installation",
|
|
177
|
+
tags: ["Integration Accounts"],
|
|
178
|
+
})
|
|
179
|
+
.input(z.object({ token: z.uuid() }))
|
|
180
|
+
.output(
|
|
181
|
+
z.object({
|
|
182
|
+
expiresAt: z.date(),
|
|
183
|
+
label: z.string(),
|
|
184
|
+
requiredPlan: z.enum(["free", "starter", "growth"]),
|
|
185
|
+
serviceId: z.string(),
|
|
186
|
+
serviceName: z.string(),
|
|
187
|
+
serviceSub: z.string(),
|
|
188
|
+
}),
|
|
189
|
+
),
|
|
190
|
+
claimIntegrationInstall: oc
|
|
191
|
+
.route({
|
|
192
|
+
method: "POST",
|
|
193
|
+
path: "/organizations/{organizationId}/integration-installs/{token}/claim",
|
|
194
|
+
operationId: "claimIntegrationInstall",
|
|
195
|
+
summary: "Connect installed integration account",
|
|
196
|
+
tags: ["Integration Accounts"],
|
|
197
|
+
})
|
|
198
|
+
.input(z.object({ organizationId: z.string(), token: z.uuid() }))
|
|
199
|
+
.output(z.object({ accountId: z.string(), txid: z.number().int() })),
|
|
171
200
|
beginConnection: oc
|
|
172
201
|
.route({
|
|
173
202
|
description: "Starts an OAuth-style organization account connection.",
|
package/src/index.ts
CHANGED
|
@@ -106,9 +106,11 @@ export {
|
|
|
106
106
|
organizationRoleSchema,
|
|
107
107
|
organizationRoles,
|
|
108
108
|
organizationSummaryOutputSchema,
|
|
109
|
-
|
|
109
|
+
billingPeriodSchema,
|
|
110
|
+
paidBillingPlanSchema,
|
|
110
111
|
publicOrganizationOutputSchema,
|
|
111
|
-
type
|
|
112
|
+
type BillingPeriod,
|
|
113
|
+
type PaidBillingPlan,
|
|
112
114
|
} from "./org"
|
|
113
115
|
export { projectOutputSchema } from "./project"
|
|
114
116
|
export {
|
package/src/org.ts
CHANGED
|
@@ -8,8 +8,10 @@ import {
|
|
|
8
8
|
import { organizationRoles } from "./permissions"
|
|
9
9
|
|
|
10
10
|
export const organizationRoleSchema = z.enum(organizationRoles)
|
|
11
|
-
export const
|
|
12
|
-
export type
|
|
11
|
+
export const billingPeriodSchema = z.enum(["monthly", "quarterly", "annual"])
|
|
12
|
+
export type BillingPeriod = z.infer<typeof billingPeriodSchema>
|
|
13
|
+
export const paidBillingPlanSchema = z.enum(["starter", "growth"])
|
|
14
|
+
export type PaidBillingPlan = z.infer<typeof paidBillingPlanSchema>
|
|
13
15
|
|
|
14
16
|
export { organizationRoles }
|
|
15
17
|
|
|
@@ -38,7 +40,7 @@ export const organizationSummaryOutputSchema = z.object({
|
|
|
38
40
|
projectCount: z.number(),
|
|
39
41
|
activeSubscription: activeSubscriptionOutputSchema.nullable(),
|
|
40
42
|
executionRetentionDays: z.number().int().positive(),
|
|
41
|
-
plan: z.enum(["free", "pro", "enterprise"]),
|
|
43
|
+
plan: z.enum(["free", "pro", "starter", "growth", "enterprise"]),
|
|
42
44
|
limits: z.object({
|
|
43
45
|
aiSpendUsd: z.number(),
|
|
44
46
|
automationRuntimeMinutes: z.number(),
|
|
@@ -105,8 +107,10 @@ export const orgContract = {
|
|
|
105
107
|
createCheckout: oc
|
|
106
108
|
.input(
|
|
107
109
|
z.object({
|
|
108
|
-
billingPeriod:
|
|
110
|
+
billingPeriod: billingPeriodSchema.default("monthly"),
|
|
111
|
+
confirmImmediateChange: z.boolean().default(false),
|
|
109
112
|
organizationId: z.string(),
|
|
113
|
+
plan: paidBillingPlanSchema.default("starter"),
|
|
110
114
|
}),
|
|
111
115
|
)
|
|
112
116
|
.output(z.object({ url: z.url() })),
|