@automate.ax/api-contract 0.75.0 → 0.77.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 +373 -8
- package/dist/account.js +245 -14
- package/dist/api-key.d.ts +17 -9
- package/dist/api-key.js +4 -4
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +1 -1
- package/dist/authorization.d.ts +5 -5
- package/dist/authorization.js +21 -5
- package/dist/automation.d.ts +171 -6
- package/dist/automation.js +83 -3
- package/dist/deployment.d.ts +166 -10
- package/dist/deployment.js +113 -44
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -1
- package/dist/events/airtable.d.ts +1 -1
- package/dist/events/airtable.js +1 -1
- package/dist/events/asana.d.ts +1 -1
- package/dist/events/asana.js +1 -1
- package/dist/events/brevo.d.ts +1 -1
- package/dist/events/brevo.js +1 -1
- package/dist/events/github.d.ts +1 -1
- package/dist/events/github.js +1 -1
- package/dist/events/gmail.d.ts +1 -1
- package/dist/events/gmail.js +1 -1
- package/dist/events/google-calendar.d.ts +1 -1
- package/dist/events/google-calendar.js +1 -1
- package/dist/events/google-forms.d.ts +1 -1
- package/dist/events/google-forms.js +1 -1
- package/dist/events/google-meet.d.ts +20 -0
- package/dist/events/google-meet.js +38 -0
- package/dist/events/index.d.ts +17 -0
- package/dist/events/index.js +2 -0
- package/dist/events/linear.d.ts +1 -1
- package/dist/events/linear.js +1 -1
- package/dist/events/mailhook.d.ts +1 -1
- package/dist/events/mailhook.js +1 -1
- package/dist/events/microsoft.d.ts +1 -1
- package/dist/events/microsoft.js +1 -1
- package/dist/events/resend.d.ts +1 -1
- package/dist/events/resend.js +1 -1
- package/dist/events/slack.d.ts +1 -1
- package/dist/events/slack.js +1 -1
- package/dist/events/trello.d.ts +1 -1
- package/dist/events/trello.js +1 -1
- package/dist/events/vercel.d.ts +1 -1
- package/dist/events/vercel.js +1 -1
- package/dist/events/whatsapp.d.ts +1 -1
- package/dist/events/whatsapp.js +1 -1
- package/dist/execution-data.d.ts +90 -0
- package/dist/execution-data.js +53 -0
- package/dist/index.d.ts +2022 -392
- package/dist/index.js +30 -9
- package/dist/org.d.ts +44 -36
- package/dist/org.js +6 -6
- package/dist/project.d.ts +24 -16
- package/dist/project.js +6 -6
- package/dist/runtime.d.ts +38 -3
- package/dist/runtime.js +54 -2
- package/dist/schemas.d.ts +21 -1
- package/dist/schemas.js +20 -1
- package/package.json +17 -6
- package/src/account.ts +263 -18
- package/src/api-key.ts +8 -4
- package/src/auth.ts +1 -1
- package/src/authorization.ts +23 -5
- package/src/automation.ts +90 -3
- package/src/deployment.ts +119 -44
- package/src/errors.ts +1 -1
- package/src/events/airtable.ts +1 -1
- package/src/events/asana.ts +1 -1
- package/src/events/brevo.ts +1 -1
- package/src/events/github.ts +1 -1
- package/src/events/gmail.ts +1 -1
- package/src/events/google-calendar.ts +1 -1
- package/src/events/google-forms.ts +1 -1
- package/src/events/google-meet.ts +48 -0
- package/src/events/index.ts +2 -0
- package/src/events/linear.ts +1 -1
- package/src/events/mailhook.ts +1 -1
- package/src/events/microsoft.ts +1 -1
- package/src/events/resend.ts +1 -1
- package/src/events/slack.ts +1 -1
- package/src/events/trello.ts +1 -1
- package/src/events/vercel.ts +1 -1
- package/src/events/whatsapp.ts +1 -1
- package/src/execution-data.ts +69 -0
- package/src/index.ts +61 -8
- package/src/org.ts +10 -6
- package/src/project.ts +10 -6
- package/src/runtime.ts +68 -2
- package/src/schemas.ts +23 -1
package/dist/deployment.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
import { cursorPageOutputSchema, cursorPaginationInputSchema } from "./schemas.js";
|
|
3
4
|
/** SDK compatibility version used to select the immutable runtime image. */
|
|
4
5
|
export const AUTOMATION_SDK_VERSION = "2";
|
|
5
|
-
const
|
|
6
|
+
export const deploymentStatusSchema = z.enum([
|
|
6
7
|
"planning",
|
|
7
8
|
"awaiting_authorization",
|
|
8
9
|
"configuring",
|
|
@@ -14,7 +15,7 @@ const DEPLOYMENT_STATUS_SCHEMA = z.enum([
|
|
|
14
15
|
const DEPLOYMENT_IN_PROGRESS_ERROR = {
|
|
15
16
|
data: z.object({
|
|
16
17
|
deploymentId: z.string(),
|
|
17
|
-
status:
|
|
18
|
+
status: deploymentStatusSchema,
|
|
18
19
|
}),
|
|
19
20
|
message: "A deployment is already in progress.",
|
|
20
21
|
status: 409,
|
|
@@ -25,8 +26,67 @@ const GIT_SOURCE_SCHEMA = z.object({
|
|
|
25
26
|
projectPath: z.string(),
|
|
26
27
|
repositoryUrl: z.string().min(1),
|
|
27
28
|
});
|
|
29
|
+
const DEPLOYMENT_AUTHORIZATION_SCHEMA = z.object({
|
|
30
|
+
requirements: z
|
|
31
|
+
.object({
|
|
32
|
+
binding: z.string(),
|
|
33
|
+
satisfied: z.boolean(),
|
|
34
|
+
serviceId: z.string(),
|
|
35
|
+
})
|
|
36
|
+
.array(),
|
|
37
|
+
url: z.url(),
|
|
38
|
+
});
|
|
39
|
+
export const deploymentOutputSchema = z.object({
|
|
40
|
+
authorization: DEPLOYMENT_AUTHORIZATION_SCHEMA.nullable(),
|
|
41
|
+
automations: z
|
|
42
|
+
.object({
|
|
43
|
+
description: z.string(),
|
|
44
|
+
id: z.string(),
|
|
45
|
+
identityKey: z.string(),
|
|
46
|
+
scopes: z
|
|
47
|
+
.object({
|
|
48
|
+
name: z.string().optional(),
|
|
49
|
+
path: z.number().int().nonnegative().array().min(1),
|
|
50
|
+
presentation: z.enum(["collapsed", "expanded", "hidden"]),
|
|
51
|
+
})
|
|
52
|
+
.array(),
|
|
53
|
+
subscriptions: z
|
|
54
|
+
.object({
|
|
55
|
+
config: z.json(),
|
|
56
|
+
eventType: z.string(),
|
|
57
|
+
hookSlot: z.number().int().nonnegative(),
|
|
58
|
+
scopePath: z.number().int().nonnegative().array().default([]),
|
|
59
|
+
})
|
|
60
|
+
.array(),
|
|
61
|
+
})
|
|
62
|
+
.array(),
|
|
63
|
+
createdAt: z.date(),
|
|
64
|
+
failure: z.object({ message: z.string() }).nullable(),
|
|
65
|
+
id: z.string(),
|
|
66
|
+
git: GIT_SOURCE_SCHEMA.nullable(),
|
|
67
|
+
project: z.object({
|
|
68
|
+
id: z.string(),
|
|
69
|
+
name: z.string(),
|
|
70
|
+
organization: z.object({
|
|
71
|
+
id: z.string(),
|
|
72
|
+
name: z.string(),
|
|
73
|
+
}),
|
|
74
|
+
}),
|
|
75
|
+
status: deploymentStatusSchema,
|
|
76
|
+
});
|
|
28
77
|
export const deploymentContract = {
|
|
29
|
-
cancel: oc
|
|
78
|
+
cancel: oc
|
|
79
|
+
.route({
|
|
80
|
+
method: "DELETE",
|
|
81
|
+
path: "/deployments/{deploymentId}",
|
|
82
|
+
operationId: "cancelDeployment",
|
|
83
|
+
summary: "Cancel deployment",
|
|
84
|
+
description: "Cancels a deployment that is planning, awaiting authorization, or configuring.",
|
|
85
|
+
successStatus: 204,
|
|
86
|
+
tags: ["Deployments"],
|
|
87
|
+
})
|
|
88
|
+
.input(z.object({ deploymentId: z.string() }))
|
|
89
|
+
.output(z.void()),
|
|
30
90
|
create: oc
|
|
31
91
|
.errors({ DEPLOYMENT_IN_PROGRESS: DEPLOYMENT_IN_PROGRESS_ERROR })
|
|
32
92
|
.input(z.object({
|
|
@@ -56,48 +116,57 @@ export const deploymentContract = {
|
|
|
56
116
|
git: GIT_SOURCE_SCHEMA.optional(),
|
|
57
117
|
}))
|
|
58
118
|
.output(z.object({ id: z.string() })),
|
|
59
|
-
get: oc
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
})
|
|
97
|
-
|
|
98
|
-
})),
|
|
119
|
+
get: oc
|
|
120
|
+
.route({
|
|
121
|
+
method: "GET",
|
|
122
|
+
path: "/deployments/{deploymentId}",
|
|
123
|
+
operationId: "getDeployment",
|
|
124
|
+
summary: "Get deployment",
|
|
125
|
+
description: "Returns normalized deployment status, authorization requirements, and planned automations.",
|
|
126
|
+
tags: ["Deployments"],
|
|
127
|
+
})
|
|
128
|
+
.input(z.object({ deploymentId: z.string() }))
|
|
129
|
+
.output(deploymentOutputSchema),
|
|
130
|
+
list: oc
|
|
131
|
+
.route({
|
|
132
|
+
method: "GET",
|
|
133
|
+
path: "/deployments",
|
|
134
|
+
operationId: "listDeployments",
|
|
135
|
+
summary: "List deployments",
|
|
136
|
+
description: "Lists deployments visible to the caller, optionally filtered by organization, project, status, or creation time.",
|
|
137
|
+
tags: ["Deployments"],
|
|
138
|
+
})
|
|
139
|
+
.input(cursorPaginationInputSchema
|
|
140
|
+
.extend({
|
|
141
|
+
organizationId: z.string().optional(),
|
|
142
|
+
projectId: z.string().optional(),
|
|
143
|
+
since: z.date().optional(),
|
|
144
|
+
status: deploymentStatusSchema.optional(),
|
|
145
|
+
until: z.date().optional(),
|
|
146
|
+
})
|
|
147
|
+
.superRefine(({ since, until }, context) => {
|
|
148
|
+
if (since !== undefined && until !== undefined && since > until) {
|
|
149
|
+
context.addIssue({
|
|
150
|
+
code: "custom",
|
|
151
|
+
message: "Since must be before or equal to until.",
|
|
152
|
+
path: ["since"],
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
})
|
|
156
|
+
.prefault({}))
|
|
157
|
+
.output(cursorPageOutputSchema(deploymentOutputSchema)),
|
|
99
158
|
redeploy: oc
|
|
100
159
|
.errors({ DEPLOYMENT_IN_PROGRESS: DEPLOYMENT_IN_PROGRESS_ERROR })
|
|
160
|
+
.route({
|
|
161
|
+
method: "POST",
|
|
162
|
+
path: "/projects/{projectId}/deployments/redeploy",
|
|
163
|
+
operationId: "redeployProject",
|
|
164
|
+
summary: "Redeploy project",
|
|
165
|
+
description: "Creates a deployment from the project's active artifact and plans with explicit integration account bindings.",
|
|
166
|
+
successStatus: 201,
|
|
167
|
+
successDescription: "Redeployment created.",
|
|
168
|
+
tags: ["Deployments"],
|
|
169
|
+
})
|
|
101
170
|
.input(z.object({
|
|
102
171
|
bindings: z
|
|
103
172
|
.object({
|
package/dist/errors.d.ts
CHANGED
package/dist/errors.js
CHANGED
package/dist/events/airtable.js
CHANGED
package/dist/events/asana.d.ts
CHANGED
package/dist/events/asana.js
CHANGED
package/dist/events/brevo.d.ts
CHANGED
package/dist/events/brevo.js
CHANGED
package/dist/events/github.d.ts
CHANGED
package/dist/events/github.js
CHANGED
package/dist/events/gmail.d.ts
CHANGED
package/dist/events/gmail.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const googleMeetEventsContract: {
|
|
3
|
+
googleMeetPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
|
+
message: z.ZodObject<{
|
|
5
|
+
attributes: z.ZodObject<{
|
|
6
|
+
"ce-datacontenttype": z.ZodLiteral<"application/json">;
|
|
7
|
+
"ce-id": z.ZodString;
|
|
8
|
+
"ce-source": z.ZodString;
|
|
9
|
+
"ce-specversion": z.ZodLiteral<"1.0">;
|
|
10
|
+
"ce-subject": z.ZodString;
|
|
11
|
+
"ce-time": z.ZodISODateTime;
|
|
12
|
+
"ce-type": z.ZodString;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
data: z.ZodString;
|
|
15
|
+
messageId: z.ZodString;
|
|
16
|
+
publishTime: z.ZodISODateTime;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
subscription: z.ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-meet-push">;
|
|
19
|
+
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const googleMeetEventsContract = {
|
|
4
|
+
googleMeetPush: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "POST",
|
|
7
|
+
path: "/events/google-meet",
|
|
8
|
+
operationId: "receiveGoogleMeetPush",
|
|
9
|
+
summary: "Receive a Google Meet push notification",
|
|
10
|
+
description: "Receives and authenticates Google Meet CloudEvents delivered by Google Cloud Pub/Sub.",
|
|
11
|
+
tags: ["Events"],
|
|
12
|
+
successStatus: 204,
|
|
13
|
+
})
|
|
14
|
+
.input(z.object({
|
|
15
|
+
/** Pub/Sub message containing one encoded Google Workspace CloudEvent. */
|
|
16
|
+
message: z.object({
|
|
17
|
+
/** CloudEvent routing attributes supplied by Pub/Sub. */
|
|
18
|
+
attributes: z.looseObject({
|
|
19
|
+
"ce-datacontenttype": z.literal("application/json"),
|
|
20
|
+
"ce-id": z.string().min(1),
|
|
21
|
+
"ce-source": z.string().min(1),
|
|
22
|
+
"ce-specversion": z.literal("1.0"),
|
|
23
|
+
"ce-subject": z.string().min(1),
|
|
24
|
+
"ce-time": z.iso.datetime({ offset: true }),
|
|
25
|
+
"ce-type": z.string().min(1),
|
|
26
|
+
}),
|
|
27
|
+
/** Base64-encoded CloudEvent data. */
|
|
28
|
+
data: z.string().min(1),
|
|
29
|
+
/** Pub/Sub message identifier. */
|
|
30
|
+
messageId: z.string().min(1),
|
|
31
|
+
/** RFC 3339 time at which Pub/Sub published the notification. */
|
|
32
|
+
publishTime: z.iso.datetime({ offset: true }),
|
|
33
|
+
}),
|
|
34
|
+
/** Pub/Sub subscription that delivered the message. */
|
|
35
|
+
subscription: z.literal("projects/opkitty/subscriptions/automate-ax-google-meet-push"),
|
|
36
|
+
}))
|
|
37
|
+
.output(z.void()),
|
|
38
|
+
};
|
package/dist/events/index.d.ts
CHANGED
|
@@ -64,6 +64,23 @@ export declare const eventsContract: {
|
|
|
64
64
|
}, import("zod/v4/core").$strip>;
|
|
65
65
|
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-gmail-push">;
|
|
66
66
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
67
|
+
googleMeetPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
68
|
+
message: import("zod").ZodObject<{
|
|
69
|
+
attributes: import("zod").ZodObject<{
|
|
70
|
+
"ce-datacontenttype": import("zod").ZodLiteral<"application/json">;
|
|
71
|
+
"ce-id": import("zod").ZodString;
|
|
72
|
+
"ce-source": import("zod").ZodString;
|
|
73
|
+
"ce-specversion": import("zod").ZodLiteral<"1.0">;
|
|
74
|
+
"ce-subject": import("zod").ZodString;
|
|
75
|
+
"ce-time": import("zod").ZodISODateTime;
|
|
76
|
+
"ce-type": import("zod").ZodString;
|
|
77
|
+
}, import("zod/v4/core").$loose>;
|
|
78
|
+
data: import("zod").ZodString;
|
|
79
|
+
messageId: import("zod").ZodString;
|
|
80
|
+
publishTime: import("zod").ZodISODateTime;
|
|
81
|
+
}, import("zod/v4/core").$strip>;
|
|
82
|
+
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-meet-push">;
|
|
83
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
67
84
|
googleFormsPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
68
85
|
message: import("zod").ZodObject<{
|
|
69
86
|
attributes: import("zod").ZodObject<{
|
package/dist/events/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { asanaEventsContract } from "./asana.js";
|
|
|
3
3
|
import { brevoEventsContract } from "./brevo.js";
|
|
4
4
|
import { googleCalendarEventsContract } from "./google-calendar.js";
|
|
5
5
|
import { googleFormsEventsContract } from "./google-forms.js";
|
|
6
|
+
import { googleMeetEventsContract } from "./google-meet.js";
|
|
6
7
|
import { gmailEventsContract } from "./gmail.js";
|
|
7
8
|
import { githubEventsContract } from "./github.js";
|
|
8
9
|
import { linearEventsContract } from "./linear.js";
|
|
@@ -19,6 +20,7 @@ export const eventsContract = {
|
|
|
19
20
|
...brevoEventsContract,
|
|
20
21
|
...googleCalendarEventsContract,
|
|
21
22
|
...googleFormsEventsContract,
|
|
23
|
+
...googleMeetEventsContract,
|
|
22
24
|
...gmailEventsContract,
|
|
23
25
|
...githubEventsContract,
|
|
24
26
|
...linearEventsContract,
|
package/dist/events/linear.d.ts
CHANGED
package/dist/events/linear.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
export declare const mailhookEventsContract: {
|
|
3
3
|
mailhookEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$loose>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
4
4
|
};
|
package/dist/events/mailhook.js
CHANGED
package/dist/events/microsoft.js
CHANGED
package/dist/events/resend.d.ts
CHANGED
package/dist/events/resend.js
CHANGED
package/dist/events/slack.d.ts
CHANGED
package/dist/events/slack.js
CHANGED
package/dist/events/trello.d.ts
CHANGED
package/dist/events/trello.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
/** Source path shared by Trello's callback probe and event delivery. */
|
|
4
4
|
const trelloWebhookPathInput = z.looseObject({ sourceId: z.string() });
|
|
5
5
|
export const trelloEventsContract = {
|
package/dist/events/vercel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
export declare const vercelEventsContract: {
|
|
3
3
|
vercelEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$loose>, z.ZodObject<{}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
4
4
|
};
|
package/dist/events/vercel.js
CHANGED
package/dist/events/whatsapp.js
CHANGED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const EXECUTION_DATASET_VERSION = 4;
|
|
3
|
+
export declare const executionDatasetResourceSchema: z.ZodEnum<{
|
|
4
|
+
automations: "automations";
|
|
5
|
+
projects: "projects";
|
|
6
|
+
actions: "actions";
|
|
7
|
+
events: "events";
|
|
8
|
+
outputs: "outputs";
|
|
9
|
+
contexts: "contexts";
|
|
10
|
+
"context-parents": "context-parents";
|
|
11
|
+
"event-links": "event-links";
|
|
12
|
+
"signal-invocations": "signal-invocations";
|
|
13
|
+
"signal-coordinators": "signal-coordinators";
|
|
14
|
+
"signal-offers": "signal-offers";
|
|
15
|
+
"signal-decisions": "signal-decisions";
|
|
16
|
+
logs: "logs";
|
|
17
|
+
"trace-spans": "trace-spans";
|
|
18
|
+
}>;
|
|
19
|
+
export declare const executionDatasetScopeSchema: z.ZodObject<{
|
|
20
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
since: z.ZodNullable<z.ZodISODateTime>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const executionDatasetManifestSchema: z.ZodObject<{
|
|
25
|
+
consistency: z.ZodLiteral<"eventual">;
|
|
26
|
+
profileId: z.ZodString;
|
|
27
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
28
|
+
name: z.ZodEnum<{
|
|
29
|
+
automations: "automations";
|
|
30
|
+
projects: "projects";
|
|
31
|
+
actions: "actions";
|
|
32
|
+
events: "events";
|
|
33
|
+
outputs: "outputs";
|
|
34
|
+
contexts: "contexts";
|
|
35
|
+
"context-parents": "context-parents";
|
|
36
|
+
"event-links": "event-links";
|
|
37
|
+
"signal-invocations": "signal-invocations";
|
|
38
|
+
"signal-coordinators": "signal-coordinators";
|
|
39
|
+
"signal-offers": "signal-offers";
|
|
40
|
+
"signal-decisions": "signal-decisions";
|
|
41
|
+
logs: "logs";
|
|
42
|
+
"trace-spans": "trace-spans";
|
|
43
|
+
}>;
|
|
44
|
+
url: z.ZodURL;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
schemaVersion: z.ZodLiteral<4>;
|
|
47
|
+
scope: z.ZodObject<{
|
|
48
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
50
|
+
since: z.ZodNullable<z.ZodISODateTime>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type ExecutionDatasetManifest = z.infer<typeof executionDatasetManifestSchema>;
|
|
54
|
+
export type ExecutionDatasetResource = z.infer<typeof executionDatasetResourceSchema>;
|
|
55
|
+
export type ExecutionDatasetScope = z.infer<typeof executionDatasetScopeSchema>;
|
|
56
|
+
export declare const executionDataContract: {
|
|
57
|
+
manifest: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
58
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
59
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
60
|
+
since: z.ZodOptional<z.ZodISODateTime>;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
consistency: z.ZodLiteral<"eventual">;
|
|
63
|
+
profileId: z.ZodString;
|
|
64
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
65
|
+
name: z.ZodEnum<{
|
|
66
|
+
automations: "automations";
|
|
67
|
+
projects: "projects";
|
|
68
|
+
actions: "actions";
|
|
69
|
+
events: "events";
|
|
70
|
+
outputs: "outputs";
|
|
71
|
+
contexts: "contexts";
|
|
72
|
+
"context-parents": "context-parents";
|
|
73
|
+
"event-links": "event-links";
|
|
74
|
+
"signal-invocations": "signal-invocations";
|
|
75
|
+
"signal-coordinators": "signal-coordinators";
|
|
76
|
+
"signal-offers": "signal-offers";
|
|
77
|
+
"signal-decisions": "signal-decisions";
|
|
78
|
+
logs: "logs";
|
|
79
|
+
"trace-spans": "trace-spans";
|
|
80
|
+
}>;
|
|
81
|
+
url: z.ZodURL;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
schemaVersion: z.ZodLiteral<4>;
|
|
84
|
+
scope: z.ZodObject<{
|
|
85
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
86
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
87
|
+
since: z.ZodNullable<z.ZodISODateTime>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
90
|
+
};
|