structured-context 0.22.0 → 0.22.1
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/api.d.ts +2 -1
- package/dist/api.js +1 -0
- package/dist/types.d.ts +5 -2
- package/dist/types.js +10 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export { bundledSchemasDir, loadSchema, type PluginSchemaSource, setBundledSchem
|
|
|
35
35
|
export { createSpaceContext } from './space-context';
|
|
36
36
|
export { buildSpaceGraph } from './space-graph';
|
|
37
37
|
export { exportSpaceGraph } from './space-graph-data';
|
|
38
|
-
export type { BaseNode, ContentLink, EdgeDefinition, FileNotInSpaceResult, FileValidationIssue, FileValidationResult, Hierarchy, HierarchyLevel, ParseIssue, ReadSpaceResult, Relationship, ResolvedContentLink, RuleCategory, RuleSeverity, RuleViolation, SchemaMetadata, SchemaWithMetadata, SourceLocation, SpaceContext, UnresolvedRef, ValidateFileOutput, } from './types';
|
|
38
|
+
export type { BaseNode, ContentLink, EdgeDefinition, FileNotInSpaceResult, FileValidationIssue, FileValidationResult, Hierarchy, HierarchyLevel, ParseIssue, ReadSpaceResult, Relationship, ResolvedContentLink, RuleCategory, RuleSeverity, RuleViolation, SchemaMetadata, SchemaWithMetadata, SourceLocation, SpaceContext, UnresolvedRef, ValidateFileOutput, ValidationIssueKind, } from './types';
|
|
39
|
+
export { VALIDATION_ISSUE_KINDS } from './types';
|
|
39
40
|
export type { ValidationResult } from './validate';
|
|
40
41
|
export { nodeIssues, validateFile, validateSpace } from './validate';
|
package/dist/api.js
CHANGED
|
@@ -32,4 +32,5 @@ export { bundledSchemasDir, loadSchema, setBundledSchemasDir } from './schema/sc
|
|
|
32
32
|
export { createSpaceContext } from './space-context';
|
|
33
33
|
export { buildSpaceGraph } from './space-graph';
|
|
34
34
|
export { exportSpaceGraph } from './space-graph-data';
|
|
35
|
+
export { VALIDATION_ISSUE_KINDS } from './types';
|
|
35
36
|
export { nodeIssues, validateFile, validateSpace } from './validate';
|
package/dist/types.d.ts
CHANGED
|
@@ -247,9 +247,12 @@ export type SpaceContext = {
|
|
|
247
247
|
/** Directory of the config file that defines this space. Used for resolving relative paths in plugin configs. */
|
|
248
248
|
configDir: string;
|
|
249
249
|
};
|
|
250
|
+
/** The checks a validation issue can come from. */
|
|
251
|
+
export declare const VALIDATION_ISSUE_KINDS: readonly ["schema", "duplicate", "broken-link", "hierarchy", "rule", "gated", "content-link"];
|
|
252
|
+
export type ValidationIssueKind = (typeof VALIDATION_ISSUE_KINDS)[number];
|
|
250
253
|
export interface FileValidationIssue {
|
|
251
|
-
/** The check it came from
|
|
252
|
-
kind:
|
|
254
|
+
/** The check it came from. */
|
|
255
|
+
kind: ValidationIssueKind;
|
|
253
256
|
message: string;
|
|
254
257
|
/** How serious the issue is; consumers read it rather than infer it from `kind`. */
|
|
255
258
|
severity: RuleSeverity;
|
package/dist/types.js
CHANGED
package/package.json
CHANGED