@automate.ax/api-contract 0.163.3 → 0.165.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 +5 -0
- package/dist/account.js +5 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.js +2 -0
- package/dist/events/uber.d.ts +6 -0
- package/dist/events/uber.js +16 -0
- package/dist/index.d.ts +12 -0
- package/package.json +4 -4
- package/src/account.ts +6 -0
- package/src/events/index.ts +2 -0
- package/src/events/uber.ts +18 -0
package/dist/account.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export declare const integrationAccountOutputSchema: z.ZodObject<{
|
|
|
118
118
|
}, z.core.$strip>>;
|
|
119
119
|
status: z.ZodEnum<{
|
|
120
120
|
active: "active";
|
|
121
|
+
unhealthy: "unhealthy";
|
|
121
122
|
revocation_pending: "revocation_pending";
|
|
122
123
|
revocation_failed: "revocation_failed";
|
|
123
124
|
revoked: "revoked";
|
|
@@ -150,6 +151,7 @@ export declare const integrationAccountRevocationImpactOutputSchema: z.ZodObject
|
|
|
150
151
|
id: z.ZodString;
|
|
151
152
|
status: z.ZodEnum<{
|
|
152
153
|
active: "active";
|
|
154
|
+
unhealthy: "unhealthy";
|
|
153
155
|
revocation_pending: "revocation_pending";
|
|
154
156
|
revocation_failed: "revocation_failed";
|
|
155
157
|
revoked: "revoked";
|
|
@@ -256,6 +258,7 @@ export declare const accountContract: {
|
|
|
256
258
|
}, z.core.$strip>>;
|
|
257
259
|
status: z.ZodEnum<{
|
|
258
260
|
active: "active";
|
|
261
|
+
unhealthy: "unhealthy";
|
|
259
262
|
revocation_pending: "revocation_pending";
|
|
260
263
|
revocation_failed: "revocation_failed";
|
|
261
264
|
revoked: "revoked";
|
|
@@ -293,6 +296,7 @@ export declare const accountContract: {
|
|
|
293
296
|
}, z.core.$strip>>;
|
|
294
297
|
status: z.ZodEnum<{
|
|
295
298
|
active: "active";
|
|
299
|
+
unhealthy: "unhealthy";
|
|
296
300
|
revocation_pending: "revocation_pending";
|
|
297
301
|
revocation_failed: "revocation_failed";
|
|
298
302
|
revoked: "revoked";
|
|
@@ -401,6 +405,7 @@ export declare const accountContract: {
|
|
|
401
405
|
id: z.ZodString;
|
|
402
406
|
status: z.ZodEnum<{
|
|
403
407
|
active: "active";
|
|
408
|
+
unhealthy: "unhealthy";
|
|
404
409
|
revocation_pending: "revocation_pending";
|
|
405
410
|
revocation_failed: "revocation_failed";
|
|
406
411
|
revoked: "revoked";
|
package/dist/account.js
CHANGED
|
@@ -95,8 +95,13 @@ export const integrationAccountBindingOutputSchema = z.object({
|
|
|
95
95
|
export const integrationAccountOutputSchema = integrationAccountBindingOutputSchema.extend({
|
|
96
96
|
revokedAt: z.date().nullable(),
|
|
97
97
|
revocation: integrationAccountRevocationOutputSchema.nullable(),
|
|
98
|
+
/**
|
|
99
|
+
* `unhealthy` means credential refresh or a health check failed; see
|
|
100
|
+
* `error`.
|
|
101
|
+
*/
|
|
98
102
|
status: z.enum([
|
|
99
103
|
"active",
|
|
104
|
+
"unhealthy",
|
|
100
105
|
"revocation_pending",
|
|
101
106
|
"revocation_failed",
|
|
102
107
|
"revoked",
|
package/dist/events/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export declare const eventsContract: {
|
|
|
7
7
|
sourceId: import("zod").ZodString;
|
|
8
8
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
9
9
|
vercelEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$loose>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10
|
+
uberEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
11
|
+
customerId: import("zod").ZodString;
|
|
12
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
10
13
|
trelloEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
11
14
|
sourceId: import("zod").ZodString;
|
|
12
15
|
action: import("zod").ZodObject<{
|
package/dist/events/index.js
CHANGED
|
@@ -32,6 +32,7 @@ import { squareEventsContract } from "./square.js";
|
|
|
32
32
|
import { stripeEventsContract } from "./stripe.js";
|
|
33
33
|
import { tallyEventsContract } from "./tally.js";
|
|
34
34
|
import { trelloEventsContract } from "./trello.js";
|
|
35
|
+
import { uberEventsContract } from "./uber.js";
|
|
35
36
|
import { vercelEventsContract } from "./vercel.js";
|
|
36
37
|
import { webflowEventsContract } from "./webflow.js";
|
|
37
38
|
import { whatsappEventsContract } from "./whatsapp.js";
|
|
@@ -70,6 +71,7 @@ export const eventsContract = {
|
|
|
70
71
|
...stripeEventsContract,
|
|
71
72
|
...tallyEventsContract,
|
|
72
73
|
...trelloEventsContract,
|
|
74
|
+
...uberEventsContract,
|
|
73
75
|
...vercelEventsContract,
|
|
74
76
|
...webflowEventsContract,
|
|
75
77
|
...whatsappEventsContract,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const uberEventsContract: {
|
|
3
|
+
uberEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
|
+
customerId: z.ZodString;
|
|
5
|
+
}, z.core.$loose>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
export const uberEventsContract = {
|
|
4
|
+
uberEvent: oc
|
|
5
|
+
.route({
|
|
6
|
+
description: "Receives signed delivery, courier, and refund webhooks from Uber Direct for one customer.",
|
|
7
|
+
method: "POST",
|
|
8
|
+
operationId: "receiveUberEvent",
|
|
9
|
+
path: "/events/uber/{customerId}",
|
|
10
|
+
successStatus: 200,
|
|
11
|
+
summary: "Receive an Uber Direct event",
|
|
12
|
+
tags: ["Events"],
|
|
13
|
+
})
|
|
14
|
+
.input(z.looseObject({ customerId: z.string() }))
|
|
15
|
+
.output(z.void()),
|
|
16
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export declare const publicContract: {
|
|
|
90
90
|
}, import("zod/v4/core").$strip>>;
|
|
91
91
|
status: import("zod").ZodEnum<{
|
|
92
92
|
active: "active";
|
|
93
|
+
unhealthy: "unhealthy";
|
|
93
94
|
revocation_pending: "revocation_pending";
|
|
94
95
|
revocation_failed: "revocation_failed";
|
|
95
96
|
revoked: "revoked";
|
|
@@ -127,6 +128,7 @@ export declare const publicContract: {
|
|
|
127
128
|
}, import("zod/v4/core").$strip>>;
|
|
128
129
|
status: import("zod").ZodEnum<{
|
|
129
130
|
active: "active";
|
|
131
|
+
unhealthy: "unhealthy";
|
|
130
132
|
revocation_pending: "revocation_pending";
|
|
131
133
|
revocation_failed: "revocation_failed";
|
|
132
134
|
revoked: "revoked";
|
|
@@ -235,6 +237,7 @@ export declare const publicContract: {
|
|
|
235
237
|
id: import("zod").ZodString;
|
|
236
238
|
status: import("zod").ZodEnum<{
|
|
237
239
|
active: "active";
|
|
240
|
+
unhealthy: "unhealthy";
|
|
238
241
|
revocation_pending: "revocation_pending";
|
|
239
242
|
revocation_failed: "revocation_failed";
|
|
240
243
|
revoked: "revoked";
|
|
@@ -2864,6 +2867,7 @@ export declare const firstPartyContract: {
|
|
|
2864
2867
|
}, import("zod/v4/core").$strip>>;
|
|
2865
2868
|
status: import("zod").ZodEnum<{
|
|
2866
2869
|
active: "active";
|
|
2870
|
+
unhealthy: "unhealthy";
|
|
2867
2871
|
revocation_pending: "revocation_pending";
|
|
2868
2872
|
revocation_failed: "revocation_failed";
|
|
2869
2873
|
revoked: "revoked";
|
|
@@ -2901,6 +2905,7 @@ export declare const firstPartyContract: {
|
|
|
2901
2905
|
}, import("zod/v4/core").$strip>>;
|
|
2902
2906
|
status: import("zod").ZodEnum<{
|
|
2903
2907
|
active: "active";
|
|
2908
|
+
unhealthy: "unhealthy";
|
|
2904
2909
|
revocation_pending: "revocation_pending";
|
|
2905
2910
|
revocation_failed: "revocation_failed";
|
|
2906
2911
|
revoked: "revoked";
|
|
@@ -3009,6 +3014,7 @@ export declare const firstPartyContract: {
|
|
|
3009
3014
|
id: import("zod").ZodString;
|
|
3010
3015
|
status: import("zod").ZodEnum<{
|
|
3011
3016
|
active: "active";
|
|
3017
|
+
unhealthy: "unhealthy";
|
|
3012
3018
|
revocation_pending: "revocation_pending";
|
|
3013
3019
|
revocation_failed: "revocation_failed";
|
|
3014
3020
|
revoked: "revoked";
|
|
@@ -3449,6 +3455,9 @@ export declare const contract: {
|
|
|
3449
3455
|
sourceId: import("zod").ZodString;
|
|
3450
3456
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3451
3457
|
vercelEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$loose>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
3458
|
+
uberEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3459
|
+
customerId: import("zod").ZodString;
|
|
3460
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3452
3461
|
trelloEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3453
3462
|
sourceId: import("zod").ZodString;
|
|
3454
3463
|
action: import("zod").ZodObject<{
|
|
@@ -10012,6 +10021,7 @@ export declare const contract: {
|
|
|
10012
10021
|
}, import("zod/v4/core").$strip>>;
|
|
10013
10022
|
status: import("zod").ZodEnum<{
|
|
10014
10023
|
active: "active";
|
|
10024
|
+
unhealthy: "unhealthy";
|
|
10015
10025
|
revocation_pending: "revocation_pending";
|
|
10016
10026
|
revocation_failed: "revocation_failed";
|
|
10017
10027
|
revoked: "revoked";
|
|
@@ -10049,6 +10059,7 @@ export declare const contract: {
|
|
|
10049
10059
|
}, import("zod/v4/core").$strip>>;
|
|
10050
10060
|
status: import("zod").ZodEnum<{
|
|
10051
10061
|
active: "active";
|
|
10062
|
+
unhealthy: "unhealthy";
|
|
10052
10063
|
revocation_pending: "revocation_pending";
|
|
10053
10064
|
revocation_failed: "revocation_failed";
|
|
10054
10065
|
revoked: "revoked";
|
|
@@ -10157,6 +10168,7 @@ export declare const contract: {
|
|
|
10157
10168
|
id: import("zod").ZodString;
|
|
10158
10169
|
status: import("zod").ZodEnum<{
|
|
10159
10170
|
active: "active";
|
|
10171
|
+
unhealthy: "unhealthy";
|
|
10160
10172
|
revocation_pending: "revocation_pending";
|
|
10161
10173
|
revocation_failed: "revocation_failed";
|
|
10162
10174
|
revoked: "revoked";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.165.0",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.automate.ax",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@ai-sdk/gateway": "4.0.87",
|
|
26
|
-
"@automate.ax/catalog": "0.
|
|
27
|
-
"@automate.ax/codec": "0.
|
|
28
|
-
"@automate.ax/integration-contracts": "0.
|
|
26
|
+
"@automate.ax/catalog": "0.165.0",
|
|
27
|
+
"@automate.ax/codec": "0.165.0",
|
|
28
|
+
"@automate.ax/integration-contracts": "0.165.0",
|
|
29
29
|
"@orpc/contract": "1.15.0",
|
|
30
30
|
"fast-json-stable-stringify": "^2.1.0",
|
|
31
31
|
"zod": "^4.3.6"
|
package/src/account.ts
CHANGED
|
@@ -101,8 +101,14 @@ export const integrationAccountOutputSchema =
|
|
|
101
101
|
integrationAccountBindingOutputSchema.extend({
|
|
102
102
|
revokedAt: z.date().nullable(),
|
|
103
103
|
revocation: integrationAccountRevocationOutputSchema.nullable(),
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* `unhealthy` means credential refresh or a health check failed; see
|
|
107
|
+
* `error`.
|
|
108
|
+
*/
|
|
104
109
|
status: z.enum([
|
|
105
110
|
"active",
|
|
111
|
+
"unhealthy",
|
|
106
112
|
"revocation_pending",
|
|
107
113
|
"revocation_failed",
|
|
108
114
|
"revoked",
|
package/src/events/index.ts
CHANGED
|
@@ -32,6 +32,7 @@ import { squareEventsContract } from "./square"
|
|
|
32
32
|
import { stripeEventsContract } from "./stripe"
|
|
33
33
|
import { tallyEventsContract } from "./tally"
|
|
34
34
|
import { trelloEventsContract } from "./trello"
|
|
35
|
+
import { uberEventsContract } from "./uber"
|
|
35
36
|
import { vercelEventsContract } from "./vercel"
|
|
36
37
|
import { webflowEventsContract } from "./webflow"
|
|
37
38
|
import { whatsappEventsContract } from "./whatsapp"
|
|
@@ -71,6 +72,7 @@ export const eventsContract = {
|
|
|
71
72
|
...stripeEventsContract,
|
|
72
73
|
...tallyEventsContract,
|
|
73
74
|
...trelloEventsContract,
|
|
75
|
+
...uberEventsContract,
|
|
74
76
|
...vercelEventsContract,
|
|
75
77
|
...webflowEventsContract,
|
|
76
78
|
...whatsappEventsContract,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract"
|
|
2
|
+
import * as z from "zod"
|
|
3
|
+
|
|
4
|
+
export const uberEventsContract = {
|
|
5
|
+
uberEvent: oc
|
|
6
|
+
.route({
|
|
7
|
+
description:
|
|
8
|
+
"Receives signed delivery, courier, and refund webhooks from Uber Direct for one customer.",
|
|
9
|
+
method: "POST",
|
|
10
|
+
operationId: "receiveUberEvent",
|
|
11
|
+
path: "/events/uber/{customerId}",
|
|
12
|
+
successStatus: 200,
|
|
13
|
+
summary: "Receive an Uber Direct event",
|
|
14
|
+
tags: ["Events"],
|
|
15
|
+
})
|
|
16
|
+
.input(z.looseObject({ customerId: z.string() }))
|
|
17
|
+
.output(z.void()),
|
|
18
|
+
}
|