@docs-sdk-dev/reader 0.0.0-stage → 0.4.0-next.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.
Files changed (108) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +97 -2
  3. package/dist/annotation-projection.d.ts +35 -0
  4. package/dist/annotation-projection.js +78 -0
  5. package/dist/annotation-projection.js.map +1 -0
  6. package/dist/artifacts.d.ts +19 -0
  7. package/dist/artifacts.js +33 -0
  8. package/dist/artifacts.js.map +1 -0
  9. package/dist/ask.d.ts +41 -0
  10. package/dist/ask.js +89 -0
  11. package/dist/ask.js.map +1 -0
  12. package/dist/collection-view.d.ts +190 -0
  13. package/dist/collection-view.js +170 -0
  14. package/dist/collection-view.js.map +1 -0
  15. package/dist/composition.d.ts +199 -0
  16. package/dist/composition.js +473 -0
  17. package/dist/composition.js.map +1 -0
  18. package/dist/condition.d.ts +17 -0
  19. package/dist/condition.js +61 -0
  20. package/dist/condition.js.map +1 -0
  21. package/dist/content-schema.d.ts +182 -0
  22. package/dist/content-schema.js +288 -0
  23. package/dist/content-schema.js.map +1 -0
  24. package/dist/context-search.d.ts +168 -0
  25. package/dist/context-search.js +73 -0
  26. package/dist/context-search.js.map +1 -0
  27. package/dist/context-store.d.ts +93 -0
  28. package/dist/context-store.js +438 -0
  29. package/dist/context-store.js.map +1 -0
  30. package/dist/dimension-runtime.d.ts +203 -0
  31. package/dist/dimension-runtime.js +737 -0
  32. package/dist/dimension-runtime.js.map +1 -0
  33. package/dist/dimensions.d.ts +84 -0
  34. package/dist/dimensions.js +136 -0
  35. package/dist/dimensions.js.map +1 -0
  36. package/dist/directory-navigation.d.ts +60 -0
  37. package/dist/directory-navigation.js +41 -0
  38. package/dist/directory-navigation.js.map +1 -0
  39. package/dist/directory-sections.d.ts +9 -0
  40. package/dist/directory-sections.js +76 -0
  41. package/dist/directory-sections.js.map +1 -0
  42. package/dist/document-reader.d.ts +1017 -0
  43. package/dist/document-reader.js +396 -0
  44. package/dist/document-reader.js.map +1 -0
  45. package/dist/document-selection.d.ts +412 -0
  46. package/dist/document-selection.js +45 -0
  47. package/dist/document-selection.js.map +1 -0
  48. package/dist/evidence.d.ts +102 -0
  49. package/dist/evidence.js +104 -0
  50. package/dist/evidence.js.map +1 -0
  51. package/dist/index.d.ts +19 -0
  52. package/dist/index.js +23 -0
  53. package/dist/model.d.ts +89 -0
  54. package/dist/model.js +31 -0
  55. package/dist/model.js.map +1 -0
  56. package/dist/module.d.ts +657 -0
  57. package/dist/module.js +199 -0
  58. package/dist/module.js.map +1 -0
  59. package/dist/navigation-view.d.ts +33 -0
  60. package/dist/navigation-view.js +68 -0
  61. package/dist/navigation-view.js.map +1 -0
  62. package/dist/node.d.ts +2004 -0
  63. package/dist/node.js +210 -0
  64. package/dist/node.js.map +1 -0
  65. package/dist/open-docs.d.ts +1396 -0
  66. package/dist/open-docs.js +198 -0
  67. package/dist/open-docs.js.map +1 -0
  68. package/dist/outline.d.ts +97 -0
  69. package/dist/outline.js +171 -0
  70. package/dist/outline.js.map +1 -0
  71. package/dist/persistence.d.ts +82 -0
  72. package/dist/persistence.js +377 -0
  73. package/dist/persistence.js.map +1 -0
  74. package/dist/projection-catalog.d.ts +23 -0
  75. package/dist/projection-catalog.js +45 -0
  76. package/dist/projection-catalog.js.map +1 -0
  77. package/dist/publication.d.ts +59 -0
  78. package/dist/publication.js +11 -0
  79. package/dist/publication.js.map +1 -0
  80. package/dist/reader.d.ts +236 -0
  81. package/dist/reader.js +400 -0
  82. package/dist/reader.js.map +1 -0
  83. package/dist/references.d.ts +54 -0
  84. package/dist/references.js +70 -0
  85. package/dist/references.js.map +1 -0
  86. package/dist/retrieval.d.ts +82 -0
  87. package/dist/retrieval.js +135 -0
  88. package/dist/retrieval.js.map +1 -0
  89. package/dist/search-view.d.ts +11 -0
  90. package/dist/search-view.js +30 -0
  91. package/dist/search-view.js.map +1 -0
  92. package/dist/search.d.ts +95 -0
  93. package/dist/search.js +234 -0
  94. package/dist/search.js.map +1 -0
  95. package/dist/semantic.d.ts +177 -0
  96. package/dist/semantic.js +104 -0
  97. package/dist/semantic.js.map +1 -0
  98. package/dist/skills.d.ts +21 -0
  99. package/dist/skills.js +42 -0
  100. package/dist/skills.js.map +1 -0
  101. package/docs/index.md +10 -0
  102. package/docs/sdk/composition.md +72 -0
  103. package/docs/sdk/reader-storage.md +70 -0
  104. package/docs/sdk/reader.md +99 -0
  105. package/docs/zh-CN/sdk/composition.md +72 -0
  106. package/docs/zh-CN/sdk/reader-storage.md +70 -0
  107. package/docs/zh-CN/sdk/reader.md +99 -0
  108. package/package.json +69 -4
@@ -0,0 +1,657 @@
1
+ import { type Context } from "./semantic.js";
2
+ import { type PublicationHost, type Manifest } from "./document-reader.js";
3
+ /** A stable public name maps to an identity across editions, optionally restricted to one section. */
4
+ export type DocumentExport = {
5
+ scope: string;
6
+ id: string;
7
+ section?: string;
8
+ } | {
9
+ entity: string;
10
+ };
11
+ export declare const isSoftwarePackageName: (name: string) => boolean;
12
+ export interface ModuleImport {
13
+ package: string;
14
+ version: string;
15
+ export: string;
16
+ }
17
+ export interface DocumentModule {
18
+ schemaVersion: 1;
19
+ software: {
20
+ name: string;
21
+ version: string;
22
+ };
23
+ adaptation?: {
24
+ provider: string;
25
+ sources: Record<string, {
26
+ path: string;
27
+ sha256: string;
28
+ kind: "markdown" | "declaration";
29
+ }>;
30
+ };
31
+ exports: Record<string, DocumentExport>;
32
+ imports?: Record<string, ModuleImport>;
33
+ }
34
+ export declare function decodeDocumentModule(value: unknown): DocumentModule;
35
+ /** Validate the public contract for every published edition. */
36
+ export declare function validateDocumentExports(module: DocumentModule, manifest: Manifest): (scope: string, id: string) => Context[];
37
+ /** Report removals and narrowing that can break an existing name. Internal identity moves are compatible. */
38
+ export declare function compareDocumentExports(before: DocumentModule, after: DocumentModule): {
39
+ name: string;
40
+ reason: "removed" | "export-kind-changed" | "entity-type-changed" | "narrowed-to-section";
41
+ }[];
42
+ /** Open data supplied by the host. Browser, embedded, sidecar and HTTP readers use the same export and edition rules. */
43
+ export declare function openDocumentModule(inventoryRevision: string, software: DocumentModule["software"], host: PublicationHost): Promise<{
44
+ status: "version-conflict";
45
+ software: {
46
+ name: string;
47
+ version: string;
48
+ };
49
+ documented: {
50
+ name: string;
51
+ version: string;
52
+ };
53
+ } | {
54
+ documented?: undefined;
55
+ status: "opened";
56
+ software: {
57
+ name: string;
58
+ version: string;
59
+ };
60
+ inventoryRevision: string;
61
+ exports: Record<string, DocumentExport>;
62
+ imports: Record<string, ModuleImport> | undefined;
63
+ adaptation?: {
64
+ provider: string;
65
+ sources: Record<string, {
66
+ path: string;
67
+ sha256: string;
68
+ kind: "markdown" | "declaration";
69
+ }>;
70
+ } | undefined;
71
+ evidenceFor(name: string, dimensions?: Record<string, string>): Promise<{
72
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
73
+ key: string;
74
+ identity: import("./model.js").Identity & {
75
+ dimensions: Record<string, string>;
76
+ };
77
+ route: string;
78
+ title: string;
79
+ availability?: Context;
80
+ navigationHidden?: boolean;
81
+ outlineView?: import("./outline.js").OutlineView | null;
82
+ description?: string;
83
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
84
+ showMetadata?: readonly string[];
85
+ presentation?: {
86
+ layout?: string | false;
87
+ actions?: readonly {
88
+ text: string;
89
+ href: string;
90
+ }[];
91
+ rendererProfile?: string;
92
+ };
93
+ origin?: {
94
+ kind: "generated" | "overlay" | "authored";
95
+ collection: string;
96
+ source: string;
97
+ upstreamRevision: string;
98
+ authored?: string;
99
+ };
100
+ mode: "template" | "replacement" | "markdown";
101
+ template?: {
102
+ id: string;
103
+ revision: string;
104
+ };
105
+ provenance: import("./model.js").Provenance[];
106
+ markdown: string;
107
+ contextDefaults?: Context;
108
+ contextVariants?: {
109
+ context: Context;
110
+ markdown: string;
111
+ sections: {
112
+ id: string;
113
+ title?: string;
114
+ documentOffset?: number;
115
+ markdown: string;
116
+ provenance: import("./model.js").Provenance[];
117
+ outline?: import("./outline.js").OutlineContribution[];
118
+ headings?: {
119
+ id: string;
120
+ text: string;
121
+ depth: number;
122
+ }[];
123
+ headingRanges?: readonly (readonly [number, number])[];
124
+ outlineRanges?: Record<string, readonly [number, number]>;
125
+ headingFiles?: Record<number, string>;
126
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
127
+ }[];
128
+ }[];
129
+ sections: {
130
+ id: string;
131
+ title?: string;
132
+ documentOffset?: number;
133
+ markdown: string;
134
+ provenance: import("./model.js").Provenance[];
135
+ outline?: import("./outline.js").OutlineContribution[];
136
+ headings?: {
137
+ id: string;
138
+ text: string;
139
+ depth: number;
140
+ }[];
141
+ headingRanges?: readonly (readonly [number, number])[];
142
+ outlineRanges?: Record<string, readonly [number, number]>;
143
+ headingFiles?: Record<number, string>;
144
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
145
+ }[];
146
+ losses?: (import("./model.js").ProjectionLoss & {
147
+ section: string;
148
+ })[];
149
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
150
+ status: "published-content";
151
+ entity: string;
152
+ identity: import("./model.js").Identity & {
153
+ dimensions: Record<string, string>;
154
+ };
155
+ mode: "markdown" | "replacement" | "template";
156
+ inventoryRevision: string;
157
+ contentSha256: string;
158
+ provenance: import("./model.js").Provenance[];
159
+ } | {
160
+ status: "not-found";
161
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
162
+ key: string;
163
+ identity: import("./model.js").Identity & {
164
+ dimensions: Record<string, string>;
165
+ };
166
+ route: string;
167
+ title: string;
168
+ availability?: Context;
169
+ navigationHidden?: boolean;
170
+ outlineView?: import("./outline.js").OutlineView | null;
171
+ description?: string;
172
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
173
+ showMetadata?: readonly string[];
174
+ presentation?: {
175
+ layout?: string | false;
176
+ actions?: readonly {
177
+ text: string;
178
+ href: string;
179
+ }[];
180
+ rendererProfile?: string;
181
+ };
182
+ origin?: {
183
+ kind: "generated" | "overlay" | "authored";
184
+ collection: string;
185
+ source: string;
186
+ upstreamRevision: string;
187
+ authored?: string;
188
+ };
189
+ mode: "template" | "replacement" | "markdown";
190
+ template?: {
191
+ id: string;
192
+ revision: string;
193
+ };
194
+ provenance: import("./model.js").Provenance[];
195
+ markdown: string;
196
+ contextDefaults?: Context;
197
+ contextVariants?: {
198
+ context: Context;
199
+ markdown: string;
200
+ sections: {
201
+ id: string;
202
+ title?: string;
203
+ documentOffset?: number;
204
+ markdown: string;
205
+ provenance: import("./model.js").Provenance[];
206
+ outline?: import("./outline.js").OutlineContribution[];
207
+ headings?: {
208
+ id: string;
209
+ text: string;
210
+ depth: number;
211
+ }[];
212
+ headingRanges?: readonly (readonly [number, number])[];
213
+ outlineRanges?: Record<string, readonly [number, number]>;
214
+ headingFiles?: Record<number, string>;
215
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
216
+ }[];
217
+ }[];
218
+ sections: {
219
+ id: string;
220
+ title?: string;
221
+ documentOffset?: number;
222
+ markdown: string;
223
+ provenance: import("./model.js").Provenance[];
224
+ outline?: import("./outline.js").OutlineContribution[];
225
+ headings?: {
226
+ id: string;
227
+ text: string;
228
+ depth: number;
229
+ }[];
230
+ headingRanges?: readonly (readonly [number, number])[];
231
+ outlineRanges?: Record<string, readonly [number, number]>;
232
+ headingFiles?: Record<number, string>;
233
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
234
+ }[];
235
+ losses?: (import("./model.js").ProjectionLoss & {
236
+ section: string;
237
+ })[];
238
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
239
+ } | {
240
+ status: "unsupported-context";
241
+ available: Context[];
242
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
243
+ key: string;
244
+ identity: import("./model.js").Identity & {
245
+ dimensions: Record<string, string>;
246
+ };
247
+ route: string;
248
+ title: string;
249
+ availability?: Context;
250
+ navigationHidden?: boolean;
251
+ outlineView?: import("./outline.js").OutlineView | null;
252
+ description?: string;
253
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
254
+ showMetadata?: readonly string[];
255
+ presentation?: {
256
+ layout?: string | false;
257
+ actions?: readonly {
258
+ text: string;
259
+ href: string;
260
+ }[];
261
+ rendererProfile?: string;
262
+ };
263
+ origin?: {
264
+ kind: "generated" | "overlay" | "authored";
265
+ collection: string;
266
+ source: string;
267
+ upstreamRevision: string;
268
+ authored?: string;
269
+ };
270
+ mode: "template" | "replacement" | "markdown";
271
+ template?: {
272
+ id: string;
273
+ revision: string;
274
+ };
275
+ provenance: import("./model.js").Provenance[];
276
+ markdown: string;
277
+ contextDefaults?: Context;
278
+ contextVariants?: {
279
+ context: Context;
280
+ markdown: string;
281
+ sections: {
282
+ id: string;
283
+ title?: string;
284
+ documentOffset?: number;
285
+ markdown: string;
286
+ provenance: import("./model.js").Provenance[];
287
+ outline?: import("./outline.js").OutlineContribution[];
288
+ headings?: {
289
+ id: string;
290
+ text: string;
291
+ depth: number;
292
+ }[];
293
+ headingRanges?: readonly (readonly [number, number])[];
294
+ outlineRanges?: Record<string, readonly [number, number]>;
295
+ headingFiles?: Record<number, string>;
296
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
297
+ }[];
298
+ }[];
299
+ sections: {
300
+ id: string;
301
+ title?: string;
302
+ documentOffset?: number;
303
+ markdown: string;
304
+ provenance: import("./model.js").Provenance[];
305
+ outline?: import("./outline.js").OutlineContribution[];
306
+ headings?: {
307
+ id: string;
308
+ text: string;
309
+ depth: number;
310
+ }[];
311
+ headingRanges?: readonly (readonly [number, number])[];
312
+ outlineRanges?: Record<string, readonly [number, number]>;
313
+ headingFiles?: Record<number, string>;
314
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
315
+ }[];
316
+ losses?: (import("./model.js").ProjectionLoss & {
317
+ section: string;
318
+ })[];
319
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
320
+ } | {
321
+ status: "ambiguous";
322
+ candidates: Context[];
323
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
324
+ key: string;
325
+ identity: import("./model.js").Identity & {
326
+ dimensions: Record<string, string>;
327
+ };
328
+ route: string;
329
+ title: string;
330
+ availability?: Context;
331
+ navigationHidden?: boolean;
332
+ outlineView?: import("./outline.js").OutlineView | null;
333
+ description?: string;
334
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
335
+ showMetadata?: readonly string[];
336
+ presentation?: {
337
+ layout?: string | false;
338
+ actions?: readonly {
339
+ text: string;
340
+ href: string;
341
+ }[];
342
+ rendererProfile?: string;
343
+ };
344
+ origin?: {
345
+ kind: "generated" | "overlay" | "authored";
346
+ collection: string;
347
+ source: string;
348
+ upstreamRevision: string;
349
+ authored?: string;
350
+ };
351
+ mode: "template" | "replacement" | "markdown";
352
+ template?: {
353
+ id: string;
354
+ revision: string;
355
+ };
356
+ provenance: import("./model.js").Provenance[];
357
+ markdown: string;
358
+ contextDefaults?: Context;
359
+ contextVariants?: {
360
+ context: Context;
361
+ markdown: string;
362
+ sections: {
363
+ id: string;
364
+ title?: string;
365
+ documentOffset?: number;
366
+ markdown: string;
367
+ provenance: import("./model.js").Provenance[];
368
+ outline?: import("./outline.js").OutlineContribution[];
369
+ headings?: {
370
+ id: string;
371
+ text: string;
372
+ depth: number;
373
+ }[];
374
+ headingRanges?: readonly (readonly [number, number])[];
375
+ outlineRanges?: Record<string, readonly [number, number]>;
376
+ headingFiles?: Record<number, string>;
377
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
378
+ }[];
379
+ }[];
380
+ sections: {
381
+ id: string;
382
+ title?: string;
383
+ documentOffset?: number;
384
+ markdown: string;
385
+ provenance: import("./model.js").Provenance[];
386
+ outline?: import("./outline.js").OutlineContribution[];
387
+ headings?: {
388
+ id: string;
389
+ text: string;
390
+ depth: number;
391
+ }[];
392
+ headingRanges?: readonly (readonly [number, number])[];
393
+ outlineRanges?: Record<string, readonly [number, number]>;
394
+ headingFiles?: Record<number, string>;
395
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
396
+ }[];
397
+ losses?: (import("./model.js").ProjectionLoss & {
398
+ section: string;
399
+ })[];
400
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
401
+ } | {
402
+ status: "exact";
403
+ entity: string;
404
+ variant: string;
405
+ revision: string;
406
+ sources: {
407
+ git?: {
408
+ source: string;
409
+ commit: string;
410
+ path: string;
411
+ ownership: "upstream";
412
+ };
413
+ source: string;
414
+ revision?: string;
415
+ symbol?: string;
416
+ layer?: "template" | "collection" | "entry";
417
+ position?: "before" | "body" | "after";
418
+ range?: {
419
+ start: number;
420
+ end: number;
421
+ };
422
+ extractor?: {
423
+ name: string;
424
+ version: string;
425
+ };
426
+ evidence?: import("./semantic.js").Evidence;
427
+ origin: "authored" | "declared" | "extracted" | "inferred" | "unclassified";
428
+ }[];
429
+ checks: import("./evidence.js").FactCheckReceipt[];
430
+ findings?: import("./evidence.js").FactFinding[] | undefined;
431
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
432
+ key: string;
433
+ identity: import("./model.js").Identity & {
434
+ dimensions: Record<string, string>;
435
+ };
436
+ route: string;
437
+ title: string;
438
+ availability?: Context;
439
+ navigationHidden?: boolean;
440
+ outlineView?: import("./outline.js").OutlineView | null;
441
+ description?: string;
442
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
443
+ showMetadata?: readonly string[];
444
+ presentation?: {
445
+ layout?: string | false;
446
+ actions?: readonly {
447
+ text: string;
448
+ href: string;
449
+ }[];
450
+ rendererProfile?: string;
451
+ };
452
+ origin?: {
453
+ kind: "generated" | "overlay" | "authored";
454
+ collection: string;
455
+ source: string;
456
+ upstreamRevision: string;
457
+ authored?: string;
458
+ };
459
+ mode: "template" | "replacement" | "markdown";
460
+ template?: {
461
+ id: string;
462
+ revision: string;
463
+ };
464
+ provenance: import("./model.js").Provenance[];
465
+ markdown: string;
466
+ contextDefaults?: Context;
467
+ contextVariants?: {
468
+ context: Context;
469
+ markdown: string;
470
+ sections: {
471
+ id: string;
472
+ title?: string;
473
+ documentOffset?: number;
474
+ markdown: string;
475
+ provenance: import("./model.js").Provenance[];
476
+ outline?: import("./outline.js").OutlineContribution[];
477
+ headings?: {
478
+ id: string;
479
+ text: string;
480
+ depth: number;
481
+ }[];
482
+ headingRanges?: readonly (readonly [number, number])[];
483
+ outlineRanges?: Record<string, readonly [number, number]>;
484
+ headingFiles?: Record<number, string>;
485
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
486
+ }[];
487
+ }[];
488
+ sections: {
489
+ id: string;
490
+ title?: string;
491
+ documentOffset?: number;
492
+ markdown: string;
493
+ provenance: import("./model.js").Provenance[];
494
+ outline?: import("./outline.js").OutlineContribution[];
495
+ headings?: {
496
+ id: string;
497
+ text: string;
498
+ depth: number;
499
+ }[];
500
+ headingRanges?: readonly (readonly [number, number])[];
501
+ outlineRanges?: Record<string, readonly [number, number]>;
502
+ headingFiles?: Record<number, string>;
503
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
504
+ }[];
505
+ losses?: (import("./model.js").ProjectionLoss & {
506
+ section: string;
507
+ })[];
508
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
509
+ }>;
510
+ exportContexts(name: string): Promise<Context[]>;
511
+ consumersOf(name: string, dimensions?: Record<string, string>): Promise<{
512
+ entity: string;
513
+ relation: import("./semantic.js").RelationType;
514
+ provenance: import("./model.js").Provenance[];
515
+ expectedPin: import("./references.js").EntityRevisionPin | undefined;
516
+ }[]>;
517
+ readExport(name: string, dimensions?: Record<string, string>): Promise<{
518
+ status: "not-found";
519
+ } | {
520
+ status: "unsupported-context";
521
+ available: Context[];
522
+ } | {
523
+ status: "ambiguous";
524
+ candidates: Context[];
525
+ } | {
526
+ status: "not-found";
527
+ export: string;
528
+ } | {
529
+ status: "exact";
530
+ kind: "entity";
531
+ software: {
532
+ name: string;
533
+ version: string;
534
+ };
535
+ inventoryRevision: string;
536
+ export: string;
537
+ entity: string;
538
+ value: import("./semantic.js").EntityVariant<unknown>;
539
+ adaptation?: {
540
+ provider: string;
541
+ source: {
542
+ path: string;
543
+ sha256: string;
544
+ kind: "markdown" | "declaration";
545
+ };
546
+ } | undefined;
547
+ } | {
548
+ status: "exact";
549
+ kind: "markdown";
550
+ software: {
551
+ name: string;
552
+ version: string;
553
+ };
554
+ inventoryRevision: string;
555
+ export: string;
556
+ adaptation?: {
557
+ provider: string;
558
+ source: {
559
+ path: string;
560
+ sha256: string;
561
+ kind: "markdown" | "declaration";
562
+ };
563
+ } | undefined;
564
+ entity: string;
565
+ resolution?: Pick<import("./dimension-runtime.js").DimensionInspection<{
566
+ key: string;
567
+ identity: import("./model.js").Identity & {
568
+ dimensions: Record<string, string>;
569
+ };
570
+ route: string;
571
+ title: string;
572
+ availability?: Context;
573
+ navigationHidden?: boolean;
574
+ outlineView?: import("./outline.js").OutlineView | null;
575
+ description?: string;
576
+ meta?: Record<string, import("./content-schema.js").JsonValue>;
577
+ showMetadata?: readonly string[];
578
+ presentation?: {
579
+ layout?: string | false;
580
+ actions?: readonly {
581
+ text: string;
582
+ href: string;
583
+ }[];
584
+ rendererProfile?: string;
585
+ };
586
+ origin?: {
587
+ kind: "generated" | "overlay" | "authored";
588
+ collection: string;
589
+ source: string;
590
+ upstreamRevision: string;
591
+ authored?: string;
592
+ };
593
+ mode: "template" | "replacement" | "markdown";
594
+ template?: {
595
+ id: string;
596
+ revision: string;
597
+ };
598
+ provenance: import("./model.js").Provenance[];
599
+ markdown: string;
600
+ contextDefaults?: Context;
601
+ contextVariants?: {
602
+ context: Context;
603
+ markdown: string;
604
+ sections: {
605
+ id: string;
606
+ title?: string;
607
+ documentOffset?: number;
608
+ markdown: string;
609
+ provenance: import("./model.js").Provenance[];
610
+ outline?: import("./outline.js").OutlineContribution[];
611
+ headings?: {
612
+ id: string;
613
+ text: string;
614
+ depth: number;
615
+ }[];
616
+ headingRanges?: readonly (readonly [number, number])[];
617
+ outlineRanges?: Record<string, readonly [number, number]>;
618
+ headingFiles?: Record<number, string>;
619
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
620
+ }[];
621
+ }[];
622
+ sections: {
623
+ id: string;
624
+ title?: string;
625
+ documentOffset?: number;
626
+ markdown: string;
627
+ provenance: import("./model.js").Provenance[];
628
+ outline?: import("./outline.js").OutlineContribution[];
629
+ headings?: {
630
+ id: string;
631
+ text: string;
632
+ depth: number;
633
+ }[];
634
+ headingRanges?: readonly (readonly [number, number])[];
635
+ outlineRanges?: Record<string, readonly [number, number]>;
636
+ headingFiles?: Record<number, string>;
637
+ headingIndexes?: import("./model.js").MarkdownHeadingIndexes;
638
+ }[];
639
+ losses?: (import("./model.js").ProjectionLoss & {
640
+ section: string;
641
+ })[];
642
+ }>, "effective" | "reasons" | "requested" | "resolved" | "status"> | undefined;
643
+ route: string;
644
+ losses: (import("./model.js").ProjectionLoss & {
645
+ section: string;
646
+ })[];
647
+ contentSha256: string;
648
+ identity: import("./model.js").Identity & {
649
+ dimensions: Record<string, string>;
650
+ };
651
+ value: import("./document-reader.js").PublishedMarkdownRead;
652
+ }>;
653
+ }>;
654
+ export type OpenDocumentModule = Extract<Awaited<ReturnType<typeof openDocumentModule>>, {
655
+ status: "opened";
656
+ }>;
657
+ export type ReadDocumentExport = Awaited<ReturnType<OpenDocumentModule["readExport"]>>;