@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":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAwC,cAAc,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AA2B5F,OAAO,EAAE,KAAK,MAAM,EAAK,MAAM,QAAQ,CAAA;AAGvC,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAGhC,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAA;AAqE/B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,kBAAkB,EAAE,yBAAyB,CAAA;IACtD,QAAQ,CAAC,0BAA0B,EAAE,0BAA0B,CAAA;IAC/D,QAAQ,CAAC,+BAA+B,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,gCAAgC,CAAA;IAChG,QAAQ,CAAC,wBAAwB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;IAC/D,QAAQ,CAAC,gCAAgC,EAAE,CACzC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,2BAA2B,KAC/B,6BAA6B,CAAA;CACnC;AAED,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC,EACrC,OAAO,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyzC3B"}
@@ -0,0 +1,108 @@
1
+ import type { OntologySource, Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerConnectorRoutes(app: Elysia, sixb: Sixb<readonly OntologySource[]>): Elysia<"", {
4
+ decorator: {};
5
+ store: {};
6
+ derive: {};
7
+ resolve: {};
8
+ }, {
9
+ typebox: {};
10
+ error: {};
11
+ }, {
12
+ schema: {};
13
+ standaloneSchema: {};
14
+ macro: {};
15
+ macroFn: {};
16
+ parser: {};
17
+ response: {};
18
+ }, {
19
+ api: {
20
+ connectors: {
21
+ get: {
22
+ body: unknown;
23
+ params: {};
24
+ query: unknown;
25
+ headers: unknown;
26
+ response: {
27
+ 200: {
28
+ webhooks: {
29
+ id: string;
30
+ method: "POST";
31
+ route: string;
32
+ bodyFormat: "json" | "text" | "raw";
33
+ hasVerify: boolean;
34
+ hasIdempotency: boolean;
35
+ }[];
36
+ type: string;
37
+ id: string;
38
+ syncIds: string[];
39
+ }[];
40
+ 422: {
41
+ type: "validation";
42
+ on: string;
43
+ summary?: string;
44
+ message?: string;
45
+ found?: unknown;
46
+ property?: string;
47
+ expected?: string;
48
+ };
49
+ };
50
+ };
51
+ };
52
+ };
53
+ } & {
54
+ api: {
55
+ connectors: {
56
+ ":connectorId": {
57
+ get: {
58
+ body: unknown;
59
+ params: {
60
+ connectorId: string;
61
+ };
62
+ query: unknown;
63
+ headers: unknown;
64
+ response: {
65
+ 200: {
66
+ webhooks: {
67
+ id: string;
68
+ method: "POST";
69
+ route: string;
70
+ bodyFormat: "json" | "text" | "raw";
71
+ hasVerify: boolean;
72
+ hasIdempotency: boolean;
73
+ }[];
74
+ type: string;
75
+ id: string;
76
+ syncIds: string[];
77
+ };
78
+ 404: {
79
+ error: string;
80
+ };
81
+ 422: {
82
+ type: "validation";
83
+ on: string;
84
+ summary?: string;
85
+ message?: string;
86
+ found?: unknown;
87
+ property?: string;
88
+ expected?: string;
89
+ };
90
+ };
91
+ };
92
+ };
93
+ };
94
+ };
95
+ }, {
96
+ derive: {};
97
+ resolve: {};
98
+ schema: {};
99
+ standaloneSchema: {};
100
+ response: {};
101
+ }, {
102
+ derive: {};
103
+ resolve: {};
104
+ schema: {};
105
+ standaloneSchema: {};
106
+ response: {};
107
+ }>;
108
+ //# sourceMappingURL=connectors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/routes/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA8BpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCzF"}
@@ -0,0 +1,339 @@
1
+ import type { OntologySource, Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerDatasetRoutes(app: Elysia, sixb: Sixb<readonly OntologySource[]>): Elysia<"", {
4
+ decorator: {};
5
+ store: {};
6
+ derive: {};
7
+ resolve: {};
8
+ }, {
9
+ typebox: {};
10
+ error: {};
11
+ }, {
12
+ schema: {};
13
+ standaloneSchema: {};
14
+ macro: {};
15
+ macroFn: {};
16
+ parser: {};
17
+ response: {};
18
+ }, {
19
+ api: {
20
+ datasets: {
21
+ get: {
22
+ body: unknown;
23
+ params: {};
24
+ query: unknown;
25
+ headers: unknown;
26
+ response: {
27
+ 200: {
28
+ kind: "dataset";
29
+ id: string;
30
+ schema: {
31
+ columns: {
32
+ name: string;
33
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
34
+ nullable?: boolean | undefined;
35
+ }[];
36
+ };
37
+ syncIds: string[];
38
+ materialized: boolean;
39
+ latestVersion: {
40
+ mode: "append" | "schema" | "snapshot";
41
+ createdAt: string;
42
+ datasetId: string;
43
+ versionId: string;
44
+ rowCount?: number | undefined;
45
+ } | null;
46
+ sourcePipelineIds: string[];
47
+ targetPipelineIds: string[];
48
+ projectionIds: string[];
49
+ description?: string | undefined;
50
+ partitionBy?: string[] | undefined;
51
+ }[];
52
+ 400: {
53
+ error: string;
54
+ };
55
+ 422: {
56
+ type: "validation";
57
+ on: string;
58
+ summary?: string;
59
+ message?: string;
60
+ found?: unknown;
61
+ property?: string;
62
+ expected?: string;
63
+ };
64
+ };
65
+ };
66
+ };
67
+ };
68
+ } & {
69
+ api: {
70
+ datasets: {
71
+ ":datasetId": {
72
+ get: {
73
+ body: unknown;
74
+ params: {
75
+ datasetId: string;
76
+ };
77
+ query: unknown;
78
+ headers: unknown;
79
+ response: {
80
+ 200: {
81
+ kind: "dataset";
82
+ id: string;
83
+ schema: {
84
+ columns: {
85
+ name: string;
86
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
87
+ nullable?: boolean | undefined;
88
+ }[];
89
+ };
90
+ syncIds: string[];
91
+ materialized: boolean;
92
+ latestVersion: {
93
+ mode: "append" | "schema" | "snapshot";
94
+ createdAt: string;
95
+ datasetId: string;
96
+ versionId: string;
97
+ rowCount?: number | undefined;
98
+ } | null;
99
+ sourcePipelineIds: string[];
100
+ targetPipelineIds: string[];
101
+ projectionIds: string[];
102
+ description?: string | undefined;
103
+ partitionBy?: string[] | undefined;
104
+ };
105
+ 400: {
106
+ error: string;
107
+ };
108
+ 404: {
109
+ error: string;
110
+ };
111
+ 422: {
112
+ type: "validation";
113
+ on: string;
114
+ summary?: string;
115
+ message?: string;
116
+ found?: unknown;
117
+ property?: string;
118
+ expected?: string;
119
+ };
120
+ };
121
+ };
122
+ };
123
+ };
124
+ };
125
+ } & {
126
+ api: {
127
+ datasets: {
128
+ ":datasetId": {
129
+ versions: {
130
+ get: {
131
+ body: unknown;
132
+ params: {
133
+ datasetId: string;
134
+ };
135
+ query: {
136
+ limit?: string | undefined;
137
+ };
138
+ headers: unknown;
139
+ response: {
140
+ 200: {
141
+ count: number;
142
+ versions: {
143
+ mode: "append" | "schema" | "snapshot";
144
+ schema: {
145
+ columns: {
146
+ name: string;
147
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
148
+ nullable?: boolean | undefined;
149
+ }[];
150
+ };
151
+ createdAt: string;
152
+ datasetId: string;
153
+ versionId: string;
154
+ sizeBytes?: number | undefined;
155
+ parentVersionId?: string | undefined;
156
+ producer?: {
157
+ kind: "sync" | "pipeline";
158
+ id?: string | undefined;
159
+ runId?: string | undefined;
160
+ } | undefined;
161
+ inputs?: {
162
+ datasetId: string;
163
+ versionId: string;
164
+ }[] | undefined;
165
+ rowCount?: number | undefined;
166
+ }[];
167
+ };
168
+ 400: {
169
+ error: string;
170
+ };
171
+ 404: {
172
+ error: string;
173
+ };
174
+ 422: {
175
+ type: "validation";
176
+ on: string;
177
+ summary?: string;
178
+ message?: string;
179
+ found?: unknown;
180
+ property?: string;
181
+ expected?: string;
182
+ };
183
+ };
184
+ };
185
+ };
186
+ };
187
+ };
188
+ };
189
+ } & {
190
+ api: {
191
+ datasets: {
192
+ ":datasetId": {
193
+ versions: {
194
+ ":versionId": {
195
+ get: {
196
+ body: unknown;
197
+ params: {
198
+ datasetId: string;
199
+ versionId: string;
200
+ };
201
+ query: unknown;
202
+ headers: unknown;
203
+ response: {
204
+ 200: {
205
+ mode: "append" | "schema" | "snapshot";
206
+ schema: {
207
+ columns: {
208
+ name: string;
209
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
210
+ nullable?: boolean | undefined;
211
+ }[];
212
+ };
213
+ createdAt: string;
214
+ datasetId: string;
215
+ versionId: string;
216
+ sizeBytes?: number | undefined;
217
+ parentVersionId?: string | undefined;
218
+ producer?: {
219
+ kind: "sync" | "pipeline";
220
+ id?: string | undefined;
221
+ runId?: string | undefined;
222
+ } | undefined;
223
+ inputs?: {
224
+ datasetId: string;
225
+ versionId: string;
226
+ }[] | undefined;
227
+ rowCount?: number | undefined;
228
+ };
229
+ 400: {
230
+ error: string;
231
+ };
232
+ 404: {
233
+ error: string;
234
+ };
235
+ 422: {
236
+ type: "validation";
237
+ on: string;
238
+ summary?: string;
239
+ message?: string;
240
+ found?: unknown;
241
+ property?: string;
242
+ expected?: string;
243
+ };
244
+ };
245
+ };
246
+ };
247
+ };
248
+ };
249
+ };
250
+ };
251
+ } & {
252
+ api: {
253
+ datasets: {
254
+ ":datasetId": {
255
+ rows: {
256
+ get: {
257
+ body: unknown;
258
+ params: {
259
+ datasetId: string;
260
+ };
261
+ query: {
262
+ limit?: string | undefined;
263
+ offset?: string | undefined;
264
+ versionId?: string | undefined;
265
+ columns?: string | undefined;
266
+ };
267
+ headers: unknown;
268
+ response: {
269
+ 200: {
270
+ count: number;
271
+ limit: number;
272
+ offset: number;
273
+ hasMore: boolean;
274
+ version: {
275
+ mode: "append" | "schema" | "snapshot";
276
+ schema: {
277
+ columns: {
278
+ name: string;
279
+ type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
280
+ nullable?: boolean | undefined;
281
+ }[];
282
+ };
283
+ createdAt: string;
284
+ datasetId: string;
285
+ versionId: string;
286
+ sizeBytes?: number | undefined;
287
+ parentVersionId?: string | undefined;
288
+ producer?: {
289
+ kind: "sync" | "pipeline";
290
+ id?: string | undefined;
291
+ runId?: string | undefined;
292
+ } | undefined;
293
+ inputs?: {
294
+ datasetId: string;
295
+ versionId: string;
296
+ }[] | undefined;
297
+ rowCount?: number | undefined;
298
+ };
299
+ datasetId: string;
300
+ versionId: string;
301
+ columns: string[];
302
+ rows: Record<string, unknown>[];
303
+ total?: number | undefined;
304
+ };
305
+ 400: {
306
+ error: string;
307
+ };
308
+ 404: {
309
+ error: string;
310
+ };
311
+ 422: {
312
+ type: "validation";
313
+ on: string;
314
+ summary?: string;
315
+ message?: string;
316
+ found?: unknown;
317
+ property?: string;
318
+ expected?: string;
319
+ };
320
+ };
321
+ };
322
+ };
323
+ };
324
+ };
325
+ };
326
+ }, {
327
+ derive: {};
328
+ resolve: {};
329
+ schema: {};
330
+ standaloneSchema: {};
331
+ response: {};
332
+ }, {
333
+ derive: {};
334
+ resolve: {};
335
+ schema: {};
336
+ standaloneSchema: {};
337
+ response: {};
338
+ }>;
339
+ //# sourceMappingURL=datasets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/routes/datasets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,cAAc,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAMzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmNpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwLvF"}
@@ -0,0 +1,116 @@
1
+ import { type OntologySource, type Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerEventRoutes(app: Elysia, sixb: Sixb<readonly OntologySource[]>): Elysia<"", {
4
+ decorator: {};
5
+ store: {};
6
+ derive: {};
7
+ resolve: {};
8
+ }, {
9
+ typebox: {};
10
+ error: {};
11
+ }, {
12
+ schema: {};
13
+ standaloneSchema: {};
14
+ macro: {};
15
+ macroFn: {};
16
+ parser: {};
17
+ response: {};
18
+ }, {
19
+ api: {
20
+ events: {
21
+ get: {
22
+ body: unknown;
23
+ params: {};
24
+ query: {
25
+ limit?: string | undefined;
26
+ type?: "object.created" | "action.requested" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | undefined;
27
+ topic?: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets" | undefined;
28
+ afterCursor?: string | undefined;
29
+ };
30
+ headers: unknown;
31
+ response: {
32
+ 200: {
33
+ count: number;
34
+ events: ({
35
+ projectId: string;
36
+ type: "action.requested" | "action.completed" | "action.failed" | "schedule.triggered" | "rule.triggered" | "rule.resolved" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed";
37
+ id: string;
38
+ payload: Record<string, unknown>;
39
+ topic: "objects" | "telemetry" | "links" | "actions" | "schedules" | "rules" | "syncs" | "pipelines" | "workflows" | "datasets";
40
+ partitionKey: string;
41
+ schemaVersion: 1;
42
+ occurredAt: string;
43
+ cursor: string;
44
+ origin?: {
45
+ kind: "projection";
46
+ datasetId: string;
47
+ projectionId: string;
48
+ projectionRunId: string;
49
+ datasetVersionId: string;
50
+ } | {
51
+ kind: "action";
52
+ actionId: string;
53
+ runId: string;
54
+ } | {
55
+ kind: "runtime";
56
+ requestId: string;
57
+ } | {
58
+ kind: "telemetry";
59
+ source: {
60
+ kind: "runtime";
61
+ requestId: string;
62
+ } | {
63
+ kind: "projection";
64
+ datasetId: string;
65
+ projectionId: string;
66
+ projectionRunId: string;
67
+ datasetVersionId: string;
68
+ batchOrdinal: number;
69
+ };
70
+ } | undefined;
71
+ metadata?: Record<string, import("../schemas/common").JsonValue> | undefined;
72
+ correlationId?: string | undefined;
73
+ causationId?: string | undefined;
74
+ idempotencyKey?: string | undefined;
75
+ actor?: {
76
+ type: "user" | "system" | "service";
77
+ id: string;
78
+ } | undefined;
79
+ } | {
80
+ [x: string]: any;
81
+ type?: unknown;
82
+ })[];
83
+ };
84
+ 403: {
85
+ error: string;
86
+ };
87
+ 400: {
88
+ error: string;
89
+ };
90
+ 422: {
91
+ type: "validation";
92
+ on: string;
93
+ summary?: string;
94
+ message?: string;
95
+ found?: unknown;
96
+ property?: string;
97
+ expected?: string;
98
+ };
99
+ };
100
+ };
101
+ };
102
+ };
103
+ }, {
104
+ derive: {};
105
+ resolve: {};
106
+ schema: {};
107
+ standaloneSchema: {};
108
+ response: {};
109
+ }, {
110
+ derive: {};
111
+ resolve: {};
112
+ schema: {};
113
+ standaloneSchema: {};
114
+ response: {};
115
+ }>;
116
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/routes/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAA;AAC/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CrF"}