@vincemakes/kiso-protocol 0.44.0 → 0.45.0
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/index.d.ts +18 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -50,6 +50,12 @@ export interface RunRequest {
|
|
|
50
50
|
/** The log holds an open run from a previous process: resume it first. */
|
|
51
51
|
readonly resumeFirst?: boolean;
|
|
52
52
|
}
|
|
53
|
+
/** ADR-0057: a person's input for the live run, admitted at its next Safe
|
|
54
|
+
* Admission boundary. */
|
|
55
|
+
export interface SteerRequest {
|
|
56
|
+
readonly sessionId: string;
|
|
57
|
+
readonly input: WireInput;
|
|
58
|
+
}
|
|
53
59
|
export interface ResumeRequest {
|
|
54
60
|
readonly sessionId: string;
|
|
55
61
|
}
|
|
@@ -76,6 +82,16 @@ export interface SubscribeRequest {
|
|
|
76
82
|
export interface RunReply {
|
|
77
83
|
readonly runId: string;
|
|
78
84
|
}
|
|
85
|
+
export interface SteerReply {
|
|
86
|
+
readonly runId: string;
|
|
87
|
+
}
|
|
88
|
+
/** ADR-0057: the data of the non-durable `event: unadmitted` frame a stream
|
|
89
|
+
* carries right after a run's terminal — input a steer handed the run that
|
|
90
|
+
* it never admitted. The client starts a new run with it. */
|
|
91
|
+
export interface UnadmittedFrameData {
|
|
92
|
+
readonly runId: string;
|
|
93
|
+
readonly items: readonly WireInput[];
|
|
94
|
+
}
|
|
79
95
|
export interface ApproveReply {
|
|
80
96
|
/** No run was live to consume the answer: the decision is durable, and
|
|
81
97
|
* a resume is what makes the run continue. */
|
|
@@ -106,7 +122,8 @@ export interface SessionState {
|
|
|
106
122
|
readonly pendingApprovals: readonly WireApproval[];
|
|
107
123
|
readonly uncertain: readonly WireUncertain[];
|
|
108
124
|
}
|
|
109
|
-
|
|
125
|
+
/** `idle` / `closed` (ADR-0057): a steer found no live run, or a run whose ingress had sealed. */
|
|
126
|
+
export type WireErrorCode = "in_flight" | "open_run" | "draining" | "idle" | "closed" | "not_found" | "bad_request" | "forbidden" | "internal";
|
|
110
127
|
export interface WireError {
|
|
111
128
|
readonly code: WireErrorCode;
|
|
112
129
|
readonly message: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "kiso protocol — the wire contract between a hosted kiso session and its clients: request envelopes, wire events (a projection of the durable stream, never the stream itself), the session snapshot, one error shape, a version. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|