@sixb/server 0.1.2 → 0.1.4
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 +1 -1
- package/dist/auth/experience.d.ts +33 -0
- package/dist/auth/experience.d.ts.map +1 -0
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2122 -1391
- package/dist/index.js.map +24 -19
- package/dist/openapi/tags.d.ts +10 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/action-runs.d.ts +6 -6
- package/dist/routes/actions.d.ts +3 -3
- package/dist/routes/agents.d.ts +164 -77
- 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 +110 -53
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +56 -56
- package/dist/routes/connector-connections.d.ts +14 -14
- package/dist/routes/datasets.d.ts +12 -12
- package/dist/routes/events.d.ts +1 -1
- package/dist/routes/files.d.ts +8 -8
- package/dist/routes/links.d.ts +6 -57
- package/dist/routes/links.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +3 -3
- package/dist/routes/models.d.ts +60 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/objects.d.ts +51 -3
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +10 -10
- package/dist/routes/projections.d.ts +150 -136
- package/dist/routes/projections.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +38 -38
- package/dist/routes/telemetry.d.ts +7 -7
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +142 -57
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/actions.d.ts +16 -16
- package/dist/schemas/agents.d.ts +586 -142
- 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/auth.d.ts +96 -96
- package/dist/schemas/connectors.d.ts +35 -25
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/links.d.ts +0 -41
- package/dist/schemas/links.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +22 -22
- package/dist/schemas/models.d.ts +50 -0
- package/dist/schemas/models.d.ts.map +1 -0
- package/dist/schemas/objects.d.ts +22 -0
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +20 -20
- package/dist/schemas/projections.d.ts +947 -806
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +2 -2
- package/dist/schemas/syncs.d.ts +33 -33
- package/dist/schemas/webhook-runs.d.ts +12 -12
- package/dist/schemas/workflows.d.ts +833 -162
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth/experience.ts +190 -0
- package/src/auth/public-routes.ts +7 -0
- package/src/index.ts +1 -0
- package/src/openapi/tags.ts +8 -0
- package/src/registerRoutes.ts +4 -0
- package/src/routes/agents.ts +22 -3
- package/src/routes/ai-accounting.ts +166 -0
- package/src/routes/auth.ts +188 -32
- package/src/routes/links.ts +2 -53
- package/src/routes/models.ts +31 -0
- package/src/routes/objects.ts +103 -0
- package/src/routes/projections.ts +18 -4
- package/src/routes/workflows.ts +16 -0
- package/src/schemas/agents.ts +19 -9
- package/src/schemas/ai-accounting.ts +182 -0
- package/src/schemas/connectors.ts +13 -3
- package/src/schemas/links.ts +0 -17
- package/src/schemas/models.ts +15 -0
- package/src/schemas/objects.ts +104 -0
- package/src/schemas/projections.ts +12 -3
- package/src/schemas/workflows.ts +8 -3
- package/src/server.ts +10 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../src/routes/projections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,YAAY,
|
|
1
|
+
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../src/routes/projections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,YAAY,EAGb,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAmHpC,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgIvE"}
|
package/dist/routes/syncs.d.ts
CHANGED
|
@@ -27,14 +27,30 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
27
27
|
200: {
|
|
28
28
|
id: string;
|
|
29
29
|
mode: "append" | "snapshot" | "merge";
|
|
30
|
+
target: {
|
|
31
|
+
kind: "dataset";
|
|
32
|
+
dataset: {
|
|
33
|
+
id: string;
|
|
34
|
+
schema: {
|
|
35
|
+
columns: {
|
|
36
|
+
name: string;
|
|
37
|
+
type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
38
|
+
nullable?: boolean | undefined;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
description?: string | undefined;
|
|
42
|
+
primaryKey?: string | string[] | undefined;
|
|
43
|
+
partitionBy?: string[] | undefined;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
30
46
|
triggers: {
|
|
31
47
|
type: "schedule";
|
|
32
48
|
scheduleId: string;
|
|
33
49
|
}[];
|
|
34
50
|
latestRun: {
|
|
51
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
35
52
|
projectId: string;
|
|
36
53
|
id: string;
|
|
37
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
38
54
|
mode: "append" | "snapshot" | "merge";
|
|
39
55
|
queuedAt: string;
|
|
40
56
|
datasetId: string;
|
|
@@ -50,22 +66,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
50
66
|
commitMessage?: string | undefined;
|
|
51
67
|
rowsRead?: number | undefined;
|
|
52
68
|
} | null;
|
|
53
|
-
target: {
|
|
54
|
-
kind: "dataset";
|
|
55
|
-
dataset: {
|
|
56
|
-
id: string;
|
|
57
|
-
schema: {
|
|
58
|
-
columns: {
|
|
59
|
-
name: string;
|
|
60
|
-
type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
61
|
-
nullable?: boolean | undefined;
|
|
62
|
-
}[];
|
|
63
|
-
};
|
|
64
|
-
description?: string | undefined;
|
|
65
|
-
primaryKey?: string | string[] | undefined;
|
|
66
|
-
partitionBy?: string[] | undefined;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
69
|
connector: {
|
|
70
70
|
id: string;
|
|
71
71
|
type: string;
|
|
@@ -99,14 +99,30 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
99
99
|
200: {
|
|
100
100
|
id: string;
|
|
101
101
|
mode: "append" | "snapshot" | "merge";
|
|
102
|
+
target: {
|
|
103
|
+
kind: "dataset";
|
|
104
|
+
dataset: {
|
|
105
|
+
id: string;
|
|
106
|
+
schema: {
|
|
107
|
+
columns: {
|
|
108
|
+
name: string;
|
|
109
|
+
type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
110
|
+
nullable?: boolean | undefined;
|
|
111
|
+
}[];
|
|
112
|
+
};
|
|
113
|
+
description?: string | undefined;
|
|
114
|
+
primaryKey?: string | string[] | undefined;
|
|
115
|
+
partitionBy?: string[] | undefined;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
102
118
|
triggers: {
|
|
103
119
|
type: "schedule";
|
|
104
120
|
scheduleId: string;
|
|
105
121
|
}[];
|
|
106
122
|
latestRun: {
|
|
123
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
107
124
|
projectId: string;
|
|
108
125
|
id: string;
|
|
109
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
110
126
|
mode: "append" | "snapshot" | "merge";
|
|
111
127
|
queuedAt: string;
|
|
112
128
|
datasetId: string;
|
|
@@ -122,22 +138,6 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
122
138
|
commitMessage?: string | undefined;
|
|
123
139
|
rowsRead?: number | undefined;
|
|
124
140
|
} | null;
|
|
125
|
-
target: {
|
|
126
|
-
kind: "dataset";
|
|
127
|
-
dataset: {
|
|
128
|
-
id: string;
|
|
129
|
-
schema: {
|
|
130
|
-
columns: {
|
|
131
|
-
name: string;
|
|
132
|
-
type: "string" | "boolean" | "json" | "date" | "int64" | "decimal" | "timestamp" | "fileRef" | "float64";
|
|
133
|
-
nullable?: boolean | undefined;
|
|
134
|
-
}[];
|
|
135
|
-
};
|
|
136
|
-
description?: string | undefined;
|
|
137
|
-
primaryKey?: string | string[] | undefined;
|
|
138
|
-
partitionBy?: string[] | undefined;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
141
|
connector: {
|
|
142
142
|
id: string;
|
|
143
143
|
type: string;
|
|
@@ -180,9 +180,9 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
180
180
|
response: {
|
|
181
181
|
200: {
|
|
182
182
|
runs: {
|
|
183
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
183
184
|
projectId: string;
|
|
184
185
|
id: string;
|
|
185
|
-
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
186
186
|
mode: "append" | "snapshot" | "merge";
|
|
187
187
|
queuedAt: string;
|
|
188
188
|
datasetId: string;
|
|
@@ -245,13 +245,13 @@ export declare function registerSyncRoutes(app: Elysia, host: SixbHostView): Ely
|
|
|
245
245
|
syncId: string;
|
|
246
246
|
queuedAt: string;
|
|
247
247
|
};
|
|
248
|
-
|
|
248
|
+
404: {
|
|
249
249
|
error: string;
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
403: {
|
|
252
252
|
error: string;
|
|
253
253
|
};
|
|
254
|
-
|
|
254
|
+
400: {
|
|
255
255
|
error: string;
|
|
256
256
|
};
|
|
257
257
|
202: {
|
|
@@ -39,13 +39,13 @@ export declare function registerTelemetryRoutes(app: Elysia, _host: SixbHostView
|
|
|
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, _host: SixbHostView
|
|
|
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, _host: SixbHostView
|
|
|
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: {
|
|
@@ -36,14 +36,14 @@ export declare function registerWebhookRunRoutes(app: Elysia, host: SixbHostView
|
|
|
36
36
|
response: {
|
|
37
37
|
200: {
|
|
38
38
|
runs: {
|
|
39
|
+
status: "running" | "succeeded" | "failed";
|
|
39
40
|
projectId: string;
|
|
40
41
|
id: string;
|
|
41
|
-
status: "running" | "succeeded" | "failed";
|
|
42
42
|
startedAt: string;
|
|
43
43
|
method: string;
|
|
44
44
|
route: string;
|
|
45
|
-
connectorId: string;
|
|
46
45
|
executionId: string;
|
|
46
|
+
connectorId: string;
|
|
47
47
|
webhookId: string;
|
|
48
48
|
requestBodyBytes: number;
|
|
49
49
|
error?: import("@sixb/core").SixbFailure<"internal.unexpected" | "webhook.delivery_failed" | "webhook.delivery_rejected"> | undefined;
|