@automate.ax/api-contract 0.159.2 → 0.160.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 +20 -0
- package/dist/account.js +27 -0
- package/dist/index.d.ts +61 -1
- package/dist/runtime.d.ts +1 -1
- package/package.json +4 -4
- package/src/account.ts +29 -0
package/dist/account.d.ts
CHANGED
|
@@ -180,6 +180,26 @@ export declare const integrationAccountRevocationImpactOutputSchema: z.ZodObject
|
|
|
180
180
|
}, z.core.$strip>;
|
|
181
181
|
}, z.core.$strip>;
|
|
182
182
|
export declare const accountContract: {
|
|
183
|
+
integrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
184
|
+
token: z.ZodUUID;
|
|
185
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
186
|
+
expiresAt: z.ZodDate;
|
|
187
|
+
label: z.ZodString;
|
|
188
|
+
requiredPlan: z.ZodEnum<{
|
|
189
|
+
free: "free";
|
|
190
|
+
pro: "pro";
|
|
191
|
+
}>;
|
|
192
|
+
serviceId: z.ZodString;
|
|
193
|
+
serviceName: z.ZodString;
|
|
194
|
+
serviceSub: z.ZodString;
|
|
195
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
196
|
+
claimIntegrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
197
|
+
organizationId: z.ZodString;
|
|
198
|
+
token: z.ZodUUID;
|
|
199
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
200
|
+
accountId: z.ZodString;
|
|
201
|
+
txid: z.ZodNumber;
|
|
202
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
183
203
|
beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
184
204
|
connectionMethodId: z.ZodString;
|
|
185
205
|
organizationId: z.ZodString;
|
package/dist/account.js
CHANGED
|
@@ -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", "pro"]),
|
|
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
|
@@ -15,6 +15,26 @@ 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
|
+
pro: "pro";
|
|
26
|
+
}>;
|
|
27
|
+
serviceId: import("zod").ZodString;
|
|
28
|
+
serviceName: import("zod").ZodString;
|
|
29
|
+
serviceSub: import("zod").ZodString;
|
|
30
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
31
|
+
claimIntegrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
32
|
+
organizationId: import("zod").ZodString;
|
|
33
|
+
token: import("zod").ZodUUID;
|
|
34
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
35
|
+
accountId: import("zod").ZodString;
|
|
36
|
+
txid: import("zod").ZodNumber;
|
|
37
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
18
38
|
beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
19
39
|
connectionMethodId: import("zod").ZodString;
|
|
20
40
|
organizationId: import("zod").ZodString;
|
|
@@ -2786,6 +2806,26 @@ export declare const firstPartyContract: {
|
|
|
2786
2806
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2787
2807
|
};
|
|
2788
2808
|
account: {
|
|
2809
|
+
integrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2810
|
+
token: import("zod").ZodUUID;
|
|
2811
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2812
|
+
expiresAt: import("zod").ZodDate;
|
|
2813
|
+
label: import("zod").ZodString;
|
|
2814
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
2815
|
+
free: "free";
|
|
2816
|
+
pro: "pro";
|
|
2817
|
+
}>;
|
|
2818
|
+
serviceId: import("zod").ZodString;
|
|
2819
|
+
serviceName: import("zod").ZodString;
|
|
2820
|
+
serviceSub: import("zod").ZodString;
|
|
2821
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2822
|
+
claimIntegrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2823
|
+
organizationId: import("zod").ZodString;
|
|
2824
|
+
token: import("zod").ZodUUID;
|
|
2825
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2826
|
+
accountId: import("zod").ZodString;
|
|
2827
|
+
txid: import("zod").ZodNumber;
|
|
2828
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2789
2829
|
beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2790
2830
|
connectionMethodId: import("zod").ZodString;
|
|
2791
2831
|
organizationId: import("zod").ZodString;
|
|
@@ -8564,8 +8604,8 @@ export declare const contract: {
|
|
|
8564
8604
|
body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
|
|
8565
8605
|
loginCustomerId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8566
8606
|
method: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
8567
|
-
POST: "POST";
|
|
8568
8607
|
GET: "GET";
|
|
8608
|
+
POST: "POST";
|
|
8569
8609
|
}>>;
|
|
8570
8610
|
path: import("zod").ZodString;
|
|
8571
8611
|
}, import("zod/v4/core").$strict>, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
@@ -10462,6 +10502,26 @@ export declare const contract: {
|
|
|
10462
10502
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10463
10503
|
};
|
|
10464
10504
|
account: {
|
|
10505
|
+
integrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10506
|
+
token: import("zod").ZodUUID;
|
|
10507
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
10508
|
+
expiresAt: import("zod").ZodDate;
|
|
10509
|
+
label: import("zod").ZodString;
|
|
10510
|
+
requiredPlan: import("zod").ZodEnum<{
|
|
10511
|
+
free: "free";
|
|
10512
|
+
pro: "pro";
|
|
10513
|
+
}>;
|
|
10514
|
+
serviceId: import("zod").ZodString;
|
|
10515
|
+
serviceName: import("zod").ZodString;
|
|
10516
|
+
serviceSub: import("zod").ZodString;
|
|
10517
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10518
|
+
claimIntegrationInstall: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10519
|
+
organizationId: import("zod").ZodString;
|
|
10520
|
+
token: import("zod").ZodUUID;
|
|
10521
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
10522
|
+
accountId: import("zod").ZodString;
|
|
10523
|
+
txid: import("zod").ZodNumber;
|
|
10524
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10465
10525
|
beginConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10466
10526
|
connectionMethodId: import("zod").ZodString;
|
|
10467
10527
|
organizationId: import("zod").ZodString;
|
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.160.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.160.0",
|
|
35
|
+
"@automate.ax/codec": "0.160.0",
|
|
36
|
+
"@automate.ax/integration-contracts": "0.160.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
|
@@ -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", "pro"]),
|
|
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.",
|