export interface GitWarpImportBatch { importBatchId: string; repositoryId: string; sourceRef: string; importedBasisId: string; parity: MigrationParityStatus; importedReadingCount: number; summary: string; } export interface GraftStructuralHistoryInvariants { _placeholder: boolean | null; } export type Hash = unknown; export type Json = unknown; export type MigrationParityStatus = "NOT_CHECKED" | "MATCHED" | "MISMATCHED" | "PARTIAL"; export interface RecordGitWarpImportBatchInput { importBatchId: string; repositoryId: string; sourceRef: string; importedBasisId: string; parity: MigrationParityStatus; importedReadingCount: number; summary: string; } export type SourceSpanEncoding = "UTF8_BYTE_RANGE" | "UTF16_CODE_UNIT_RANGE" | "LINE_COLUMN"; export interface StructuralBasis { basisId: string; repositoryId: string; basisKind: StructuralBasisKind; commitId: string | null; refName: string | null; echoHeadId: string | null; importBatchId: string | null; summary: string; } export type StructuralBasisKind = "GIT_COMMIT" | "GIT_REF" | "ECHO_HEAD" | "LIVE_FRONTIER" | "IMPORT_BATCH" | "UNPINNED_COMMITTED"; export type StructuralEvidenceKind = "ECHO_NATIVE" | "GIT_WARP_IMPORTED" | "FALLBACK_TRANSLATED"; export interface StructuralFileVersion { fileVersionId: string; repositoryId: string; basisId: string; path: string; contentDigest: Hash; language: string | null; summary: string; } export interface StructuralParserRun { parserRunId: string; fileVersionId: string; parserName: string; parserVersion: string | null; diagnosticCount: number; summary: string; } export interface StructuralReading { readingId: string; repositoryId: string; basisId: string; evidenceId: string; readingKind: StructuralReadingKind; freshness: StructuralReadingFreshness; residualPosture: StructuralReadingResidualPosture; payloadDigest: Hash; payloadJson: Json | null; summary: string; } export interface StructuralReadingEvidence { evidenceId: string; evidenceKind: StructuralEvidenceKind; substrate: StructuralSubstrateKind; basisId: string; sourceRef: string | null; migrationBatchId: string | null; nativeContinuumWitness: boolean; parity: MigrationParityStatus; summary: string; } export type StructuralReadingFreshness = "CURRENT" | "STALE" | "INCOMPARABLE" | "UNKNOWN" | "LIVE_FRONTIER"; export type StructuralReadingKind = "SYMBOL_REFERENCE_COUNT" | "DEAD_SYMBOLS" | "SYMBOL_HISTORY" | "REFACTOR_DIFFICULTY" | "STRUCTURAL_LOG" | "STRUCTURAL_CHURN" | "PRECISION_CODE_LOOKUP"; export type StructuralReadingResidualPosture = "COMPLETE" | "PARTIAL" | "PLURAL" | "BUDGET_LIMITED" | "RIGHTS_LIMITED" | "UNAVAILABLE" | "OBSTRUCTED" | "DEGRADED"; export interface StructuralRepository { repositoryId: string; rootKey: string; defaultBranch: string | null; summary: string; } export interface StructuralSourceSpan { spanId: string; fileVersionId: string; encoding: SourceSpanEncoding; startOffset: number; endOffset: number; startLine: number | null; endLine: number | null; summary: string; } export type StructuralSubstrateKind = "ECHO" | "GIT_WARP"; export interface StructuralSymbol { symbolId: string; repositoryId: string; basisId: string; fileVersionId: string; parserRunId: string | null; name: string; kind: string; visibility: SymbolVisibility; declarationSpanId: string | null; exported: boolean; summary: string; } export interface StructuralSymbolRelation { relationId: string; repositoryId: string; basisId: string; relationKind: SymbolRelationKind; fromSymbolId: string | null; toSymbolId: string | null; fileVersionId: string | null; spanId: string | null; summary: string; } export type SymbolRelationKind = "IMPORTS" | "EXPORTS" | "REFERENCES" | "CALLS" | "DEFINES" | "REMOVES"; export type SymbolVisibility = "LOCAL" | "EXPORTED" | "UNKNOWN"; export interface QueryStructuralRepositoriesRequest { repositoryId?: string | null; } export type QueryStructuralRepositoriesResponse = StructuralRepository[]; export declare const queryStructuralRepositoriesOperation: { readonly operationType: "QUERY"; readonly fieldName: "structuralRepositories"; readonly directives: { readonly wes_op: { readonly name: "structuralRepositories"; readonly readonly: true; }; readonly wes_footprint: { readonly reads: readonly ["StructuralRepository"]; }; }; }; export type QueryStructuralRepositoriesOperation = { request: QueryStructuralRepositoriesRequest; response: QueryStructuralRepositoriesResponse; metadata: typeof queryStructuralRepositoriesOperation; }; export interface QueryStructuralBasesRequest { repositoryId: string; basisKind?: StructuralBasisKind | null; } export type QueryStructuralBasesResponse = StructuralBasis[]; export declare const queryStructuralBasesOperation: { readonly operationType: "QUERY"; readonly fieldName: "structuralBases"; readonly directives: { readonly wes_op: { readonly name: "structuralBases"; readonly readonly: true; }; readonly wes_footprint: { readonly reads: readonly ["StructuralBasis"]; }; }; }; export type QueryStructuralBasesOperation = { request: QueryStructuralBasesRequest; response: QueryStructuralBasesResponse; metadata: typeof queryStructuralBasesOperation; }; export interface QueryStructuralFileVersionsRequest { basisId: string; path?: string | null; } export type QueryStructuralFileVersionsResponse = StructuralFileVersion[]; export declare const queryStructuralFileVersionsOperation: { readonly operationType: "QUERY"; readonly fieldName: "structuralFileVersions"; readonly directives: { readonly wes_op: { readonly name: "structuralFileVersions"; readonly readonly: true; }; readonly wes_footprint: { readonly reads: readonly ["StructuralFileVersion"]; }; }; }; export type QueryStructuralFileVersionsOperation = { request: QueryStructuralFileVersionsRequest; response: QueryStructuralFileVersionsResponse; metadata: typeof queryStructuralFileVersionsOperation; }; export interface QueryStructuralSymbolsRequest { basisId: string; fileVersionId?: string | null; name?: string | null; } export type QueryStructuralSymbolsResponse = StructuralSymbol[]; export declare const queryStructuralSymbolsOperation: { readonly operationType: "QUERY"; readonly fieldName: "structuralSymbols"; readonly directives: { readonly wes_op: { readonly name: "structuralSymbols"; readonly readonly: true; }; readonly wes_footprint: { readonly reads: readonly ["StructuralSymbol"]; }; }; }; export type QueryStructuralSymbolsOperation = { request: QueryStructuralSymbolsRequest; response: QueryStructuralSymbolsResponse; metadata: typeof queryStructuralSymbolsOperation; }; export interface QueryStructuralSymbolRelationsRequest { basisId: string; symbolId?: string | null; relationKind?: SymbolRelationKind | null; } export type QueryStructuralSymbolRelationsResponse = StructuralSymbolRelation[]; export declare const queryStructuralSymbolRelationsOperation: { readonly operationType: "QUERY"; readonly fieldName: "structuralSymbolRelations"; readonly directives: { readonly wes_op: { readonly name: "structuralSymbolRelations"; readonly readonly: true; }; readonly wes_footprint: { readonly reads: readonly ["StructuralSymbolRelation"]; }; }; }; export type QueryStructuralSymbolRelationsOperation = { request: QueryStructuralSymbolRelationsRequest; response: QueryStructuralSymbolRelationsResponse; metadata: typeof queryStructuralSymbolRelationsOperation; }; export interface QueryStructuralReadingsRequest { basisId: string; readingKind?: StructuralReadingKind | null; } export type QueryStructuralReadingsResponse = StructuralReading[]; export declare const queryStructuralReadingsOperation: { readonly operationType: "QUERY"; readonly fieldName: "structuralReadings"; readonly directives: { readonly wes_op: { readonly name: "structuralReadings"; readonly readonly: true; }; readonly wes_footprint: { readonly reads: readonly ["StructuralReading", "StructuralReadingEvidence"]; }; }; }; export type QueryStructuralReadingsOperation = { request: QueryStructuralReadingsRequest; response: QueryStructuralReadingsResponse; metadata: typeof queryStructuralReadingsOperation; }; export interface QueryStructuralReadingEvidenceRequest { evidenceId?: string | null; basisId?: string | null; } export type QueryStructuralReadingEvidenceResponse = StructuralReadingEvidence[]; export declare const queryStructuralReadingEvidenceOperation: { readonly operationType: "QUERY"; readonly fieldName: "structuralReadingEvidence"; readonly directives: { readonly wes_op: { readonly name: "structuralReadingEvidence"; readonly readonly: true; }; readonly wes_footprint: { readonly reads: readonly ["StructuralReadingEvidence"]; }; }; }; export type QueryStructuralReadingEvidenceOperation = { request: QueryStructuralReadingEvidenceRequest; response: QueryStructuralReadingEvidenceResponse; metadata: typeof queryStructuralReadingEvidenceOperation; }; export interface QueryGitWarpImportBatchesRequest { repositoryId: string; parity?: MigrationParityStatus | null; } export type QueryGitWarpImportBatchesResponse = GitWarpImportBatch[]; export declare const queryGitWarpImportBatchesOperation: { readonly operationType: "QUERY"; readonly fieldName: "gitWarpImportBatches"; readonly directives: { readonly wes_op: { readonly name: "gitWarpImportBatches"; readonly readonly: true; }; readonly wes_footprint: { readonly reads: readonly ["GitWarpImportBatch"]; }; }; }; export type QueryGitWarpImportBatchesOperation = { request: QueryGitWarpImportBatchesRequest; response: QueryGitWarpImportBatchesResponse; metadata: typeof queryGitWarpImportBatchesOperation; }; export interface MutationRecordGitWarpImportBatchRequest { input: RecordGitWarpImportBatchInput; } export type MutationRecordGitWarpImportBatchResponse = GitWarpImportBatch; export declare const mutationRecordGitWarpImportBatchOperation: { readonly operationType: "MUTATION"; readonly fieldName: "recordGitWarpImportBatch"; readonly directives: { readonly wes_op: { readonly name: "recordGitWarpImportBatch"; }; readonly wes_footprint: { readonly reads: readonly ["GitWarpImportBatch"]; readonly creates: readonly ["GitWarpImportBatch", "StructuralBasis"]; }; }; }; export type MutationRecordGitWarpImportBatchOperation = { request: MutationRecordGitWarpImportBatchRequest; response: MutationRecordGitWarpImportBatchResponse; metadata: typeof mutationRecordGitWarpImportBatchOperation; }; //# sourceMappingURL=graft-structural-history.d.ts.map