@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.
Files changed (91) hide show
  1. package/dist/account.d.ts +373 -8
  2. package/dist/account.js +245 -14
  3. package/dist/api-key.d.ts +17 -9
  4. package/dist/api-key.js +4 -4
  5. package/dist/auth.d.ts +1 -1
  6. package/dist/auth.js +1 -1
  7. package/dist/authorization.d.ts +5 -5
  8. package/dist/authorization.js +21 -5
  9. package/dist/automation.d.ts +171 -6
  10. package/dist/automation.js +83 -3
  11. package/dist/deployment.d.ts +166 -10
  12. package/dist/deployment.js +113 -44
  13. package/dist/errors.d.ts +1 -1
  14. package/dist/errors.js +1 -1
  15. package/dist/events/airtable.d.ts +1 -1
  16. package/dist/events/airtable.js +1 -1
  17. package/dist/events/asana.d.ts +1 -1
  18. package/dist/events/asana.js +1 -1
  19. package/dist/events/brevo.d.ts +1 -1
  20. package/dist/events/brevo.js +1 -1
  21. package/dist/events/github.d.ts +1 -1
  22. package/dist/events/github.js +1 -1
  23. package/dist/events/gmail.d.ts +1 -1
  24. package/dist/events/gmail.js +1 -1
  25. package/dist/events/google-calendar.d.ts +1 -1
  26. package/dist/events/google-calendar.js +1 -1
  27. package/dist/events/google-forms.d.ts +1 -1
  28. package/dist/events/google-forms.js +1 -1
  29. package/dist/events/google-meet.d.ts +20 -0
  30. package/dist/events/google-meet.js +38 -0
  31. package/dist/events/index.d.ts +17 -0
  32. package/dist/events/index.js +2 -0
  33. package/dist/events/linear.d.ts +1 -1
  34. package/dist/events/linear.js +1 -1
  35. package/dist/events/mailhook.d.ts +1 -1
  36. package/dist/events/mailhook.js +1 -1
  37. package/dist/events/microsoft.d.ts +1 -1
  38. package/dist/events/microsoft.js +1 -1
  39. package/dist/events/resend.d.ts +1 -1
  40. package/dist/events/resend.js +1 -1
  41. package/dist/events/slack.d.ts +1 -1
  42. package/dist/events/slack.js +1 -1
  43. package/dist/events/trello.d.ts +1 -1
  44. package/dist/events/trello.js +1 -1
  45. package/dist/events/vercel.d.ts +1 -1
  46. package/dist/events/vercel.js +1 -1
  47. package/dist/events/whatsapp.d.ts +1 -1
  48. package/dist/events/whatsapp.js +1 -1
  49. package/dist/execution-data.d.ts +90 -0
  50. package/dist/execution-data.js +53 -0
  51. package/dist/index.d.ts +2022 -392
  52. package/dist/index.js +30 -9
  53. package/dist/org.d.ts +44 -36
  54. package/dist/org.js +6 -6
  55. package/dist/project.d.ts +24 -16
  56. package/dist/project.js +6 -6
  57. package/dist/runtime.d.ts +38 -3
  58. package/dist/runtime.js +54 -2
  59. package/dist/schemas.d.ts +21 -1
  60. package/dist/schemas.js +20 -1
  61. package/package.json +17 -6
  62. package/src/account.ts +263 -18
  63. package/src/api-key.ts +8 -4
  64. package/src/auth.ts +1 -1
  65. package/src/authorization.ts +23 -5
  66. package/src/automation.ts +90 -3
  67. package/src/deployment.ts +119 -44
  68. package/src/errors.ts +1 -1
  69. package/src/events/airtable.ts +1 -1
  70. package/src/events/asana.ts +1 -1
  71. package/src/events/brevo.ts +1 -1
  72. package/src/events/github.ts +1 -1
  73. package/src/events/gmail.ts +1 -1
  74. package/src/events/google-calendar.ts +1 -1
  75. package/src/events/google-forms.ts +1 -1
  76. package/src/events/google-meet.ts +48 -0
  77. package/src/events/index.ts +2 -0
  78. package/src/events/linear.ts +1 -1
  79. package/src/events/mailhook.ts +1 -1
  80. package/src/events/microsoft.ts +1 -1
  81. package/src/events/resend.ts +1 -1
  82. package/src/events/slack.ts +1 -1
  83. package/src/events/trello.ts +1 -1
  84. package/src/events/vercel.ts +1 -1
  85. package/src/events/whatsapp.ts +1 -1
  86. package/src/execution-data.ts +69 -0
  87. package/src/index.ts +61 -8
  88. package/src/org.ts +10 -6
  89. package/src/project.ts +10 -6
  90. package/src/runtime.ts +68 -2
  91. package/src/schemas.ts +23 -1
@@ -1,8 +1,9 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
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 DEPLOYMENT_STATUS_SCHEMA = z.enum([
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: DEPLOYMENT_STATUS_SCHEMA,
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.input(z.object({ deploymentId: z.string() })).output(z.void()),
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.input(z.object({ deploymentId: z.string() })).output(z.object({
60
- automations: z
61
- .object({
62
- description: z.string(),
63
- id: z.string(),
64
- identityKey: z.string(),
65
- scopes: z
66
- .object({
67
- name: z.string().optional(),
68
- path: z.number().int().nonnegative().array().min(1),
69
- presentation: z.enum(["collapsed", "expanded", "hidden"]),
70
- })
71
- .array(),
72
- subscriptions: z
73
- .object({
74
- config: z.json(),
75
- eventType: z.string(),
76
- hookSlot: z.number().int().nonnegative(),
77
- scopePath: z.number().int().nonnegative().array().default([]),
78
- })
79
- .array(),
80
- })
81
- .array(),
82
- createdAt: z.date(),
83
- id: z.string(),
84
- git: GIT_SOURCE_SCHEMA.nullable(),
85
- job: z
86
- .object({
87
- attempts: z.number().int().nonnegative(),
88
- error: z.string().nullable(),
89
- maxAttempts: z.number().int().positive(),
90
- nextRunAt: z.date(),
91
- })
92
- .nullable(),
93
- project: z.object({
94
- id: z.string(),
95
- name: z.string(),
96
- }),
97
- status: DEPLOYMENT_STATUS_SCHEMA,
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
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const AUTOMATION_ERROR_CAUSE_DEPTH = 3;
3
3
  export interface AutomationErrorValue {
4
4
  /** Normalized and depth-limited underlying failure. */
package/dist/errors.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  const AUTOMATION_ERROR_BASE_SCHEMA = z.object({
3
3
  code: z.string().min(1),
4
4
  details: z.json().optional(),
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const airtableEventsContract: {
3
3
  airtableEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  base: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const airtableEventsContract = {
4
4
  airtableEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const asanaEventsContract: {
3
3
  asanaEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  callbackToken: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const asanaEventsContract = {
4
4
  asanaEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const brevoEventsContract: {
3
3
  brevoEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  event: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const brevoEventsContract = {
4
4
  brevoEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const githubEventsContract: {
3
3
  githubEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  installation: z.ZodOptional<z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const githubEventsContract = {
4
4
  githubEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const gmailEventsContract: {
3
3
  gmailPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  message: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const gmailEventsContract = {
4
4
  gmailPush: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const googleCalendarEventsContract: {
3
3
  googleCalendarPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodVoid, z.ZodVoid, Record<never, never>, Record<never, never>>;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const googleCalendarEventsContract = {
4
4
  googleCalendarPush: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const googleFormsEventsContract: {
3
3
  googleFormsPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  message: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const googleFormsEventsContract = {
4
4
  googleFormsPush: oc
5
5
  .route({
@@ -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
+ };
@@ -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<{
@@ -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,
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const linearEventsContract: {
3
3
  linearEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  action: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const linearEventsContract = {
4
4
  linearEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
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
  };
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const mailhookEventsContract = {
4
4
  mailhookEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const microsoftEventsContract: {
3
3
  microsoftGraphNotification: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  sourceId: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const microsoftEventsContract = {
4
4
  microsoftGraphNotification: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const resendEventsContract: {
3
3
  resendEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  sourceId: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const resendEventsContract = {
4
4
  resendEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const slackEventsContract: {
3
3
  slackEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  type: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const slackEventsContract = {
4
4
  slackEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const trelloEventsContract: {
3
3
  trelloEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  sourceId: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
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 = {
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
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
  };
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const vercelEventsContract = {
4
4
  vercelEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const whatsappEventsContract: {
3
3
  whatsappEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  entry: z.ZodArray<z.ZodUnknown>;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const whatsappEventsContract = {
4
4
  whatsappEvent: oc
5
5
  .route({
@@ -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
+ };