@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,26 @@
1
+ export declare const SIXB_CSRF_SECURITY_SCHEME_ID = "sixbCsrf";
2
+ export declare const SIXB_BEARER_SECURITY_SCHEME_ID = "sixbBearer";
3
+ export declare const SIXB_CSRF_SECURITY_REQUIREMENT: {
4
+ sixbCsrf: string[];
5
+ }[];
6
+ export declare const SIXB_BEARER_SECURITY_REQUIREMENT: {
7
+ sixbBearer: string[];
8
+ }[];
9
+ export declare const SIXB_CSRF_OR_BEARER_SECURITY_REQUIREMENT: ({
10
+ sixbCsrf: string[];
11
+ } | {
12
+ sixbBearer: string[];
13
+ })[];
14
+ export declare const SIXB_CSRF_SECURITY_SCHEME: {
15
+ readonly type: "apiKey";
16
+ readonly in: "header";
17
+ readonly name: "x-sixb-csrf";
18
+ readonly description: "Required for authenticated mutating requests. Use the csrfToken returned by GET /api/auth/session.";
19
+ };
20
+ export declare const SIXB_BEARER_SECURITY_SCHEME: {
21
+ readonly type: "http";
22
+ readonly scheme: "bearer";
23
+ readonly bearerFormat: "Sixb access token";
24
+ readonly description: "Use a Sixb personal access token or service-account token. Bearer tokens are accepted only on routes that explicitly document this scheme.";
25
+ };
26
+ //# sourceMappingURL=security.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/openapi/security.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B,aAAa,CAAA;AACtD,eAAO,MAAM,8BAA8B,eAAe,CAAA;AAE1D,eAAO,MAAM,8BAA8B;cAED,MAAM,EAAE;GAEjD,CAAA;AAED,eAAO,MAAM,gCAAgC;gBAED,MAAM,EAAE;GAEnD,CAAA;AAED,eAAO,MAAM,wCAAwC;cAVX,MAAM,EAAE;;gBAMN,MAAM,EAAE;IAOnD,CAAA;AAED,eAAO,MAAM,yBAAyB;;;;;CAM5B,CAAA;AAEV,eAAO,MAAM,2BAA2B;;;;;CAM9B,CAAA"}
@@ -0,0 +1,151 @@
1
+ export declare const OPENAPI_TAGS: {
2
+ readonly project: {
3
+ readonly name: "Project";
4
+ readonly description: "Current project metadata";
5
+ };
6
+ readonly status: {
7
+ readonly name: "Status";
8
+ readonly description: "Runtime status";
9
+ };
10
+ readonly ontology: {
11
+ readonly name: "Ontology";
12
+ readonly description: "Object type definitions";
13
+ };
14
+ readonly connectors: {
15
+ readonly name: "Connectors";
16
+ readonly description: "Connector metadata and webhook routes";
17
+ };
18
+ readonly webhooks: {
19
+ readonly name: "Webhooks";
20
+ readonly description: "Webhook run history";
21
+ };
22
+ readonly datasets: {
23
+ readonly name: "Datasets";
24
+ readonly description: "Dataset definitions";
25
+ };
26
+ readonly datasetVersions: {
27
+ readonly name: "Dataset Versions";
28
+ readonly description: "Dataset version history";
29
+ };
30
+ readonly datasetRows: {
31
+ readonly name: "Dataset Rows";
32
+ readonly description: "Dataset row previews";
33
+ };
34
+ readonly syncs: {
35
+ readonly name: "Syncs";
36
+ readonly description: "Sync metadata";
37
+ };
38
+ readonly syncRuns: {
39
+ readonly name: "Sync Runs";
40
+ readonly description: "Sync run history and requests";
41
+ };
42
+ readonly pipelines: {
43
+ readonly name: "Pipelines";
44
+ readonly description: "Pipeline metadata";
45
+ };
46
+ readonly pipelineRuns: {
47
+ readonly name: "Pipeline Runs";
48
+ readonly description: "Pipeline run history and requests";
49
+ };
50
+ readonly workflows: {
51
+ readonly name: "Workflows";
52
+ readonly description: "Workflow metadata";
53
+ };
54
+ readonly workflowRuns: {
55
+ readonly name: "Workflow Runs";
56
+ readonly description: "Workflow run history and requests";
57
+ };
58
+ readonly workflowInterventions: {
59
+ readonly name: "Workflow Interventions";
60
+ readonly description: "Workflow intervention tasks";
61
+ };
62
+ readonly rules: {
63
+ readonly name: "Rules";
64
+ readonly description: "Rule definitions";
65
+ };
66
+ readonly ruleStates: {
67
+ readonly name: "Rule States";
68
+ readonly description: "Active rule states";
69
+ };
70
+ readonly projections: {
71
+ readonly name: "Projections";
72
+ readonly description: "Projection definitions";
73
+ };
74
+ readonly projectionRuns: {
75
+ readonly name: "Projection Runs";
76
+ readonly description: "Projection run history";
77
+ };
78
+ readonly objects: {
79
+ readonly name: "Objects";
80
+ readonly description: "Twin objects and state";
81
+ };
82
+ readonly objectFiles: {
83
+ readonly name: "Object Files";
84
+ readonly description: "Object-backed file content";
85
+ };
86
+ readonly actions: {
87
+ readonly name: "Actions";
88
+ readonly description: "Action metadata and requests";
89
+ };
90
+ readonly actionRuns: {
91
+ readonly name: "Action Runs";
92
+ readonly description: "Action run history";
93
+ };
94
+ readonly agents: {
95
+ readonly name: "Agents";
96
+ readonly description: "Agent catalog";
97
+ };
98
+ readonly agentThreads: {
99
+ readonly name: "Agent Threads";
100
+ readonly description: "Agent conversation threads and messages";
101
+ };
102
+ readonly agentRuns: {
103
+ readonly name: "Agent Runs";
104
+ readonly description: "Agent run state and cancellation";
105
+ };
106
+ readonly files: {
107
+ readonly name: "Files";
108
+ readonly description: "File uploads and file references";
109
+ };
110
+ readonly links: {
111
+ readonly name: "Links";
112
+ readonly description: "Object relationship links";
113
+ };
114
+ readonly telemetry: {
115
+ readonly name: "Telemetry";
116
+ readonly description: "Telemetry history and appends";
117
+ };
118
+ readonly events: {
119
+ readonly name: "Events";
120
+ readonly description: "Domain event stream";
121
+ };
122
+ readonly logs: {
123
+ readonly name: "Logs";
124
+ readonly description: "Run log stream";
125
+ };
126
+ readonly authSessions: {
127
+ readonly name: "Auth Sessions";
128
+ readonly description: "Authentication sessions and sign-out";
129
+ };
130
+ readonly authMembers: {
131
+ readonly name: "Auth Members";
132
+ readonly description: "User membership administration";
133
+ };
134
+ readonly authInvitations: {
135
+ readonly name: "Auth Invitations";
136
+ readonly description: "User invitations";
137
+ };
138
+ readonly authAccessTokens: {
139
+ readonly name: "Auth Access Tokens";
140
+ readonly description: "Personal access-token management";
141
+ };
142
+ readonly authServiceAccounts: {
143
+ readonly name: "Auth Service Accounts";
144
+ readonly description: "Service accounts and service-account access tokens";
145
+ };
146
+ };
147
+ export declare const OPENAPI_TAG_METADATA: {
148
+ name: "Project" | "Status" | "Ontology" | "Connectors" | "Webhooks" | "Datasets" | "Dataset Versions" | "Dataset Rows" | "Syncs" | "Sync Runs" | "Pipelines" | "Pipeline Runs" | "Workflows" | "Workflow Runs" | "Workflow Interventions" | "Rules" | "Rule States" | "Projections" | "Projection Runs" | "Objects" | "Object Files" | "Actions" | "Action Runs" | "Agents" | "Agent Threads" | "Agent Runs" | "Files" | "Links" | "Telemetry" | "Events" | "Logs" | "Auth Sessions" | "Auth Members" | "Auth Invitations" | "Auth Access Tokens" | "Auth Service Accounts";
149
+ description: "Current project metadata" | "Runtime status" | "Object type definitions" | "Connector metadata and webhook routes" | "Webhook run history" | "Dataset definitions" | "Dataset version history" | "Dataset row previews" | "Sync metadata" | "Sync run history and requests" | "Pipeline metadata" | "Pipeline run history and requests" | "Workflow metadata" | "Workflow run history and requests" | "Workflow intervention tasks" | "Rule definitions" | "Active rule states" | "Projection definitions" | "Projection run history" | "Twin objects and state" | "Object-backed file content" | "Action metadata and requests" | "Action run history" | "Agent catalog" | "Agent conversation threads and messages" | "Agent run state and cancellation" | "File uploads and file references" | "Object relationship links" | "Telemetry history and appends" | "Domain event stream" | "Run log stream" | "Authentication sessions and sign-out" | "User membership administration" | "User invitations" | "Personal access-token management" | "Service accounts and service-account access tokens";
150
+ }[];
151
+ //# sourceMappingURL=tags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../src/openapi/tags.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJf,CAAA;AAEV,eAAO,MAAM,oBAAoB;;;GAG9B,CAAA"}
@@ -0,0 +1,31 @@
1
+ import type { OntologySource, Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerHttpRoutes(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
+ derive: {};
20
+ resolve: {};
21
+ schema: {};
22
+ standaloneSchema: {};
23
+ response: {};
24
+ }, {
25
+ derive: {};
26
+ resolve: {};
27
+ schema: {};
28
+ standaloneSchema: {};
29
+ response: {};
30
+ }>;
31
+ //# sourceMappingURL=registerRoutes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerRoutes.d.ts","sourceRoot":"","sources":["../src/registerRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuBpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwBpF"}
@@ -0,0 +1,244 @@
1
+ import type { OntologySource, Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerActionRunRoutes(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
+ "action-runs": {
21
+ get: {
22
+ body: unknown;
23
+ params: {};
24
+ query: {
25
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
26
+ limit?: string | undefined;
27
+ offset?: string | undefined;
28
+ order?: "asc" | "desc" | undefined;
29
+ objectTypeId?: string | undefined;
30
+ actionId?: string | undefined;
31
+ primaryId?: string | undefined;
32
+ startedAfter?: string | undefined;
33
+ startedBefore?: string | undefined;
34
+ };
35
+ headers: unknown;
36
+ response: {
37
+ 200: {
38
+ runs: {
39
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
40
+ projectId: string;
41
+ id: string;
42
+ actionId: string;
43
+ subject: {
44
+ kind: "none";
45
+ } | {
46
+ kind: "object";
47
+ objectTypeId: string;
48
+ primaryId: string;
49
+ };
50
+ queuedAt: string;
51
+ error?: {
52
+ message: string;
53
+ name?: string | undefined;
54
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
55
+ } | undefined;
56
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
57
+ startedAt?: string | undefined;
58
+ finishedAt?: string | undefined;
59
+ }[];
60
+ hasMore: boolean;
61
+ total: number;
62
+ };
63
+ 400: {
64
+ error: string;
65
+ };
66
+ 501: {
67
+ error: string;
68
+ };
69
+ 422: {
70
+ type: "validation";
71
+ on: string;
72
+ summary?: string;
73
+ message?: string;
74
+ found?: unknown;
75
+ property?: string;
76
+ expected?: string;
77
+ };
78
+ };
79
+ };
80
+ };
81
+ };
82
+ } & {
83
+ api: {
84
+ "action-runs": {
85
+ ":runId": {
86
+ get: {
87
+ body: unknown;
88
+ params: {
89
+ runId: string;
90
+ };
91
+ query: unknown;
92
+ headers: unknown;
93
+ response: {
94
+ 200: {
95
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
96
+ projectId: string;
97
+ params: Record<string, unknown>;
98
+ id: string;
99
+ actionId: string;
100
+ subject: {
101
+ kind: "none";
102
+ } | {
103
+ kind: "object";
104
+ objectTypeId: string;
105
+ primaryId: string;
106
+ };
107
+ queuedAt: string;
108
+ error?: {
109
+ message: string;
110
+ name?: string | undefined;
111
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
112
+ } | undefined;
113
+ writeback?: {
114
+ status: "succeeded" | "failed";
115
+ completedAt: string;
116
+ error?: {
117
+ message: string;
118
+ name?: string | undefined;
119
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
120
+ } | undefined;
121
+ result?: unknown;
122
+ } | undefined;
123
+ effects?: {
124
+ status: "succeeded" | "failed";
125
+ completedAt: string;
126
+ error?: {
127
+ message: string;
128
+ name?: string | undefined;
129
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
130
+ } | undefined;
131
+ } | undefined;
132
+ phase?: "validation" | "writeback" | "edits" | "effects" | "cancelled" | "request" | "enqueue" | "commit" | undefined;
133
+ startedAt?: string | undefined;
134
+ finishedAt?: string | undefined;
135
+ };
136
+ 400: {
137
+ error: string;
138
+ };
139
+ 404: {
140
+ error: string;
141
+ };
142
+ 501: {
143
+ error: string;
144
+ };
145
+ 422: {
146
+ type: "validation";
147
+ on: string;
148
+ summary?: string;
149
+ message?: string;
150
+ found?: unknown;
151
+ property?: string;
152
+ expected?: string;
153
+ };
154
+ };
155
+ };
156
+ };
157
+ };
158
+ };
159
+ } & {
160
+ api: {
161
+ "action-runs": {
162
+ ":runId": {
163
+ files: {
164
+ content: {
165
+ get: {
166
+ body: unknown;
167
+ params: {
168
+ runId: string;
169
+ };
170
+ query: {
171
+ path: string;
172
+ disposition?: "inline" | "attachment" | undefined;
173
+ };
174
+ headers: unknown;
175
+ response: {
176
+ 200: Response | {
177
+ readonly error: string;
178
+ };
179
+ 422: {
180
+ type: "validation";
181
+ on: string;
182
+ summary?: string;
183
+ message?: string;
184
+ found?: unknown;
185
+ property?: string;
186
+ expected?: string;
187
+ };
188
+ };
189
+ };
190
+ };
191
+ };
192
+ };
193
+ };
194
+ };
195
+ } & {
196
+ api: {
197
+ "action-runs": {
198
+ ":runId": {
199
+ files: {
200
+ content: {
201
+ head: {
202
+ body: unknown;
203
+ params: {
204
+ runId: string;
205
+ };
206
+ query: {
207
+ path: string;
208
+ disposition?: "inline" | "attachment" | undefined;
209
+ };
210
+ headers: unknown;
211
+ response: {
212
+ 200: Response | {
213
+ readonly error: string;
214
+ };
215
+ 422: {
216
+ type: "validation";
217
+ on: string;
218
+ summary?: string;
219
+ message?: string;
220
+ found?: unknown;
221
+ property?: string;
222
+ expected?: string;
223
+ };
224
+ };
225
+ };
226
+ };
227
+ };
228
+ };
229
+ };
230
+ };
231
+ }, {
232
+ derive: {};
233
+ resolve: {};
234
+ schema: {};
235
+ standaloneSchema: {};
236
+ response: {};
237
+ }, {
238
+ derive: {};
239
+ resolve: {};
240
+ schema: {};
241
+ standaloneSchema: {};
242
+ response: {};
243
+ }>;
244
+ //# sourceMappingURL=action-runs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAGtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA8GpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4HzF"}
@@ -0,0 +1,183 @@
1
+ import type { OntologySource, Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerActionRoutes(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
+ actions: {
21
+ get: {
22
+ body: unknown;
23
+ params: {};
24
+ query: unknown;
25
+ headers: unknown;
26
+ response: {
27
+ 200: {
28
+ name: string;
29
+ params: {
30
+ name: string;
31
+ id: string;
32
+ description?: string | undefined;
33
+ required?: boolean | undefined;
34
+ nullable?: boolean | undefined;
35
+ semanticType?: string | undefined;
36
+ schema?: unknown;
37
+ }[];
38
+ id: string;
39
+ phases: {
40
+ validate: boolean;
41
+ writeback: boolean;
42
+ edits: boolean;
43
+ effects: boolean;
44
+ };
45
+ description?: string | undefined;
46
+ objectTypeId?: string | undefined;
47
+ }[];
48
+ 422: {
49
+ type: "validation";
50
+ on: string;
51
+ summary?: string;
52
+ message?: string;
53
+ found?: unknown;
54
+ property?: string;
55
+ expected?: string;
56
+ };
57
+ };
58
+ };
59
+ };
60
+ };
61
+ } & {
62
+ api: {
63
+ actions: {
64
+ ":actionId": {
65
+ get: {
66
+ body: unknown;
67
+ params: {
68
+ actionId: string;
69
+ };
70
+ query: unknown;
71
+ headers: unknown;
72
+ response: {
73
+ 200: {
74
+ name: string;
75
+ params: {
76
+ name: string;
77
+ id: string;
78
+ description?: string | undefined;
79
+ required?: boolean | undefined;
80
+ nullable?: boolean | undefined;
81
+ semanticType?: string | undefined;
82
+ schema?: unknown;
83
+ }[];
84
+ id: string;
85
+ phases: {
86
+ validate: boolean;
87
+ writeback: boolean;
88
+ edits: boolean;
89
+ effects: boolean;
90
+ };
91
+ description?: string | undefined;
92
+ objectTypeId?: string | undefined;
93
+ };
94
+ 404: {
95
+ error: string;
96
+ };
97
+ 422: {
98
+ type: "validation";
99
+ on: string;
100
+ summary?: string;
101
+ message?: string;
102
+ found?: unknown;
103
+ property?: string;
104
+ expected?: string;
105
+ };
106
+ };
107
+ };
108
+ };
109
+ };
110
+ };
111
+ } & {
112
+ api: {
113
+ actions: {
114
+ ":actionId": {
115
+ post: {
116
+ body: {
117
+ params?: Record<string, unknown> | undefined;
118
+ runId?: string | undefined;
119
+ subject?: {
120
+ kind: "none";
121
+ } | {
122
+ kind: "object";
123
+ objectTypeId: string;
124
+ primaryId: string;
125
+ } | undefined;
126
+ };
127
+ params: {
128
+ actionId: string;
129
+ };
130
+ query: unknown;
131
+ headers: unknown;
132
+ response: {
133
+ 200: {
134
+ runId: string;
135
+ queuedAt: string;
136
+ created: boolean;
137
+ jobId?: string | undefined;
138
+ } | {
139
+ error: string;
140
+ };
141
+ 403: {
142
+ error: string;
143
+ };
144
+ 400: {
145
+ error: string;
146
+ };
147
+ 404: {
148
+ error: string;
149
+ };
150
+ 202: {
151
+ runId: string;
152
+ queuedAt: string;
153
+ created: boolean;
154
+ jobId?: string | undefined;
155
+ };
156
+ 422: {
157
+ type: "validation";
158
+ on: string;
159
+ summary?: string;
160
+ message?: string;
161
+ found?: unknown;
162
+ property?: string;
163
+ expected?: string;
164
+ };
165
+ };
166
+ };
167
+ };
168
+ };
169
+ };
170
+ }, {
171
+ derive: {};
172
+ resolve: {};
173
+ schema: {};
174
+ standaloneSchema: {};
175
+ response: {};
176
+ }, {
177
+ derive: {};
178
+ resolve: {};
179
+ schema: {};
180
+ standaloneSchema: {};
181
+ response: {};
182
+ }>;
183
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/routes/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,cAAc,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAuCpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFtF"}
@@ -0,0 +1,4 @@
1
+ import { type OntologySource, type Sixb } from "@sixb/core";
2
+ import type { Elysia } from "elysia";
3
+ export declare function registerAgentApiGatewayRoutes(app: Elysia, sixb: Sixb<readonly OntologySource[]>): void;
4
+ //# sourceMappingURL=agent-api-gateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-api-gateway.d.ts","sourceRoot":"","sources":["../../src/routes/agent-api-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAA+B,KAAK,IAAI,EAAE,MAAM,YAAY,CAAA;AAQxF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAepC,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,cAAc,EAAE,CAAC,QAuB/F"}