@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 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/schemas/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAO7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,YAAY,EAAwB,SAAS,CACxD,WAAW,CAAC,OAAO,CAAC,EACpB,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,CAC1B,CAAA;AACD,eAAO,MAAM,WAAW,EAAuB,SAAS,CACtD,WAAW,CAAC,MAAM,CAAC,EACnB,GAAG,WAAW,CAAC,MAAM,CAAC,EAAE,CACzB,CAAA;AAED,eAAO,MAAM,gBAAgB,wQAAuB,CAAA;AACpD,eAAO,MAAM,eAAe,ohDAAsB,CAAA;AASlD,iFAAiF;AACjF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAe5B,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAA;AAoDF,KAAK,iBAAiB,GAAG,CAAC,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAA;AAK9D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAoE,CAAA;AAE5F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG/B,CAAA"}
@@ -0,0 +1,241 @@
1
+ import { z } from "zod";
2
+ export declare const BlobDigestSchema: z.ZodString;
3
+ export declare const FileRefSchema: z.ZodObject<{
4
+ blobId: z.ZodString;
5
+ digest: z.ZodString;
6
+ sizeBytes: z.ZodNumber;
7
+ fileName: z.ZodOptional<z.ZodString>;
8
+ mediaType: z.ZodOptional<z.ZodString>;
9
+ logicalPath: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ blobId: string;
12
+ digest: string;
13
+ sizeBytes: number;
14
+ fileName?: string | undefined;
15
+ mediaType?: string | undefined;
16
+ logicalPath?: string | undefined;
17
+ }, {
18
+ blobId: string;
19
+ digest: string;
20
+ sizeBytes: number;
21
+ fileName?: string | undefined;
22
+ mediaType?: string | undefined;
23
+ logicalPath?: string | undefined;
24
+ }>;
25
+ export declare const CreateFileUploadBodySchema: z.ZodObject<{
26
+ fileName: z.ZodOptional<z.ZodString>;
27
+ mediaType: z.ZodOptional<z.ZodString>;
28
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
29
+ digest: z.ZodOptional<z.ZodString>;
30
+ logicalPath: z.ZodOptional<z.ZodString>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ digest?: string | undefined;
33
+ sizeBytes?: number | undefined;
34
+ fileName?: string | undefined;
35
+ mediaType?: string | undefined;
36
+ logicalPath?: string | undefined;
37
+ }, {
38
+ digest?: string | undefined;
39
+ sizeBytes?: number | undefined;
40
+ fileName?: string | undefined;
41
+ mediaType?: string | undefined;
42
+ logicalPath?: string | undefined;
43
+ }>;
44
+ export declare const FileUploadIdParamsSchema: z.ZodObject<{
45
+ uploadId: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ uploadId: string;
48
+ }, {
49
+ uploadId: string;
50
+ }>;
51
+ export declare const FileUploadPartParamsSchema: z.ZodObject<{
52
+ uploadId: z.ZodString;
53
+ } & {
54
+ partNumber: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ uploadId: string;
57
+ partNumber: string;
58
+ }, {
59
+ uploadId: string;
60
+ partNumber: string;
61
+ }>;
62
+ export declare const ServerFileUploadSchema: z.ZodObject<{
63
+ strategy: z.ZodLiteral<"server">;
64
+ uploadId: z.ZodString;
65
+ method: z.ZodLiteral<"PUT">;
66
+ url: z.ZodString;
67
+ expiresAt: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ url: string;
70
+ uploadId: string;
71
+ strategy: "server";
72
+ method: "PUT";
73
+ expiresAt: string;
74
+ }, {
75
+ url: string;
76
+ uploadId: string;
77
+ strategy: "server";
78
+ method: "PUT";
79
+ expiresAt: string;
80
+ }>;
81
+ export declare const DirectPutFileUploadSchema: z.ZodObject<{
82
+ strategy: z.ZodLiteral<"direct-put">;
83
+ uploadId: z.ZodString;
84
+ method: z.ZodLiteral<"PUT">;
85
+ url: z.ZodString;
86
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
87
+ expiresAt: z.ZodString;
88
+ }, "strip", z.ZodTypeAny, {
89
+ headers: Record<string, string>;
90
+ url: string;
91
+ uploadId: string;
92
+ strategy: "direct-put";
93
+ method: "PUT";
94
+ expiresAt: string;
95
+ }, {
96
+ headers: Record<string, string>;
97
+ url: string;
98
+ uploadId: string;
99
+ strategy: "direct-put";
100
+ method: "PUT";
101
+ expiresAt: string;
102
+ }>;
103
+ export declare const MultipartFileUploadSchema: z.ZodObject<{
104
+ strategy: z.ZodLiteral<"multipart">;
105
+ uploadId: z.ZodString;
106
+ partSizeBytes: z.ZodNumber;
107
+ expiresAt: z.ZodString;
108
+ }, "strip", z.ZodTypeAny, {
109
+ uploadId: string;
110
+ strategy: "multipart";
111
+ expiresAt: string;
112
+ partSizeBytes: number;
113
+ }, {
114
+ uploadId: string;
115
+ strategy: "multipart";
116
+ expiresAt: string;
117
+ partSizeBytes: number;
118
+ }>;
119
+ export declare const CreateFileUploadResponseSchema: z.ZodDiscriminatedUnion<"strategy", [z.ZodObject<{
120
+ strategy: z.ZodLiteral<"server">;
121
+ uploadId: z.ZodString;
122
+ method: z.ZodLiteral<"PUT">;
123
+ url: z.ZodString;
124
+ expiresAt: z.ZodString;
125
+ }, "strip", z.ZodTypeAny, {
126
+ url: string;
127
+ uploadId: string;
128
+ strategy: "server";
129
+ method: "PUT";
130
+ expiresAt: string;
131
+ }, {
132
+ url: string;
133
+ uploadId: string;
134
+ strategy: "server";
135
+ method: "PUT";
136
+ expiresAt: string;
137
+ }>, z.ZodObject<{
138
+ strategy: z.ZodLiteral<"direct-put">;
139
+ uploadId: z.ZodString;
140
+ method: z.ZodLiteral<"PUT">;
141
+ url: z.ZodString;
142
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
143
+ expiresAt: z.ZodString;
144
+ }, "strip", z.ZodTypeAny, {
145
+ headers: Record<string, string>;
146
+ url: string;
147
+ uploadId: string;
148
+ strategy: "direct-put";
149
+ method: "PUT";
150
+ expiresAt: string;
151
+ }, {
152
+ headers: Record<string, string>;
153
+ url: string;
154
+ uploadId: string;
155
+ strategy: "direct-put";
156
+ method: "PUT";
157
+ expiresAt: string;
158
+ }>, z.ZodObject<{
159
+ strategy: z.ZodLiteral<"multipart">;
160
+ uploadId: z.ZodString;
161
+ partSizeBytes: z.ZodNumber;
162
+ expiresAt: z.ZodString;
163
+ }, "strip", z.ZodTypeAny, {
164
+ uploadId: string;
165
+ strategy: "multipart";
166
+ expiresAt: string;
167
+ partSizeBytes: number;
168
+ }, {
169
+ uploadId: string;
170
+ strategy: "multipart";
171
+ expiresAt: string;
172
+ partSizeBytes: number;
173
+ }>]>;
174
+ export declare const SignedFileUploadPartSchema: z.ZodObject<{
175
+ partNumber: z.ZodNumber;
176
+ method: z.ZodLiteral<"PUT">;
177
+ url: z.ZodString;
178
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
179
+ expiresAt: z.ZodString;
180
+ }, "strip", z.ZodTypeAny, {
181
+ headers: Record<string, string>;
182
+ url: string;
183
+ partNumber: number;
184
+ method: "PUT";
185
+ expiresAt: string;
186
+ }, {
187
+ headers: Record<string, string>;
188
+ url: string;
189
+ partNumber: number;
190
+ method: "PUT";
191
+ expiresAt: string;
192
+ }>;
193
+ export declare const FileUploadPartSchema: z.ZodObject<{
194
+ partNumber: z.ZodNumber;
195
+ etag: z.ZodString;
196
+ }, "strip", z.ZodTypeAny, {
197
+ etag: string;
198
+ partNumber: number;
199
+ }, {
200
+ etag: string;
201
+ partNumber: number;
202
+ }>;
203
+ export declare const CompleteFileUploadBodySchema: z.ZodObject<{
204
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
205
+ digest: z.ZodOptional<z.ZodString>;
206
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
207
+ partNumber: z.ZodNumber;
208
+ etag: z.ZodString;
209
+ }, "strip", z.ZodTypeAny, {
210
+ etag: string;
211
+ partNumber: number;
212
+ }, {
213
+ etag: string;
214
+ partNumber: number;
215
+ }>, "many">>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ digest?: string | undefined;
218
+ sizeBytes?: number | undefined;
219
+ parts?: {
220
+ etag: string;
221
+ partNumber: number;
222
+ }[] | undefined;
223
+ }, {
224
+ digest?: string | undefined;
225
+ sizeBytes?: number | undefined;
226
+ parts?: {
227
+ etag: string;
228
+ partNumber: number;
229
+ }[] | undefined;
230
+ }>;
231
+ export declare const FileContentQuerySchema: z.ZodObject<{
232
+ path: z.ZodString;
233
+ disposition: z.ZodOptional<z.ZodEnum<["inline", "attachment"]>>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ path: string;
236
+ disposition?: "inline" | "attachment" | undefined;
237
+ }, {
238
+ path: string;
239
+ disposition?: "inline" | "attachment" | undefined;
240
+ }>;
241
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/schemas/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,gBAAgB,aAA4C,CAAA;AAEzE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;EAOxB,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;EAMrC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;EAEnC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;EAErC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIzC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;EAMrC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIvC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAA"}
@@ -0,0 +1,90 @@
1
+ import { z } from "zod";
2
+ export declare const LinkSourceParamsSchema: z.ZodObject<{
3
+ objectTypeId: z.ZodString;
4
+ objectId: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ objectTypeId: string;
7
+ objectId: string;
8
+ }, {
9
+ objectTypeId: string;
10
+ objectId: string;
11
+ }>;
12
+ export declare const LinkParamsSchema: z.ZodObject<{
13
+ objectTypeId: z.ZodString;
14
+ objectId: z.ZodString;
15
+ } & {
16
+ linkId: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ objectTypeId: string;
19
+ linkId: string;
20
+ objectId: string;
21
+ }, {
22
+ objectTypeId: string;
23
+ linkId: string;
24
+ objectId: string;
25
+ }>;
26
+ export declare const LinkQuerySchema: z.ZodObject<{
27
+ linkId: z.ZodOptional<z.ZodString>;
28
+ direction: z.ZodDefault<z.ZodEnum<["outgoing", "incoming", "both"]>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ direction: "outgoing" | "incoming" | "both";
31
+ linkId?: string | undefined;
32
+ }, {
33
+ linkId?: string | undefined;
34
+ direction?: "outgoing" | "incoming" | "both" | undefined;
35
+ }>;
36
+ export declare const RemoveLinkQuerySchema: z.ZodObject<{
37
+ targetTypeId: z.ZodString;
38
+ targetId: z.ZodString;
39
+ }, "strip", z.ZodTypeAny, {
40
+ targetTypeId: string;
41
+ targetId: string;
42
+ }, {
43
+ targetTypeId: string;
44
+ targetId: string;
45
+ }>;
46
+ export declare const UpsertLinkBodySchema: z.ZodObject<{
47
+ targetTypeId: z.ZodString;
48
+ targetId: z.ZodString;
49
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ targetTypeId: string;
52
+ targetId: string;
53
+ properties?: Record<string, unknown> | undefined;
54
+ }, {
55
+ targetTypeId: string;
56
+ targetId: string;
57
+ properties?: Record<string, unknown> | undefined;
58
+ }>;
59
+ export declare const ObjectLinkSchema: z.ZodObject<{
60
+ projectId: z.ZodString;
61
+ sourceTypeId: z.ZodString;
62
+ sourceId: z.ZodString;
63
+ linkId: z.ZodString;
64
+ targetTypeId: z.ZodString;
65
+ targetId: z.ZodString;
66
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
67
+ createdAt: z.ZodString;
68
+ updatedAt: z.ZodString;
69
+ }, "strip", z.ZodTypeAny, {
70
+ projectId: string;
71
+ createdAt: string;
72
+ updatedAt: string;
73
+ sourceTypeId: string;
74
+ sourceId: string;
75
+ linkId: string;
76
+ targetTypeId: string;
77
+ targetId: string;
78
+ properties?: Record<string, unknown> | undefined;
79
+ }, {
80
+ projectId: string;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ sourceTypeId: string;
84
+ sourceId: string;
85
+ linkId: string;
86
+ targetTypeId: string;
87
+ targetId: string;
88
+ properties?: Record<string, unknown> | undefined;
89
+ }>;
90
+ //# sourceMappingURL=links.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/schemas/links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;EAE3B,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU3B,CAAA"}
@@ -0,0 +1,231 @@
1
+ import { LOG_LEVELS, SIXB_RUN_KINDS } from "@sixb/core";
2
+ import { z } from "zod";
3
+ export { LOG_LEVELS, SIXB_RUN_KINDS };
4
+ export declare const SixbRunKindSchema: z.ZodEnum<["action", "agent", "pipeline", "projection", "sync", "webhook", "workflow"]>;
5
+ export declare const LogLevelSchema: z.ZodEnum<["debug", "info", "warn", "error"]>;
6
+ export declare const LogRunIdSchema: z.ZodString;
7
+ export declare const DEFAULT_LOGS_PAGE_LIMIT = 200;
8
+ export declare const MAX_LOGS_PAGE_LIMIT = 1000;
9
+ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
10
+ kind: z.ZodOptional<z.ZodEnum<["action", "agent", "pipeline", "projection", "sync", "webhook", "workflow"]>>;
11
+ runId: z.ZodOptional<z.ZodString>;
12
+ level: z.ZodOptional<z.ZodEnum<["debug", "info", "warn", "error"]>>;
13
+ direction: z.ZodOptional<z.ZodEnum<["forward", "backward"]>>;
14
+ afterCursor: z.ZodOptional<z.ZodString>;
15
+ beforeCursor: z.ZodOptional<z.ZodString>;
16
+ limit: z.ZodOptional<z.ZodNumber>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ kind?: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow" | undefined;
19
+ limit?: number | undefined;
20
+ runId?: string | undefined;
21
+ afterCursor?: string | undefined;
22
+ direction?: "forward" | "backward" | undefined;
23
+ level?: "error" | "debug" | "info" | "warn" | undefined;
24
+ beforeCursor?: string | undefined;
25
+ }, {
26
+ kind?: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow" | undefined;
27
+ limit?: number | undefined;
28
+ runId?: string | undefined;
29
+ afterCursor?: string | undefined;
30
+ direction?: "forward" | "backward" | undefined;
31
+ level?: "error" | "debug" | "info" | "warn" | undefined;
32
+ beforeCursor?: string | undefined;
33
+ }>, {
34
+ kind?: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow" | undefined;
35
+ limit?: number | undefined;
36
+ runId?: string | undefined;
37
+ afterCursor?: string | undefined;
38
+ direction?: "forward" | "backward" | undefined;
39
+ level?: "error" | "debug" | "info" | "warn" | undefined;
40
+ beforeCursor?: string | undefined;
41
+ }, {
42
+ kind?: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow" | undefined;
43
+ limit?: number | undefined;
44
+ runId?: string | undefined;
45
+ afterCursor?: string | undefined;
46
+ direction?: "forward" | "backward" | undefined;
47
+ level?: "error" | "debug" | "info" | "warn" | undefined;
48
+ beforeCursor?: string | undefined;
49
+ }>;
50
+ export declare const LogLineSchema: z.ZodObject<{
51
+ level: z.ZodEnum<["debug", "info", "warn", "error"]>;
52
+ message: z.ZodString;
53
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
54
+ at: z.ZodString;
55
+ context: z.ZodObject<{
56
+ run: z.ZodObject<{
57
+ kind: z.ZodEnum<["action", "agent", "pipeline", "projection", "sync", "webhook", "workflow"]>;
58
+ id: z.ZodString;
59
+ }, "strip", z.ZodTypeAny, {
60
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
61
+ id: string;
62
+ }, {
63
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
64
+ id: string;
65
+ }>;
66
+ stepId: z.ZodOptional<z.ZodString>;
67
+ phase: z.ZodOptional<z.ZodString>;
68
+ attempt: z.ZodOptional<z.ZodNumber>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ run: {
71
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
72
+ id: string;
73
+ };
74
+ phase?: string | undefined;
75
+ attempt?: number | undefined;
76
+ stepId?: string | undefined;
77
+ }, {
78
+ run: {
79
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
80
+ id: string;
81
+ };
82
+ phase?: string | undefined;
83
+ attempt?: number | undefined;
84
+ stepId?: string | undefined;
85
+ }>;
86
+ cursor: z.ZodString;
87
+ }, "strip", z.ZodTypeAny, {
88
+ at: string;
89
+ message: string;
90
+ context: {
91
+ run: {
92
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
93
+ id: string;
94
+ };
95
+ phase?: string | undefined;
96
+ attempt?: number | undefined;
97
+ stepId?: string | undefined;
98
+ };
99
+ cursor: string;
100
+ level: "error" | "debug" | "info" | "warn";
101
+ fields?: Record<string, unknown> | undefined;
102
+ }, {
103
+ at: string;
104
+ message: string;
105
+ context: {
106
+ run: {
107
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
108
+ id: string;
109
+ };
110
+ phase?: string | undefined;
111
+ attempt?: number | undefined;
112
+ stepId?: string | undefined;
113
+ };
114
+ cursor: string;
115
+ level: "error" | "debug" | "info" | "warn";
116
+ fields?: Record<string, unknown> | undefined;
117
+ }>;
118
+ export declare const LogsResponseSchema: z.ZodObject<{
119
+ count: z.ZodNumber;
120
+ lines: z.ZodArray<z.ZodObject<{
121
+ level: z.ZodEnum<["debug", "info", "warn", "error"]>;
122
+ message: z.ZodString;
123
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
124
+ at: z.ZodString;
125
+ context: z.ZodObject<{
126
+ run: z.ZodObject<{
127
+ kind: z.ZodEnum<["action", "agent", "pipeline", "projection", "sync", "webhook", "workflow"]>;
128
+ id: z.ZodString;
129
+ }, "strip", z.ZodTypeAny, {
130
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
131
+ id: string;
132
+ }, {
133
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
134
+ id: string;
135
+ }>;
136
+ stepId: z.ZodOptional<z.ZodString>;
137
+ phase: z.ZodOptional<z.ZodString>;
138
+ attempt: z.ZodOptional<z.ZodNumber>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ run: {
141
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
142
+ id: string;
143
+ };
144
+ phase?: string | undefined;
145
+ attempt?: number | undefined;
146
+ stepId?: string | undefined;
147
+ }, {
148
+ run: {
149
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
150
+ id: string;
151
+ };
152
+ phase?: string | undefined;
153
+ attempt?: number | undefined;
154
+ stepId?: string | undefined;
155
+ }>;
156
+ cursor: z.ZodString;
157
+ }, "strip", z.ZodTypeAny, {
158
+ at: string;
159
+ message: string;
160
+ context: {
161
+ run: {
162
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
163
+ id: string;
164
+ };
165
+ phase?: string | undefined;
166
+ attempt?: number | undefined;
167
+ stepId?: string | undefined;
168
+ };
169
+ cursor: string;
170
+ level: "error" | "debug" | "info" | "warn";
171
+ fields?: Record<string, unknown> | undefined;
172
+ }, {
173
+ at: string;
174
+ message: string;
175
+ context: {
176
+ run: {
177
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
178
+ id: string;
179
+ };
180
+ phase?: string | undefined;
181
+ attempt?: number | undefined;
182
+ stepId?: string | undefined;
183
+ };
184
+ cursor: string;
185
+ level: "error" | "debug" | "info" | "warn";
186
+ fields?: Record<string, unknown> | undefined;
187
+ }>, "many">;
188
+ cursor: z.ZodOptional<z.ZodString>;
189
+ hasMore: z.ZodBoolean;
190
+ }, "strip", z.ZodTypeAny, {
191
+ count: number;
192
+ hasMore: boolean;
193
+ lines: {
194
+ at: string;
195
+ message: string;
196
+ context: {
197
+ run: {
198
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
199
+ id: string;
200
+ };
201
+ phase?: string | undefined;
202
+ attempt?: number | undefined;
203
+ stepId?: string | undefined;
204
+ };
205
+ cursor: string;
206
+ level: "error" | "debug" | "info" | "warn";
207
+ fields?: Record<string, unknown> | undefined;
208
+ }[];
209
+ cursor?: string | undefined;
210
+ }, {
211
+ count: number;
212
+ hasMore: boolean;
213
+ lines: {
214
+ at: string;
215
+ message: string;
216
+ context: {
217
+ run: {
218
+ kind: "action" | "agent" | "webhook" | "sync" | "pipeline" | "projection" | "workflow";
219
+ id: string;
220
+ };
221
+ phase?: string | undefined;
222
+ attempt?: number | undefined;
223
+ stepId?: string | undefined;
224
+ };
225
+ cursor: string;
226
+ level: "error" | "debug" | "info" | "warn";
227
+ fields?: Record<string, unknown> | undefined;
228
+ }[];
229
+ cursor?: string | undefined;
230
+ }>;
231
+ //# sourceMappingURL=logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/schemas/logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA;AAErC,eAAO,MAAM,iBAAiB,yFAAyB,CAAA;AACvD,eAAO,MAAM,cAAc,+CAAqB,CAAA;AAChD,eAAO,MAAM,cAAc,aAAqD,CAAA;AAChF,eAAO,MAAM,uBAAuB,MAAM,CAAA;AAC1C,eAAO,MAAM,mBAAmB,OAAQ,CAAA;AAIxC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCxB,CAAA;AAEJ,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAexB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAA"}