@sixb/server 0.2.2 → 0.2.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/artifacts/frame.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +3 -0
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/auth/shared-access.d.ts +23 -0
- package/dist/auth/shared-access.d.ts.map +1 -1
- package/dist/connectors/http.d.ts +6 -1
- package/dist/connectors/http.d.ts.map +1 -1
- package/dist/index.js +2777 -683
- package/dist/index.js.map +41 -34
- package/dist/live/awareness.d.ts +48 -0
- package/dist/live/awareness.d.ts.map +1 -0
- package/dist/live/room.d.ts +198 -0
- package/dist/live/room.d.ts.map +1 -0
- package/dist/live/rooms.d.ts +67 -0
- package/dist/live/rooms.d.ts.map +1 -0
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +3 -3
- package/dist/routes/agent-approvals.d.ts +10 -10
- package/dist/routes/agent-children.d.ts +2 -2
- package/dist/routes/agent-computers.d.ts +32 -0
- package/dist/routes/agent-computers.d.ts.map +1 -1
- package/dist/routes/agent-runners.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +48 -48
- package/dist/routes/artifact-frames.d.ts +2 -1
- package/dist/routes/artifact-frames.d.ts.map +1 -1
- package/dist/routes/artifacts.d.ts +1713 -178
- package/dist/routes/artifacts.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +21 -21
- package/dist/routes/connector-connection-runs.d.ts +124 -5
- package/dist/routes/connector-connection-runs.d.ts.map +1 -1
- package/dist/routes/connector-connections.d.ts +9 -1
- package/dist/routes/connector-connections.d.ts.map +1 -1
- package/dist/routes/datasets.d.ts +5 -5
- package/dist/routes/events.d.ts +4 -4
- package/dist/routes/lake.d.ts +91 -0
- package/dist/routes/lake.d.ts.map +1 -0
- package/dist/routes/links.d.ts +6 -6
- package/dist/routes/logs.d.ts +2 -2
- package/dist/routes/model-generations.d.ts +2 -2
- package/dist/routes/objects.d.ts +6 -6
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +7 -7
- package/dist/routes/ontology.d.ts +6 -6
- package/dist/routes/pipelines.d.ts +8 -4
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/projections.d.ts +2 -2
- package/dist/routes/share-grants.d.ts +9 -9
- package/dist/routes/shared-access.d.ts +57 -2
- package/dist/routes/shared-access.d.ts.map +1 -1
- package/dist/routes/status.d.ts +11 -15
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +5 -2
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/telemetry.d.ts +7 -7
- package/dist/routes/webhooks.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +3 -3
- package/dist/routes/ws/artifacts.d.ts +57 -0
- package/dist/routes/ws/artifacts.d.ts.map +1 -0
- package/dist/routes/ws/events.d.ts +8 -7
- package/dist/routes/ws/events.d.ts.map +1 -1
- package/dist/routes/ws/index.d.ts +2 -1
- package/dist/routes/ws/index.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/routes/ws/shared-sockets.d.ts +52 -0
- package/dist/routes/ws/shared-sockets.d.ts.map +1 -0
- package/dist/schemas/actions.d.ts +7 -7
- package/dist/schemas/activity.d.ts +8 -8
- package/dist/schemas/agent-approvals.d.ts +27 -27
- package/dist/schemas/agents.d.ts +195 -154
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +12 -12
- package/dist/schemas/artifacts.d.ts +2106 -127
- package/dist/schemas/artifacts.d.ts.map +1 -1
- package/dist/schemas/auth.d.ts +63 -63
- package/dist/schemas/connectors.d.ts +180 -20
- package/dist/schemas/connectors.d.ts.map +1 -1
- package/dist/schemas/datasets.d.ts +44 -44
- package/dist/schemas/event-payloads.d.ts +2 -2
- package/dist/schemas/events.d.ts +26 -26
- package/dist/schemas/events.d.ts.map +1 -1
- package/dist/schemas/files.d.ts +12 -0
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/lake.d.ts +251 -0
- package/dist/schemas/lake.d.ts.map +1 -0
- package/dist/schemas/lineage.d.ts +56 -56
- package/dist/schemas/logs.d.ts +18 -18
- package/dist/schemas/models.d.ts +4 -4
- package/dist/schemas/objects.d.ts.map +1 -1
- package/dist/schemas/ontology.d.ts +14 -14
- package/dist/schemas/pipelines.d.ts +70 -48
- package/dist/schemas/pipelines.d.ts.map +1 -1
- package/dist/schemas/projections.d.ts +14 -14
- package/dist/schemas/projections.d.ts.map +1 -1
- package/dist/schemas/share-grants.d.ts +30 -30
- package/dist/schemas/shared-access.d.ts +17 -4
- package/dist/schemas/shared-access.d.ts.map +1 -1
- package/dist/schemas/status.d.ts +59 -79
- package/dist/schemas/status.d.ts.map +1 -1
- package/dist/schemas/syncs.d.ts +26 -10
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/telemetry.d.ts +26 -26
- package/dist/schemas/workflows.d.ts +19 -19
- package/dist/server.d.ts +13 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/ws.d.ts +3 -0
- package/dist/utils/ws.d.ts.map +1 -1
- package/package.json +11 -7
- package/src/artifacts/frame.ts +4 -13
- package/src/auth/scope.ts +10 -1
- package/src/auth/shared-access.ts +108 -12
- package/src/connectors/http.ts +35 -1
- package/src/live/README.md +136 -0
- package/src/live/awareness.ts +141 -0
- package/src/live/room.ts +933 -0
- package/src/live/rooms.ts +288 -0
- package/src/registerRoutes.ts +2 -0
- package/src/routes/agent-computers.ts +59 -1
- package/src/routes/agent-runners.ts +1 -0
- package/src/routes/artifact-frames.ts +40 -12
- package/src/routes/artifacts.ts +713 -28
- package/src/routes/connector-connection-runs.ts +7 -12
- package/src/routes/connector-connections.ts +10 -7
- package/src/routes/lake.ts +73 -0
- package/src/routes/objects.ts +3 -9
- package/src/routes/pipelines.ts +1 -0
- package/src/routes/shared-access.ts +53 -1
- package/src/routes/status.ts +9 -4
- package/src/routes/syncs.ts +1 -0
- package/src/routes/webhooks.ts +44 -3
- package/src/routes/ws/artifacts.ts +138 -0
- package/src/routes/ws/events.ts +7 -2
- package/src/routes/ws/index.ts +13 -2
- package/src/routes/ws/shared-sockets.ts +152 -0
- package/src/schemas/agents.ts +11 -0
- package/src/schemas/artifacts.ts +255 -18
- package/src/schemas/connectors.ts +17 -2
- package/src/schemas/files.ts +12 -0
- package/src/schemas/lake.ts +53 -0
- package/src/schemas/objects.ts +1 -0
- package/src/schemas/pipelines.ts +2 -0
- package/src/schemas/projections.ts +2 -2
- package/src/schemas/shared-access.ts +16 -0
- package/src/schemas/status.ts +16 -22
- package/src/schemas/syncs.ts +2 -0
- package/src/server.ts +35 -4
- package/src/utils/ws.ts +7 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { SharedSessionContext } from "@sixb/core/internal/shares";
|
|
2
|
+
import type { SharedAccessBoundary } from "../../auth/shared-access";
|
|
3
|
+
/**
|
|
4
|
+
* How long a shared link's socket trusts its session before reading it again: on a timer, so a
|
|
5
|
+
* socket that only listens closes too, and on its next message past that.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SHARED_SOCKET_RECHECK_MS = 10000;
|
|
8
|
+
/**
|
|
9
|
+
* The close code of a socket whose shared link ended: revoked, expired, or left idle. The client
|
|
10
|
+
* stops reconnecting on it (`SHARED_ACCESS_ENDED_CLOSE_CODE` in `@sixb/client`).
|
|
11
|
+
*/
|
|
12
|
+
export declare const SHARED_ACCESS_ENDED_CLOSE_CODE = 4401;
|
|
13
|
+
/** A socket, as far as watching it goes: closing it. */
|
|
14
|
+
export interface ClosableSocket {
|
|
15
|
+
close(code?: number, reason?: string): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The sockets shared links' sessions opened, each kept open only while its session holds.
|
|
19
|
+
*
|
|
20
|
+
* The upgrade proved the session once, as any request does, and the socket's SDK keeps that
|
|
21
|
+
* authority. A link revoked or a session expired since would go unnoticed, so each socket reads its
|
|
22
|
+
* session again, by its id, at most every {@link SHARED_SOCKET_RECHECK_MS}, and is closed with
|
|
23
|
+
* {@link SHARED_ACCESS_ENDED_CLOSE_CODE} once it ended. Reading it renews nothing: only a visitor's
|
|
24
|
+
* own requests keep their session from idling out.
|
|
25
|
+
*/
|
|
26
|
+
export declare class SharedSockets {
|
|
27
|
+
private readonly boundary;
|
|
28
|
+
private readonly watches;
|
|
29
|
+
/**
|
|
30
|
+
* The open sockets of each session, read again at once when its visitor gives a name. Keyed by
|
|
31
|
+
* `wsStateKey`: Elysia hands each handler a wrapper of its own around the one raw socket.
|
|
32
|
+
*/
|
|
33
|
+
private readonly sockets;
|
|
34
|
+
constructor(boundary: SharedAccessBoundary);
|
|
35
|
+
/**
|
|
36
|
+
* Starts watching a socket that a shared link's session opened; any other is left alone.
|
|
37
|
+
* `onRenamed` hears when its visitor gives a name, or another, read from their session.
|
|
38
|
+
*/
|
|
39
|
+
open(ws: ClosableSocket, onRenamed?: () => void): void;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the socket may go on: false once the session that opened it ended, and the socket is
|
|
42
|
+
* closing. Always true for a socket no shared link opened.
|
|
43
|
+
*/
|
|
44
|
+
holds(ws: ClosableSocket): Promise<boolean>;
|
|
45
|
+
/** The session that opened the socket, as it is now: its visitor's name, once they gave one. */
|
|
46
|
+
session(ws: ClosableSocket): Promise<SharedSessionContext | null>;
|
|
47
|
+
/** Stops watching a socket that closed. */
|
|
48
|
+
close(ws: ClosableSocket): void;
|
|
49
|
+
private read;
|
|
50
|
+
private end;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=shared-sockets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-sockets.d.ts","sourceRoot":"","sources":["../../../src/routes/ws/shared-sockets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAGpE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAS,CAAA;AAE9C;;;GAGG;AACH,eAAO,MAAM,8BAA8B,OAAO,CAAA;AAKlD,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5C;AAYD;;;;;;;;GAQG;AACH,qBAAa,aAAa;IAQZ,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAPrC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA+B;IACvD;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiD;gBAE5C,QAAQ,EAAE,oBAAoB;IAY3D;;;OAGG;IACH,IAAI,CAAC,EAAE,EAAE,cAAc,EAAE,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;IAiBtD;;;OAGG;IACG,KAAK,CAAC,EAAE,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IASjD,gGAAgG;IAC1F,OAAO,CAAC,EAAE,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IASvE,2CAA2C;IAC3C,KAAK,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI;IAY/B,OAAO,CAAC,IAAI;IAuBZ,OAAO,CAAC,GAAG;CAQZ"}
|
|
@@ -95,13 +95,13 @@ export declare const ActionRunInProgressResponseSchema: z.ZodObject<{
|
|
|
95
95
|
export declare const ActionRequestFailedResponseSchema: z.ZodObject<{
|
|
96
96
|
error: z.ZodString;
|
|
97
97
|
} & {
|
|
98
|
-
code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
|
|
98
|
+
code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
error: string;
|
|
101
|
-
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
101
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
102
102
|
}, {
|
|
103
103
|
error: string;
|
|
104
|
-
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
104
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
105
105
|
}>;
|
|
106
106
|
/** The server is stopping and refused the request before starting anything. */
|
|
107
107
|
export declare const RuntimeStoppingResponseSchema: z.ZodObject<{
|
|
@@ -163,6 +163,7 @@ export declare const ActionCatalogItemSchema: z.ZodObject<{
|
|
|
163
163
|
}>;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
165
|
id: string;
|
|
166
|
+
name: string;
|
|
166
167
|
params: {
|
|
167
168
|
id: string;
|
|
168
169
|
name: string;
|
|
@@ -172,7 +173,6 @@ export declare const ActionCatalogItemSchema: z.ZodObject<{
|
|
|
172
173
|
semanticType?: string | undefined;
|
|
173
174
|
schema?: unknown;
|
|
174
175
|
}[];
|
|
175
|
-
name: string;
|
|
176
176
|
phases: {
|
|
177
177
|
validate: boolean;
|
|
178
178
|
writeback: boolean;
|
|
@@ -183,6 +183,7 @@ export declare const ActionCatalogItemSchema: z.ZodObject<{
|
|
|
183
183
|
objectTypeId?: string | undefined;
|
|
184
184
|
}, {
|
|
185
185
|
id: string;
|
|
186
|
+
name: string;
|
|
186
187
|
params: {
|
|
187
188
|
id: string;
|
|
188
189
|
name: string;
|
|
@@ -192,7 +193,6 @@ export declare const ActionCatalogItemSchema: z.ZodObject<{
|
|
|
192
193
|
semanticType?: string | undefined;
|
|
193
194
|
schema?: unknown;
|
|
194
195
|
}[];
|
|
195
|
-
name: string;
|
|
196
196
|
phases: {
|
|
197
197
|
validate: boolean;
|
|
198
198
|
writeback: boolean;
|
|
@@ -253,6 +253,7 @@ export declare const ActionDetailSchema: z.ZodObject<{
|
|
|
253
253
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
254
254
|
}, "strip", z.ZodTypeAny, {
|
|
255
255
|
id: string;
|
|
256
|
+
name: string;
|
|
256
257
|
params: {
|
|
257
258
|
id: string;
|
|
258
259
|
name: string;
|
|
@@ -262,7 +263,6 @@ export declare const ActionDetailSchema: z.ZodObject<{
|
|
|
262
263
|
semanticType?: string | undefined;
|
|
263
264
|
schema?: unknown;
|
|
264
265
|
}[];
|
|
265
|
-
name: string;
|
|
266
266
|
phases: {
|
|
267
267
|
validate: boolean;
|
|
268
268
|
writeback: boolean;
|
|
@@ -274,6 +274,7 @@ export declare const ActionDetailSchema: z.ZodObject<{
|
|
|
274
274
|
objectTypeId?: string | undefined;
|
|
275
275
|
}, {
|
|
276
276
|
id: string;
|
|
277
|
+
name: string;
|
|
277
278
|
params: {
|
|
278
279
|
id: string;
|
|
279
280
|
name: string;
|
|
@@ -283,7 +284,6 @@ export declare const ActionDetailSchema: z.ZodObject<{
|
|
|
283
284
|
semanticType?: string | undefined;
|
|
284
285
|
schema?: unknown;
|
|
285
286
|
}[];
|
|
286
|
-
name: string;
|
|
287
287
|
phases: {
|
|
288
288
|
validate: boolean;
|
|
289
289
|
writeback: boolean;
|
|
@@ -46,13 +46,13 @@ export declare const ActivityEventInputSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
46
46
|
route: z.ZodEffects<z.ZodString, string, string>;
|
|
47
47
|
}, "strict", z.ZodTypeAny, {
|
|
48
48
|
id: string;
|
|
49
|
-
type: "ui.interaction";
|
|
50
49
|
name: string;
|
|
50
|
+
type: "ui.interaction";
|
|
51
51
|
route: string;
|
|
52
52
|
}, {
|
|
53
53
|
id: string;
|
|
54
|
-
type: "ui.interaction";
|
|
55
54
|
name: string;
|
|
55
|
+
type: "ui.interaction";
|
|
56
56
|
route: string;
|
|
57
57
|
}>]>;
|
|
58
58
|
export declare const CaptureActivityBodySchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -103,13 +103,13 @@ export declare const CaptureActivityBodySchema: z.ZodEffects<z.ZodObject<{
|
|
|
103
103
|
route: z.ZodEffects<z.ZodString, string, string>;
|
|
104
104
|
}, "strict", z.ZodTypeAny, {
|
|
105
105
|
id: string;
|
|
106
|
-
type: "ui.interaction";
|
|
107
106
|
name: string;
|
|
107
|
+
type: "ui.interaction";
|
|
108
108
|
route: string;
|
|
109
109
|
}, {
|
|
110
110
|
id: string;
|
|
111
|
-
type: "ui.interaction";
|
|
112
111
|
name: string;
|
|
112
|
+
type: "ui.interaction";
|
|
113
113
|
route: string;
|
|
114
114
|
}>]>, "many">;
|
|
115
115
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -125,8 +125,8 @@ export declare const CaptureActivityBodySchema: z.ZodEffects<z.ZodObject<{
|
|
|
125
125
|
} | undefined;
|
|
126
126
|
} | {
|
|
127
127
|
id: string;
|
|
128
|
-
type: "ui.interaction";
|
|
129
128
|
name: string;
|
|
129
|
+
type: "ui.interaction";
|
|
130
130
|
route: string;
|
|
131
131
|
})[];
|
|
132
132
|
}, {
|
|
@@ -142,8 +142,8 @@ export declare const CaptureActivityBodySchema: z.ZodEffects<z.ZodObject<{
|
|
|
142
142
|
} | undefined;
|
|
143
143
|
} | {
|
|
144
144
|
id: string;
|
|
145
|
-
type: "ui.interaction";
|
|
146
145
|
name: string;
|
|
146
|
+
type: "ui.interaction";
|
|
147
147
|
route: string;
|
|
148
148
|
})[];
|
|
149
149
|
}>, {
|
|
@@ -159,8 +159,8 @@ export declare const CaptureActivityBodySchema: z.ZodEffects<z.ZodObject<{
|
|
|
159
159
|
} | undefined;
|
|
160
160
|
} | {
|
|
161
161
|
id: string;
|
|
162
|
-
type: "ui.interaction";
|
|
163
162
|
name: string;
|
|
163
|
+
type: "ui.interaction";
|
|
164
164
|
route: string;
|
|
165
165
|
})[];
|
|
166
166
|
}, {
|
|
@@ -176,8 +176,8 @@ export declare const CaptureActivityBodySchema: z.ZodEffects<z.ZodObject<{
|
|
|
176
176
|
} | undefined;
|
|
177
177
|
} | {
|
|
178
178
|
id: string;
|
|
179
|
-
type: "ui.interaction";
|
|
180
179
|
name: string;
|
|
180
|
+
type: "ui.interaction";
|
|
181
181
|
route: string;
|
|
182
182
|
})[];
|
|
183
183
|
}>;
|