@sixb/server 0.0.1

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 (216) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -0
  3. package/dist/auth/access-token-boundary.d.ts +23 -0
  4. package/dist/auth/access-token-boundary.d.ts.map +1 -0
  5. package/dist/auth/application-access.d.ts +4 -0
  6. package/dist/auth/application-access.d.ts.map +1 -0
  7. package/dist/auth/browser-origin.d.ts +62 -0
  8. package/dist/auth/browser-origin.d.ts.map +1 -0
  9. package/dist/auth/csrf.d.ts +2 -0
  10. package/dist/auth/csrf.d.ts.map +1 -0
  11. package/dist/auth/guard.d.ts +35 -0
  12. package/dist/auth/guard.d.ts.map +1 -0
  13. package/dist/auth/public-routes.d.ts +8 -0
  14. package/dist/auth/public-routes.d.ts.map +1 -0
  15. package/dist/auth/responses.d.ts +11 -0
  16. package/dist/auth/responses.d.ts.map +1 -0
  17. package/dist/auth/return-to.d.ts +3 -0
  18. package/dist/auth/return-to.d.ts.map +1 -0
  19. package/dist/auth/scope.d.ts +43 -0
  20. package/dist/auth/scope.d.ts.map +1 -0
  21. package/dist/auth/session-activity.d.ts +4 -0
  22. package/dist/auth/session-activity.d.ts.map +1 -0
  23. package/dist/auth/session-cookies.d.ts +12 -0
  24. package/dist/auth/session-cookies.d.ts.map +1 -0
  25. package/dist/files/content.d.ts +141 -0
  26. package/dist/files/content.d.ts.map +1 -0
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +11522 -0
  30. package/dist/index.js.map +78 -0
  31. package/dist/openapi/security.d.ts +26 -0
  32. package/dist/openapi/security.d.ts.map +1 -0
  33. package/dist/openapi/tags.d.ts +151 -0
  34. package/dist/openapi/tags.d.ts.map +1 -0
  35. package/dist/registerRoutes.d.ts +31 -0
  36. package/dist/registerRoutes.d.ts.map +1 -0
  37. package/dist/routes/action-runs.d.ts +244 -0
  38. package/dist/routes/action-runs.d.ts.map +1 -0
  39. package/dist/routes/actions.d.ts +183 -0
  40. package/dist/routes/actions.d.ts.map +1 -0
  41. package/dist/routes/agent-api-gateway.d.ts +4 -0
  42. package/dist/routes/agent-api-gateway.d.ts.map +1 -0
  43. package/dist/routes/agents.d.ts +1061 -0
  44. package/dist/routes/agents.d.ts.map +1 -0
  45. package/dist/routes/auth.d.ts +1366 -0
  46. package/dist/routes/auth.d.ts.map +1 -0
  47. package/dist/routes/connectors.d.ts +108 -0
  48. package/dist/routes/connectors.d.ts.map +1 -0
  49. package/dist/routes/datasets.d.ts +339 -0
  50. package/dist/routes/datasets.d.ts.map +1 -0
  51. package/dist/routes/events.d.ts +116 -0
  52. package/dist/routes/events.d.ts.map +1 -0
  53. package/dist/routes/files.d.ts +340 -0
  54. package/dist/routes/files.d.ts.map +1 -0
  55. package/dist/routes/links.d.ts +175 -0
  56. package/dist/routes/links.d.ts.map +1 -0
  57. package/dist/routes/logs.d.ts +88 -0
  58. package/dist/routes/logs.d.ts.map +1 -0
  59. package/dist/routes/objects.d.ts +450 -0
  60. package/dist/routes/objects.d.ts.map +1 -0
  61. package/dist/routes/ontology.d.ts +240 -0
  62. package/dist/routes/ontology.d.ts.map +1 -0
  63. package/dist/routes/pipelines.d.ts +399 -0
  64. package/dist/routes/pipelines.d.ts.map +1 -0
  65. package/dist/routes/project.d.ts +56 -0
  66. package/dist/routes/project.d.ts.map +1 -0
  67. package/dist/routes/projections.d.ts +916 -0
  68. package/dist/routes/projections.d.ts.map +1 -0
  69. package/dist/routes/rules.d.ts +165 -0
  70. package/dist/routes/rules.d.ts.map +1 -0
  71. package/dist/routes/status.d.ts +81 -0
  72. package/dist/routes/status.d.ts.map +1 -0
  73. package/dist/routes/syncs.d.ts +294 -0
  74. package/dist/routes/syncs.d.ts.map +1 -0
  75. package/dist/routes/telemetry.d.ts +241 -0
  76. package/dist/routes/telemetry.d.ts.map +1 -0
  77. package/dist/routes/webhook-runs.d.ts +89 -0
  78. package/dist/routes/webhook-runs.d.ts.map +1 -0
  79. package/dist/routes/webhooks.d.ts +60 -0
  80. package/dist/routes/webhooks.d.ts.map +1 -0
  81. package/dist/routes/workflows.d.ts +973 -0
  82. package/dist/routes/workflows.d.ts.map +1 -0
  83. package/dist/routes/ws/agents.d.ts +99 -0
  84. package/dist/routes/ws/agents.d.ts.map +1 -0
  85. package/dist/routes/ws/events.d.ts +89 -0
  86. package/dist/routes/ws/events.d.ts.map +1 -0
  87. package/dist/routes/ws/index.d.ts +31 -0
  88. package/dist/routes/ws/index.d.ts.map +1 -0
  89. package/dist/routes/ws/log-subscription-hub.d.ts +47 -0
  90. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -0
  91. package/dist/routes/ws/logs.d.ts +110 -0
  92. package/dist/routes/ws/logs.d.ts.map +1 -0
  93. package/dist/schemas/actions.d.ts +644 -0
  94. package/dist/schemas/actions.d.ts.map +1 -0
  95. package/dist/schemas/agents.d.ts +3157 -0
  96. package/dist/schemas/agents.d.ts.map +1 -0
  97. package/dist/schemas/auth.d.ts +2023 -0
  98. package/dist/schemas/auth.d.ts.map +1 -0
  99. package/dist/schemas/common.d.ts +30 -0
  100. package/dist/schemas/common.d.ts.map +1 -0
  101. package/dist/schemas/connectors.d.ts +82 -0
  102. package/dist/schemas/connectors.d.ts.map +1 -0
  103. package/dist/schemas/datasets.d.ts +744 -0
  104. package/dist/schemas/datasets.d.ts.map +1 -0
  105. package/dist/schemas/event-payloads.d.ts +477 -0
  106. package/dist/schemas/event-payloads.d.ts.map +1 -0
  107. package/dist/schemas/events.d.ts +665 -0
  108. package/dist/schemas/events.d.ts.map +1 -0
  109. package/dist/schemas/files.d.ts +241 -0
  110. package/dist/schemas/files.d.ts.map +1 -0
  111. package/dist/schemas/links.d.ts +90 -0
  112. package/dist/schemas/links.d.ts.map +1 -0
  113. package/dist/schemas/logs.d.ts +231 -0
  114. package/dist/schemas/logs.d.ts.map +1 -0
  115. package/dist/schemas/objects.d.ts +288 -0
  116. package/dist/schemas/objects.d.ts.map +1 -0
  117. package/dist/schemas/ontology.d.ts +778 -0
  118. package/dist/schemas/ontology.d.ts.map +1 -0
  119. package/dist/schemas/pipelines.d.ts +1373 -0
  120. package/dist/schemas/pipelines.d.ts.map +1 -0
  121. package/dist/schemas/project.d.ts +9 -0
  122. package/dist/schemas/project.d.ts.map +1 -0
  123. package/dist/schemas/projections.d.ts +6992 -0
  124. package/dist/schemas/projections.d.ts.map +1 -0
  125. package/dist/schemas/rules.d.ts +204 -0
  126. package/dist/schemas/rules.d.ts.map +1 -0
  127. package/dist/schemas/status.d.ts +189 -0
  128. package/dist/schemas/status.d.ts.map +1 -0
  129. package/dist/schemas/syncs.d.ts +538 -0
  130. package/dist/schemas/syncs.d.ts.map +1 -0
  131. package/dist/schemas/telemetry.d.ts +265 -0
  132. package/dist/schemas/telemetry.d.ts.map +1 -0
  133. package/dist/schemas/webhook-runs.d.ts +169 -0
  134. package/dist/schemas/webhook-runs.d.ts.map +1 -0
  135. package/dist/schemas/workflows.d.ts +1720 -0
  136. package/dist/schemas/workflows.d.ts.map +1 -0
  137. package/dist/server.d.ts +64 -0
  138. package/dist/server.d.ts.map +1 -0
  139. package/dist/tsconfig.json +5 -0
  140. package/dist/utils/http.d.ts +23 -0
  141. package/dist/utils/http.d.ts.map +1 -0
  142. package/dist/utils/request-body.d.ts +15 -0
  143. package/dist/utils/request-body.d.ts.map +1 -0
  144. package/dist/utils/ws.d.ts +10 -0
  145. package/dist/utils/ws.d.ts.map +1 -0
  146. package/package.json +68 -0
  147. package/src/auth/access-token-boundary.ts +68 -0
  148. package/src/auth/application-access.ts +16 -0
  149. package/src/auth/browser-origin.ts +367 -0
  150. package/src/auth/csrf.ts +1 -0
  151. package/src/auth/guard.ts +169 -0
  152. package/src/auth/public-routes.ts +87 -0
  153. package/src/auth/responses.ts +54 -0
  154. package/src/auth/return-to.ts +21 -0
  155. package/src/auth/scope.ts +64 -0
  156. package/src/auth/session-activity.ts +19 -0
  157. package/src/auth/session-cookies.ts +43 -0
  158. package/src/files/content.ts +419 -0
  159. package/src/index.ts +2 -0
  160. package/src/openapi/security.ts +37 -0
  161. package/src/openapi/tags.ts +151 -0
  162. package/src/registerRoutes.ts +49 -0
  163. package/src/routes/action-runs.ts +238 -0
  164. package/src/routes/actions.ts +126 -0
  165. package/src/routes/agent-api-gateway.ts +260 -0
  166. package/src/routes/agents.ts +943 -0
  167. package/src/routes/auth.ts +2233 -0
  168. package/src/routes/connectors.ts +69 -0
  169. package/src/routes/datasets.ts +402 -0
  170. package/src/routes/events.ts +55 -0
  171. package/src/routes/files.ts +675 -0
  172. package/src/routes/links.ts +143 -0
  173. package/src/routes/logs.ts +65 -0
  174. package/src/routes/objects.ts +838 -0
  175. package/src/routes/ontology.ts +138 -0
  176. package/src/routes/pipelines.ts +332 -0
  177. package/src/routes/project.ts +16 -0
  178. package/src/routes/projections.ts +251 -0
  179. package/src/routes/rules.ts +124 -0
  180. package/src/routes/status.ts +53 -0
  181. package/src/routes/syncs.ts +243 -0
  182. package/src/routes/telemetry.ts +207 -0
  183. package/src/routes/webhook-runs.ts +81 -0
  184. package/src/routes/webhooks.ts +508 -0
  185. package/src/routes/workflows.ts +1333 -0
  186. package/src/routes/ws/agents.ts +301 -0
  187. package/src/routes/ws/events.ts +278 -0
  188. package/src/routes/ws/index.ts +12 -0
  189. package/src/routes/ws/log-subscription-hub.ts +375 -0
  190. package/src/routes/ws/logs.ts +117 -0
  191. package/src/schemas/actions.ts +123 -0
  192. package/src/schemas/agents.ts +293 -0
  193. package/src/schemas/auth.ts +317 -0
  194. package/src/schemas/common.ts +60 -0
  195. package/src/schemas/connectors.ts +21 -0
  196. package/src/schemas/datasets.ts +107 -0
  197. package/src/schemas/event-payloads.ts +79 -0
  198. package/src/schemas/events.ts +117 -0
  199. package/src/schemas/files.ts +82 -0
  200. package/src/schemas/links.ts +38 -0
  201. package/src/schemas/logs.ts +76 -0
  202. package/src/schemas/objects.ts +759 -0
  203. package/src/schemas/ontology.ts +77 -0
  204. package/src/schemas/pipelines.ts +150 -0
  205. package/src/schemas/project.ts +5 -0
  206. package/src/schemas/projections.ts +144 -0
  207. package/src/schemas/rules.ts +98 -0
  208. package/src/schemas/status.ts +51 -0
  209. package/src/schemas/syncs.ts +83 -0
  210. package/src/schemas/telemetry.ts +59 -0
  211. package/src/schemas/webhook-runs.ts +40 -0
  212. package/src/schemas/workflows.ts +229 -0
  213. package/src/server.ts +383 -0
  214. package/src/utils/http.ts +108 -0
  215. package/src/utils/request-body.ts +62 -0
  216. package/src/utils/ws.ts +59 -0
@@ -0,0 +1,644 @@
1
+ import { z } from "zod";
2
+ export declare const ActionIdParamsSchema: z.ZodObject<{
3
+ actionId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ actionId: string;
6
+ }, {
7
+ actionId: string;
8
+ }>;
9
+ export declare const ActionRunIdParamsSchema: z.ZodObject<{
10
+ runId: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ runId: string;
13
+ }, {
14
+ runId: string;
15
+ }>;
16
+ export declare const ActionSubjectSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
17
+ kind: z.ZodLiteral<"none">;
18
+ }, "strip", z.ZodTypeAny, {
19
+ kind: "none";
20
+ }, {
21
+ kind: "none";
22
+ }>, z.ZodObject<{
23
+ kind: z.ZodLiteral<"object">;
24
+ objectTypeId: z.ZodString;
25
+ primaryId: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ kind: "object";
28
+ objectTypeId: string;
29
+ primaryId: string;
30
+ }, {
31
+ kind: "object";
32
+ objectTypeId: string;
33
+ primaryId: string;
34
+ }>]>;
35
+ export declare const RequestActionBodySchema: z.ZodObject<{
36
+ subject: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
37
+ kind: z.ZodLiteral<"none">;
38
+ }, "strip", z.ZodTypeAny, {
39
+ kind: "none";
40
+ }, {
41
+ kind: "none";
42
+ }>, z.ZodObject<{
43
+ kind: z.ZodLiteral<"object">;
44
+ objectTypeId: z.ZodString;
45
+ primaryId: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ kind: "object";
48
+ objectTypeId: string;
49
+ primaryId: string;
50
+ }, {
51
+ kind: "object";
52
+ objectTypeId: string;
53
+ primaryId: string;
54
+ }>]>>;
55
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
56
+ runId: z.ZodOptional<z.ZodString>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ params?: Record<string, unknown> | undefined;
59
+ runId?: string | undefined;
60
+ subject?: {
61
+ kind: "none";
62
+ } | {
63
+ kind: "object";
64
+ objectTypeId: string;
65
+ primaryId: string;
66
+ } | undefined;
67
+ }, {
68
+ params?: Record<string, unknown> | undefined;
69
+ runId?: string | undefined;
70
+ subject?: {
71
+ kind: "none";
72
+ } | {
73
+ kind: "object";
74
+ objectTypeId: string;
75
+ primaryId: string;
76
+ } | undefined;
77
+ }>;
78
+ export declare const RequestActionResponseSchema: z.ZodObject<{
79
+ runId: z.ZodString;
80
+ queuedAt: z.ZodString;
81
+ jobId: z.ZodOptional<z.ZodString>;
82
+ created: z.ZodBoolean;
83
+ }, "strip", z.ZodTypeAny, {
84
+ runId: string;
85
+ queuedAt: string;
86
+ created: boolean;
87
+ jobId?: string | undefined;
88
+ }, {
89
+ runId: string;
90
+ queuedAt: string;
91
+ created: boolean;
92
+ jobId?: string | undefined;
93
+ }>;
94
+ export declare const ActionCatalogItemSchema: z.ZodObject<{
95
+ id: z.ZodString;
96
+ name: z.ZodString;
97
+ description: z.ZodOptional<z.ZodString>;
98
+ objectTypeId: z.ZodOptional<z.ZodString>;
99
+ params: z.ZodArray<z.ZodObject<{
100
+ id: z.ZodString;
101
+ name: z.ZodString;
102
+ description: z.ZodOptional<z.ZodString>;
103
+ required: z.ZodOptional<z.ZodBoolean>;
104
+ nullable: z.ZodOptional<z.ZodBoolean>;
105
+ semanticType: z.ZodOptional<z.ZodString>;
106
+ schema: z.ZodUnknown;
107
+ }, "strip", z.ZodTypeAny, {
108
+ name: string;
109
+ id: string;
110
+ description?: string | undefined;
111
+ required?: boolean | undefined;
112
+ nullable?: boolean | undefined;
113
+ semanticType?: string | undefined;
114
+ schema?: unknown;
115
+ }, {
116
+ name: string;
117
+ id: string;
118
+ description?: string | undefined;
119
+ required?: boolean | undefined;
120
+ nullable?: boolean | undefined;
121
+ semanticType?: string | undefined;
122
+ schema?: unknown;
123
+ }>, "many">;
124
+ phases: z.ZodObject<{
125
+ validate: z.ZodBoolean;
126
+ writeback: z.ZodBoolean;
127
+ edits: z.ZodBoolean;
128
+ effects: z.ZodBoolean;
129
+ }, "strip", z.ZodTypeAny, {
130
+ validate: boolean;
131
+ writeback: boolean;
132
+ edits: boolean;
133
+ effects: boolean;
134
+ }, {
135
+ validate: boolean;
136
+ writeback: boolean;
137
+ edits: boolean;
138
+ effects: boolean;
139
+ }>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ name: string;
142
+ params: {
143
+ name: string;
144
+ id: string;
145
+ description?: string | undefined;
146
+ required?: boolean | undefined;
147
+ nullable?: boolean | undefined;
148
+ semanticType?: string | undefined;
149
+ schema?: unknown;
150
+ }[];
151
+ id: string;
152
+ phases: {
153
+ validate: boolean;
154
+ writeback: boolean;
155
+ edits: boolean;
156
+ effects: boolean;
157
+ };
158
+ description?: string | undefined;
159
+ objectTypeId?: string | undefined;
160
+ }, {
161
+ name: string;
162
+ params: {
163
+ name: string;
164
+ id: string;
165
+ description?: string | undefined;
166
+ required?: boolean | undefined;
167
+ nullable?: boolean | undefined;
168
+ semanticType?: string | undefined;
169
+ schema?: unknown;
170
+ }[];
171
+ id: string;
172
+ phases: {
173
+ validate: boolean;
174
+ writeback: boolean;
175
+ edits: boolean;
176
+ effects: boolean;
177
+ };
178
+ description?: string | undefined;
179
+ objectTypeId?: string | undefined;
180
+ }>;
181
+ export declare const ActionRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
182
+ export declare const ActionRunPhaseSchema: z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>;
183
+ export declare const ActionRunsQuerySchema: z.ZodObject<{
184
+ actionId: z.ZodOptional<z.ZodString>;
185
+ status: z.ZodOptional<z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>>;
186
+ objectTypeId: z.ZodOptional<z.ZodString>;
187
+ primaryId: z.ZodOptional<z.ZodString>;
188
+ startedAfter: z.ZodOptional<z.ZodString>;
189
+ startedBefore: z.ZodOptional<z.ZodString>;
190
+ limit: z.ZodOptional<z.ZodString>;
191
+ offset: z.ZodOptional<z.ZodString>;
192
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
195
+ limit?: string | undefined;
196
+ offset?: string | undefined;
197
+ order?: "asc" | "desc" | undefined;
198
+ objectTypeId?: string | undefined;
199
+ actionId?: string | undefined;
200
+ primaryId?: string | undefined;
201
+ startedAfter?: string | undefined;
202
+ startedBefore?: string | undefined;
203
+ }, {
204
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
205
+ limit?: string | undefined;
206
+ offset?: string | undefined;
207
+ order?: "asc" | "desc" | undefined;
208
+ objectTypeId?: string | undefined;
209
+ actionId?: string | undefined;
210
+ primaryId?: string | undefined;
211
+ startedAfter?: string | undefined;
212
+ startedBefore?: string | undefined;
213
+ }>;
214
+ export declare const ActionRunFailureSchema: z.ZodObject<{
215
+ name: z.ZodOptional<z.ZodString>;
216
+ message: z.ZodString;
217
+ phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ message: string;
220
+ name?: string | undefined;
221
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
222
+ }, {
223
+ message: string;
224
+ name?: string | undefined;
225
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
226
+ }>;
227
+ export declare const ActionRunSummarySchema: z.ZodObject<{
228
+ id: z.ZodString;
229
+ projectId: z.ZodString;
230
+ actionId: z.ZodString;
231
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
232
+ kind: z.ZodLiteral<"none">;
233
+ }, "strip", z.ZodTypeAny, {
234
+ kind: "none";
235
+ }, {
236
+ kind: "none";
237
+ }>, z.ZodObject<{
238
+ kind: z.ZodLiteral<"object">;
239
+ objectTypeId: z.ZodString;
240
+ primaryId: z.ZodString;
241
+ }, "strip", z.ZodTypeAny, {
242
+ kind: "object";
243
+ objectTypeId: string;
244
+ primaryId: string;
245
+ }, {
246
+ kind: "object";
247
+ objectTypeId: string;
248
+ primaryId: string;
249
+ }>]>;
250
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
251
+ phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
252
+ queuedAt: z.ZodString;
253
+ startedAt: z.ZodOptional<z.ZodString>;
254
+ finishedAt: z.ZodOptional<z.ZodString>;
255
+ error: z.ZodOptional<z.ZodObject<{
256
+ name: z.ZodOptional<z.ZodString>;
257
+ message: z.ZodString;
258
+ phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ message: string;
261
+ name?: string | undefined;
262
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
263
+ }, {
264
+ message: string;
265
+ name?: string | undefined;
266
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
267
+ }>>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
270
+ projectId: string;
271
+ id: string;
272
+ actionId: string;
273
+ subject: {
274
+ kind: "none";
275
+ } | {
276
+ kind: "object";
277
+ objectTypeId: string;
278
+ primaryId: string;
279
+ };
280
+ queuedAt: string;
281
+ error?: {
282
+ message: string;
283
+ name?: string | undefined;
284
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
285
+ } | undefined;
286
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
287
+ startedAt?: string | undefined;
288
+ finishedAt?: string | undefined;
289
+ }, {
290
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
291
+ projectId: string;
292
+ id: string;
293
+ actionId: string;
294
+ subject: {
295
+ kind: "none";
296
+ } | {
297
+ kind: "object";
298
+ objectTypeId: string;
299
+ primaryId: string;
300
+ };
301
+ queuedAt: string;
302
+ error?: {
303
+ message: string;
304
+ name?: string | undefined;
305
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
306
+ } | undefined;
307
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
308
+ startedAt?: string | undefined;
309
+ finishedAt?: string | undefined;
310
+ }>;
311
+ export declare const ActionRunDetailSchema: z.ZodObject<{
312
+ id: z.ZodString;
313
+ projectId: z.ZodString;
314
+ actionId: z.ZodString;
315
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
316
+ kind: z.ZodLiteral<"none">;
317
+ }, "strip", z.ZodTypeAny, {
318
+ kind: "none";
319
+ }, {
320
+ kind: "none";
321
+ }>, z.ZodObject<{
322
+ kind: z.ZodLiteral<"object">;
323
+ objectTypeId: z.ZodString;
324
+ primaryId: z.ZodString;
325
+ }, "strip", z.ZodTypeAny, {
326
+ kind: "object";
327
+ objectTypeId: string;
328
+ primaryId: string;
329
+ }, {
330
+ kind: "object";
331
+ objectTypeId: string;
332
+ primaryId: string;
333
+ }>]>;
334
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
335
+ phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
336
+ queuedAt: z.ZodString;
337
+ startedAt: z.ZodOptional<z.ZodString>;
338
+ finishedAt: z.ZodOptional<z.ZodString>;
339
+ error: z.ZodOptional<z.ZodObject<{
340
+ name: z.ZodOptional<z.ZodString>;
341
+ message: z.ZodString;
342
+ phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ message: string;
345
+ name?: string | undefined;
346
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
347
+ }, {
348
+ message: string;
349
+ name?: string | undefined;
350
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
351
+ }>>;
352
+ } & {
353
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
354
+ writeback: z.ZodOptional<z.ZodObject<{
355
+ status: z.ZodEnum<["succeeded", "failed"]>;
356
+ completedAt: z.ZodString;
357
+ result: z.ZodOptional<z.ZodUnknown>;
358
+ error: z.ZodOptional<z.ZodObject<{
359
+ name: z.ZodOptional<z.ZodString>;
360
+ message: z.ZodString;
361
+ phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ message: string;
364
+ name?: string | undefined;
365
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
366
+ }, {
367
+ message: string;
368
+ name?: string | undefined;
369
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
370
+ }>>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ status: "succeeded" | "failed";
373
+ completedAt: string;
374
+ error?: {
375
+ message: string;
376
+ name?: string | undefined;
377
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
378
+ } | undefined;
379
+ result?: unknown;
380
+ }, {
381
+ status: "succeeded" | "failed";
382
+ completedAt: string;
383
+ error?: {
384
+ message: string;
385
+ name?: string | undefined;
386
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
387
+ } | undefined;
388
+ result?: unknown;
389
+ }>>;
390
+ effects: z.ZodOptional<z.ZodObject<{
391
+ status: z.ZodEnum<["succeeded", "failed"]>;
392
+ completedAt: z.ZodString;
393
+ error: z.ZodOptional<z.ZodObject<{
394
+ name: z.ZodOptional<z.ZodString>;
395
+ message: z.ZodString;
396
+ phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
397
+ }, "strip", z.ZodTypeAny, {
398
+ message: string;
399
+ name?: string | undefined;
400
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
401
+ }, {
402
+ message: string;
403
+ name?: string | undefined;
404
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
405
+ }>>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ status: "succeeded" | "failed";
408
+ completedAt: string;
409
+ error?: {
410
+ message: string;
411
+ name?: string | undefined;
412
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
413
+ } | undefined;
414
+ }, {
415
+ status: "succeeded" | "failed";
416
+ completedAt: string;
417
+ error?: {
418
+ message: string;
419
+ name?: string | undefined;
420
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
421
+ } | undefined;
422
+ }>>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
425
+ projectId: string;
426
+ params: Record<string, unknown>;
427
+ id: string;
428
+ actionId: string;
429
+ subject: {
430
+ kind: "none";
431
+ } | {
432
+ kind: "object";
433
+ objectTypeId: string;
434
+ primaryId: string;
435
+ };
436
+ queuedAt: string;
437
+ error?: {
438
+ message: string;
439
+ name?: string | undefined;
440
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
441
+ } | undefined;
442
+ writeback?: {
443
+ status: "succeeded" | "failed";
444
+ completedAt: string;
445
+ error?: {
446
+ message: string;
447
+ name?: string | undefined;
448
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
449
+ } | undefined;
450
+ result?: unknown;
451
+ } | undefined;
452
+ effects?: {
453
+ status: "succeeded" | "failed";
454
+ completedAt: string;
455
+ error?: {
456
+ message: string;
457
+ name?: string | undefined;
458
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
459
+ } | undefined;
460
+ } | undefined;
461
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
462
+ startedAt?: string | undefined;
463
+ finishedAt?: string | undefined;
464
+ }, {
465
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
466
+ projectId: string;
467
+ params: Record<string, unknown>;
468
+ id: string;
469
+ actionId: string;
470
+ subject: {
471
+ kind: "none";
472
+ } | {
473
+ kind: "object";
474
+ objectTypeId: string;
475
+ primaryId: string;
476
+ };
477
+ queuedAt: string;
478
+ error?: {
479
+ message: string;
480
+ name?: string | undefined;
481
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
482
+ } | undefined;
483
+ writeback?: {
484
+ status: "succeeded" | "failed";
485
+ completedAt: string;
486
+ error?: {
487
+ message: string;
488
+ name?: string | undefined;
489
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
490
+ } | undefined;
491
+ result?: unknown;
492
+ } | undefined;
493
+ effects?: {
494
+ status: "succeeded" | "failed";
495
+ completedAt: string;
496
+ error?: {
497
+ message: string;
498
+ name?: string | undefined;
499
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
500
+ } | undefined;
501
+ } | undefined;
502
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
503
+ startedAt?: string | undefined;
504
+ finishedAt?: string | undefined;
505
+ }>;
506
+ export declare const ActionRunListResponseSchema: z.ZodObject<{
507
+ runs: z.ZodArray<z.ZodObject<{
508
+ id: z.ZodString;
509
+ projectId: z.ZodString;
510
+ actionId: z.ZodString;
511
+ subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
512
+ kind: z.ZodLiteral<"none">;
513
+ }, "strip", z.ZodTypeAny, {
514
+ kind: "none";
515
+ }, {
516
+ kind: "none";
517
+ }>, z.ZodObject<{
518
+ kind: z.ZodLiteral<"object">;
519
+ objectTypeId: z.ZodString;
520
+ primaryId: z.ZodString;
521
+ }, "strip", z.ZodTypeAny, {
522
+ kind: "object";
523
+ objectTypeId: string;
524
+ primaryId: string;
525
+ }, {
526
+ kind: "object";
527
+ objectTypeId: string;
528
+ primaryId: string;
529
+ }>]>;
530
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
531
+ phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
532
+ queuedAt: z.ZodString;
533
+ startedAt: z.ZodOptional<z.ZodString>;
534
+ finishedAt: z.ZodOptional<z.ZodString>;
535
+ error: z.ZodOptional<z.ZodObject<{
536
+ name: z.ZodOptional<z.ZodString>;
537
+ message: z.ZodString;
538
+ phase: z.ZodOptional<z.ZodEnum<["request", "enqueue", "validation", "writeback", "edits", "commit", "effects", "cancelled"]>>;
539
+ }, "strip", z.ZodTypeAny, {
540
+ message: string;
541
+ name?: string | undefined;
542
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
543
+ }, {
544
+ message: string;
545
+ name?: string | undefined;
546
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
547
+ }>>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
550
+ projectId: string;
551
+ id: string;
552
+ actionId: string;
553
+ subject: {
554
+ kind: "none";
555
+ } | {
556
+ kind: "object";
557
+ objectTypeId: string;
558
+ primaryId: string;
559
+ };
560
+ queuedAt: string;
561
+ error?: {
562
+ message: string;
563
+ name?: string | undefined;
564
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
565
+ } | undefined;
566
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
567
+ startedAt?: string | undefined;
568
+ finishedAt?: string | undefined;
569
+ }, {
570
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
571
+ projectId: string;
572
+ id: string;
573
+ actionId: string;
574
+ subject: {
575
+ kind: "none";
576
+ } | {
577
+ kind: "object";
578
+ objectTypeId: string;
579
+ primaryId: string;
580
+ };
581
+ queuedAt: string;
582
+ error?: {
583
+ message: string;
584
+ name?: string | undefined;
585
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
586
+ } | undefined;
587
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
588
+ startedAt?: string | undefined;
589
+ finishedAt?: string | undefined;
590
+ }>, "many">;
591
+ hasMore: z.ZodBoolean;
592
+ total: z.ZodNumber;
593
+ }, "strip", z.ZodTypeAny, {
594
+ runs: {
595
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
596
+ projectId: string;
597
+ id: string;
598
+ actionId: string;
599
+ subject: {
600
+ kind: "none";
601
+ } | {
602
+ kind: "object";
603
+ objectTypeId: string;
604
+ primaryId: string;
605
+ };
606
+ queuedAt: string;
607
+ error?: {
608
+ message: string;
609
+ name?: string | undefined;
610
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
611
+ } | undefined;
612
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
613
+ startedAt?: string | undefined;
614
+ finishedAt?: string | undefined;
615
+ }[];
616
+ hasMore: boolean;
617
+ total: number;
618
+ }, {
619
+ runs: {
620
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
621
+ projectId: string;
622
+ id: string;
623
+ actionId: string;
624
+ subject: {
625
+ kind: "none";
626
+ } | {
627
+ kind: "object";
628
+ objectTypeId: string;
629
+ primaryId: string;
630
+ };
631
+ queuedAt: string;
632
+ error?: {
633
+ message: string;
634
+ name?: string | undefined;
635
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
636
+ } | undefined;
637
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
638
+ startedAt?: string | undefined;
639
+ finishedAt?: string | undefined;
640
+ }[];
641
+ hasMore: boolean;
642
+ total: number;
643
+ }>;
644
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/schemas/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;IAS9B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYlC,CAAA;AAEF,eAAO,MAAM,qBAAqB,sEAMhC,CAAA;AAEF,eAAO,MAAM,oBAAoB,yGAS/B,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWjC,CAAA;AAeF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItC,CAAA"}