@miadi/connector 0.1.42 → 0.1.44
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 +35 -2
- package/dist/runtime-steer.js +4 -4
- package/dist/screenwalks.d.ts +243 -0
- package/dist/screenwalks.js +455 -0
- package/dist/server.d.ts +1 -1
- package/dist/server.js +3 -2
- package/dist/tools.js +410 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -22,9 +22,9 @@ Call `get_capabilities` first. It names the signed-in person, their Miadi API ti
|
|
|
22
22
|
|
|
23
23
|
| kind | tools |
|
|
24
24
|
|---|---|
|
|
25
|
-
| reads | `get_capabilities` `get_context` `list_circles` `get_circle` `list_sessions` `search_sessions` `get_session` `get_evidence` `list_episode_comments` `read_episode_file` `get_evaluations` `get_narrative_beats` `review_lookup` `review_versions` `review_transcript_status` `handoff_status` `list_records` `get_run_result` `mission_status` `provider_capabilities` `mission_model_preflight` `search` `fetch` `list_research_artifacts` `read_research_artifact` |
|
|
25
|
+
| reads | `get_capabilities` `get_context` `list_circles` `get_circle` `list_sessions` `search_sessions` `get_session` `get_evidence` `list_episode_comments` `read_episode_file` `get_evaluations` `get_narrative_beats` `review_lookup` `review_versions` `review_transcript_status` `get_screenwalk` `list_screenwalks` `handoff_status` `list_records` `get_run_result` `mission_status` `provider_capabilities` `mission_model_preflight` `search` `fetch` `list_research_artifacts` `read_research_artifact` |
|
|
26
26
|
| contributions | `ensure_review_transcript` `append_observation` `comment_on_episode` `open_inquiry` `link_records` `propose_narrative_beat` `record_evaluation` `register_source_intent` `record_handoff` `update_handoff` `prepare_calendar_event` `save_research` |
|
|
27
|
-
| requests (approved by a person) | `propose_work` `propose_session_completion` `request_authorized_run` `request_session_steer` `revoke_session_steering` `request_review_operation` `request_deep_diver` `link_review_to_episode` `request_inquiry_episode` |
|
|
27
|
+
| requests (approved by a person) | `propose_work` `propose_session_completion` `request_authorized_run` `request_session_steer` `revoke_session_steering` `request_review_operation` `request_screenwalk_review` `request_deep_diver` `link_review_to_episode` `request_inquiry_episode` |
|
|
28
28
|
| decisions in the conversation | `show_decisions` (cards), `decide_request` (called by the card only) |
|
|
29
29
|
|
|
30
30
|
- **Reads** need Miadi's read tier and stay within it. A person Miadi gives no API tier reaches only `get_capabilities`. Sessions need the write tier, because a session's name and pane are operator data. For the same reason, below the write tier a record someone else made shows no session, working folder or seat, and no long bodies.
|
|
@@ -59,6 +59,38 @@ A review is processed from the words of its video, so the connector acquires the
|
|
|
59
59
|
- **A worker's door.** A factory worker's account holds no Miadi API tier, so it cannot call the tools. `node packages/connector/scripts/ensure-transcript.mjs <review id> --mission run_request:<id> [--verify]` runs the same job under an approved run or work proposal that names the review (a person with the write tier approved it, and the job records the mission and who approved it). `--status` reads the state without a mission. A second process's attempt is left alone until it has written no stage for five minutes.
|
|
60
60
|
- **The host's reading runtime.** `get_capabilities` loads the module `MIADI_READING_ADAPTER` names (`scripts/host-reading-runtime.mjs` in the source tree) and reports `reading_workflow.provider_runtime` from what it finds: `verified_transcript_only` while only caption acquisition has a provider. A reading acquires its transcript with the same reader and the same language rule, keeps durable stage receipts, and stops at the generation stages with a named blocker. Acquiring a transcript does not depend on the review service's import handshake.
|
|
61
61
|
|
|
62
|
+
### Registered screenwalks
|
|
63
|
+
|
|
64
|
+
A screenwalk registered in the Screenwalk Registry is read with `get_screenwalk`, by its registry id (`2612021410`), by `miadi-screenwalk:<id>`, or by its page URL on this factory (`<Miadi's public address>/screenwalks/<id>`). `list_screenwalks` lists the registrations a person may see, by the day they were registered, status, coverage, a name or a video (jgwill/Miadi#1180).
|
|
65
|
+
|
|
66
|
+
Three owners stay apart. The registry owns the registration. The connector gives authorized access to it. A review uses a registered video as its source, under a separate decision.
|
|
67
|
+
|
|
68
|
+
- **Whose authority.** Every call goes to Miadi's registry door (`/api/screenwalks/registrations`) with the signed-in person's own token. The registry's rights decide what is read: a person who may review or steward registrations, or who facilitates a circle of the episode. The connector holds no registry credential. A registration that does not exist and one out of reach answer the same `not_found`.
|
|
69
|
+
- **What a reference may be.** A URL is read only for the id it carries, and only when it is on Miadi's public address or the address the connector calls. Nothing is fetched from an address a caller supplies. A screenwalk is named by its registry id: the episode that keeps its file is never used to find it.
|
|
70
|
+
- **What comes back.** The registration in the registry's own schema, with its registry id and page, the canonical YouTube URL and video id, the safe title, title and description with where they stand (`proposed`, `needs_review`, `approved`…), the revision, who registered it, and counts of what it holds (question sets and their states, segments, purpose lists and items, relations by kind). `parts` keeps the top-level parts named, `purpose` one purpose list. `format: "brief"` gives the registry's Markdown brief and `format: "moments"` its moment index. Every answer says which door was read, as whom, when and at which revision.
|
|
71
|
+
- **Large registrations.** A selection larger than `max_bytes` (default 100,000) comes as pages of its JSON text with the total size and sha256. A page read against another revision is refused. Nothing is cut silently.
|
|
72
|
+
- **What it is not.** The inventory is the registry's record of what was asked about a video. It is not a review and not a transcript, and no tool copies it into one. The registry records no validation verdict, and the answer says so.
|
|
73
|
+
|
|
74
|
+
`request_screenwalk_review` is the one step from a registration to its Miadi Review, safe to repeat:
|
|
75
|
+
|
|
76
|
+
1. It reads the registration as the person and takes the video's YouTube id.
|
|
77
|
+
2. It searches the Miadi Review Service for that id (`GET /api/reviews/search`, exact match on `video_id`). A search that cannot run answers `lookup_unavailable` and writes nothing.
|
|
78
|
+
3. One review: no review is created. The relation is recorded on both sides (below) and the review is returned.
|
|
79
|
+
4. No review: one `review_operation_request` (`create`) is prepared for the canonical video, with `body.source` naming the registration's reference, the revision read and the matching key. It waits for a person like every review operation. Asking again, as anyone, returns that request. Once it is approved and the review exists, asking again records the relation.
|
|
80
|
+
5. Several reviews: `ambiguous`, with the candidates. Nothing is written.
|
|
81
|
+
|
|
82
|
+
The relation between a registration and a review uses two records that already existed, and no new kind:
|
|
83
|
+
|
|
84
|
+
| direction | where | record |
|
|
85
|
+
|---|---|---|
|
|
86
|
+
| review to registration | the connector's records | a `link` from `miadi-screenwalk:<id>` to `miadi-review:<uuid>`, relation `review_created_from_source` (the name these records already gave a source and its review). `review_lookup` returns it as `screenwalks`, and Miadi's `/reviews/<id>` lists it |
|
|
87
|
+
| registration to review | the registration | a `correlates` relation to `miadi-review://<uuid>`, written with the registry's own `relate` act as the person. It needs the right to steward registrations. Without it the answer says `not_recorded` and the link above still stands |
|
|
88
|
+
|
|
89
|
+
The Review Service itself stores no source relation, and the registry has no relation kind that means "its review": `correlates` is its kind for an external record that points at the same work.
|
|
90
|
+
|
|
91
|
+
A step that asks for a review when a screenwalk is registered would call `request_screenwalk_review` from Miadi's registry door, after the registration lands, with the registrant's token (`lib/connector-tool.ts` `callConnectorTool`). That step is not built.
|
|
92
|
+
|
|
93
|
+
|
|
62
94
|
### Revising a mission before it is decided
|
|
63
95
|
|
|
64
96
|
A mission is revised, never re-requested. `revise_pending_request` changes an agent run or work proposal that still awaits a decision, or that its approver sent back, and gives it its next version. Pass the version you read as `expected_version` and only the fields that change. The request keeps its id, its approval page and its one card. A change of `provider` is verified on the host again. Each revision is a record in the ledger carrying the whole new content, its reason, author, changed fields and `sha256` content hash, so every earlier version stays readable verbatim with `get_request_history`. A request already approved, queued or declined is refused: a change after a decision is a new request or a steer.
|
|
@@ -274,6 +306,7 @@ The issues and the episode behind each part. `jgwill/Miadi` is a private reposit
|
|
|
274
306
|
| the mission standard, and the local reviewer that will check S2 (A3) | jgwill/Miadi#939 |
|
|
275
307
|
| the tests the standard's bars were read from | Episode 564 (miadi-chronicle://564), `mission-draft-review-261105/` |
|
|
276
308
|
| the factory's review pages | jgwill/Miadi#961 |
|
|
309
|
+
| registered screenwalks read through the registry door, and the step to their review | jgwill/Miadi#1180 (the registry's identity: jgwill/Miadi#1112) |
|
|
277
310
|
| what a published README holds | jgwill/Miadi#685 |
|
|
278
311
|
|
|
279
312
|
On the factory host (gaia) the connector runs as the user service `miadi-connector.service`, installed from the Miadi repository's `scripts/ops/etc/miadi-connector.user.service`. That host's `/etc/miadi/miadi.env` sets `MIADI_CONNECTOR_PUBLIC_URL`, and the Cloudflare tunnel `gaia` serves that address from the loopback port. Its reading runtime is `packages/connector/scripts/host-reading-runtime.mjs`.
|
package/dist/runtime-steer.js
CHANGED
|
@@ -214,14 +214,14 @@ function findEnvelope(root, sessionId, steer) {
|
|
|
214
214
|
for (const state of INBOX_DIRS) {
|
|
215
215
|
let names;
|
|
216
216
|
try {
|
|
217
|
-
names = readdirSync(join(dir, state));
|
|
217
|
+
names = readdirSync(join(/*turbopackIgnore: true*/ dir, state));
|
|
218
218
|
}
|
|
219
219
|
catch {
|
|
220
220
|
continue;
|
|
221
221
|
}
|
|
222
222
|
const name = names.find((n) => n.endsWith(suffix));
|
|
223
223
|
if (name)
|
|
224
|
-
return { state, file: join(dir, state, name), envelope: readJson(join(dir, state, name)) };
|
|
224
|
+
return { state, file: join(/*turbopackIgnore: true*/ dir, state, name), envelope: readJson(join(/*turbopackIgnore: true*/ dir, state, name)) };
|
|
225
225
|
}
|
|
226
226
|
return null;
|
|
227
227
|
}
|
|
@@ -232,13 +232,13 @@ export function sameInstructionInFlight(deps, sessionId, grant, instruction) {
|
|
|
232
232
|
for (const state of ["pending", "claimed"]) {
|
|
233
233
|
let names;
|
|
234
234
|
try {
|
|
235
|
-
names = readdirSync(join(dir, state));
|
|
235
|
+
names = readdirSync(join(/*turbopackIgnore: true*/ dir, state));
|
|
236
236
|
}
|
|
237
237
|
catch {
|
|
238
238
|
continue;
|
|
239
239
|
}
|
|
240
240
|
for (const name of names) {
|
|
241
|
-
const e = readJson(join(dir, state, name));
|
|
241
|
+
const e = readJson(join(/*turbopackIgnore: true*/ dir, state, name));
|
|
242
242
|
if (e?.grant === grant && e.instruction_sha256 === hash)
|
|
243
243
|
return e.steer;
|
|
244
244
|
}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import type { MiadiClient } from "./miadi.js";
|
|
2
|
+
import type { ConnectorRecord } from "./records.js";
|
|
3
|
+
/**
|
|
4
|
+
* The name the connector's records already give a link from a source to the review made of it
|
|
5
|
+
* (link_records, from the source to miadi-review:<uuid>). A registered screenwalk is such a source.
|
|
6
|
+
*/
|
|
7
|
+
export declare const REVIEW_SOURCE_RELATION = "review_created_from_source";
|
|
8
|
+
/** The registry's relation kind for an external record that points at the same work. */
|
|
9
|
+
export declare const REGISTRY_REVIEW_KIND = "correlates";
|
|
10
|
+
export declare const DEFAULT_REGISTRATION_BYTES = 100000;
|
|
11
|
+
export declare const MAX_REGISTRATION_BYTES: number;
|
|
12
|
+
export declare const MIN_REGISTRATION_BYTES = 4000;
|
|
13
|
+
export declare class ScreenwalkRefusal extends Error {
|
|
14
|
+
readonly code: string;
|
|
15
|
+
readonly detail?: unknown | undefined;
|
|
16
|
+
constructor(code: string, message: string, detail?: unknown | undefined);
|
|
17
|
+
}
|
|
18
|
+
export interface ScreenwalkRef {
|
|
19
|
+
id: string;
|
|
20
|
+
/** miadi-screenwalk:<id> */
|
|
21
|
+
reference: string;
|
|
22
|
+
form: "id" | "address" | "page_url" | "record_url";
|
|
23
|
+
}
|
|
24
|
+
/** The origins a screenwalk URL may carry: this factory's public address and the address the connector calls. */
|
|
25
|
+
export declare function registryOrigins(config: {
|
|
26
|
+
miadiUrl: string;
|
|
27
|
+
miadiPublicUrl: string;
|
|
28
|
+
}): string[];
|
|
29
|
+
/**
|
|
30
|
+
* The screenwalk a reference names. A URL is only read for the id it carries, and only when it is on
|
|
31
|
+
* one of the given origins: nothing is fetched from an address a caller supplies.
|
|
32
|
+
*/
|
|
33
|
+
export declare function screenwalkRefOf(input: string, origins: readonly string[]): ScreenwalkRef;
|
|
34
|
+
/** True when a reference a caller gave should be read as a screenwalk before anything else: its address, or a registry URL. */
|
|
35
|
+
export declare function looksLikeScreenwalk(input: string, origins: readonly string[]): boolean;
|
|
36
|
+
export type RegistryFailure = {
|
|
37
|
+
state: "not_found" | "unauthorized" | "forbidden" | "unavailable" | "registry_error";
|
|
38
|
+
status: number;
|
|
39
|
+
message: string;
|
|
40
|
+
};
|
|
41
|
+
export type RegistryRead = {
|
|
42
|
+
state: "found";
|
|
43
|
+
registration: Record<string, any>;
|
|
44
|
+
summary: Record<string, any> | null;
|
|
45
|
+
} | RegistryFailure;
|
|
46
|
+
/** One registration, read as the person. The registry's own rights decide the answer. */
|
|
47
|
+
export declare function readRegistration(miadi: MiadiClient, token: string, id: string): Promise<RegistryRead>;
|
|
48
|
+
/** The registry's Markdown brief (the door's own projection), whole or for one purpose list. */
|
|
49
|
+
export declare function readBrief(miadi: MiadiClient, token: string, id: string, purpose?: string): Promise<{
|
|
50
|
+
state: "found";
|
|
51
|
+
markdown: string;
|
|
52
|
+
} | RegistryFailure>;
|
|
53
|
+
/** The registry's moment index (the door's own projection): one row per timeframe, with the revision it was read at. */
|
|
54
|
+
export declare function readMoments(miadi: MiadiClient, token: string, id: string): Promise<{
|
|
55
|
+
state: "found";
|
|
56
|
+
revision: number | null;
|
|
57
|
+
moments: unknown[];
|
|
58
|
+
} | RegistryFailure>;
|
|
59
|
+
/** The registrations the person may see, as the registry's list door returns them (its own filters applied there). */
|
|
60
|
+
export declare function listRegistrations(miadi: MiadiClient, token: string, filters?: {
|
|
61
|
+
status?: string;
|
|
62
|
+
name?: string;
|
|
63
|
+
coverage?: string;
|
|
64
|
+
}): Promise<{
|
|
65
|
+
state: "found";
|
|
66
|
+
registrations: Record<string, any>[];
|
|
67
|
+
} | RegistryFailure>;
|
|
68
|
+
/** Write one relation on a registration, as the person, naming the revision read. The registry validates and lands it. */
|
|
69
|
+
export declare function relateRegistration(miadi: MiadiClient, token: string, id: string, expectedRevision: number, relation: {
|
|
70
|
+
id: string;
|
|
71
|
+
kind: string;
|
|
72
|
+
target: string;
|
|
73
|
+
label?: string;
|
|
74
|
+
note?: string;
|
|
75
|
+
}): Promise<{
|
|
76
|
+
state: "recorded";
|
|
77
|
+
revision: number | null;
|
|
78
|
+
landing: unknown;
|
|
79
|
+
} | {
|
|
80
|
+
state: "held";
|
|
81
|
+
} | {
|
|
82
|
+
state: "not_recorded";
|
|
83
|
+
reason: "forbidden" | "conflict" | "unavailable" | "refused";
|
|
84
|
+
status: number;
|
|
85
|
+
message: string;
|
|
86
|
+
}>;
|
|
87
|
+
export interface ScreenwalkVideo {
|
|
88
|
+
/** The URL as the registration holds it. */
|
|
89
|
+
url: string | null;
|
|
90
|
+
/** The YouTube video id: the key a review is matched by. Null when the URL names none. */
|
|
91
|
+
video_id: string | null;
|
|
92
|
+
canonical_url: string | null;
|
|
93
|
+
uploaded_title: string | null;
|
|
94
|
+
duration: string | null;
|
|
95
|
+
published_at: string | null;
|
|
96
|
+
channel: string | null;
|
|
97
|
+
captions: string | null;
|
|
98
|
+
}
|
|
99
|
+
/** The registered video with its canonical YouTube identity. A missing field is null, never guessed. */
|
|
100
|
+
export declare function videoOf(registration: Record<string, any>): ScreenwalkVideo;
|
|
101
|
+
/**
|
|
102
|
+
* The safe title, title and description as they stand, with the registry's own word for where they stand
|
|
103
|
+
* (proposed, needs_review, approved, approved_with_changes, rejected). The registry's summary gives the
|
|
104
|
+
* approved names once a person approved them, else the last proposal.
|
|
105
|
+
*/
|
|
106
|
+
export declare function namesOf(registration: Record<string, any>, summary: Record<string, any> | null): {
|
|
107
|
+
state: string | null;
|
|
108
|
+
approved: boolean;
|
|
109
|
+
round: any;
|
|
110
|
+
round_state: string | null;
|
|
111
|
+
safe_title: string | null;
|
|
112
|
+
title: string | null;
|
|
113
|
+
description: string | null;
|
|
114
|
+
uploaded_title: string | null;
|
|
115
|
+
last_decision: {
|
|
116
|
+
decision: string | null;
|
|
117
|
+
by: string | null;
|
|
118
|
+
at: string | null;
|
|
119
|
+
} | null;
|
|
120
|
+
};
|
|
121
|
+
/** What the registration holds, counted from its own parts. Zero means the part is empty; null means the registry records nothing there. */
|
|
122
|
+
export declare function inventoryOf(registration: Record<string, any>): {
|
|
123
|
+
question_sets: number;
|
|
124
|
+
question_set_states: Record<string, number>;
|
|
125
|
+
transcript: any;
|
|
126
|
+
transcript_parts: number;
|
|
127
|
+
segments: number;
|
|
128
|
+
segmentations: number;
|
|
129
|
+
aspects: number;
|
|
130
|
+
sources: number;
|
|
131
|
+
questions: number;
|
|
132
|
+
observations: number;
|
|
133
|
+
purpose_lists: number;
|
|
134
|
+
purpose_items: any;
|
|
135
|
+
purposes: {
|
|
136
|
+
duplicate_of?: any;
|
|
137
|
+
id: any;
|
|
138
|
+
purpose: any;
|
|
139
|
+
label: any;
|
|
140
|
+
items: number;
|
|
141
|
+
}[];
|
|
142
|
+
relations: number;
|
|
143
|
+
relations_by_kind: Record<string, number>;
|
|
144
|
+
names_heard: number;
|
|
145
|
+
topics: number;
|
|
146
|
+
notices: number;
|
|
147
|
+
resupply_open: number;
|
|
148
|
+
testimonies: number;
|
|
149
|
+
amendments: number;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Where a registration stands, each thing by its own name. The registry records where the names stand with a
|
|
153
|
+
* person, how far the questioning reaches and what a person checked. It records no validation verdict: a
|
|
154
|
+
* registration that exists says nothing about another agent's validation pass.
|
|
155
|
+
*/
|
|
156
|
+
export declare function readinessOf(registration: Record<string, any>, summary: Record<string, any> | null): {
|
|
157
|
+
names: string | null;
|
|
158
|
+
coverage: any;
|
|
159
|
+
coverage_note: any;
|
|
160
|
+
checked_by_a_person: any;
|
|
161
|
+
unverified_items: any;
|
|
162
|
+
transcript: any;
|
|
163
|
+
validation: string;
|
|
164
|
+
};
|
|
165
|
+
/** Each top-level part of a registration with its size, so a caller can ask for the parts it needs. */
|
|
166
|
+
export declare function partIndex(registration: Record<string, any>): {
|
|
167
|
+
part: string;
|
|
168
|
+
bytes: number;
|
|
169
|
+
items: number | null;
|
|
170
|
+
}[];
|
|
171
|
+
/**
|
|
172
|
+
* The registration, or the parts asked for, in the registry's own schema. With parts, the identity keys come with
|
|
173
|
+
* them. With a purpose, only that purpose list stays among the purposes. Whatever was left out is named.
|
|
174
|
+
*/
|
|
175
|
+
export declare function selectRegistration(registration: Record<string, any>, options?: {
|
|
176
|
+
parts?: readonly string[];
|
|
177
|
+
purpose?: string;
|
|
178
|
+
}): {
|
|
179
|
+
purpose?: string | undefined;
|
|
180
|
+
purposes_left_out?: string[] | undefined;
|
|
181
|
+
value: Record<string, unknown>;
|
|
182
|
+
returned: string[];
|
|
183
|
+
left_out: string[];
|
|
184
|
+
};
|
|
185
|
+
export interface TextPage {
|
|
186
|
+
bytes: number;
|
|
187
|
+
sha256: string;
|
|
188
|
+
complete: boolean;
|
|
189
|
+
page: {
|
|
190
|
+
offset: number;
|
|
191
|
+
end: number;
|
|
192
|
+
bytes: number;
|
|
193
|
+
next: {
|
|
194
|
+
offset: number;
|
|
195
|
+
revision: string;
|
|
196
|
+
} | null;
|
|
197
|
+
};
|
|
198
|
+
text: string;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* One page of a text. A page never starts or ends inside a character. revision, when given, must still be the
|
|
202
|
+
* text's sha256, so pages of two revisions of a registration are never joined.
|
|
203
|
+
*/
|
|
204
|
+
export declare function pageText(content: string, options?: {
|
|
205
|
+
offset?: number;
|
|
206
|
+
maxBytes?: number;
|
|
207
|
+
revision?: string;
|
|
208
|
+
}): TextPage;
|
|
209
|
+
/** The relations a registration itself holds toward a review: the registration's side of the relation. */
|
|
210
|
+
export declare function reviewRelationsOf(registration: Record<string, any>): {
|
|
211
|
+
id: string;
|
|
212
|
+
kind: string;
|
|
213
|
+
target: string;
|
|
214
|
+
review_id: string;
|
|
215
|
+
by: string | null;
|
|
216
|
+
at: string | null;
|
|
217
|
+
}[];
|
|
218
|
+
/** True when a connector record names this screenwalk: in what it cites, in a link's ends, or as the source of a request. */
|
|
219
|
+
export declare function namesScreenwalk(record: ConnectorRecord, id: string): boolean;
|
|
220
|
+
export interface ScreenwalkReviewRecord {
|
|
221
|
+
record: string;
|
|
222
|
+
kind: string;
|
|
223
|
+
created_at: string;
|
|
224
|
+
by: string;
|
|
225
|
+
/** For a link: its relation's name. */
|
|
226
|
+
relation?: string;
|
|
227
|
+
/** The review the record names, when it names one. */
|
|
228
|
+
review_id: string | null;
|
|
229
|
+
approval_state?: string;
|
|
230
|
+
state?: string;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* The connector's records that relate a screenwalk to a review: a link from the registration to a review, and a
|
|
234
|
+
* review operation asked with the registration as its source (its receipt names the review once it is created).
|
|
235
|
+
*/
|
|
236
|
+
export declare function reviewRecordsOf(records: readonly ConnectorRecord[], id: string): ScreenwalkReviewRecord[];
|
|
237
|
+
/** The screenwalks the connector's records relate to a review: the review's side of the relation. */
|
|
238
|
+
export declare function screenwalksOfReview(records: readonly ConnectorRecord[], reviewId: string): {
|
|
239
|
+
reference: string;
|
|
240
|
+
record: string;
|
|
241
|
+
kind: string;
|
|
242
|
+
relation?: string;
|
|
243
|
+
}[];
|