@sixb/server 0.1.18 → 0.1.19
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/actions/serialize.d.ts +7 -0
- package/dist/actions/serialize.d.ts.map +1 -0
- package/dist/index.js +660 -685
- package/dist/index.js.map +14 -13
- package/dist/routes/action-runs.d.ts +11 -13
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +44 -13
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +20 -20
- package/dist/routes/connector-connection-runs.d.ts +21 -21
- package/dist/routes/connector-connections.d.ts +8 -8
- package/dist/routes/connectors.d.ts +2 -2
- package/dist/routes/datasets.d.ts +5 -5
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/files.d.ts +15 -12
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/ontology.d.ts +6 -6
- package/dist/routes/pipelines.d.ts +16 -16
- package/dist/routes/projections.d.ts +49 -49
- package/dist/routes/syncs.d.ts +10 -10
- package/dist/routes/webhook-runs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +48 -48
- package/dist/routes/ws/events.d.ts +6 -9
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/schemas/actions.d.ts +100 -84
- package/dist/schemas/actions.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +20 -20
- package/dist/schemas/ai-limits.d.ts +10 -10
- package/dist/schemas/connectors.d.ts +8 -8
- package/dist/schemas/datasets.d.ts +40 -40
- package/dist/schemas/events.d.ts +24 -24
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +4 -4
- package/dist/schemas/ontology.d.ts +40 -40
- package/dist/schemas/pipelines.d.ts +92 -92
- package/dist/schemas/projections.d.ts +290 -290
- package/dist/schemas/syncs.d.ts +34 -34
- package/dist/schemas/webhook-runs.d.ts +8 -8
- package/dist/schemas/workflows.d.ts +160 -160
- 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/dist/utils/request-body.d.ts +20 -6
- package/dist/utils/request-body.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/actions/serialize.ts +55 -0
- package/src/routes/action-runs.ts +1 -54
- package/src/routes/actions.ts +26 -8
- package/src/routes/agent-api-gateway.ts +18 -42
- package/src/routes/files.ts +15 -63
- package/src/routes/ws/events.ts +2 -12
- package/src/schemas/actions.ts +21 -18
- package/src/server.ts +21 -3
- package/src/utils/http.ts +2 -0
- package/src/utils/request-body.ts +55 -6
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ See [OAuth connection flows](../../docs/connectors/authentication.md#connect-an-
|
|
|
66
66
|
| `GET` | `/api/status` | Runtime status (object type and function counts) |
|
|
67
67
|
| `GET` | `/api/actions` | List registered actions |
|
|
68
68
|
| `GET` | `/api/actions/:actionId` | Get action metadata |
|
|
69
|
-
| `POST` | `/api/actions/:actionId` |
|
|
69
|
+
| `POST` | `/api/actions/:actionId` | Run an action and return its finished run (`subject` is optional for global actions) |
|
|
70
70
|
| `GET` | `/api/object-types` | List registered object types |
|
|
71
71
|
| `GET` | `/api/object-types/:objectTypeId` | Get object type definition |
|
|
72
72
|
| `GET` | `/api/objects` | List objects (`?objectTypeId=&idPrefix=&limit=&offset=&orderBy=&order=`) |
|
|
@@ -109,8 +109,8 @@ Send messages to control the subscription:
|
|
|
109
109
|
{ "type": "unsubscribe" }
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
- `topic` -- Filter by topic: `objects`, `telemetry`, `links`, `
|
|
113
|
-
- `types` -- Filter by event type, for example `object.updated`, `link.created`, `telemetry.appended`,
|
|
112
|
+
- `topic` -- Filter by topic: `objects`, `telemetry`, `links`, `schedules`, `syncs`, `pipelines`, `workflows`, `datasets`, or `rules`.
|
|
113
|
+
- `types` -- Filter by event type, for example `object.updated`, `link.created`, `telemetry.appended`, or `workflow.run.finished`.
|
|
114
114
|
- `afterCursor` -- Start streaming after a broker cursor. Defaults to the cursor captured when the socket opened.
|
|
115
115
|
|
|
116
116
|
Events are delivered as:
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ActionRunRecord } from "@sixb/core/storage";
|
|
2
|
+
import { ActionRunDetailSchema, ActionRunSummarySchema } from "../schemas/actions";
|
|
3
|
+
/** The run summary run listings answer with. */
|
|
4
|
+
export declare function serializeActionRunSummary(run: ActionRunRecord): ReturnType<typeof ActionRunSummarySchema.parse>;
|
|
5
|
+
/** The run detail every route that returns one run answers with. */
|
|
6
|
+
export declare function serializeActionRunDetail(run: ActionRunRecord): ReturnType<typeof ActionRunDetailSchema.parse>;
|
|
7
|
+
//# sourceMappingURL=serialize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../src/actions/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAGlF,gDAAgD;AAChD,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,eAAe,GACnB,UAAU,CAAC,OAAO,sBAAsB,CAAC,KAAK,CAAC,CAYjD;AAED,oEAAoE;AACpE,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,eAAe,GACnB,UAAU,CAAC,OAAO,qBAAqB,CAAC,KAAK,CAAC,CA8BhD"}
|