@sixb/server 0.1.21 → 0.1.22
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/dist/artifacts/frame.d.ts +5 -0
- package/dist/artifacts/frame.d.ts.map +1 -1
- package/dist/auth/browser-origin.d.ts +5 -1
- package/dist/auth/browser-origin.d.ts.map +1 -1
- package/dist/auth/experience.d.ts +1 -0
- package/dist/auth/experience.d.ts.map +1 -1
- package/dist/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/responses.d.ts +1 -1
- package/dist/auth/responses.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +19 -3
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/index.js +10093 -7553
- package/dist/index.js.map +51 -39
- package/dist/models/display.d.ts +27 -0
- package/dist/models/display.d.ts.map +1 -1
- package/dist/openapi/components.d.ts +14 -0
- package/dist/openapi/components.d.ts.map +1 -0
- package/dist/openapi/tags.d.ts +14 -2
- package/dist/openapi/tags.d.ts.map +1 -1
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +5 -5
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agent-approval-gate.d.ts +27 -0
- package/dist/routes/agent-approval-gate.d.ts.map +1 -0
- package/dist/routes/agent-approvals.d.ts +599 -0
- package/dist/routes/agent-approvals.d.ts.map +1 -0
- package/dist/routes/agent-children.d.ts +318 -0
- package/dist/routes/agent-children.d.ts.map +1 -0
- package/dist/routes/agent-memory.d.ts +267 -0
- package/dist/routes/agent-memory.d.ts.map +1 -0
- package/dist/routes/agents.d.ts +999 -80
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/artifact-frames.d.ts +3 -3
- package/dist/routes/artifact-frames.d.ts.map +1 -1
- package/dist/routes/artifacts.d.ts +790 -134
- package/dist/routes/artifacts.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +116 -10
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/connector-connection-runs.d.ts +50 -50
- package/dist/routes/connectors.d.ts +2 -2
- package/dist/routes/datasets.d.ts +20 -20
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/files.d.ts +14 -14
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/links.d.ts +2 -2
- package/dist/routes/logs.d.ts +5 -5
- package/dist/routes/model-calls.d.ts +155 -0
- package/dist/routes/model-calls.d.ts.map +1 -0
- package/dist/routes/model-generations.d.ts +400 -0
- package/dist/routes/model-generations.d.ts.map +1 -0
- package/dist/routes/models.d.ts +434 -1
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +71 -40
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +682 -0
- package/dist/routes/observed-agent-threads.d.ts.map +1 -0
- package/dist/routes/ontology.d.ts +66 -62
- package/dist/routes/ontology.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +24 -24
- package/dist/routes/projections.d.ts +55 -55
- package/dist/routes/rules.d.ts +2 -2
- package/dist/routes/share-grants.d.ts +9 -9
- package/dist/routes/syncs.d.ts +46 -46
- package/dist/routes/users.d.ts +117 -0
- package/dist/routes/users.d.ts.map +1 -0
- package/dist/routes/webhook-runs.d.ts +1 -1
- package/dist/routes/workflows.d.ts +118 -52
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/agents.d.ts +7 -2
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/events.d.ts +6 -6
- package/dist/routes/ws/logs.d.ts +14 -14
- package/dist/schemas/actions.d.ts +15 -15
- package/dist/schemas/activity.d.ts +48 -28
- package/dist/schemas/activity.d.ts.map +1 -1
- package/dist/schemas/agent-approvals.d.ts +1091 -0
- package/dist/schemas/agent-approvals.d.ts.map +1 -0
- package/dist/schemas/agent-memory.d.ts +250 -0
- package/dist/schemas/agent-memory.d.ts.map +1 -0
- package/dist/schemas/agents.d.ts +5442 -369
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1290 -411
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/ai-limits.d.ts +10 -10
- package/dist/schemas/ai-usage.d.ts +12 -0
- package/dist/schemas/ai-usage.d.ts.map +1 -1
- package/dist/schemas/artifacts.d.ts +650 -98
- package/dist/schemas/artifacts.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +119 -46
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/connectors.d.ts +22 -22
- package/dist/schemas/datasets.d.ts +98 -98
- package/dist/schemas/event-payloads.d.ts +6 -6
- package/dist/schemas/events.d.ts +26 -26
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +24 -24
- package/dist/schemas/links.d.ts +2 -2
- package/dist/schemas/logs.d.ts +32 -32
- package/dist/schemas/models.d.ts +8889 -10
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +48 -12
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +127 -104
- package/dist/schemas/ontology.d.ts.map +1 -1
- package/dist/schemas/pipelines.d.ts +132 -132
- package/dist/schemas/projections.d.ts +314 -314
- package/dist/schemas/rules.d.ts +4 -4
- package/dist/schemas/share-grants.d.ts +30 -30
- package/dist/schemas/syncs.d.ts +49 -49
- package/dist/schemas/users.d.ts +72 -0
- package/dist/schemas/users.d.ts.map +1 -0
- package/dist/schemas/webhook-runs.d.ts +6 -6
- package/dist/schemas/workflows.d.ts +701 -186
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/http.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/artifacts/frame.ts +6 -1
- package/src/auth/browser-origin.ts +8 -3
- package/src/auth/experience.ts +1 -1
- package/src/auth/guard.ts +2 -2
- package/src/auth/public-routes.ts +6 -0
- package/src/auth/responses.ts +7 -6
- package/src/auth/scope.ts +32 -3
- package/src/models/display.ts +61 -16
- package/src/openapi/components.ts +54 -0
- package/src/openapi/tags.ts +12 -0
- package/src/registerRoutes.ts +14 -0
- package/src/routes/agent-api-gateway.ts +115 -91
- package/src/routes/agent-approval-gate.ts +213 -0
- package/src/routes/agent-approvals.ts +299 -0
- package/src/routes/agent-children.ts +209 -0
- package/src/routes/agent-memory.ts +210 -0
- package/src/routes/agents.ts +363 -142
- package/src/routes/ai-accounting.ts +4 -0
- package/src/routes/artifact-frames.ts +14 -8
- package/src/routes/artifacts.ts +297 -22
- package/src/routes/auth.ts +306 -13
- package/src/routes/files.ts +6 -7
- package/src/routes/model-calls.ts +120 -0
- package/src/routes/model-generations.ts +245 -0
- package/src/routes/models.ts +116 -9
- package/src/routes/objects.ts +55 -61
- package/src/routes/observed-agent-threads.ts +253 -0
- package/src/routes/ontology.ts +1 -0
- package/src/routes/users.ts +73 -0
- package/src/routes/workflows.ts +6 -9
- package/src/routes/ws/agents.ts +10 -5
- package/src/schemas/activity.ts +2 -0
- package/src/schemas/agent-approvals.ts +129 -0
- package/src/schemas/agent-memory.ts +96 -0
- package/src/schemas/agents.ts +239 -0
- package/src/schemas/ai-accounting.ts +40 -4
- package/src/schemas/ai-usage.ts +10 -0
- package/src/schemas/artifacts.ts +91 -3
- package/src/schemas/auth.ts +25 -0
- package/src/schemas/models.ts +197 -1
- package/src/schemas/objects.ts +181 -0
- package/src/schemas/ontology.ts +1 -0
- package/src/schemas/users.ts +24 -0
- package/src/schemas/workflows.ts +2 -0
- package/src/server.ts +9 -10
- package/src/utils/http.ts +2 -0
package/dist/schemas/logs.d.ts
CHANGED
|
@@ -15,36 +15,36 @@ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
15
15
|
beforeCursor: z.ZodOptional<z.ZodString>;
|
|
16
16
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
kind?: "workflow" | "agent" | "action" | "
|
|
18
|
+
kind?: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection" | undefined;
|
|
19
19
|
runId?: string | undefined;
|
|
20
20
|
limit?: number | undefined;
|
|
21
|
-
afterCursor?: string | undefined;
|
|
22
|
-
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
23
21
|
direction?: "forward" | "backward" | undefined;
|
|
22
|
+
afterCursor?: string | undefined;
|
|
23
|
+
level?: "error" | "info" | "debug" | "warn" | undefined;
|
|
24
24
|
beforeCursor?: string | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
kind?: "workflow" | "agent" | "action" | "
|
|
26
|
+
kind?: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection" | undefined;
|
|
27
27
|
runId?: string | undefined;
|
|
28
28
|
limit?: number | undefined;
|
|
29
|
-
afterCursor?: string | undefined;
|
|
30
|
-
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
31
29
|
direction?: "forward" | "backward" | undefined;
|
|
30
|
+
afterCursor?: string | undefined;
|
|
31
|
+
level?: "error" | "info" | "debug" | "warn" | undefined;
|
|
32
32
|
beforeCursor?: string | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
kind?: "workflow" | "agent" | "action" | "
|
|
34
|
+
kind?: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection" | undefined;
|
|
35
35
|
runId?: string | undefined;
|
|
36
36
|
limit?: number | undefined;
|
|
37
|
-
afterCursor?: string | undefined;
|
|
38
|
-
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
39
37
|
direction?: "forward" | "backward" | undefined;
|
|
38
|
+
afterCursor?: string | undefined;
|
|
39
|
+
level?: "error" | "info" | "debug" | "warn" | undefined;
|
|
40
40
|
beforeCursor?: string | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
kind?: "workflow" | "agent" | "action" | "
|
|
42
|
+
kind?: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection" | undefined;
|
|
43
43
|
runId?: string | undefined;
|
|
44
44
|
limit?: number | undefined;
|
|
45
|
-
afterCursor?: string | undefined;
|
|
46
|
-
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
47
45
|
direction?: "forward" | "backward" | undefined;
|
|
46
|
+
afterCursor?: string | undefined;
|
|
47
|
+
level?: "error" | "info" | "debug" | "warn" | undefined;
|
|
48
48
|
beforeCursor?: string | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
export declare const LogLineSchema: z.ZodObject<{
|
|
@@ -58,10 +58,10 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
58
58
|
id: z.ZodString;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
id: string;
|
|
61
|
-
kind: "workflow" | "agent" | "action" | "
|
|
61
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
62
62
|
}, {
|
|
63
63
|
id: string;
|
|
64
|
-
kind: "workflow" | "agent" | "action" | "
|
|
64
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
65
65
|
}>;
|
|
66
66
|
stepId: z.ZodOptional<z.ZodString>;
|
|
67
67
|
phase: z.ZodOptional<z.ZodString>;
|
|
@@ -69,7 +69,7 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
run: {
|
|
71
71
|
id: string;
|
|
72
|
-
kind: "workflow" | "agent" | "action" | "
|
|
72
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
73
73
|
};
|
|
74
74
|
phase?: string | undefined;
|
|
75
75
|
attempt?: number | undefined;
|
|
@@ -77,7 +77,7 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
77
77
|
}, {
|
|
78
78
|
run: {
|
|
79
79
|
id: string;
|
|
80
|
-
kind: "workflow" | "agent" | "action" | "
|
|
80
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
81
81
|
};
|
|
82
82
|
phase?: string | undefined;
|
|
83
83
|
attempt?: number | undefined;
|
|
@@ -89,7 +89,7 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
89
89
|
context: {
|
|
90
90
|
run: {
|
|
91
91
|
id: string;
|
|
92
|
-
kind: "workflow" | "agent" | "action" | "
|
|
92
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
93
93
|
};
|
|
94
94
|
phase?: string | undefined;
|
|
95
95
|
attempt?: number | undefined;
|
|
@@ -97,14 +97,14 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
97
97
|
};
|
|
98
98
|
message: string;
|
|
99
99
|
cursor: string;
|
|
100
|
-
level: "error" | "
|
|
100
|
+
level: "error" | "info" | "debug" | "warn";
|
|
101
101
|
fields?: Record<string, unknown> | undefined;
|
|
102
102
|
}, {
|
|
103
103
|
at: string;
|
|
104
104
|
context: {
|
|
105
105
|
run: {
|
|
106
106
|
id: string;
|
|
107
|
-
kind: "workflow" | "agent" | "action" | "
|
|
107
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
108
108
|
};
|
|
109
109
|
phase?: string | undefined;
|
|
110
110
|
attempt?: number | undefined;
|
|
@@ -112,7 +112,7 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
112
112
|
};
|
|
113
113
|
message: string;
|
|
114
114
|
cursor: string;
|
|
115
|
-
level: "error" | "
|
|
115
|
+
level: "error" | "info" | "debug" | "warn";
|
|
116
116
|
fields?: Record<string, unknown> | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
export declare const LogsResponseSchema: z.ZodObject<{
|
|
@@ -128,10 +128,10 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
128
128
|
id: z.ZodString;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
id: string;
|
|
131
|
-
kind: "workflow" | "agent" | "action" | "
|
|
131
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
132
132
|
}, {
|
|
133
133
|
id: string;
|
|
134
|
-
kind: "workflow" | "agent" | "action" | "
|
|
134
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
135
135
|
}>;
|
|
136
136
|
stepId: z.ZodOptional<z.ZodString>;
|
|
137
137
|
phase: z.ZodOptional<z.ZodString>;
|
|
@@ -139,7 +139,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
140
|
run: {
|
|
141
141
|
id: string;
|
|
142
|
-
kind: "workflow" | "agent" | "action" | "
|
|
142
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
143
143
|
};
|
|
144
144
|
phase?: string | undefined;
|
|
145
145
|
attempt?: number | undefined;
|
|
@@ -147,7 +147,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
147
147
|
}, {
|
|
148
148
|
run: {
|
|
149
149
|
id: string;
|
|
150
|
-
kind: "workflow" | "agent" | "action" | "
|
|
150
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
151
151
|
};
|
|
152
152
|
phase?: string | undefined;
|
|
153
153
|
attempt?: number | undefined;
|
|
@@ -159,7 +159,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
159
159
|
context: {
|
|
160
160
|
run: {
|
|
161
161
|
id: string;
|
|
162
|
-
kind: "workflow" | "agent" | "action" | "
|
|
162
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
163
163
|
};
|
|
164
164
|
phase?: string | undefined;
|
|
165
165
|
attempt?: number | undefined;
|
|
@@ -167,14 +167,14 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
167
167
|
};
|
|
168
168
|
message: string;
|
|
169
169
|
cursor: string;
|
|
170
|
-
level: "error" | "
|
|
170
|
+
level: "error" | "info" | "debug" | "warn";
|
|
171
171
|
fields?: Record<string, unknown> | undefined;
|
|
172
172
|
}, {
|
|
173
173
|
at: string;
|
|
174
174
|
context: {
|
|
175
175
|
run: {
|
|
176
176
|
id: string;
|
|
177
|
-
kind: "workflow" | "agent" | "action" | "
|
|
177
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
178
178
|
};
|
|
179
179
|
phase?: string | undefined;
|
|
180
180
|
attempt?: number | undefined;
|
|
@@ -182,7 +182,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
182
182
|
};
|
|
183
183
|
message: string;
|
|
184
184
|
cursor: string;
|
|
185
|
-
level: "error" | "
|
|
185
|
+
level: "error" | "info" | "debug" | "warn";
|
|
186
186
|
fields?: Record<string, unknown> | undefined;
|
|
187
187
|
}>, "many">;
|
|
188
188
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -195,7 +195,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
195
195
|
context: {
|
|
196
196
|
run: {
|
|
197
197
|
id: string;
|
|
198
|
-
kind: "workflow" | "agent" | "action" | "
|
|
198
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
199
199
|
};
|
|
200
200
|
phase?: string | undefined;
|
|
201
201
|
attempt?: number | undefined;
|
|
@@ -203,7 +203,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
203
203
|
};
|
|
204
204
|
message: string;
|
|
205
205
|
cursor: string;
|
|
206
|
-
level: "error" | "
|
|
206
|
+
level: "error" | "info" | "debug" | "warn";
|
|
207
207
|
fields?: Record<string, unknown> | undefined;
|
|
208
208
|
}[];
|
|
209
209
|
cursor?: string | undefined;
|
|
@@ -215,7 +215,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
215
215
|
context: {
|
|
216
216
|
run: {
|
|
217
217
|
id: string;
|
|
218
|
-
kind: "workflow" | "agent" | "action" | "
|
|
218
|
+
kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
|
|
219
219
|
};
|
|
220
220
|
phase?: string | undefined;
|
|
221
221
|
attempt?: number | undefined;
|
|
@@ -223,7 +223,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
223
223
|
};
|
|
224
224
|
message: string;
|
|
225
225
|
cursor: string;
|
|
226
|
-
level: "error" | "
|
|
226
|
+
level: "error" | "info" | "debug" | "warn";
|
|
227
227
|
fields?: Record<string, unknown> | undefined;
|
|
228
228
|
}[];
|
|
229
229
|
cursor?: string | undefined;
|