@sixb/server 0.1.21 → 0.1.23

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 (165) hide show
  1. package/dist/artifacts/frame.d.ts +5 -0
  2. package/dist/artifacts/frame.d.ts.map +1 -1
  3. package/dist/auth/browser-origin.d.ts +5 -1
  4. package/dist/auth/browser-origin.d.ts.map +1 -1
  5. package/dist/auth/experience.d.ts +1 -0
  6. package/dist/auth/experience.d.ts.map +1 -1
  7. package/dist/auth/public-routes.d.ts.map +1 -1
  8. package/dist/auth/responses.d.ts +1 -1
  9. package/dist/auth/responses.d.ts.map +1 -1
  10. package/dist/auth/scope.d.ts +19 -3
  11. package/dist/auth/scope.d.ts.map +1 -1
  12. package/dist/index.js +10093 -7553
  13. package/dist/index.js.map +51 -39
  14. package/dist/models/display.d.ts +27 -0
  15. package/dist/models/display.d.ts.map +1 -1
  16. package/dist/openapi/components.d.ts +14 -0
  17. package/dist/openapi/components.d.ts.map +1 -0
  18. package/dist/openapi/tags.d.ts +14 -2
  19. package/dist/openapi/tags.d.ts.map +1 -1
  20. package/dist/registerRoutes.d.ts.map +1 -1
  21. package/dist/routes/actions.d.ts +5 -5
  22. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  23. package/dist/routes/agent-approval-gate.d.ts +27 -0
  24. package/dist/routes/agent-approval-gate.d.ts.map +1 -0
  25. package/dist/routes/agent-approvals.d.ts +599 -0
  26. package/dist/routes/agent-approvals.d.ts.map +1 -0
  27. package/dist/routes/agent-children.d.ts +318 -0
  28. package/dist/routes/agent-children.d.ts.map +1 -0
  29. package/dist/routes/agent-memory.d.ts +267 -0
  30. package/dist/routes/agent-memory.d.ts.map +1 -0
  31. package/dist/routes/agents.d.ts +999 -80
  32. package/dist/routes/agents.d.ts.map +1 -1
  33. package/dist/routes/ai-accounting.d.ts.map +1 -1
  34. package/dist/routes/artifact-frames.d.ts +3 -3
  35. package/dist/routes/artifact-frames.d.ts.map +1 -1
  36. package/dist/routes/artifacts.d.ts +790 -134
  37. package/dist/routes/artifacts.d.ts.map +1 -1
  38. package/dist/routes/auth.d.ts +116 -10
  39. package/dist/routes/auth.d.ts.map +1 -1
  40. package/dist/routes/connector-connection-runs.d.ts +50 -50
  41. package/dist/routes/connectors.d.ts +2 -2
  42. package/dist/routes/datasets.d.ts +20 -20
  43. package/dist/routes/events.d.ts +4 -4
  44. package/dist/routes/files.d.ts +14 -14
  45. package/dist/routes/files.d.ts.map +1 -1
  46. package/dist/routes/links.d.ts +2 -2
  47. package/dist/routes/logs.d.ts +5 -5
  48. package/dist/routes/model-calls.d.ts +155 -0
  49. package/dist/routes/model-calls.d.ts.map +1 -0
  50. package/dist/routes/model-generations.d.ts +400 -0
  51. package/dist/routes/model-generations.d.ts.map +1 -0
  52. package/dist/routes/models.d.ts +434 -1
  53. package/dist/routes/models.d.ts.map +1 -1
  54. package/dist/routes/objects.d.ts +71 -40
  55. package/dist/routes/objects.d.ts.map +1 -1
  56. package/dist/routes/observed-agent-threads.d.ts +682 -0
  57. package/dist/routes/observed-agent-threads.d.ts.map +1 -0
  58. package/dist/routes/ontology.d.ts +66 -62
  59. package/dist/routes/ontology.d.ts.map +1 -1
  60. package/dist/routes/pipelines.d.ts +24 -24
  61. package/dist/routes/projections.d.ts +55 -55
  62. package/dist/routes/rules.d.ts +2 -2
  63. package/dist/routes/share-grants.d.ts +9 -9
  64. package/dist/routes/syncs.d.ts +46 -46
  65. package/dist/routes/users.d.ts +117 -0
  66. package/dist/routes/users.d.ts.map +1 -0
  67. package/dist/routes/webhook-runs.d.ts +1 -1
  68. package/dist/routes/workflows.d.ts +118 -52
  69. package/dist/routes/workflows.d.ts.map +1 -1
  70. package/dist/routes/ws/agents.d.ts +7 -2
  71. package/dist/routes/ws/agents.d.ts.map +1 -1
  72. package/dist/routes/ws/events.d.ts +6 -6
  73. package/dist/routes/ws/logs.d.ts +14 -14
  74. package/dist/schemas/actions.d.ts +15 -15
  75. package/dist/schemas/activity.d.ts +48 -28
  76. package/dist/schemas/activity.d.ts.map +1 -1
  77. package/dist/schemas/agent-approvals.d.ts +1091 -0
  78. package/dist/schemas/agent-approvals.d.ts.map +1 -0
  79. package/dist/schemas/agent-memory.d.ts +250 -0
  80. package/dist/schemas/agent-memory.d.ts.map +1 -0
  81. package/dist/schemas/agents.d.ts +5442 -369
  82. package/dist/schemas/agents.d.ts.map +1 -1
  83. package/dist/schemas/ai-accounting.d.ts +1290 -411
  84. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  85. package/dist/schemas/ai-limits.d.ts +10 -10
  86. package/dist/schemas/ai-usage.d.ts +12 -0
  87. package/dist/schemas/ai-usage.d.ts.map +1 -1
  88. package/dist/schemas/artifacts.d.ts +650 -98
  89. package/dist/schemas/artifacts.d.ts.map +1 -1
  90. package/dist/schemas/auth.d.ts +119 -46
  91. package/dist/schemas/auth.d.ts.map +1 -1
  92. package/dist/schemas/connectors.d.ts +22 -22
  93. package/dist/schemas/datasets.d.ts +98 -98
  94. package/dist/schemas/event-payloads.d.ts +6 -6
  95. package/dist/schemas/events.d.ts +26 -26
  96. package/dist/schemas/events.d.ts.map +1 -1
  97. package/dist/schemas/files.d.ts +24 -24
  98. package/dist/schemas/links.d.ts +2 -2
  99. package/dist/schemas/logs.d.ts +32 -32
  100. package/dist/schemas/models.d.ts +8889 -10
  101. package/dist/schemas/models.d.ts.map +1 -1
  102. package/dist/schemas/objects.d.ts +48 -12
  103. package/dist/schemas/objects.d.ts.map +1 -1
  104. package/dist/schemas/ontology.d.ts +127 -104
  105. package/dist/schemas/ontology.d.ts.map +1 -1
  106. package/dist/schemas/pipelines.d.ts +132 -132
  107. package/dist/schemas/projections.d.ts +314 -314
  108. package/dist/schemas/rules.d.ts +4 -4
  109. package/dist/schemas/share-grants.d.ts +30 -30
  110. package/dist/schemas/syncs.d.ts +49 -49
  111. package/dist/schemas/users.d.ts +72 -0
  112. package/dist/schemas/users.d.ts.map +1 -0
  113. package/dist/schemas/webhook-runs.d.ts +6 -6
  114. package/dist/schemas/workflows.d.ts +701 -186
  115. package/dist/schemas/workflows.d.ts.map +1 -1
  116. package/dist/server.d.ts +1 -0
  117. package/dist/server.d.ts.map +1 -1
  118. package/dist/utils/http.d.ts.map +1 -1
  119. package/package.json +7 -7
  120. package/src/artifacts/frame.ts +6 -1
  121. package/src/auth/browser-origin.ts +8 -3
  122. package/src/auth/experience.ts +1 -1
  123. package/src/auth/guard.ts +2 -2
  124. package/src/auth/public-routes.ts +6 -0
  125. package/src/auth/responses.ts +7 -6
  126. package/src/auth/scope.ts +32 -3
  127. package/src/models/display.ts +61 -16
  128. package/src/openapi/components.ts +54 -0
  129. package/src/openapi/tags.ts +12 -0
  130. package/src/registerRoutes.ts +14 -0
  131. package/src/routes/agent-api-gateway.ts +115 -91
  132. package/src/routes/agent-approval-gate.ts +213 -0
  133. package/src/routes/agent-approvals.ts +299 -0
  134. package/src/routes/agent-children.ts +209 -0
  135. package/src/routes/agent-memory.ts +210 -0
  136. package/src/routes/agents.ts +363 -142
  137. package/src/routes/ai-accounting.ts +4 -0
  138. package/src/routes/artifact-frames.ts +14 -8
  139. package/src/routes/artifacts.ts +297 -22
  140. package/src/routes/auth.ts +306 -13
  141. package/src/routes/files.ts +6 -7
  142. package/src/routes/model-calls.ts +120 -0
  143. package/src/routes/model-generations.ts +245 -0
  144. package/src/routes/models.ts +116 -9
  145. package/src/routes/objects.ts +55 -61
  146. package/src/routes/observed-agent-threads.ts +253 -0
  147. package/src/routes/ontology.ts +1 -0
  148. package/src/routes/users.ts +73 -0
  149. package/src/routes/workflows.ts +6 -9
  150. package/src/routes/ws/agents.ts +10 -5
  151. package/src/schemas/activity.ts +2 -0
  152. package/src/schemas/agent-approvals.ts +129 -0
  153. package/src/schemas/agent-memory.ts +96 -0
  154. package/src/schemas/agents.ts +239 -0
  155. package/src/schemas/ai-accounting.ts +40 -4
  156. package/src/schemas/ai-usage.ts +10 -0
  157. package/src/schemas/artifacts.ts +91 -3
  158. package/src/schemas/auth.ts +25 -0
  159. package/src/schemas/models.ts +197 -1
  160. package/src/schemas/objects.ts +181 -0
  161. package/src/schemas/ontology.ts +1 -0
  162. package/src/schemas/users.ts +24 -0
  163. package/src/schemas/workflows.ts +2 -0
  164. package/src/server.ts +9 -10
  165. package/src/utils/http.ts +2 -0
@@ -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" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
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" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
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" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
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" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
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" | "webhook" | "sync" | "pipeline" | "projection";
61
+ kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
62
62
  }, {
63
63
  id: string;
64
- kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
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" | "webhook" | "sync" | "pipeline" | "projection";
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" | "webhook" | "sync" | "pipeline" | "projection";
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" | "webhook" | "sync" | "pipeline" | "projection";
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" | "debug" | "info" | "warn";
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" | "webhook" | "sync" | "pipeline" | "projection";
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" | "debug" | "info" | "warn";
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" | "webhook" | "sync" | "pipeline" | "projection";
131
+ kind: "workflow" | "agent" | "action" | "pipeline" | "webhook" | "sync" | "projection";
132
132
  }, {
133
133
  id: string;
134
- kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
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" | "webhook" | "sync" | "pipeline" | "projection";
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" | "webhook" | "sync" | "pipeline" | "projection";
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" | "webhook" | "sync" | "pipeline" | "projection";
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" | "debug" | "info" | "warn";
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" | "webhook" | "sync" | "pipeline" | "projection";
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" | "debug" | "info" | "warn";
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" | "webhook" | "sync" | "pipeline" | "projection";
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" | "debug" | "info" | "warn";
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" | "webhook" | "sync" | "pipeline" | "projection";
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" | "debug" | "info" | "warn";
226
+ level: "error" | "info" | "debug" | "warn";
227
227
  fields?: Record<string, unknown> | undefined;
228
228
  }[];
229
229
  cursor?: string | undefined;