@aiquants/enrichment-react 0.7.0 → 0.9.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.cts CHANGED
@@ -1,5 +1,5 @@
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";
1
+ import { ResourceOutcome, CommandOutcome, ConsoleUiLabels, FigureBoxLines, CellContent } from "@aiquants/console-ui/core";
2
+ import { ChildRunPage, CircuitBreakerStatus, SearchDegradationReason, SearchMode, SearchQualityTier, CircuitBreakerService, SearchFusion, FilterableConfidentialityLevel, VariantComparisonAnswer, DiffLinePage, DocumentHistory, DocumentComparison, DocumentChangeFeedPage, DocumentCaptureAnswer, DocumentVariantState, VariantSetCreateRequest, VariantSetView, VariantSetPatchRequest, VariantProjectionRequest, VariantProjectionAccepted, SourceSpec, ConfidentialityLevel, ReadableEntry, PipelineRunStatus, StoredTerm, ReleasedStepKey, RestrictedRunMark, RemovableProtectionScheme, UnlockDisposition, CopyReason, RestrictedIngestMark, ChunkBodyFidelity, ChunkChangeKind, DocumentStateCause, DocumentFacet, FacetChangeCounts, JsonValue, EnrichmentStageKey, EvaluationQuerySetListResponse, EvaluationQuerySetCreateRequest, EvaluationQuerySetView, EvaluationGenerationRequest, EvaluationJobResponse, EvaluationQueryStatus, EvaluationQueryListResponse, EvaluationQueryCreateRequest, EvaluationQueryView, EvaluationQueryUpdateRequest, EvaluationJudgmentListResponse, EvaluationJudgmentWriteRequest, EvaluationJudgmentView, EvaluationRunRequest, EvaluationRunAccepted, EvaluationRunListResponse, EvaluationRunReport, EvaluationRunQueriesResponse, EvaluationRunStatus, EvaluationGrade, EvaluationJudge, EvaluationQueryOrigin, EvaluationRejectReason, EvaluationRunFailure, EvaluationRunPhase, EvaluationSearchMode, EvaluationDifference, EvaluationRunView, ActiveIngestionJobState, IngestionJobPage, IngestionJob, IngestionJobItem, IngestionQueueHealth, ComparisonMode, VariantComparisonRequest, PipelinePhase, PipelineFlowCatalog, PipelineStepMetric, DocumentKind, PipelineFlowEntry, GateSpec, ProcessingObjectFilter, ProcessingObjectPage, MimeKindRule, ProcessingNodeReading, ProcessingObjectItem, NothingToReadToken, PipelineStepStatus, PipelineTrigger, RunTerminalStepOutcome, LedgerStepKey, RestrictedFailureMark, EnrichmentSyncStatus, EmbeddingProvider, ProjectionVariantState, SparseModifier, VariantProjectionScope, VariantDomainRow } from "@aiquants/enrichment-core";
3
3
  import React, { ReactNode, JSX, ReactElement, ComponentProps, Ref } from "react";
4
4
  import { FigureNodeProps } from "@aiquants/console-ui";
5
5
  declare const CHILD_RUNS_REFUSAL = "\u5B50\u306E\u5B9F\u884C\u3092\u95B2\u89A7\u3059\u308B\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
@@ -24,6 +24,7 @@ interface DocumentSearchParams {
24
24
  readonly confidentiality_level?: FilterableConfidentialityLevel;
25
25
  readonly mime_type?: string;
26
26
  readonly tag?: string;
27
+ readonly variant_key?: string;
27
28
  }
28
29
  type DocumentVectorScoreKind = "cosine" | "bm25" | "mixed";
29
30
  interface DocumentVectorScore {
@@ -44,6 +45,7 @@ interface DocumentSearchHit {
44
45
  readonly metadata_id: number | null;
45
46
  readonly file_uri: string | null;
46
47
  readonly file_name: string | null;
48
+ readonly ai_title: string | null;
47
49
  readonly mime_type: string | null;
48
50
  readonly folder_path: string | null;
49
51
  readonly confidentiality_level: string | null;
@@ -81,31 +83,7 @@ interface DocumentSearchAnswer {
81
83
  readonly hits: readonly DocumentSearchHit[];
82
84
  readonly authz_scopes: DocumentSearchAuthzScopes;
83
85
  readonly search_metadata: DocumentSearchMetadata;
84
- }
85
- interface VariantComparisonInput {
86
- readonly query: string;
87
- readonly strategy_ids: readonly [
88
- number,
89
- number
90
- ];
91
- readonly limit: number;
92
- }
93
- interface VariantHit {
94
- readonly metadata_id: number;
95
- readonly chunk_index: number;
96
- readonly text: string | null;
97
- readonly score: number;
98
- }
99
- interface VariantResult {
100
- readonly strategy_id: number;
101
- readonly execution_ms: number;
102
- readonly dense_ran: boolean;
103
- readonly degradation_reasons: readonly string[];
104
- readonly hits: readonly VariantHit[];
105
- }
106
- interface VariantComparisonAnswer {
107
- readonly results: readonly VariantResult[];
108
- readonly text_hidden: boolean;
86
+ readonly variant_key: string;
109
87
  }
110
88
  declare const HIDDEN_FIELD_TEXT = "\u975E\u8868\u793A (\u5217\u306E\u30B9\u30B3\u30FC\u30D7)";
111
89
  declare const SEARCH_MODE_LABELS: Readonly<Record<SearchMode, {
@@ -125,7 +103,7 @@ interface RankAgreement {
125
103
  readonly meanAbsoluteRankDifference: number | null;
126
104
  }
127
105
  declare function rankAgreement(a: readonly string[], b: readonly string[]): RankAgreement;
128
- declare function variantHitKey(hit: Pick<VariantHit, "metadata_id" | "chunk_index">): string;
106
+ declare function variantHitKey(hit: Pick<VariantComparisonAnswer["results"][number]["hits"][number], "metadata_id" | "chunk_index">): string;
129
107
  interface DegradedSearchBannerProps {
130
108
  readonly metadata: Pick<DocumentSearchMetadata, "is_degraded" | "requested_mode" | "search_mode" | "executed_tiers" | "quality_tier" | "degradation_reasons">;
131
109
  readonly testId: string;
@@ -168,6 +146,38 @@ interface DocumentChangeFeedProps {
168
146
  readonly onOpen?: (metadataId: number, stateId: number) => void;
169
147
  }
170
148
  declare function DocumentChangeFeed({ host, onOpen }: DocumentChangeFeedProps): ReactNode;
149
+ type VariantSetCreateField = keyof VariantSetCreateRequest;
150
+ interface VariantSetFieldError {
151
+ readonly field: VariantSetCreateField | null;
152
+ readonly message: string;
153
+ }
154
+ type VariantSetCreateRejection = {
155
+ readonly code: "REQUEST_INVALID";
156
+ readonly errors: readonly VariantSetFieldError[];
157
+ } | {
158
+ readonly code: "ENDPOINT_OUTSIDE_DEPLOYMENT";
159
+ };
160
+ interface VariantProjectionActiveRejection {
161
+ readonly code: "VARIANT_PROJECTION_ACTIVE";
162
+ }
163
+ interface VariantSetCommands {
164
+ readonly create: (request: VariantSetCreateRequest) => Promise<CommandOutcome<VariantSetView, VariantSetCreateRejection>>;
165
+ readonly patch: (variantKey: string, request: VariantSetPatchRequest) => Promise<ResourceOutcome<VariantSetView>>;
166
+ readonly startProjection: (variantKey: string, request: VariantProjectionRequest) => Promise<ResourceOutcome<VariantProjectionAccepted>>;
167
+ readonly removePoints: (variantKey: string) => Promise<CommandOutcome<null, VariantProjectionActiveRejection>>;
168
+ }
169
+ interface DocumentVariantReading {
170
+ readonly domainKey: string | null;
171
+ readonly variants: readonly DocumentVariantState[];
172
+ }
173
+ interface DocumentVariantProjection {
174
+ readonly chunkCount: number;
175
+ }
176
+ interface DocumentVariantHost {
177
+ readonly load: (metadataId: number, signal: AbortSignal) => Promise<ResourceOutcome<DocumentVariantReading>>;
178
+ readonly project: (metadataId: number, strategyId: number) => Promise<ResourceOutcome<DocumentVariantProjection>>;
179
+ readonly removePoints: (variantKey: string, metadataId: number) => Promise<CommandOutcome<null, VariantProjectionActiveRejection>>;
180
+ }
171
181
  type DocumentHistoryReads = Pick<DocumentHistoryHost, "loadHistory" | "compare" | "readLines">;
172
182
  interface DocumentHistoryInspectorProps {
173
183
  readonly host: DocumentHistoryReads;
@@ -178,8 +188,11 @@ interface DocumentHistoryInspectorProps {
178
188
  readonly returnFocusFallback: () => HTMLElement | null;
179
189
  readonly captureState?: DocumentStateCapture;
180
190
  readonly canSendCommands: boolean;
191
+ readonly variantSets: readonly VariantSetView[];
192
+ readonly variantHost: DocumentVariantHost;
193
+ readonly canSendVariantCommands: boolean;
181
194
  }
182
- declare function DocumentHistoryInspector({ host, metadataId, target, openRequest, onClose, returnFocusFallback, captureState, canSendCommands }: DocumentHistoryInspectorProps): ReactNode;
195
+ declare function DocumentHistoryInspector({ host, metadataId, target, openRequest, onClose, returnFocusFallback, captureState, canSendCommands, variantSets, variantHost, canSendVariantCommands }: DocumentHistoryInspectorProps): ReactNode;
183
196
  interface DocumentIngestLabel {
184
197
  labelKey: string;
185
198
  category: "user" | "system" | "domain";
@@ -313,6 +326,14 @@ declare function historyFailureSentence(labels: ConsoleUiLabels, failure: {
313
326
  readonly reason: string;
314
327
  }, subject: string): string;
315
328
  declare function historyFailedSentence(subject: string): (reason: string) => string;
329
+ interface EmbeddingVariantBoardProps {
330
+ readonly variantSets: readonly VariantSetView[];
331
+ readonly commands: VariantSetCommands;
332
+ readonly canSendCommands: boolean;
333
+ }
334
+ declare const VARIANT_SET_FIELD_MESSAGES: Readonly<Record<VariantSetCreateField, string>>;
335
+ declare const ENDPOINT_OUTSIDE_DEPLOYMENT_TEXT = "\u3053\u306E\u5B9B\u5148\u306F\u914D\u5099\u306E\u5916\u3068\u5224\u5B9A\u3055\u308C\u307E\u3057\u305F\u3002\u914D\u5099\u306E\u5185\u3068\u898B\u306A\u3059\u30DB\u30B9\u30C8\u306E\u4E00\u89A7\u306B\u8F09\u308B\u5B9B\u5148\u3092\u4F7F\u3063\u3066\u304F\u3060\u3055\u3044\u3002";
336
+ declare function EmbeddingVariantBoard({ variantSets, commands, canSendCommands }: EmbeddingVariantBoardProps): ReactNode;
316
337
  type StrategyProvenance = "tenant" | "system";
317
338
  interface EnrichmentStrategyRow {
318
339
  id: number;
@@ -337,6 +358,60 @@ declare function gateStateOf(featureFlagKey: string | null, flags: Readonly<Reco
337
358
  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
359
  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
360
  declare function EnrichmentStrategyBoard({ strategies, featureFlags, onToggleStage, canSendCommands, isUpdating }: EnrichmentStrategyBoardProps): JSX.Element;
361
+ interface EvaluationScopeIncompleteRejection {
362
+ readonly code: "EVALUATION_SCOPE_INCOMPLETE";
363
+ }
364
+ interface RetrievalEvaluationHost {
365
+ readonly listQuerySets: (signal: AbortSignal) => Promise<ResourceOutcome<EvaluationQuerySetListResponse>>;
366
+ readonly createQuerySet: (request: EvaluationQuerySetCreateRequest) => Promise<ResourceOutcome<EvaluationQuerySetView>>;
367
+ readonly requestGeneration: (querySetId: number, request: EvaluationGenerationRequest) => Promise<ResourceOutcome<EvaluationJobResponse>>;
368
+ readonly listQueries: (querySetId: number, status: EvaluationQueryStatus | null, signal: AbortSignal) => Promise<ResourceOutcome<EvaluationQueryListResponse>>;
369
+ readonly createQuery: (querySetId: number, request: EvaluationQueryCreateRequest) => Promise<ResourceOutcome<EvaluationQueryView>>;
370
+ readonly updateQuery: (queryId: number, request: EvaluationQueryUpdateRequest) => Promise<ResourceOutcome<EvaluationQueryView>>;
371
+ readonly listJudgments: (queryId: number, signal: AbortSignal) => Promise<ResourceOutcome<EvaluationJudgmentListResponse>>;
372
+ readonly writeJudgment: (queryId: number, request: EvaluationJudgmentWriteRequest) => Promise<ResourceOutcome<EvaluationJudgmentView>>;
373
+ readonly startRun: (request: EvaluationRunRequest) => Promise<CommandOutcome<EvaluationRunAccepted, EvaluationScopeIncompleteRejection>>;
374
+ readonly listRuns: (querySetId: number, signal: AbortSignal) => Promise<ResourceOutcome<EvaluationRunListResponse>>;
375
+ readonly readRun: (runUid: string, signal: AbortSignal) => Promise<ResourceOutcome<EvaluationRunReport>>;
376
+ readonly readRunQueries: (runUid: string, signal: AbortSignal) => Promise<ResourceOutcome<EvaluationRunQueriesResponse>>;
377
+ }
378
+ declare const EVALUATION_METRIC_DECIMALS = 3;
379
+ declare const EVALUATION_UNSCORED_TEXT = "\u63A1\u70B9\u306A\u3057";
380
+ declare const EVALUATION_BASELINE_TEXT = "\u57FA\u6E96";
381
+ declare const EVALUATION_QUERY_STATUS_LABELS: Readonly<Record<EvaluationQueryStatus, string>>;
382
+ declare const EVALUATION_QUERY_ORIGIN_LABELS: Readonly<Record<EvaluationQueryOrigin, string>>;
383
+ declare const EVALUATION_REJECT_REASON_LABELS: Readonly<Record<EvaluationRejectReason, string>>;
384
+ declare const EVALUATION_JUDGE_LABELS: Readonly<Record<EvaluationJudge, string>>;
385
+ declare const EVALUATION_GRADE_LABELS: Readonly<Record<EvaluationGrade, string>>;
386
+ declare const EVALUATION_SEARCH_MODE_LABELS: Readonly<Record<EvaluationSearchMode, string>>;
387
+ declare const EVALUATION_RUN_STATUS_LABELS: Readonly<Record<EvaluationRunStatus, string>>;
388
+ declare const EVALUATION_RUN_PHASE_LABELS: Readonly<Record<EvaluationRunPhase, string>>;
389
+ declare const EVALUATION_RUN_FAILURE_LABELS: Readonly<Record<EvaluationRunFailure, string>>;
390
+ declare const EVALUATION_ACTIVE_RUN_STATUSES: readonly EvaluationRunStatus[];
391
+ declare const EVALUATION_COMMAND_FORBIDDEN_SENTENCE = "\u691C\u7D22\u306E\u8A55\u4FA1\u3092\u64CD\u4F5C\u3059\u308B\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
392
+ declare const EVALUATION_QUERY_ROWS_BUSY_SENTENCE = "\u4ED6\u306E\u547D\u4EE4\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";
393
+ declare const EVALUATION_POOL_BUSY_SENTENCE = "\u4ED6\u306E\u6BB5\u306E\u7B54\u3048\u3092\u5F85\u3063\u3066\u3044\u307E\u3059\u3002\u7B54\u3048\u304C\u5C4A\u304F\u307E\u3067\u6BB5\u306F\u66F8\u3051\u307E\u305B\u3093\u3002";
394
+ declare const EVALUATION_POOL_CHOOSE_SENTENCE = "\u6BB5\u3092\u9078\u3076\u3068\u3001\u305D\u306E\u884C\u306E\u6587\u66F8\u3078\u66F8\u3051\u307E\u3059\u3002";
395
+ declare const EVALUATION_RUN_SHOWN_SENTENCE = "\u793A\u3057\u3066\u3044\u308B\u8D70\u308A\u306E\u7D50\u679C\u306F\u3001\u8D70\u308A\u306E\u4E00\u89A7\u306E\u4E0B\u306B\u3042\u308A\u307E\u3059\u3002";
396
+ declare const EVALUATION_READ_FORBIDDEN_SENTENCE = "\u691C\u7D22\u306E\u8A55\u4FA1\u3092\u8AAD\u3080\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
397
+ declare const integerField: (text: string, bounds: {
398
+ readonly min: number;
399
+ readonly max: number;
400
+ }) => {
401
+ readonly value: number;
402
+ } | {
403
+ readonly error: string;
404
+ };
405
+ declare const decimalText: (value: number) => string;
406
+ declare const metricText: (mean: number | null) => string;
407
+ declare const differenceText: (difference: EvaluationDifference | null) => string;
408
+ type DifferenceVerdict = "better" | "worse" | "unknown";
409
+ declare const differenceVerdict: (difference: EvaluationDifference) => DifferenceVerdict;
410
+ declare const DIFFERENCE_VERDICT_LABELS: Readonly<Record<DifferenceVerdict, string>>;
411
+ declare const confidenceText: (confidence: number) => string;
412
+ declare const runProgressText: (run: Pick<EvaluationRunView, "status" | "phase" | "phase_done" | "phase_total" | "failure_code">) => string;
413
+ declare const METRIC_CELL_SAMPLES: readonly string[];
414
+ declare const DIFFERENCE_CELL_SAMPLES: readonly string[];
340
415
  interface ServiceHealthStatus {
341
416
  serviceName: string;
342
417
  category: "vector" | "graph" | "cache" | "database" | "api";
@@ -414,21 +489,18 @@ declare const SEARCH_PRESETS: readonly DeveloperSearchPreset[];
414
489
  declare const CONFIDENTIALITY_LEVEL_LABELS: Readonly<Record<FilterableConfidentialityLevel, string>>;
415
490
  interface MetadataSearchWorkbenchProps {
416
491
  readonly tenantId: string;
492
+ readonly variantSets: readonly VariantSetView[];
417
493
  readonly onSearch: (params: DocumentSearchParams, signal: AbortSignal) => Promise<DocumentSearchAnswer>;
418
494
  readonly initialParams?: Partial<DocumentSearchParams>;
419
495
  }
420
- declare function MetadataSearchWorkbench({ tenantId, onSearch, initialParams }: MetadataSearchWorkbenchProps): ReactNode;
421
- interface ComparisonVariant {
422
- readonly strategyId: number;
423
- readonly label: string;
424
- readonly embeddingModel: string;
425
- }
496
+ declare function MetadataSearchWorkbench({ tenantId, variantSets, onSearch, initialParams }: MetadataSearchWorkbenchProps): ReactNode;
426
497
  interface ModelComparisonWorkbenchProps {
427
- readonly variants: readonly ComparisonVariant[];
428
- readonly onCompare: (input: VariantComparisonInput, signal: AbortSignal) => Promise<VariantComparisonAnswer>;
498
+ readonly variantSets: readonly VariantSetView[];
499
+ readonly onCompare: (request: VariantComparisonRequest, signal: AbortSignal) => Promise<VariantComparisonAnswer>;
429
500
  }
430
501
  declare const SCORE_DISPLAY_DECIMALS = 4;
431
- declare function ModelComparisonWorkbench({ variants, onCompare }: ModelComparisonWorkbenchProps): ReactNode;
502
+ declare const API_DEFAULT_COMPARISON_MODE: ComparisonMode;
503
+ declare function ModelComparisonWorkbench({ variantSets, onCompare }: ModelComparisonWorkbenchProps): ReactNode;
432
504
  interface OntologyClassItem {
433
505
  name: string;
434
506
  description: string;
@@ -546,11 +618,12 @@ interface ProcessingObjectBrowserProps {
546
618
  readonly filter: ProcessingObjectFilter;
547
619
  readonly onFilterChange: (filter: ProcessingObjectFilter) => void;
548
620
  readonly onOpenHistory?: (metadataId: number) => void;
621
+ readonly variantSets: readonly VariantSetView[];
549
622
  }
550
623
  declare function nodeReadingText(reading: ProcessingNodeReading | null): string;
551
624
  declare function processingObjectKindText(item: ProcessingObjectItem, mimeKindRules: readonly MimeKindRule[]): string;
552
625
  declare function processingObjectClassificationText(item: ProcessingObjectItem): string;
553
- declare function ProcessingObjectBrowser({ host, mimeKindRules, filter, onFilterChange, onOpenHistory }: ProcessingObjectBrowserProps): ReactNode;
626
+ declare function ProcessingObjectBrowser({ host, mimeKindRules, filter, onFilterChange, onOpenHistory, variantSets }: ProcessingObjectBrowserProps): ReactNode;
554
627
  interface StatusPresentation {
555
628
  readonly label: string;
556
629
  }
@@ -650,6 +723,14 @@ type FinishedInstantProps = {
650
723
  readonly testId: string;
651
724
  };
652
725
  declare function FinishedInstant({ iso, testId }: FinishedInstantProps): ReactNode;
726
+ interface RetrievalEvaluationWorkbenchProps {
727
+ readonly variantSets: readonly VariantSetView[];
728
+ readonly host: RetrievalEvaluationHost;
729
+ readonly canSendCommands: boolean;
730
+ readonly revision: number;
731
+ readonly refreshMs: number;
732
+ }
733
+ declare function RetrievalEvaluationWorkbench({ variantSets, host, canSendCommands, revision, refreshMs }: RetrievalEvaluationWorkbenchProps): ReactNode;
653
734
  declare function recordedInstantSampleText(timeZone: string): string;
654
735
  declare function recordedInstantContent(timeZone: string): CellContent;
655
736
  interface FailedSyncItem {
@@ -694,4 +775,42 @@ declare const SYNC_STATUS_LABELS: Readonly<Record<EnrichmentSyncStatus, string>>
694
775
  declare const NO_ENRICHMENT_RECORD_TEXT = "\u53D6\u308A\u8FBC\u307F\u306E\u8A18\u9332\u306A\u3057";
695
776
  type SyncStatusTone = "info" | "success" | "danger";
696
777
  declare function syncStatusTone(status: EnrichmentSyncStatus): SyncStatusTone;
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 };
778
+ declare const PRODUCTION_VARIANT_LABEL = "\u672C\u756A (default)";
779
+ declare const PROJECTION_VARIANT_STATE_LABELS: Readonly<Record<ProjectionVariantState, string>>;
780
+ declare const PROJECTION_VARIANT_STATE_TONES: Readonly<Record<ProjectionVariantState, "success" | "warning" | "danger" | "neutral">>;
781
+ declare const EMBEDDING_PROVIDER_LABELS: Readonly<Record<EmbeddingProvider, string>>;
782
+ declare const SPARSE_MODIFIER_LABELS: Readonly<Record<SparseModifier, string>>;
783
+ declare const COMPARISON_MODE_LABELS: Readonly<Record<ComparisonMode, {
784
+ readonly label: string;
785
+ readonly description: string;
786
+ }>>;
787
+ declare const VARIANT_PROJECTION_SCOPE_LABELS: Readonly<Record<VariantProjectionScope, string>>;
788
+ declare const VARIANT_SHARE_DECIMALS = 1;
789
+ declare const VARIANT_SET_NO_DOCUMENT_TEXT = "\u5BFE\u8C61\u306E\u6587\u66F8\u304C\u3042\u308A\u307E\u305B\u3093";
790
+ interface VariantCoverage {
791
+ readonly projected: number;
792
+ readonly documents: number;
793
+ readonly share: number | null;
794
+ }
795
+ declare const activeVariantSets: (sets: readonly VariantSetView[]) => readonly VariantSetView[];
796
+ declare const variantCoverage: (rows: readonly Pick<VariantSetView["domains"][number], "projected" | "documents">[]) => VariantCoverage;
797
+ declare const variantSharePercentText: (coverage: VariantCoverage) => string;
798
+ declare const variantCoverageText: (coverage: VariantCoverage, subject: string, formatLocale: string) => string;
799
+ declare const variantSetOptionLabel: (set: VariantSetView) => string;
800
+ declare const variantKeyLabel: (key: string) => string;
801
+ declare const VARIANT_STATE_UNREAD_TEXT = "\u72B6\u614B\u3092\u8AAD\u3093\u3067\u3044\u307E\u305B\u3093";
802
+ type VariantSetCoverage = {
803
+ readonly kind: "covered";
804
+ readonly row: VariantDomainRow;
805
+ } | {
806
+ readonly kind: "unclassified";
807
+ } | {
808
+ readonly kind: "missing";
809
+ };
810
+ type VariantSetUncoveredKind = Exclude<VariantSetCoverage["kind"], "covered">;
811
+ declare const VARIANT_UNCOVERED_STATE_TEXTS: Readonly<Record<VariantSetUncoveredKind, string>>;
812
+ declare const VARIANT_STATE_CELL_CONTENTS: readonly CellContent[];
813
+ declare const variantSetCoverage: (set: VariantSetView, domainKey: string | null) => VariantSetCoverage;
814
+ declare const VARIANT_COMMAND_FORBIDDEN_SENTENCE = "\u5909\u7A2E\u306E\u7D44\u3092\u64CD\u4F5C\u3059\u308B\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002";
815
+ declare const variantProjectionActiveSentence: (variantKey: string, reason: string) => string;
816
+ export { API_DEFAULT_COMPARISON_MODE, BREAKER_STATE_LABELS, CAPTURE_FORBIDDEN_SENTENCE, CHILD_RUNS_REFUSAL, CHUNKING_ONLY_NOTE, CHUNK_BODY_FIDELITY_LABELS, CHUNK_CHANGE_KIND_LABELS, COMPARISON_MODE_LABELS, CONFIDENTIALITY_LEVEL_LABELS, ChildRunList, type ChildRunListProps, type ChildRunPageReader, DEGRADATION_REASON_LABELS, DIFFERENCE_CELL_SAMPLES, DIFFERENCE_VERDICT_LABELS, DOCUMENT_STATE_CAUSE_LABELS, DegradedSearchBanner, type DegradedSearchBannerProps, type DeveloperSearchPreset, type DiffLinePageQuery, type DiffLinePageReader, type DiffLineTarget, type DifferenceVerdict, 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 DocumentVariantHost, type DocumentVariantProjection, type DocumentVariantReading, type DocumentVectorScore, type DocumentVectorScoreKind, EMBEDDING_PROVIDER_LABELS, ENDPOINT_OUTSIDE_DEPLOYMENT_TEXT, EVALUATION_ACTIVE_RUN_STATUSES, EVALUATION_BASELINE_TEXT, EVALUATION_COMMAND_FORBIDDEN_SENTENCE, EVALUATION_GRADE_LABELS, EVALUATION_JUDGE_LABELS, EVALUATION_METRIC_DECIMALS, EVALUATION_POOL_BUSY_SENTENCE, EVALUATION_POOL_CHOOSE_SENTENCE, EVALUATION_QUERY_ORIGIN_LABELS, EVALUATION_QUERY_ROWS_BUSY_SENTENCE, EVALUATION_QUERY_STATUS_LABELS, EVALUATION_READ_FORBIDDEN_SENTENCE, EVALUATION_REJECT_REASON_LABELS, EVALUATION_RUN_FAILURE_LABELS, EVALUATION_RUN_PHASE_LABELS, EVALUATION_RUN_SHOWN_SENTENCE, EVALUATION_RUN_STATUS_LABELS, EVALUATION_SEARCH_MODE_LABELS, EVALUATION_UNSCORED_TEXT, EmbeddingVariantBoard, type EmbeddingVariantBoardProps, EnrichmentStrategyBoard, type EnrichmentStrategyBoardProps, type EnrichmentStrategyRow, type EvaluationScopeIncompleteRejection, 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, METRIC_CELL_SAMPLES, 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, PRODUCTION_VARIANT_LABEL, PROJECTION_VARIANT_STATE_LABELS, PROJECTION_VARIANT_STATE_TONES, 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, type RetrievalEvaluationHost, RetrievalEvaluationWorkbench, type RetrievalEvaluationWorkbenchProps, SCORE_DECIMALS, SCORE_DISPLAY_DECIMALS, SEARCH_FUSION_LABELS, SEARCH_MODE_LABELS, SEARCH_PRESETS, SPARSE_MODIFIER_LABELS, 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, VARIANT_COMMAND_FORBIDDEN_SENTENCE, VARIANT_PROJECTION_SCOPE_LABELS, VARIANT_SET_FIELD_MESSAGES, VARIANT_SET_NO_DOCUMENT_TEXT, VARIANT_SHARE_DECIMALS, VARIANT_STATE_CELL_CONTENTS, VARIANT_STATE_UNREAD_TEXT, VARIANT_UNCOVERED_STATE_TEXTS, type VariantCoverage, type VariantProjectionActiveRejection, type VariantSetCommands, type VariantSetCoverage, type VariantSetCreateField, type VariantSetCreateRejection, type VariantSetFieldError, type VariantSetUncoveredKind, WHITESPACE_NORMALIZED_NOTE, activeVariantSets, catalogFigureGeometry, confidenceText, decimalText, degradationReasonText, differenceText, differenceVerdict, documentKindFlows, documentKindLabel, drawnDependencies, facetCountsText, fieldLabel, flowGeometry, gateCaption, gateState, gateStateOf, historyFailedSentence, historyFailureSentence, ingestRowAction, ingestionJobCancelAnnouncement, ingestionJobCancelSentence, ingestionJobKindLabel, ingestionJobStatus, ingestionJobTargetLabel, ingestionQueueHealthUnavailableSentence, integerField, jsonValueText, layoutFlow, ledgerStepLabel, metricText, nodeReadingText, pipelineFlowLabel, pipelineRunPresentationKey, processingObjectClassificationText, processingObjectKindText, rankAgreement, recordedInstantContent, recordedInstantSampleText, revisionLabel, revisionTransitionText, runProgressText, skipReasonLabel, stepGatePolicy, stepGateState, syncStatusTone, unrecordedRunsMark, variantCoverage, variantCoverageText, variantHitKey, variantKeyLabel, variantProjectionActiveSentence, variantSetCoverage, variantSetOptionLabel, variantSharePercentText, vectorScoreText };