@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,265 @@
1
+ import { z } from "zod";
2
+ export declare const TelemetryParamsSchema: z.ZodObject<{
3
+ objectTypeId: z.ZodString;
4
+ objectId: z.ZodString;
5
+ propertyId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ objectTypeId: string;
8
+ objectId: string;
9
+ propertyId: string;
10
+ }, {
11
+ objectTypeId: string;
12
+ objectId: string;
13
+ propertyId: string;
14
+ }>;
15
+ export declare const TelemetryHistoryQuerySchema: z.ZodObject<{
16
+ from: z.ZodOptional<z.ZodString>;
17
+ to: z.ZodOptional<z.ZodString>;
18
+ limit: z.ZodOptional<z.ZodString>;
19
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ limit?: string | undefined;
22
+ order?: "asc" | "desc" | undefined;
23
+ from?: string | undefined;
24
+ to?: string | undefined;
25
+ }, {
26
+ limit?: string | undefined;
27
+ order?: "asc" | "desc" | undefined;
28
+ from?: string | undefined;
29
+ to?: string | undefined;
30
+ }>;
31
+ export declare const BulkTelemetryHistorySeriesInputSchema: z.ZodObject<{
32
+ objectTypeId: z.ZodString;
33
+ objectId: z.ZodString;
34
+ propertyId: z.ZodString;
35
+ }, "strict", z.ZodTypeAny, {
36
+ objectTypeId: string;
37
+ objectId: string;
38
+ propertyId: string;
39
+ }, {
40
+ objectTypeId: string;
41
+ objectId: string;
42
+ propertyId: string;
43
+ }>;
44
+ export declare const BulkTelemetryHistoryBodySchema: z.ZodObject<{
45
+ series: z.ZodArray<z.ZodObject<{
46
+ objectTypeId: z.ZodString;
47
+ objectId: z.ZodString;
48
+ propertyId: z.ZodString;
49
+ }, "strict", z.ZodTypeAny, {
50
+ objectTypeId: string;
51
+ objectId: string;
52
+ propertyId: string;
53
+ }, {
54
+ objectTypeId: string;
55
+ objectId: string;
56
+ propertyId: string;
57
+ }>, "many">;
58
+ from: z.ZodOptional<z.ZodString>;
59
+ to: z.ZodOptional<z.ZodString>;
60
+ limitPerSeries: z.ZodOptional<z.ZodNumber>;
61
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
62
+ }, "strict", z.ZodTypeAny, {
63
+ series: {
64
+ objectTypeId: string;
65
+ objectId: string;
66
+ propertyId: string;
67
+ }[];
68
+ order?: "asc" | "desc" | undefined;
69
+ from?: string | undefined;
70
+ to?: string | undefined;
71
+ limitPerSeries?: number | undefined;
72
+ }, {
73
+ series: {
74
+ objectTypeId: string;
75
+ objectId: string;
76
+ propertyId: string;
77
+ }[];
78
+ order?: "asc" | "desc" | undefined;
79
+ from?: string | undefined;
80
+ to?: string | undefined;
81
+ limitPerSeries?: number | undefined;
82
+ }>;
83
+ export declare const AppendTelemetryBodySchema: z.ZodObject<{
84
+ value: z.ZodUnknown;
85
+ unit: z.ZodOptional<z.ZodString>;
86
+ at: z.ZodOptional<z.ZodString>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ at?: string | undefined;
89
+ value?: unknown;
90
+ unit?: string | undefined;
91
+ }, {
92
+ at?: string | undefined;
93
+ value?: unknown;
94
+ unit?: string | undefined;
95
+ }>;
96
+ export declare const TelemetryPointSchema: z.ZodObject<{
97
+ projectId: z.ZodString;
98
+ objectTypeId: z.ZodString;
99
+ objectId: z.ZodString;
100
+ propertyId: z.ZodString;
101
+ value: z.ZodUnknown;
102
+ unit: z.ZodOptional<z.ZodString>;
103
+ at: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ at: string;
106
+ projectId: string;
107
+ objectTypeId: string;
108
+ objectId: string;
109
+ propertyId: string;
110
+ value?: unknown;
111
+ unit?: string | undefined;
112
+ }, {
113
+ at: string;
114
+ projectId: string;
115
+ objectTypeId: string;
116
+ objectId: string;
117
+ propertyId: string;
118
+ value?: unknown;
119
+ unit?: string | undefined;
120
+ }>;
121
+ export declare const BulkTelemetryHistorySeriesSchema: z.ZodObject<{
122
+ objectTypeId: z.ZodString;
123
+ objectId: z.ZodString;
124
+ propertyId: z.ZodString;
125
+ points: z.ZodArray<z.ZodObject<{
126
+ projectId: z.ZodString;
127
+ objectTypeId: z.ZodString;
128
+ objectId: z.ZodString;
129
+ propertyId: z.ZodString;
130
+ value: z.ZodUnknown;
131
+ unit: z.ZodOptional<z.ZodString>;
132
+ at: z.ZodString;
133
+ }, "strip", z.ZodTypeAny, {
134
+ at: string;
135
+ projectId: string;
136
+ objectTypeId: string;
137
+ objectId: string;
138
+ propertyId: string;
139
+ value?: unknown;
140
+ unit?: string | undefined;
141
+ }, {
142
+ at: string;
143
+ projectId: string;
144
+ objectTypeId: string;
145
+ objectId: string;
146
+ propertyId: string;
147
+ value?: unknown;
148
+ unit?: string | undefined;
149
+ }>, "many">;
150
+ }, "strip", z.ZodTypeAny, {
151
+ objectTypeId: string;
152
+ objectId: string;
153
+ propertyId: string;
154
+ points: {
155
+ at: string;
156
+ projectId: string;
157
+ objectTypeId: string;
158
+ objectId: string;
159
+ propertyId: string;
160
+ value?: unknown;
161
+ unit?: string | undefined;
162
+ }[];
163
+ }, {
164
+ objectTypeId: string;
165
+ objectId: string;
166
+ propertyId: string;
167
+ points: {
168
+ at: string;
169
+ projectId: string;
170
+ objectTypeId: string;
171
+ objectId: string;
172
+ propertyId: string;
173
+ value?: unknown;
174
+ unit?: string | undefined;
175
+ }[];
176
+ }>;
177
+ export declare const BulkTelemetryHistoryResponseSchema: z.ZodObject<{
178
+ series: z.ZodArray<z.ZodObject<{
179
+ objectTypeId: z.ZodString;
180
+ objectId: z.ZodString;
181
+ propertyId: z.ZodString;
182
+ points: z.ZodArray<z.ZodObject<{
183
+ projectId: z.ZodString;
184
+ objectTypeId: z.ZodString;
185
+ objectId: z.ZodString;
186
+ propertyId: z.ZodString;
187
+ value: z.ZodUnknown;
188
+ unit: z.ZodOptional<z.ZodString>;
189
+ at: z.ZodString;
190
+ }, "strip", z.ZodTypeAny, {
191
+ at: string;
192
+ projectId: string;
193
+ objectTypeId: string;
194
+ objectId: string;
195
+ propertyId: string;
196
+ value?: unknown;
197
+ unit?: string | undefined;
198
+ }, {
199
+ at: string;
200
+ projectId: string;
201
+ objectTypeId: string;
202
+ objectId: string;
203
+ propertyId: string;
204
+ value?: unknown;
205
+ unit?: string | undefined;
206
+ }>, "many">;
207
+ }, "strip", z.ZodTypeAny, {
208
+ objectTypeId: string;
209
+ objectId: string;
210
+ propertyId: string;
211
+ points: {
212
+ at: string;
213
+ projectId: string;
214
+ objectTypeId: string;
215
+ objectId: string;
216
+ propertyId: string;
217
+ value?: unknown;
218
+ unit?: string | undefined;
219
+ }[];
220
+ }, {
221
+ objectTypeId: string;
222
+ objectId: string;
223
+ propertyId: string;
224
+ points: {
225
+ at: string;
226
+ projectId: string;
227
+ objectTypeId: string;
228
+ objectId: string;
229
+ propertyId: string;
230
+ value?: unknown;
231
+ unit?: string | undefined;
232
+ }[];
233
+ }>, "many">;
234
+ }, "strip", z.ZodTypeAny, {
235
+ series: {
236
+ objectTypeId: string;
237
+ objectId: string;
238
+ propertyId: string;
239
+ points: {
240
+ at: string;
241
+ projectId: string;
242
+ objectTypeId: string;
243
+ objectId: string;
244
+ propertyId: string;
245
+ value?: unknown;
246
+ unit?: string | undefined;
247
+ }[];
248
+ }[];
249
+ }, {
250
+ series: {
251
+ objectTypeId: string;
252
+ objectId: string;
253
+ propertyId: string;
254
+ points: {
255
+ at: string;
256
+ projectId: string;
257
+ objectTypeId: string;
258
+ objectId: string;
259
+ propertyId: string;
260
+ value?: unknown;
261
+ unit?: string | undefined;
262
+ }[];
263
+ }[];
264
+ }>;
265
+ //# sourceMappingURL=telemetry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/schemas/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAIhC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAA;AAEF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;EAMvC,CAAA;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQhC,CAAA;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;EAQ/B,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3C,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7C,CAAA"}
@@ -0,0 +1,169 @@
1
+ import { z } from "zod";
2
+ export declare const WebhookRunStatusSchema: z.ZodEnum<["running", "succeeded", "failed", "skipped"]>;
3
+ export declare const WebhookDeliveryClaimResultSchema: z.ZodEnum<["claimed", "duplicate", "in_progress"]>;
4
+ export declare const WebhookRunsQuerySchema: z.ZodObject<{
5
+ connectorId: z.ZodOptional<z.ZodString>;
6
+ webhookId: z.ZodOptional<z.ZodString>;
7
+ status: z.ZodOptional<z.ZodEnum<["running", "succeeded", "failed", "skipped"]>>;
8
+ idempotencyKey: z.ZodOptional<z.ZodString>;
9
+ startedAfter: z.ZodOptional<z.ZodString>;
10
+ startedBefore: z.ZodOptional<z.ZodString>;
11
+ limit: z.ZodOptional<z.ZodString>;
12
+ offset: z.ZodOptional<z.ZodString>;
13
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ status?: "running" | "succeeded" | "failed" | "skipped" | undefined;
16
+ limit?: string | undefined;
17
+ offset?: string | undefined;
18
+ order?: "asc" | "desc" | undefined;
19
+ startedAfter?: string | undefined;
20
+ startedBefore?: string | undefined;
21
+ connectorId?: string | undefined;
22
+ idempotencyKey?: string | undefined;
23
+ webhookId?: string | undefined;
24
+ }, {
25
+ status?: "running" | "succeeded" | "failed" | "skipped" | undefined;
26
+ limit?: string | undefined;
27
+ offset?: string | undefined;
28
+ order?: "asc" | "desc" | undefined;
29
+ startedAfter?: string | undefined;
30
+ startedBefore?: string | undefined;
31
+ connectorId?: string | undefined;
32
+ idempotencyKey?: string | undefined;
33
+ webhookId?: string | undefined;
34
+ }>;
35
+ export declare const WebhookRunSchema: z.ZodObject<{
36
+ id: z.ZodString;
37
+ projectId: z.ZodString;
38
+ connectorId: z.ZodString;
39
+ webhookId: z.ZodString;
40
+ status: z.ZodEnum<["running", "succeeded", "failed", "skipped"]>;
41
+ method: z.ZodString;
42
+ route: z.ZodString;
43
+ startedAt: z.ZodString;
44
+ finishedAt: z.ZodOptional<z.ZodString>;
45
+ requestBodyBytes: z.ZodOptional<z.ZodNumber>;
46
+ responseStatus: z.ZodOptional<z.ZodNumber>;
47
+ idempotencyKey: z.ZodOptional<z.ZodString>;
48
+ deliveryClaimResult: z.ZodOptional<z.ZodEnum<["claimed", "duplicate", "in_progress"]>>;
49
+ error: z.ZodOptional<z.ZodString>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ status: "running" | "succeeded" | "failed" | "skipped";
52
+ projectId: string;
53
+ id: string;
54
+ startedAt: string;
55
+ method: string;
56
+ route: string;
57
+ connectorId: string;
58
+ webhookId: string;
59
+ error?: string | undefined;
60
+ finishedAt?: string | undefined;
61
+ idempotencyKey?: string | undefined;
62
+ requestBodyBytes?: number | undefined;
63
+ responseStatus?: number | undefined;
64
+ deliveryClaimResult?: "claimed" | "duplicate" | "in_progress" | undefined;
65
+ }, {
66
+ status: "running" | "succeeded" | "failed" | "skipped";
67
+ projectId: string;
68
+ id: string;
69
+ startedAt: string;
70
+ method: string;
71
+ route: string;
72
+ connectorId: string;
73
+ webhookId: string;
74
+ error?: string | undefined;
75
+ finishedAt?: string | undefined;
76
+ idempotencyKey?: string | undefined;
77
+ requestBodyBytes?: number | undefined;
78
+ responseStatus?: number | undefined;
79
+ deliveryClaimResult?: "claimed" | "duplicate" | "in_progress" | undefined;
80
+ }>;
81
+ export declare const WebhookRunListResponseSchema: z.ZodObject<{
82
+ runs: z.ZodArray<z.ZodObject<{
83
+ id: z.ZodString;
84
+ projectId: z.ZodString;
85
+ connectorId: z.ZodString;
86
+ webhookId: z.ZodString;
87
+ status: z.ZodEnum<["running", "succeeded", "failed", "skipped"]>;
88
+ method: z.ZodString;
89
+ route: z.ZodString;
90
+ startedAt: z.ZodString;
91
+ finishedAt: z.ZodOptional<z.ZodString>;
92
+ requestBodyBytes: z.ZodOptional<z.ZodNumber>;
93
+ responseStatus: z.ZodOptional<z.ZodNumber>;
94
+ idempotencyKey: z.ZodOptional<z.ZodString>;
95
+ deliveryClaimResult: z.ZodOptional<z.ZodEnum<["claimed", "duplicate", "in_progress"]>>;
96
+ error: z.ZodOptional<z.ZodString>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ status: "running" | "succeeded" | "failed" | "skipped";
99
+ projectId: string;
100
+ id: string;
101
+ startedAt: string;
102
+ method: string;
103
+ route: string;
104
+ connectorId: string;
105
+ webhookId: string;
106
+ error?: string | undefined;
107
+ finishedAt?: string | undefined;
108
+ idempotencyKey?: string | undefined;
109
+ requestBodyBytes?: number | undefined;
110
+ responseStatus?: number | undefined;
111
+ deliveryClaimResult?: "claimed" | "duplicate" | "in_progress" | undefined;
112
+ }, {
113
+ status: "running" | "succeeded" | "failed" | "skipped";
114
+ projectId: string;
115
+ id: string;
116
+ startedAt: string;
117
+ method: string;
118
+ route: string;
119
+ connectorId: string;
120
+ webhookId: string;
121
+ error?: string | undefined;
122
+ finishedAt?: string | undefined;
123
+ idempotencyKey?: string | undefined;
124
+ requestBodyBytes?: number | undefined;
125
+ responseStatus?: number | undefined;
126
+ deliveryClaimResult?: "claimed" | "duplicate" | "in_progress" | undefined;
127
+ }>, "many">;
128
+ hasMore: z.ZodBoolean;
129
+ total: z.ZodNumber;
130
+ }, "strip", z.ZodTypeAny, {
131
+ runs: {
132
+ status: "running" | "succeeded" | "failed" | "skipped";
133
+ projectId: string;
134
+ id: string;
135
+ startedAt: string;
136
+ method: string;
137
+ route: string;
138
+ connectorId: string;
139
+ webhookId: string;
140
+ error?: string | undefined;
141
+ finishedAt?: string | undefined;
142
+ idempotencyKey?: string | undefined;
143
+ requestBodyBytes?: number | undefined;
144
+ responseStatus?: number | undefined;
145
+ deliveryClaimResult?: "claimed" | "duplicate" | "in_progress" | undefined;
146
+ }[];
147
+ hasMore: boolean;
148
+ total: number;
149
+ }, {
150
+ runs: {
151
+ status: "running" | "succeeded" | "failed" | "skipped";
152
+ projectId: string;
153
+ id: string;
154
+ startedAt: string;
155
+ method: string;
156
+ route: string;
157
+ connectorId: string;
158
+ webhookId: string;
159
+ error?: string | undefined;
160
+ finishedAt?: string | undefined;
161
+ idempotencyKey?: string | undefined;
162
+ requestBodyBytes?: number | undefined;
163
+ responseStatus?: number | undefined;
164
+ deliveryClaimResult?: "claimed" | "duplicate" | "in_progress" | undefined;
165
+ }[];
166
+ hasMore: boolean;
167
+ total: number;
168
+ }>;
169
+ //# sourceMappingURL=webhook-runs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook-runs.d.ts","sourceRoot":"","sources":["../../src/schemas/webhook-runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,sBAAsB,0DAAwD,CAAA;AAE3F,eAAO,MAAM,gCAAgC,oDAAkD,CAAA;AAE/F,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjC,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe3B,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIvC,CAAA"}