@aiquants/enrichment-react 0.6.1 → 0.7.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/README.md +220 -120
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +177 -77
- package/dist/index.d.ts +177 -77
- package/dist/index.js +3 -3
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CircuitBreakerStatus, SearchDegradationReason, SearchMode, SearchQualityTier, CircuitBreakerService, SearchFusion, FilterableConfidentialityLevel, DiffLinePage, DocumentHistory, DocumentComparison, DocumentChangeFeedPage, DocumentCaptureAnswer, SourceSpec, ConfidentialityLevel, ReadableEntry, PipelineRunStatus, StoredTerm,
|
|
3
|
-
import {
|
|
1
|
+
import { ResourceOutcome, ConsoleUiLabels, FigureBoxLines, CellContent } from "@aiquants/console-ui/core";
|
|
2
|
+
import { ChildRunPage, CircuitBreakerStatus, SearchDegradationReason, SearchMode, SearchQualityTier, CircuitBreakerService, SearchFusion, FilterableConfidentialityLevel, DiffLinePage, DocumentHistory, DocumentComparison, DocumentChangeFeedPage, DocumentCaptureAnswer, SourceSpec, ConfidentialityLevel, ReadableEntry, PipelineRunStatus, StoredTerm, ReleasedStepKey, RestrictedRunMark, RemovableProtectionScheme, UnlockDisposition, CopyReason, RestrictedIngestMark, ChunkBodyFidelity, ChunkChangeKind, DocumentStateCause, DocumentFacet, FacetChangeCounts, JsonValue, EnrichmentStageKey, ActiveIngestionJobState, IngestionJobPage, IngestionJob, IngestionJobItem, IngestionQueueHealth, PipelinePhase, PipelineFlowCatalog, PipelineStepMetric, DocumentKind, PipelineFlowEntry, GateSpec, ProcessingObjectFilter, ProcessingObjectPage, MimeKindRule, ProcessingNodeReading, ProcessingObjectItem, NothingToReadToken, PipelineStepStatus, PipelineTrigger, RunTerminalStepOutcome, LedgerStepKey, RestrictedFailureMark, EnrichmentSyncStatus } from "@aiquants/enrichment-core";
|
|
3
|
+
import React, { ReactNode, JSX, ReactElement, ComponentProps, Ref } from "react";
|
|
4
|
+
import { FigureNodeProps } from "@aiquants/console-ui";
|
|
5
|
+
declare const CHILD_RUNS_REFUSAL = "\u5B50\u306E\u5B9F\u884C\u3092\u95B2\u89A7\u3059\u308B\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
6
|
+
type ChildRunPageReader = (rootRunId: number, after: number | null, signal: AbortSignal) => Promise<ResourceOutcome<ChildRunPage>>;
|
|
7
|
+
interface ChildRunListProps {
|
|
8
|
+
readonly rootRunId: number;
|
|
9
|
+
readonly read: ChildRunPageReader;
|
|
10
|
+
readonly caption: string;
|
|
11
|
+
readonly rescueTarget: () => HTMLElement | null;
|
|
12
|
+
readonly testId: string;
|
|
13
|
+
}
|
|
14
|
+
declare function ChildRunList({ rootRunId, read, caption, rescueTarget, testId }: ChildRunListProps): ReactNode;
|
|
4
15
|
interface DocumentSearchParams {
|
|
5
16
|
readonly q: string;
|
|
6
17
|
readonly mode: SearchMode;
|
|
@@ -166,8 +177,9 @@ interface DocumentHistoryInspectorProps {
|
|
|
166
177
|
readonly onClose: () => void;
|
|
167
178
|
readonly returnFocusFallback: () => HTMLElement | null;
|
|
168
179
|
readonly captureState?: DocumentStateCapture;
|
|
180
|
+
readonly canSendCommands: boolean;
|
|
169
181
|
}
|
|
170
|
-
declare function DocumentHistoryInspector({ host, metadataId, target, openRequest, onClose, returnFocusFallback, captureState }: DocumentHistoryInspectorProps): ReactNode;
|
|
182
|
+
declare function DocumentHistoryInspector({ host, metadataId, target, openRequest, onClose, returnFocusFallback, captureState, canSendCommands }: DocumentHistoryInspectorProps): ReactNode;
|
|
171
183
|
interface DocumentIngestLabel {
|
|
172
184
|
labelKey: string;
|
|
173
185
|
category: "user" | "system" | "domain";
|
|
@@ -181,20 +193,23 @@ interface DocumentIngestPayload {
|
|
|
181
193
|
titleOverride?: string | null;
|
|
182
194
|
labels: DocumentIngestLabel[];
|
|
183
195
|
}
|
|
184
|
-
|
|
196
|
+
type FileInspectionResult = {
|
|
185
197
|
fileUri: string;
|
|
186
|
-
exists:
|
|
198
|
+
exists: true;
|
|
187
199
|
fileName: string;
|
|
188
200
|
fileSize: number;
|
|
189
201
|
mimeType: string;
|
|
190
202
|
mtime: string | null;
|
|
191
203
|
revisionId: string | null;
|
|
192
|
-
}
|
|
204
|
+
} | {
|
|
205
|
+
fileUri: string;
|
|
206
|
+
exists: false;
|
|
207
|
+
};
|
|
193
208
|
interface RecentIngestLastRun {
|
|
194
209
|
runId: number;
|
|
195
210
|
status: PipelineRunStatus;
|
|
196
211
|
retryScheduled: boolean;
|
|
197
|
-
failedStepKey: StoredTerm<
|
|
212
|
+
failedStepKey: StoredTerm<ReleasedStepKey> | null;
|
|
198
213
|
finishedAt: string | null;
|
|
199
214
|
}
|
|
200
215
|
interface RecentIngestUnlock {
|
|
@@ -245,6 +260,7 @@ interface DocumentIngestConsoleProps {
|
|
|
245
260
|
isSubmitting?: boolean;
|
|
246
261
|
isInspecting?: boolean;
|
|
247
262
|
isBusy?: boolean;
|
|
263
|
+
canSendCommands: boolean;
|
|
248
264
|
promotingId?: number | null;
|
|
249
265
|
onInspectUri?: (fileUri: string) => void;
|
|
250
266
|
onIngestDocument?: (payload: DocumentIngestPayload) => void;
|
|
@@ -254,7 +270,21 @@ interface DocumentIngestConsoleProps {
|
|
|
254
270
|
listRefusal?: string;
|
|
255
271
|
onShowAllObjects?: () => void;
|
|
256
272
|
}
|
|
257
|
-
declare
|
|
273
|
+
declare const REQUIRED_FIELD_MARK = "(\u5FC5\u9808)";
|
|
274
|
+
declare const ROWS_BUSY_TEXT = "\u9001\u4FE1\u306E\u7B54\u3048\u3092\u5F85\u3063\u3066\u3044\u307E\u3059\u3002\u7B54\u3048\u304C\u5C4A\u304F\u307E\u3067\u884C\u306E\u64CD\u4F5C\u306F\u62BC\u305B\u307E\u305B\u3093\u3002";
|
|
275
|
+
declare const INGEST_FORBIDDEN_SENTENCE = "\u6587\u66F8\u3092\u53D6\u308A\u8FBC\u3080\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
276
|
+
declare const INSPECT_BLOCKED_REASONS: {
|
|
277
|
+
readonly invalidUri: "URI \u3092\u6B63\u3057\u304F\u5165\u529B\u3059\u308B\u3068\u691C\u8A3C\u3067\u304D\u307E\u3059\u3002";
|
|
278
|
+
readonly busy: "\u9001\u4FE1\u306E\u7B54\u3048\u3092\u5F85\u3063\u3066\u3044\u307E\u3059\u3002";
|
|
279
|
+
};
|
|
280
|
+
declare const SUBMIT_BLOCKED_REASONS: {
|
|
281
|
+
readonly noSource: "\u53D6\u308A\u8FBC\u3081\u308B\u6E90\u304C\u914D\u5099\u306B\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
282
|
+
readonly invalidUri: "\u30D5\u30A1\u30A4\u30EB URI \u3092\u6B63\u3057\u304F\u5165\u529B\u3059\u308B\u3068\u53D6\u308A\u8FBC\u3081\u307E\u3059\u3002";
|
|
283
|
+
readonly noDomain: "\u30C9\u30E1\u30A4\u30F3\u304C\u7121\u3044\u305F\u3081\u53D6\u308A\u8FBC\u3081\u307E\u305B\u3093\u3002";
|
|
284
|
+
readonly inspecting: "URI \u306E\u4E8B\u524D\u691C\u8A3C\u306E\u7B54\u3048\u3092\u5F85\u3063\u3066\u3044\u307E\u3059\u3002";
|
|
285
|
+
readonly busy: "\u9001\u4FE1\u306E\u7B54\u3048\u3092\u5F85\u3063\u3066\u3044\u307E\u3059\u3002";
|
|
286
|
+
};
|
|
287
|
+
declare function DocumentIngestConsole({ policies, tenantId, sources, domainOptions, recentItems, inspectionResult, isSubmitting, isInspecting, isBusy, canSendCommands, promotingId, onInspectUri, onIngestDocument, onRetryItem, onShowHistory, onPromoteUnlockedCopy, listRefusal, onShowAllObjects, }: DocumentIngestConsoleProps): ReactNode;
|
|
258
288
|
declare const FACET_LABELS: Readonly<Record<DocumentFacet, string>>;
|
|
259
289
|
declare const DOCUMENT_STATE_CAUSE_LABELS: Readonly<Record<DocumentStateCause, string>>;
|
|
260
290
|
declare const CHUNK_CHANGE_KIND_LABELS: Readonly<Record<ChunkChangeKind, string>>;
|
|
@@ -277,6 +307,7 @@ declare function revisionTransitionText(previousRevision: number, revision: numb
|
|
|
277
307
|
declare function facetCountsText(counts: FacetChangeCounts): string;
|
|
278
308
|
declare function jsonValueText(value: JsonValue): string;
|
|
279
309
|
declare const HISTORY_REFUSAL = "\u6587\u66F8\u306E\u5C65\u6B74\u3092\u95B2\u89A7\u3059\u308B\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
310
|
+
declare const CAPTURE_FORBIDDEN_SENTENCE = "\u6587\u66F8\u306E\u72B6\u614B\u3092\u8A18\u9332\u3059\u308B\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
280
311
|
declare function historyFailureSentence(labels: ConsoleUiLabels, failure: {
|
|
281
312
|
readonly status: number | null;
|
|
282
313
|
readonly reason: string;
|
|
@@ -296,13 +327,16 @@ interface EnrichmentStrategyRow {
|
|
|
296
327
|
interface EnrichmentStrategyBoardProps {
|
|
297
328
|
strategies: readonly EnrichmentStrategyRow[];
|
|
298
329
|
featureFlags: Readonly<Record<string, boolean>>;
|
|
299
|
-
onToggleStage
|
|
330
|
+
onToggleStage: (row: EnrichmentStrategyRow, stage: EnrichmentStageKey, enabled: boolean) => void | Promise<void>;
|
|
331
|
+
canSendCommands: boolean;
|
|
300
332
|
isUpdating?: boolean;
|
|
301
333
|
}
|
|
302
334
|
declare const INERT_STAGE_NOTE = "\u8981\u7D04\u751F\u6210\u30FB\u69CB\u9020\u5316\u62BD\u51FA\u30FB\u30A2\u30BB\u30C3\u30C8\u62BD\u51FA\u306E\u5207\u308A\u66FF\u3048\u306F\u4FDD\u5B58\u3055\u308C\u307E\u3059\u304C\u3001\u4ECA\u306F\u52B9\u304D\u307E\u305B\u3093 (\u30C9\u30E1\u30A4\u30F3\u306F\u30E2\u30C7\u30EB\u304C\u6C7A\u3081\u308B\u306E\u3067\u3001\u6295\u5F71\u306E\u6BB5\u3060\u3051\u304C\u6226\u7565\u3092\u8AAD\u307F\u307E\u3059)\u3002";
|
|
303
335
|
type GateState$1 = "open" | "closed" | "unmeasured" | "absent";
|
|
304
336
|
declare function gateStateOf(featureFlagKey: string | null, flags: Readonly<Record<string, boolean>>): GateState$1;
|
|
305
|
-
declare
|
|
337
|
+
declare const STRATEGY_FORBIDDEN_TEXT = "\u51E6\u7406\u306E\u6226\u7565\u3092\u5207\u308A\u66FF\u3048\u308B\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
338
|
+
declare const STRATEGY_UPDATING_TEXT = "\u6BB5\u306E\u5909\u66F4\u3092\u9001\u3063\u3066\u3044\u307E\u3059\u3002\u7B54\u3048\u304C\u5C4A\u304F\u307E\u3067\u4ED6\u306E\u6BB5\u306F\u5207\u308A\u66FF\u3048\u3089\u308C\u307E\u305B\u3093\u3002";
|
|
339
|
+
declare function EnrichmentStrategyBoard({ strategies, featureFlags, onToggleStage, canSendCommands, isUpdating }: EnrichmentStrategyBoardProps): JSX.Element;
|
|
306
340
|
interface ServiceHealthStatus {
|
|
307
341
|
serviceName: string;
|
|
308
342
|
category: "vector" | "graph" | "cache" | "database" | "api";
|
|
@@ -319,7 +353,7 @@ interface SystemInfrastructureHealth {
|
|
|
319
353
|
neo4j: ServiceHealthStatus;
|
|
320
354
|
redis: ServiceHealthStatus;
|
|
321
355
|
sqlServer: ServiceHealthStatus;
|
|
322
|
-
|
|
356
|
+
backendApi: ServiceHealthStatus;
|
|
323
357
|
};
|
|
324
358
|
allHealthy: boolean;
|
|
325
359
|
checkedAt: string;
|
|
@@ -328,9 +362,48 @@ interface InfrastructureHealthMonitorProps {
|
|
|
328
362
|
health: SystemInfrastructureHealth;
|
|
329
363
|
isRefreshing?: boolean;
|
|
330
364
|
onRefresh?: () => void;
|
|
331
|
-
className?: string;
|
|
332
365
|
}
|
|
333
|
-
declare function InfrastructureHealthMonitor({ health, isRefreshing, onRefresh
|
|
366
|
+
declare function InfrastructureHealthMonitor({ health, isRefreshing, onRefresh }: InfrastructureHealthMonitorProps): React.JSX.Element;
|
|
367
|
+
type IngestionJobPageReader = (state: ActiveIngestionJobState, after: string | null, signal: AbortSignal) => Promise<ResourceOutcome<IngestionJobPage>>;
|
|
368
|
+
declare const INGESTION_JOB_BOARD_TITLE = "\u52D5\u3044\u3066\u3044\u308B\u4ED5\u4E8B";
|
|
369
|
+
declare const INGESTION_JOBS_REFUSAL = "\u52D5\u3044\u3066\u3044\u308B\u4ED5\u4E8B\u3092\u95B2\u89A7\u3059\u308B\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
370
|
+
declare const INGESTION_JOB_CANCEL_FORBIDDEN_SENTENCE = "\u53D6\u308A\u8FBC\u307F\u306E\u4ED5\u4E8B\u3092\u53D6\u308A\u6D88\u3059\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
371
|
+
declare const INGESTION_JOB_KIND_LABELS: Readonly<Record<string, string>>;
|
|
372
|
+
declare const ingestionJobKindLabel: (kind: string) => string;
|
|
373
|
+
type IngestionJobStatusPresentation = {
|
|
374
|
+
readonly label: string;
|
|
375
|
+
readonly tone: "info" | "warning" | "neutral";
|
|
376
|
+
};
|
|
377
|
+
declare function ingestionJobStatus(job: Pick<IngestionJob, "state" | "attempt" | "cancelRequestedAt">): IngestionJobStatusPresentation;
|
|
378
|
+
declare function ingestionJobTargetLabel(item: IngestionJobItem): string;
|
|
379
|
+
declare function ingestionJobCancelSentence(item: IngestionJobItem): string;
|
|
380
|
+
declare function ingestionJobCancelAnnouncement(answer: IngestionJob): string;
|
|
381
|
+
interface IngestionJobBoardProps {
|
|
382
|
+
readonly read: IngestionJobPageReader;
|
|
383
|
+
readonly revision: number;
|
|
384
|
+
readonly canSendCommands: boolean;
|
|
385
|
+
readonly isBusy: boolean;
|
|
386
|
+
readonly cancellingJobId: string | null;
|
|
387
|
+
readonly onCancel: (job: IngestionJob) => void;
|
|
388
|
+
readonly cancelAnswer: IngestionJob | null;
|
|
389
|
+
}
|
|
390
|
+
declare function IngestionJobBoard({ read, revision, canSendCommands, isBusy, cancellingJobId, onCancel, cancelAnswer }: IngestionJobBoardProps): ReactNode;
|
|
391
|
+
type IngestionQueueHealthReading = {
|
|
392
|
+
readonly kind: "measured";
|
|
393
|
+
readonly health: IngestionQueueHealth;
|
|
394
|
+
} | {
|
|
395
|
+
readonly kind: "forbidden";
|
|
396
|
+
} | {
|
|
397
|
+
readonly kind: "unavailable";
|
|
398
|
+
readonly status: number | null;
|
|
399
|
+
};
|
|
400
|
+
declare const INGESTION_QUEUE_HEALTH_TITLE = "\u53D6\u308A\u8FBC\u307F\u306E\u5217";
|
|
401
|
+
declare const INGESTION_QUEUE_HEALTH_FORBIDDEN_SENTENCE = "\u53D6\u308A\u8FBC\u307F\u306E\u5217\u306E\u69D8\u5B50\u3092\u8AAD\u3080\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
402
|
+
declare const ingestionQueueHealthUnavailableSentence: (status: number | null) => string;
|
|
403
|
+
interface IngestionQueueHealthCardProps {
|
|
404
|
+
readonly reading: IngestionQueueHealthReading;
|
|
405
|
+
}
|
|
406
|
+
declare function IngestionQueueHealthCard({ reading }: IngestionQueueHealthCardProps): ReactNode;
|
|
334
407
|
interface DeveloperSearchPreset {
|
|
335
408
|
readonly id: string;
|
|
336
409
|
readonly title: string;
|
|
@@ -387,32 +460,76 @@ interface OntologyStatusCardProps {
|
|
|
387
460
|
tenantId: string;
|
|
388
461
|
ontologyStatus: OntologyStatusData;
|
|
389
462
|
}
|
|
390
|
-
declare function OntologyStatusCard({ tenantId, ontologyStatus }: OntologyStatusCardProps):
|
|
463
|
+
declare function OntologyStatusCard({ tenantId, ontologyStatus }: OntologyStatusCardProps): JSX.Element;
|
|
464
|
+
declare function FigureNode(props: FigureNodeProps): ReactElement;
|
|
465
|
+
interface FlowGeometry {
|
|
466
|
+
readonly node: {
|
|
467
|
+
readonly width: number;
|
|
468
|
+
readonly height: number;
|
|
469
|
+
};
|
|
470
|
+
readonly gap: {
|
|
471
|
+
readonly column: number;
|
|
472
|
+
readonly row: number;
|
|
473
|
+
};
|
|
474
|
+
readonly padding: number;
|
|
475
|
+
}
|
|
476
|
+
declare function flowGeometry(nodes: readonly FigureBoxLines[]): FlowGeometry;
|
|
477
|
+
interface FlowLayoutNode {
|
|
478
|
+
readonly id: string;
|
|
479
|
+
readonly dependsOn: readonly string[];
|
|
480
|
+
}
|
|
481
|
+
declare function drawnDependencies(nodes: readonly {
|
|
482
|
+
readonly id: string;
|
|
483
|
+
readonly depends_on: readonly string[];
|
|
484
|
+
}[]): readonly FlowLayoutNode[];
|
|
485
|
+
interface LaidOutNode {
|
|
486
|
+
readonly id: string;
|
|
487
|
+
readonly x: number;
|
|
488
|
+
readonly y: number;
|
|
489
|
+
readonly rank: number;
|
|
490
|
+
readonly order: number;
|
|
491
|
+
readonly width: number;
|
|
492
|
+
readonly height: number;
|
|
493
|
+
}
|
|
494
|
+
interface LaidOutEdge {
|
|
495
|
+
readonly from: string;
|
|
496
|
+
readonly to: string;
|
|
497
|
+
readonly path: string;
|
|
498
|
+
}
|
|
499
|
+
interface FlowLayout {
|
|
500
|
+
readonly width: number;
|
|
501
|
+
readonly height: number;
|
|
502
|
+
readonly nodes: readonly LaidOutNode[];
|
|
503
|
+
readonly edges: readonly LaidOutEdge[];
|
|
504
|
+
}
|
|
505
|
+
declare function layoutFlow(nodes: readonly FlowLayoutNode[], geometry: FlowGeometry): FlowLayout;
|
|
391
506
|
type StepGateState = "open" | "closed-skip" | "closed-fail" | "unmeasured";
|
|
392
507
|
type GateState = "open" | "closed" | "unmeasured";
|
|
393
508
|
type StepGatePolicy = "none" | "skip" | "fail" | "mixed";
|
|
394
509
|
interface PipelineFlowViewerProps {
|
|
510
|
+
catalog: PipelineFlowCatalog;
|
|
395
511
|
featureFlags: Readonly<Record<string, boolean>>;
|
|
396
512
|
metrics: readonly PipelineStepMetric[];
|
|
397
513
|
metricSampleWindow: number;
|
|
398
514
|
selectedKind?: DocumentKind;
|
|
399
515
|
onSelectKind?: (kind: DocumentKind) => void;
|
|
400
|
-
|
|
401
|
-
|
|
516
|
+
selectedNodeId?: string | null;
|
|
517
|
+
onSelectNode?: (id: string | null) => void;
|
|
402
518
|
}
|
|
519
|
+
type GateFigure = Pick<ComponentProps<typeof FigureNode>, "tone" | "outline">;
|
|
520
|
+
declare const PIPELINE_FLOW_TITLE = "\u53D6\u308A\u8FBC\u307F\u30D1\u30A4\u30D7\u30E9\u30A4\u30F3";
|
|
403
521
|
declare const PHASE_LABELS: Readonly<Record<PipelinePhase, string>>;
|
|
404
|
-
declare const CHUNK_SOURCE_LABELS: Readonly<Record<ChunkSource, string>>;
|
|
405
522
|
declare const GATE_STATE_PRESENTATION: Readonly<Record<StepGateState, {
|
|
406
523
|
readonly badge: string;
|
|
407
|
-
|
|
408
|
-
readonly dash: string | undefined;
|
|
409
|
-
}>>;
|
|
524
|
+
} & GateFigure>>;
|
|
410
525
|
declare const GATE_POLICY_LABELS: Readonly<Record<StepGatePolicy, string>>;
|
|
411
|
-
declare function
|
|
412
|
-
declare function
|
|
413
|
-
declare function
|
|
526
|
+
declare function documentKindFlows(catalog: PipelineFlowCatalog): ReadonlyMap<DocumentKind, PipelineFlowEntry>;
|
|
527
|
+
declare function gateState(gate: GateSpec, featureFlags: Readonly<Record<string, boolean>>): GateState;
|
|
528
|
+
declare function stepGateState(gates: readonly GateSpec[], featureFlags: Readonly<Record<string, boolean>>): StepGateState;
|
|
529
|
+
declare function stepGatePolicy(gates: readonly GateSpec[]): StepGatePolicy;
|
|
414
530
|
declare function gateCaption(state: StepGateState, policy: StepGatePolicy): string;
|
|
415
|
-
declare function
|
|
531
|
+
declare function catalogFigureGeometry(catalog: PipelineFlowCatalog): FlowGeometry;
|
|
532
|
+
declare function PipelineFlowViewer({ catalog, featureFlags, metrics, metricSampleWindow, selectedKind: controlledKind, onSelectKind, selectedNodeId: controlledNodeId, onSelectNode }: PipelineFlowViewerProps): ReactNode;
|
|
416
533
|
interface ProcessingObjectHost {
|
|
417
534
|
readonly loadPage: (filter: ProcessingObjectFilter, cursor: string | null, signal: AbortSignal) => Promise<ResourceOutcome<ProcessingObjectPage>>;
|
|
418
535
|
}
|
|
@@ -425,67 +542,42 @@ declare const UNNAMED_NODE_TEXT = "\u540D\u524D\u306A\u3057";
|
|
|
425
542
|
declare const NO_NODE_READING_TEXT = "\u8AAD\u307F\u306E\u8A18\u9332\u306A\u3057";
|
|
426
543
|
interface ProcessingObjectBrowserProps {
|
|
427
544
|
readonly host: ProcessingObjectHost;
|
|
545
|
+
readonly mimeKindRules: readonly MimeKindRule[];
|
|
428
546
|
readonly filter: ProcessingObjectFilter;
|
|
429
547
|
readonly onFilterChange: (filter: ProcessingObjectFilter) => void;
|
|
430
548
|
readonly onOpenHistory?: (metadataId: number) => void;
|
|
431
549
|
}
|
|
432
550
|
declare function nodeReadingText(reading: ProcessingNodeReading | null): string;
|
|
433
|
-
declare function processingObjectKindText(item: ProcessingObjectItem): string;
|
|
551
|
+
declare function processingObjectKindText(item: ProcessingObjectItem, mimeKindRules: readonly MimeKindRule[]): string;
|
|
434
552
|
declare function processingObjectClassificationText(item: ProcessingObjectItem): string;
|
|
435
|
-
declare function ProcessingObjectBrowser({ host, filter, onFilterChange, onOpenHistory }: ProcessingObjectBrowserProps): ReactNode;
|
|
436
|
-
declare const FLOW_NODE_TEXT: {
|
|
437
|
-
readonly inset: 12;
|
|
438
|
-
readonly labelFontSize: 13;
|
|
439
|
-
readonly captionFontSize: 11;
|
|
440
|
-
};
|
|
441
|
-
declare const FLOW_FOCUS_RING: {
|
|
442
|
-
readonly offset: 3;
|
|
443
|
-
readonly stroke: 2;
|
|
444
|
-
};
|
|
445
|
-
interface FlowGeometry {
|
|
446
|
-
readonly node: {
|
|
447
|
-
readonly width: number;
|
|
448
|
-
readonly height: number;
|
|
449
|
-
};
|
|
450
|
-
readonly gap: {
|
|
451
|
-
readonly column: number;
|
|
452
|
-
readonly row: number;
|
|
453
|
-
};
|
|
454
|
-
readonly padding: number;
|
|
455
|
-
}
|
|
456
|
-
declare const FLOW_GEOMETRY: FlowGeometry;
|
|
457
|
-
interface LaidOutStep {
|
|
458
|
-
readonly key: PipelineStepKey;
|
|
459
|
-
readonly x: number;
|
|
460
|
-
readonly y: number;
|
|
461
|
-
readonly rank: number;
|
|
462
|
-
readonly order: number;
|
|
463
|
-
readonly width: number;
|
|
464
|
-
readonly height: number;
|
|
465
|
-
}
|
|
466
|
-
interface LaidOutEdge {
|
|
467
|
-
readonly from: PipelineStepKey;
|
|
468
|
-
readonly to: PipelineStepKey;
|
|
469
|
-
readonly path: string;
|
|
470
|
-
}
|
|
471
|
-
interface FlowLayout {
|
|
472
|
-
readonly width: number;
|
|
473
|
-
readonly height: number;
|
|
474
|
-
readonly steps: readonly LaidOutStep[];
|
|
475
|
-
readonly edges: readonly LaidOutEdge[];
|
|
476
|
-
}
|
|
477
|
-
declare function layoutFlow(flow: PipelineFlow, geometry?: FlowGeometry): FlowLayout;
|
|
553
|
+
declare function ProcessingObjectBrowser({ host, mimeKindRules, filter, onFilterChange, onOpenHistory }: ProcessingObjectBrowserProps): ReactNode;
|
|
478
554
|
interface StatusPresentation {
|
|
479
555
|
readonly label: string;
|
|
480
|
-
readonly className: string;
|
|
481
|
-
}
|
|
482
|
-
interface StepStatusPresentation extends StatusPresentation {
|
|
483
|
-
readonly bar: string;
|
|
484
556
|
}
|
|
485
|
-
type PipelineRunPresentationKey = PipelineRunStatus | "FAILED_RETRY_SCHEDULED";
|
|
557
|
+
type PipelineRunPresentationKey = PipelineRunStatus | "RUNNING_RETRY_SCHEDULED" | "FAILED_RETRY_SCHEDULED";
|
|
486
558
|
declare const PIPELINE_RUN_STATUS_PRESENTATION: Readonly<Record<PipelineRunPresentationKey, StatusPresentation>>;
|
|
487
|
-
declare const
|
|
559
|
+
declare const PIPELINE_RUN_STATUS_TONES: {
|
|
560
|
+
readonly RUNNING: "info";
|
|
561
|
+
readonly RUNNING_RETRY_SCHEDULED: "warning";
|
|
562
|
+
readonly SUCCEEDED: "success";
|
|
563
|
+
readonly FAILED: "danger";
|
|
564
|
+
readonly FAILED_RETRY_SCHEDULED: "warning";
|
|
565
|
+
readonly CANCELLED: "neutral";
|
|
566
|
+
};
|
|
567
|
+
declare const PIPELINE_STEP_STATUS_PRESENTATION: Readonly<Record<PipelineStepStatus, StatusPresentation>>;
|
|
568
|
+
declare const PIPELINE_STEP_STATUS_TONES: {
|
|
569
|
+
readonly RUNNING: "info";
|
|
570
|
+
readonly SUCCEEDED: "success";
|
|
571
|
+
readonly SKIPPED: "neutral";
|
|
572
|
+
readonly FAILED: "danger";
|
|
573
|
+
readonly CANCELLED: "neutral";
|
|
574
|
+
};
|
|
488
575
|
declare const PIPELINE_TRIGGER_LABELS: Readonly<Record<PipelineTrigger, string>>;
|
|
576
|
+
declare const UNVERSIONED_FLOW_LABEL = "\u7248\u306A\u3057";
|
|
577
|
+
declare function pipelineFlowLabel(run: {
|
|
578
|
+
readonly flowKey: string;
|
|
579
|
+
readonly flowVersion: number | null;
|
|
580
|
+
}): string;
|
|
489
581
|
declare const RUN_TERMINAL_STEP_LABEL = "\u6587\u66F8\u306E\u72B6\u614B\u306E\u8A18\u9332";
|
|
490
582
|
declare function ledgerStepLabel(key: StoredTerm<LedgerStepKey>): string;
|
|
491
583
|
declare function documentKindLabel(kind: StoredTerm<DocumentKind>): string;
|
|
@@ -558,6 +650,8 @@ type FinishedInstantProps = {
|
|
|
558
650
|
readonly testId: string;
|
|
559
651
|
};
|
|
560
652
|
declare function FinishedInstant({ iso, testId }: FinishedInstantProps): ReactNode;
|
|
653
|
+
declare function recordedInstantSampleText(timeZone: string): string;
|
|
654
|
+
declare function recordedInstantContent(timeZone: string): CellContent;
|
|
561
655
|
interface FailedSyncItem {
|
|
562
656
|
id: string | number;
|
|
563
657
|
file_uri: string;
|
|
@@ -583,15 +677,21 @@ interface SyncStatusMonitorProps {
|
|
|
583
677
|
totalFiles: number;
|
|
584
678
|
failedItems?: readonly FailedSyncEntry[];
|
|
585
679
|
onRetryAll?: () => void | Promise<void>;
|
|
680
|
+
headingRef?: Ref<HTMLHeadingElement>;
|
|
586
681
|
onRetryItem?: (id: string | number, fileUri: string) => void | Promise<void>;
|
|
682
|
+
canSendCommands: boolean;
|
|
587
683
|
isRetrying?: boolean;
|
|
588
684
|
onRefresh?: () => void;
|
|
589
685
|
listRefusal?: string;
|
|
590
686
|
onShowAllFailures?: () => void;
|
|
591
687
|
}
|
|
592
|
-
declare
|
|
688
|
+
declare const SYNC_STATUS_MONITOR_TITLE = "\u30A8\u30F3\u30EA\u30C3\u30C1\u30E1\u30F3\u30C8\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9";
|
|
689
|
+
declare const NO_FAILURES_TO_RETRY_TEXT = "\u518D\u8A66\u884C\u3059\u308B\u5931\u6557\u306F\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
690
|
+
declare const RETRY_FORBIDDEN_TEXT = "\u540C\u671F\u3092\u518D\u8A66\u884C\u3059\u308B\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
|
|
691
|
+
declare const RETRY_SENDING_TEXT = "\u518D\u8A66\u884C\u3092\u9001\u4FE1\u4E2D\u3067\u3059\u3002\u7D42\u308F\u308B\u307E\u3067\u307B\u304B\u306E\u518D\u8A66\u884C\u306F\u3067\u304D\u307E\u305B\u3093\u3002";
|
|
692
|
+
declare function SyncStatusMonitor({ counts, totalFiles, failedItems, onRetryAll, onRetryItem, canSendCommands, isRetrying, onRefresh, listRefusal, onShowAllFailures, headingRef }: SyncStatusMonitorProps): JSX.Element;
|
|
593
693
|
declare const SYNC_STATUS_LABELS: Readonly<Record<EnrichmentSyncStatus, string>>;
|
|
594
694
|
declare const NO_ENRICHMENT_RECORD_TEXT = "\u53D6\u308A\u8FBC\u307F\u306E\u8A18\u9332\u306A\u3057";
|
|
595
695
|
type SyncStatusTone = "info" | "success" | "danger";
|
|
596
696
|
declare function syncStatusTone(status: EnrichmentSyncStatus): SyncStatusTone;
|
|
597
|
-
export { BREAKER_STATE_LABELS, CHUNKING_ONLY_NOTE, CHUNK_BODY_FIDELITY_LABELS, CHUNK_CHANGE_KIND_LABELS,
|
|
697
|
+
export { BREAKER_STATE_LABELS, CAPTURE_FORBIDDEN_SENTENCE, CHILD_RUNS_REFUSAL, CHUNKING_ONLY_NOTE, CHUNK_BODY_FIDELITY_LABELS, CHUNK_CHANGE_KIND_LABELS, CONFIDENTIALITY_LEVEL_LABELS, ChildRunList, type ChildRunListProps, type ChildRunPageReader, type ComparisonVariant, DEGRADATION_REASON_LABELS, DOCUMENT_STATE_CAUSE_LABELS, DegradedSearchBanner, type DegradedSearchBannerProps, type DeveloperSearchPreset, type DiffLinePageQuery, type DiffLinePageReader, type DiffLineTarget, DocumentChangeFeed, type DocumentChangeFeedProps, type DocumentComparisonQuery, type DocumentGraphRelation, type DocumentHistoryHost, DocumentHistoryInspector, type DocumentHistoryInspectorProps, type DocumentHistoryReads, type DocumentHistoryTarget, DocumentIngestConsole, type DocumentIngestConsoleProps, type DocumentIngestLabel, type DocumentIngestPayload, type DocumentScores, type DocumentSearchAnswer, type DocumentSearchAuthzScopes, type DocumentSearchExecutedTiers, type DocumentSearchHit, type DocumentSearchMetadata, type DocumentSearchParams, type DocumentStateCapture, type DocumentVectorScore, type DocumentVectorScoreKind, EnrichmentStrategyBoard, type EnrichmentStrategyBoardProps, type EnrichmentStrategyRow, FACET_LABELS, FAILED_RUN_STATE_MARK, FIELD_LABELS, type FailedSyncEntry, type FailedSyncItem, type FileInspectionResult, FinishedInstant, type FinishedInstantProps, type FlowGeometry, type FlowLayout, type FlowLayoutNode, GATE_POLICY_LABELS, GATE_STATE_PRESENTATION, type GateState, HIDDEN_FIELD_TEXT, HISTORY_REFUSAL, INERT_STAGE_NOTE, INGESTION_JOBS_REFUSAL, INGESTION_JOB_BOARD_TITLE, INGESTION_JOB_CANCEL_FORBIDDEN_SENTENCE, INGESTION_JOB_KIND_LABELS, INGESTION_QUEUE_HEALTH_FORBIDDEN_SENTENCE, INGESTION_QUEUE_HEALTH_TITLE, INGEST_FORBIDDEN_SENTENCE, INSPECT_BLOCKED_REASONS, InfrastructureHealthMonitor, type InfrastructureHealthMonitorProps, type IngestCapabilityPolicy, type IngestDomainOption, type IngestRowAction, IngestionJobBoard, type IngestionJobBoardProps, type IngestionJobPageReader, type IngestionJobStatusPresentation, IngestionQueueHealthCard, type IngestionQueueHealthCardProps, type IngestionQueueHealthReading, type LaidOutEdge, type LaidOutNode, MODEL_ONLY_CHANGE_MARK, MetadataSearchWorkbench, type MetadataSearchWorkbenchProps, ModelComparisonWorkbench, type ModelComparisonWorkbenchProps, NOTHING_TO_READ_LABELS, NO_ENRICHMENT_RECORD_TEXT, NO_FAILURES_TO_RETRY_TEXT, NO_NODE_READING_TEXT, NO_PREVIOUS_RECORD_TEXT, type OntologyClassItem, type OntologyPredicateItem, OntologyStatusCard, type OntologyStatusCardProps, type OntologyStatusData, PHASE_LABELS, PIPELINE_FLOW_TITLE, PIPELINE_RUN_STATUS_PRESENTATION, PIPELINE_RUN_STATUS_TONES, PIPELINE_STEP_STATUS_PRESENTATION, PIPELINE_STEP_STATUS_TONES, PIPELINE_TRIGGER_LABELS, PROCESSING_OBJECTS_REFUSAL, PROCESSING_OBJECT_DELETION_LABELS, PROCESSING_OBJECT_KIND_LABELS, PROCESSING_OBJECT_REVISION_LABELS, PROCESSING_OBJECT_STATUS_LABELS, PipelineFlowViewer, type PipelineFlowViewerProps, type PipelineRunPresentationKey, ProcessingObjectBrowser, type ProcessingObjectBrowserProps, type ProcessingObjectHost, QUALITY_TIER_LABELS, type QdrantCollectionInfo, type QdrantCollectionSelection, type QdrantHealthInfo, type QdrantResourceUsage, QdrantStorageCard, type QdrantStorageCardProps, type QdrantStorageOverview, REQUIRED_FIELD_MARK, RESTRICTED_DOCUMENT_TEXT, RESTRICTED_RUN_TEXT, RESTRICTED_STATE_TEXT, RETRY_FORBIDDEN_TEXT, RETRY_SENDING_TEXT, ROWS_BUSY_TEXT, RUN_TERMINAL_STEP_LABEL, RUN_TERMINAL_STEP_OUTCOME_LABELS, type RankAgreement, type RecentIngestEntry, type RecentIngestItem, type RecentIngestLastRun, type RecentIngestUnlock, RecordedInstant, type RecordedInstantProps, SCORE_DECIMALS, SCORE_DISPLAY_DECIMALS, SEARCH_FUSION_LABELS, SEARCH_MODE_LABELS, SEARCH_PRESETS, STRATEGY_FORBIDDEN_TEXT, STRATEGY_UPDATING_TEXT, SUBMIT_BLOCKED_REASONS, SYNC_STATUS_LABELS, SYNC_STATUS_MONITOR_TITLE, type ServiceHealthStatus, type StatusPresentation, type StepGatePolicy, type StepGateState, type StrategyProvenance, type SyncStatusCounts, SyncStatusMonitor, type SyncStatusMonitorProps, type SyncStatusTone, type SystemInfrastructureHealth, UNFINISHED_LABEL, UNNAMED_NODE_TEXT, UNRECORDED_RUN_MARK, UNVERIFIED_CHUNK_NOTE, UNVERSIONED_FLOW_LABEL, type VariantComparisonAnswer, type VariantComparisonInput, type VariantHit, type VariantResult, WHITESPACE_NORMALIZED_NOTE, catalogFigureGeometry, degradationReasonText, documentKindFlows, documentKindLabel, drawnDependencies, facetCountsText, fieldLabel, flowGeometry, gateCaption, gateState, gateStateOf, historyFailedSentence, historyFailureSentence, ingestRowAction, ingestionJobCancelAnnouncement, ingestionJobCancelSentence, ingestionJobKindLabel, ingestionJobStatus, ingestionJobTargetLabel, ingestionQueueHealthUnavailableSentence, jsonValueText, layoutFlow, ledgerStepLabel, nodeReadingText, pipelineFlowLabel, pipelineRunPresentationKey, processingObjectClassificationText, processingObjectKindText, rankAgreement, recordedInstantContent, recordedInstantSampleText, revisionLabel, revisionTransitionText, skipReasonLabel, stepGatePolicy, stepGateState, syncStatusTone, unrecordedRunsMark, variantHitKey, vectorScoreText };
|