@sixb/server 0.1.1 → 0.1.3
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.
- package/README.md +3 -3
- package/dist/auth/application-access.d.ts +2 -2
- package/dist/auth/application-access.d.ts.map +1 -1
- package/dist/auth/connector-callback-cookie.d.ts +12 -0
- package/dist/auth/connector-callback-cookie.d.ts.map +1 -0
- package/dist/auth/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/guard.d.ts +3 -3
- package/dist/auth/guard.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +13 -27
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/session-cookies.d.ts +2 -2
- package/dist/auth/session-cookies.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +16 -0
- package/dist/connectors/http.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3903 -2760
- package/dist/index.js.map +58 -50
- package/dist/openapi/tags.d.ts +15 -3
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts +6 -2
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +21 -31
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +12 -11
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts +2 -2
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +230 -159
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts +31 -0
- package/dist/routes/ai-accounting.d.ts.map +1 -0
- package/dist/routes/auth.d.ts +149 -92
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +794 -0
- package/dist/routes/connector-connection-runs.d.ts.map +1 -0
- package/dist/routes/connector-connections.d.ts +219 -0
- package/dist/routes/connector-connections.d.ts.map +1 -0
- package/dist/routes/connectors.d.ts +10 -4
- package/dist/routes/connectors.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +16 -12
- package/dist/routes/datasets.d.ts.map +1 -1
- package/dist/routes/events.d.ts +9 -9
- package/dist/routes/events.d.ts.map +1 -1
- package/dist/routes/files.d.ts +19 -18
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +11 -11
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/logs.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +37 -37
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +50 -50
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +28 -38
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/project.d.ts +2 -2
- package/dist/routes/project.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +145 -85
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +6 -6
- package/dist/routes/rules.d.ts.map +1 -1
- package/dist/routes/status.d.ts +2 -2
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +23 -28
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +9 -9
- package/dist/routes/telemetry.d.ts.map +1 -1
- package/dist/routes/webhook-runs.d.ts +9 -9
- package/dist/routes/webhook-runs.d.ts.map +1 -1
- package/dist/routes/webhooks.d.ts +2 -2
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +177 -66
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +11 -5
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +8 -8
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/log-subscription-hub.d.ts +6 -3
- package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/logs.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +89 -194
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +791 -471
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +2393 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -0
- package/dist/schemas/ai-usage.d.ts +34 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +102 -102
- package/dist/schemas/common.d.ts +37 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +713 -2
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +2 -2
- package/dist/schemas/event-payloads.d.ts +12 -12
- package/dist/schemas/events.d.ts +40 -40
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/objects.d.ts +10 -10
- package/dist/schemas/ontology.d.ts +118 -118
- package/dist/schemas/pipelines.d.ts +89 -184
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +1030 -563
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/syncs.d.ts +65 -108
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/webhook-runs.d.ts +41 -41
- package/dist/schemas/webhook-runs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +1189 -185
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +11 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts +2 -0
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +4 -3
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth/access-token-boundary.ts +4 -4
- package/src/auth/application-access.ts +8 -9
- package/src/auth/connector-callback-cookie.ts +95 -0
- package/src/auth/experience.ts +190 -0
- package/src/auth/guard.ts +11 -11
- package/src/auth/public-routes.ts +20 -0
- package/src/auth/scope.ts +26 -36
- package/src/auth/session-cookies.ts +3 -3
- package/src/connectors/http.ts +110 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +13 -1
- package/src/registerRoutes.ts +36 -23
- package/src/routes/action-runs.ts +39 -39
- package/src/routes/actions.ts +7 -13
- package/src/routes/agent-api-gateway.ts +41 -38
- package/src/routes/agents.ts +90 -200
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +274 -122
- package/src/routes/connector-connection-runs.ts +346 -0
- package/src/routes/connector-connections.ts +135 -0
- package/src/routes/connectors.ts +24 -12
- package/src/routes/datasets.ts +55 -54
- package/src/routes/events.ts +5 -5
- package/src/routes/files.ts +22 -30
- package/src/routes/links.ts +31 -35
- package/src/routes/logs.ts +6 -11
- package/src/routes/objects.ts +51 -114
- package/src/routes/ontology.ts +27 -38
- package/src/routes/pipelines.ts +28 -62
- package/src/routes/project.ts +3 -3
- package/src/routes/projections.ts +44 -42
- package/src/routes/rules.ts +11 -25
- package/src/routes/status.ts +5 -5
- package/src/routes/syncs.ts +19 -45
- package/src/routes/telemetry.ts +18 -29
- package/src/routes/webhook-runs.ts +5 -5
- package/src/routes/webhooks.ts +259 -341
- package/src/routes/workflows.ts +242 -248
- package/src/routes/ws/agents.ts +196 -66
- package/src/routes/ws/events.ts +11 -10
- package/src/routes/ws/log-subscription-hub.ts +6 -12
- package/src/routes/ws/logs.ts +13 -5
- package/src/schemas/actions.ts +58 -25
- package/src/schemas/agents.ts +23 -23
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/ai-usage.ts +16 -0
- package/src/schemas/common.ts +24 -0
- package/src/schemas/connectors.ts +164 -0
- package/src/schemas/pipelines.ts +23 -15
- package/src/schemas/projections.ts +23 -3
- package/src/schemas/syncs.ts +13 -8
- package/src/schemas/webhook-runs.ts +10 -5
- package/src/schemas/workflows.ts +23 -8
- package/src/server.ts +75 -26
- package/src/utils/http.ts +34 -6
- package/src/utils/ws.ts +10 -5
package/dist/routes/status.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerStatusRoutes(app: Elysia,
|
|
3
|
+
export declare function registerStatusRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/routes/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/routes/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CnE"}
|
package/dist/routes/syncs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerSyncRoutes(app: Elysia,
|
|
3
|
+
export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -32,17 +32,15 @@ export declare function registerSyncRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
32
32
|
scheduleId: string;
|
|
33
33
|
}[];
|
|
34
34
|
latestRun: {
|
|
35
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
35
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
36
36
|
projectId: string;
|
|
37
37
|
id: string;
|
|
38
38
|
mode: "append" | "snapshot" | "merge";
|
|
39
|
-
|
|
39
|
+
queuedAt: string;
|
|
40
40
|
datasetId: string;
|
|
41
41
|
syncId: string;
|
|
42
|
-
error?:
|
|
43
|
-
|
|
44
|
-
name?: string | undefined;
|
|
45
|
-
} | undefined;
|
|
42
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
43
|
+
startedAt?: string | undefined;
|
|
46
44
|
finishedAt?: string | undefined;
|
|
47
45
|
output?: {
|
|
48
46
|
datasetId: string;
|
|
@@ -69,8 +67,8 @@ export declare function registerSyncRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
69
67
|
};
|
|
70
68
|
};
|
|
71
69
|
connector: {
|
|
72
|
-
type: string;
|
|
73
70
|
id: string;
|
|
71
|
+
type: string;
|
|
74
72
|
};
|
|
75
73
|
}[];
|
|
76
74
|
422: {
|
|
@@ -106,17 +104,15 @@ export declare function registerSyncRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
106
104
|
scheduleId: string;
|
|
107
105
|
}[];
|
|
108
106
|
latestRun: {
|
|
109
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
107
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
110
108
|
projectId: string;
|
|
111
109
|
id: string;
|
|
112
110
|
mode: "append" | "snapshot" | "merge";
|
|
113
|
-
|
|
111
|
+
queuedAt: string;
|
|
114
112
|
datasetId: string;
|
|
115
113
|
syncId: string;
|
|
116
|
-
error?:
|
|
117
|
-
|
|
118
|
-
name?: string | undefined;
|
|
119
|
-
} | undefined;
|
|
114
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
115
|
+
startedAt?: string | undefined;
|
|
120
116
|
finishedAt?: string | undefined;
|
|
121
117
|
output?: {
|
|
122
118
|
datasetId: string;
|
|
@@ -143,8 +139,8 @@ export declare function registerSyncRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
143
139
|
};
|
|
144
140
|
};
|
|
145
141
|
connector: {
|
|
146
|
-
type: string;
|
|
147
142
|
id: string;
|
|
143
|
+
type: string;
|
|
148
144
|
};
|
|
149
145
|
};
|
|
150
146
|
404: {
|
|
@@ -171,12 +167,12 @@ export declare function registerSyncRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
171
167
|
body: unknown;
|
|
172
168
|
params: {};
|
|
173
169
|
query: {
|
|
174
|
-
status?: "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
170
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | undefined;
|
|
171
|
+
startedAfter?: string | undefined;
|
|
172
|
+
startedBefore?: string | undefined;
|
|
175
173
|
limit?: string | undefined;
|
|
176
174
|
offset?: string | undefined;
|
|
177
175
|
order?: "asc" | "desc" | undefined;
|
|
178
|
-
startedAfter?: string | undefined;
|
|
179
|
-
startedBefore?: string | undefined;
|
|
180
176
|
datasetId?: string | undefined;
|
|
181
177
|
syncId?: string | undefined;
|
|
182
178
|
};
|
|
@@ -184,17 +180,15 @@ export declare function registerSyncRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
184
180
|
response: {
|
|
185
181
|
200: {
|
|
186
182
|
runs: {
|
|
187
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
183
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
188
184
|
projectId: string;
|
|
189
185
|
id: string;
|
|
190
186
|
mode: "append" | "snapshot" | "merge";
|
|
191
|
-
|
|
187
|
+
queuedAt: string;
|
|
192
188
|
datasetId: string;
|
|
193
189
|
syncId: string;
|
|
194
|
-
error?:
|
|
195
|
-
|
|
196
|
-
name?: string | undefined;
|
|
197
|
-
} | undefined;
|
|
190
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "queue.enqueue_failed" | "runtime.cancelled" | "sync.execution_failed"> | undefined;
|
|
191
|
+
startedAt?: string | undefined;
|
|
198
192
|
finishedAt?: string | undefined;
|
|
199
193
|
output?: {
|
|
200
194
|
datasetId: string;
|
|
@@ -244,19 +238,20 @@ export declare function registerSyncRoutes(app: Elysia, sixb: Sixb<readonly Onto
|
|
|
244
238
|
response: {
|
|
245
239
|
200: {
|
|
246
240
|
error: string;
|
|
241
|
+
code?: import("@sixb/core").SixbErrorCode;
|
|
247
242
|
} | {
|
|
248
243
|
runId: string;
|
|
249
244
|
jobId: string;
|
|
250
245
|
syncId: string;
|
|
251
246
|
queuedAt: string;
|
|
252
247
|
};
|
|
253
|
-
|
|
248
|
+
404: {
|
|
254
249
|
error: string;
|
|
255
250
|
};
|
|
256
|
-
|
|
251
|
+
403: {
|
|
257
252
|
error: string;
|
|
258
253
|
};
|
|
259
|
-
|
|
254
|
+
400: {
|
|
260
255
|
error: string;
|
|
261
256
|
};
|
|
262
257
|
202: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/routes/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../src/routes/syncs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,YAAY,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqFpC,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiIjE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerTelemetryRoutes(app: Elysia,
|
|
3
|
+
export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -39,13 +39,13 @@ export declare function registerTelemetryRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
39
39
|
200: {
|
|
40
40
|
success: boolean;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
404: {
|
|
43
43
|
error: string;
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
403: {
|
|
46
46
|
error: string;
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
400: {
|
|
49
49
|
error: string;
|
|
50
50
|
};
|
|
51
51
|
422: {
|
|
@@ -153,10 +153,10 @@ export declare function registerTelemetryRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
153
153
|
value?: unknown;
|
|
154
154
|
unit?: string | undefined;
|
|
155
155
|
}[];
|
|
156
|
-
|
|
156
|
+
404: {
|
|
157
157
|
error: string;
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
400: {
|
|
160
160
|
error: string;
|
|
161
161
|
};
|
|
162
162
|
422: {
|
|
@@ -204,10 +204,10 @@ export declare function registerTelemetryRoutes(app: Elysia, sixb: Sixb<readonly
|
|
|
204
204
|
value?: unknown;
|
|
205
205
|
unit?: string | undefined;
|
|
206
206
|
};
|
|
207
|
-
|
|
207
|
+
404: {
|
|
208
208
|
error: string;
|
|
209
209
|
};
|
|
210
|
-
|
|
210
|
+
400: {
|
|
211
211
|
error: string;
|
|
212
212
|
};
|
|
213
213
|
422: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/routes/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/routes/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA2BpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsKvE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerWebhookRunRoutes(app: Elysia,
|
|
3
|
+
export declare function registerWebhookRunRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -22,12 +22,12 @@ export declare function registerWebhookRunRoutes(app: Elysia, sixb: Sixb<readonl
|
|
|
22
22
|
body: unknown;
|
|
23
23
|
params: {};
|
|
24
24
|
query: {
|
|
25
|
-
status?: "running" | "succeeded" | "failed" |
|
|
25
|
+
status?: "running" | "succeeded" | "failed" | undefined;
|
|
26
|
+
startedAfter?: string | undefined;
|
|
27
|
+
startedBefore?: string | undefined;
|
|
26
28
|
limit?: string | undefined;
|
|
27
29
|
offset?: string | undefined;
|
|
28
30
|
order?: "asc" | "desc" | undefined;
|
|
29
|
-
startedAfter?: string | undefined;
|
|
30
|
-
startedBefore?: string | undefined;
|
|
31
31
|
connectorId?: string | undefined;
|
|
32
32
|
idempotencyKey?: string | undefined;
|
|
33
33
|
webhookId?: string | undefined;
|
|
@@ -36,20 +36,20 @@ export declare function registerWebhookRunRoutes(app: Elysia, sixb: Sixb<readonl
|
|
|
36
36
|
response: {
|
|
37
37
|
200: {
|
|
38
38
|
runs: {
|
|
39
|
-
status: "running" | "succeeded" | "failed"
|
|
39
|
+
status: "running" | "succeeded" | "failed";
|
|
40
40
|
projectId: string;
|
|
41
41
|
id: string;
|
|
42
42
|
startedAt: string;
|
|
43
43
|
method: string;
|
|
44
44
|
route: string;
|
|
45
|
+
executionId: string;
|
|
45
46
|
connectorId: string;
|
|
46
47
|
webhookId: string;
|
|
47
|
-
|
|
48
|
+
requestBodyBytes: number;
|
|
49
|
+
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "webhook.delivery_failed" | "webhook.delivery_rejected"> | undefined;
|
|
48
50
|
finishedAt?: string | undefined;
|
|
49
51
|
idempotencyKey?: string | undefined;
|
|
50
|
-
requestBodyBytes?: number | undefined;
|
|
51
52
|
responseStatus?: number | undefined;
|
|
52
|
-
deliveryClaimResult?: "claimed" | "duplicate" | "in_progress" | undefined;
|
|
53
53
|
}[];
|
|
54
54
|
hasMore: boolean;
|
|
55
55
|
total: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-runs.d.ts","sourceRoot":"","sources":["../../src/routes/webhook-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"webhook-runs.d.ts","sourceRoot":"","sources":["../../src/routes/webhook-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA+BpC,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CvE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SixbHostView } from "@sixb/core";
|
|
2
2
|
import type { Elysia } from "elysia";
|
|
3
|
-
export declare function registerWebhookRoutes(app: Elysia,
|
|
3
|
+
export declare function registerWebhookRoutes(app: Elysia, host: SixbHostView): Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
6
6
|
derive: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/routes/webhooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/routes/webhooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAMV,YAAY,EAKb,MAAM,YAAY,CAAA;AAOnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgDpC,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAapE"}
|