@knpkv/atlassian-common 0.2.0 → 0.4.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 (80) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +25 -10
  3. package/dist/Brand.d.ts +15 -15
  4. package/dist/Brand.d.ts.map +1 -1
  5. package/dist/Brand.js +5 -5
  6. package/dist/Brand.js.map +1 -1
  7. package/dist/Hash.d.ts +12 -14
  8. package/dist/Hash.d.ts.map +1 -1
  9. package/dist/Hash.js +18 -24
  10. package/dist/Hash.js.map +1 -1
  11. package/dist/ast/BlockNode.d.ts +120 -177
  12. package/dist/ast/BlockNode.d.ts.map +1 -1
  13. package/dist/ast/BlockNode.js +28 -8
  14. package/dist/ast/BlockNode.js.map +1 -1
  15. package/dist/ast/Document.d.ts +114 -156
  16. package/dist/ast/Document.d.ts.map +1 -1
  17. package/dist/ast/Document.js +1 -1
  18. package/dist/ast/Document.js.map +1 -1
  19. package/dist/ast/InlineNode.d.ts +59 -247
  20. package/dist/ast/InlineNode.d.ts.map +1 -1
  21. package/dist/ast/InlineNode.js +28 -3
  22. package/dist/ast/InlineNode.js.map +1 -1
  23. package/dist/ast/MacroNode.d.ts +62 -102
  24. package/dist/ast/MacroNode.d.ts.map +1 -1
  25. package/dist/ast/MacroNode.js +12 -5
  26. package/dist/ast/MacroNode.js.map +1 -1
  27. package/dist/auth/OAuthOperations.d.ts +1 -1
  28. package/dist/auth/OAuthOperations.d.ts.map +1 -1
  29. package/dist/auth/OAuthOperations.js +5 -6
  30. package/dist/auth/OAuthOperations.js.map +1 -1
  31. package/dist/auth/OAuthResponseSchemas.d.ts +13 -13
  32. package/dist/bin.d.ts +3 -0
  33. package/dist/bin.d.ts.map +1 -0
  34. package/dist/bin.js +58 -0
  35. package/dist/bin.js.map +1 -0
  36. package/dist/config/AuthProfiles.d.ts +342 -0
  37. package/dist/config/AuthProfiles.d.ts.map +1 -0
  38. package/dist/config/AuthProfiles.js +275 -0
  39. package/dist/config/AuthProfiles.js.map +1 -0
  40. package/dist/config/ConfigPaths.d.ts +12 -26
  41. package/dist/config/ConfigPaths.d.ts.map +1 -1
  42. package/dist/config/ConfigPaths.js +33 -3
  43. package/dist/config/ConfigPaths.js.map +1 -1
  44. package/dist/config/OAuthSchemas.d.ts +24 -24
  45. package/dist/config/ProfileManager.d.ts +92 -0
  46. package/dist/config/ProfileManager.d.ts.map +1 -0
  47. package/dist/config/ProfileManager.js +175 -0
  48. package/dist/config/ProfileManager.js.map +1 -0
  49. package/dist/config/TokenStorage.d.ts +5 -24
  50. package/dist/config/TokenStorage.d.ts.map +1 -1
  51. package/dist/config/TokenStorage.js +35 -22
  52. package/dist/config/TokenStorage.js.map +1 -1
  53. package/dist/config/index.d.ts +3 -1
  54. package/dist/config/index.d.ts.map +1 -1
  55. package/dist/config/index.js +5 -1
  56. package/dist/config/index.js.map +1 -1
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/index.js.map +1 -1
  61. package/package.json +17 -11
  62. package/src/Brand.ts +5 -17
  63. package/src/Hash.ts +27 -27
  64. package/src/ast/BlockNode.ts +13 -13
  65. package/src/ast/Document.ts +1 -1
  66. package/src/ast/InlineNode.ts +5 -5
  67. package/src/ast/MacroNode.ts +7 -6
  68. package/src/auth/OAuthOperations.ts +5 -6
  69. package/src/bin.ts +115 -0
  70. package/src/config/AuthProfiles.ts +384 -0
  71. package/src/config/ConfigPaths.ts +21 -7
  72. package/src/config/ProfileManager.ts +268 -0
  73. package/src/config/TokenStorage.ts +23 -27
  74. package/src/config/index.ts +42 -0
  75. package/src/index.ts +1 -1
  76. package/test/AuthProfiles.test.ts +131 -0
  77. package/test/Hash.test.ts +52 -0
  78. package/test/OAuthOperations.test.ts +2 -3
  79. package/test/ProfileManager.test.ts +188 -0
  80. package/tsconfig.tsbuildinfo +1 -1
@@ -1,16 +1,3 @@
1
- /**
2
- * Block-level AST nodes for Atlassian content (headings, paragraphs, tables, lists, etc.).
3
- *
4
- * **Mental model**
5
- *
6
- * - **Schema-driven ADT**: Each node is an Effect `Schema.Struct` with a `_tag` discriminant,
7
- * composed into the {@link BlockNode} union via `Schema.Union`.
8
- * - **Recursive via suspend**: `List` → `ListItem` → `BlockNode` cycles use `Schema.suspend`
9
- * to break infinite type recursion.
10
- * - **Inline children**: Most blocks contain `InlineNode` children for text-level content.
11
- *
12
- * @module
13
- */
14
1
  import * as Schema from "effect/Schema";
15
2
  import { type InlineNode as InlineNodeType } from "./InlineNode.js";
16
3
  /**
@@ -18,25 +5,19 @@ import { type InlineNode as InlineNodeType } from "./InlineNode.js";
18
5
  *
19
6
  * @category Version
20
7
  */
21
- export declare const SchemaVersion: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
22
- default: () => number;
23
- }>;
8
+ export declare const SchemaVersion: Schema.withConstructorDefault<Schema.Int>;
24
9
  /**
25
10
  * Optional raw source for exact roundtrip preservation.
26
11
  *
27
12
  * @category BlockNode
28
13
  */
29
- export declare const RawSource: Schema.optional<typeof Schema.String>;
30
- declare const Heading_base: Schema.TaggedClass<Heading, "Heading", {
31
- readonly _tag: Schema.tag<"Heading">;
32
- } & {
33
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
34
- default: () => number;
35
- }>;
36
- level: Schema.Literal<[1, 2, 3, 4, 5, 6]>;
37
- children: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
38
- rawSource: Schema.optional<typeof Schema.String>;
39
- }>;
14
+ export declare const RawSource: Schema.optional<Schema.String>;
15
+ declare const Heading_base: Schema.Class<Heading, Schema.TaggedStruct<"Heading", {
16
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
17
+ readonly level: Schema.Literals<readonly [1, 2, 3, 4, 5, 6]>;
18
+ readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
19
+ readonly rawSource: Schema.optional<Schema.String>;
20
+ }>, {}>;
40
21
  /**
41
22
  * Heading element (h1-h6).
42
23
  *
@@ -59,24 +40,20 @@ export declare class Heading extends Heading_base {
59
40
  *
60
41
  * @category BlockNode
61
42
  */
62
- export declare const TextAlignment: Schema.Literal<["left", "center", "right"]>;
43
+ export declare const TextAlignment: Schema.Literals<readonly ["left", "center", "right"]>;
63
44
  /**
64
45
  * Type for TextAlignment.
65
46
  *
66
47
  * @category Types
67
48
  */
68
49
  export type TextAlignment = Schema.Schema.Type<typeof TextAlignment>;
69
- declare const Paragraph_base: Schema.TaggedClass<Paragraph, "Paragraph", {
70
- readonly _tag: Schema.tag<"Paragraph">;
71
- } & {
72
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
73
- default: () => number;
74
- }>;
75
- alignment: Schema.optional<Schema.Literal<["left", "center", "right"]>>;
76
- indent: Schema.optional<typeof Schema.Number>;
77
- children: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
78
- rawSource: Schema.optional<typeof Schema.String>;
79
- }>;
50
+ declare const Paragraph_base: Schema.Class<Paragraph, Schema.TaggedStruct<"Paragraph", {
51
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
52
+ readonly alignment: Schema.optional<Schema.Literals<readonly ["left", "center", "right"]>>;
53
+ readonly indent: Schema.optional<Schema.Number>;
54
+ readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
55
+ readonly rawSource: Schema.optional<Schema.String>;
56
+ }>, {}>;
80
57
  /**
81
58
  * Paragraph element with optional alignment and indentation.
82
59
  *
@@ -93,16 +70,12 @@ declare const Paragraph_base: Schema.TaggedClass<Paragraph, "Paragraph", {
93
70
  */
94
71
  export declare class Paragraph extends Paragraph_base {
95
72
  }
96
- declare const CodeBlock_base: Schema.TaggedClass<CodeBlock, "CodeBlock", {
97
- readonly _tag: Schema.tag<"CodeBlock">;
98
- } & {
99
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
100
- default: () => number;
101
- }>;
102
- language: Schema.optional<typeof Schema.String>;
103
- code: typeof Schema.String;
104
- rawSource: Schema.optional<typeof Schema.String>;
105
- }>;
73
+ declare const CodeBlock_base: Schema.Class<CodeBlock, Schema.TaggedStruct<"CodeBlock", {
74
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
75
+ readonly language: Schema.optional<Schema.String>;
76
+ readonly code: Schema.String;
77
+ readonly rawSource: Schema.optional<Schema.String>;
78
+ }>, {}>;
106
79
  /**
107
80
  * Code block with optional language.
108
81
  *
@@ -120,11 +93,9 @@ declare const CodeBlock_base: Schema.TaggedClass<CodeBlock, "CodeBlock", {
120
93
  */
121
94
  export declare class CodeBlock extends CodeBlock_base {
122
95
  }
123
- declare const ThematicBreak_base: Schema.TaggedClass<ThematicBreak, "ThematicBreak", {
124
- readonly _tag: Schema.tag<"ThematicBreak">;
125
- } & {
126
- rawSource: Schema.optional<typeof Schema.String>;
127
- }>;
96
+ declare const ThematicBreak_base: Schema.Class<ThematicBreak, Schema.TaggedStruct<"ThematicBreak", {
97
+ readonly rawSource: Schema.optional<Schema.String>;
98
+ }>, {}>;
128
99
  /**
129
100
  * Thematic break / horizontal rule.
130
101
  *
@@ -145,8 +116,8 @@ export declare class ThematicBreak extends ThematicBreak_base {
145
116
  * @category BlockNode
146
117
  */
147
118
  export declare const ImageAttachment: Schema.Struct<{
148
- filename: typeof Schema.String;
149
- version: Schema.optional<typeof Schema.Number>;
119
+ readonly filename: Schema.String;
120
+ readonly version: Schema.optional<Schema.Number>;
150
121
  }>;
151
122
  /**
152
123
  * Type for ImageAttachment.
@@ -154,23 +125,19 @@ export declare const ImageAttachment: Schema.Struct<{
154
125
  * @category Types
155
126
  */
156
127
  export type ImageAttachment = Schema.Schema.Type<typeof ImageAttachment>;
157
- declare const Image_base: Schema.TaggedClass<Image, "Image", {
158
- readonly _tag: Schema.tag<"Image">;
159
- } & {
160
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
161
- default: () => number;
162
- }>;
163
- src: Schema.optional<typeof Schema.String>;
164
- attachment: Schema.optional<Schema.Struct<{
165
- filename: typeof Schema.String;
166
- version: Schema.optional<typeof Schema.Number>;
128
+ declare const Image_base: Schema.Class<Image, Schema.TaggedStruct<"Image", {
129
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
130
+ readonly src: Schema.optional<Schema.String>;
131
+ readonly attachment: Schema.optional<Schema.Struct<{
132
+ readonly filename: Schema.String;
133
+ readonly version: Schema.optional<Schema.Number>;
167
134
  }>>;
168
- alt: Schema.optional<typeof Schema.String>;
169
- title: Schema.optional<typeof Schema.String>;
170
- align: Schema.optional<typeof Schema.String>;
171
- width: Schema.optional<typeof Schema.Number>;
172
- rawSource: Schema.optional<typeof Schema.String>;
173
- }>;
135
+ readonly alt: Schema.optional<Schema.String>;
136
+ readonly title: Schema.optional<Schema.String>;
137
+ readonly align: Schema.optional<Schema.String>;
138
+ readonly width: Schema.optional<Schema.Number>;
139
+ readonly rawSource: Schema.optional<Schema.String>;
140
+ }>, {}>;
174
141
  /**
175
142
  * Image element with support for both URL and attachments.
176
143
  *
@@ -188,15 +155,11 @@ declare const Image_base: Schema.TaggedClass<Image, "Image", {
188
155
  */
189
156
  export declare class Image extends Image_base {
190
157
  }
191
- declare const TableCell_base: Schema.TaggedClass<TableCell, "TableCell", {
192
- readonly _tag: Schema.tag<"TableCell">;
193
- } & {
194
- isHeader: Schema.optionalWith<typeof Schema.Boolean, {
195
- default: () => false;
196
- }>;
197
- children: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
198
- rawSource: Schema.optional<typeof Schema.String>;
199
- }>;
158
+ declare const TableCell_base: Schema.Class<TableCell, Schema.TaggedStruct<"TableCell", {
159
+ readonly isHeader: Schema.withConstructorDefault<Schema.Boolean>;
160
+ readonly children: Schema.$Array<Schema.Union<readonly [typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
161
+ readonly rawSource: Schema.optional<Schema.String>;
162
+ }>, {}>;
200
163
  /**
201
164
  * Table cell element.
202
165
  *
@@ -214,12 +177,10 @@ declare const TableCell_base: Schema.TaggedClass<TableCell, "TableCell", {
214
177
  */
215
178
  export declare class TableCell extends TableCell_base {
216
179
  }
217
- declare const TableRow_base: Schema.TaggedClass<TableRow, "TableRow", {
218
- readonly _tag: Schema.tag<"TableRow">;
219
- } & {
220
- cells: Schema.Array$<typeof TableCell>;
221
- rawSource: Schema.optional<typeof Schema.String>;
222
- }>;
180
+ declare const TableRow_base: Schema.Class<TableRow, Schema.TaggedStruct<"TableRow", {
181
+ readonly cells: Schema.$Array<typeof TableCell>;
182
+ readonly rawSource: Schema.optional<Schema.String>;
183
+ }>, {}>;
223
184
  /**
224
185
  * Table row element.
225
186
  *
@@ -227,16 +188,12 @@ declare const TableRow_base: Schema.TaggedClass<TableRow, "TableRow", {
227
188
  */
228
189
  export declare class TableRow extends TableRow_base {
229
190
  }
230
- declare const Table_base: Schema.TaggedClass<Table, "Table", {
231
- readonly _tag: Schema.tag<"Table">;
232
- } & {
233
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
234
- default: () => number;
235
- }>;
236
- header: Schema.optional<typeof TableRow>;
237
- rows: Schema.Array$<typeof TableRow>;
238
- rawSource: Schema.optional<typeof Schema.String>;
239
- }>;
191
+ declare const Table_base: Schema.Class<Table, Schema.TaggedStruct<"Table", {
192
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
193
+ readonly header: Schema.optional<typeof TableRow>;
194
+ readonly rows: Schema.$Array<typeof TableRow>;
195
+ readonly rawSource: Schema.optional<Schema.String>;
196
+ }>, {}>;
240
197
  /**
241
198
  * Table element with optional header row.
242
199
  *
@@ -244,14 +201,12 @@ declare const Table_base: Schema.TaggedClass<Table, "Table", {
244
201
  */
245
202
  export declare class Table extends Table_base {
246
203
  }
247
- declare const UnsupportedBlock_base: Schema.TaggedClass<UnsupportedBlock, "UnsupportedBlock", {
248
- readonly _tag: Schema.tag<"UnsupportedBlock">;
249
- } & {
250
- rawHtml: Schema.optional<typeof Schema.String>;
251
- rawMarkdown: Schema.optional<typeof Schema.String>;
252
- rawAdf: Schema.optional<typeof Schema.String>;
253
- source: Schema.Literal<["confluence", "markdown", "adf"]>;
254
- }>;
204
+ declare const UnsupportedBlock_base: Schema.Class<UnsupportedBlock, Schema.TaggedStruct<"UnsupportedBlock", {
205
+ readonly rawHtml: Schema.optional<Schema.String>;
206
+ readonly rawMarkdown: Schema.optional<Schema.String>;
207
+ readonly rawAdf: Schema.optional<Schema.String>;
208
+ readonly source: Schema.Literals<readonly ["confluence", "markdown", "adf"]>;
209
+ }>, {}>;
255
210
  /**
256
211
  * Unsupported block element - preserves raw content for round-tripping.
257
212
  *
@@ -259,19 +214,17 @@ declare const UnsupportedBlock_base: Schema.TaggedClass<UnsupportedBlock, "Unsup
259
214
  */
260
215
  export declare class UnsupportedBlock extends UnsupportedBlock_base {
261
216
  }
262
- declare const SimpleBlockNode: Schema.Union<[typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>;
217
+ declare const SimpleBlockNode: Schema.Union<readonly [typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>;
263
218
  /**
264
219
  * Block quote element with nested block content.
265
220
  *
266
221
  * @category BlockNode
267
222
  */
268
223
  export declare const BlockQuote: Schema.Struct<{
269
- _tag: Schema.Literal<["BlockQuote"]>;
270
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
271
- default: () => number;
272
- }>;
273
- children: Schema.Array$<Schema.Union<[typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
274
- rawSource: Schema.optional<typeof Schema.String>;
224
+ readonly _tag: Schema.Literal<"BlockQuote">;
225
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
226
+ readonly children: Schema.$Array<Schema.Union<readonly [typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
227
+ readonly rawSource: Schema.optional<Schema.String>;
275
228
  }>;
276
229
  /**
277
230
  * Type for BlockQuote.
@@ -285,10 +238,10 @@ export type BlockQuote = Schema.Schema.Type<typeof BlockQuote>;
285
238
  * @category BlockNode
286
239
  */
287
240
  export declare const ListItem: Schema.Struct<{
288
- _tag: Schema.Literal<["ListItem"]>;
289
- checked: Schema.optional<typeof Schema.Boolean>;
290
- children: Schema.Array$<Schema.Union<[typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
291
- rawSource: Schema.optional<typeof Schema.String>;
241
+ readonly _tag: Schema.Literal<"ListItem">;
242
+ readonly checked: Schema.optional<Schema.Boolean>;
243
+ readonly children: Schema.$Array<Schema.Union<readonly [typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
244
+ readonly rawSource: Schema.optional<Schema.String>;
292
245
  }>;
293
246
  /**
294
247
  * Type for ListItem.
@@ -302,19 +255,17 @@ export type ListItem = Schema.Schema.Type<typeof ListItem>;
302
255
  * @category BlockNode
303
256
  */
304
257
  export declare const List: Schema.Struct<{
305
- _tag: Schema.Literal<["List"]>;
306
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
307
- default: () => number;
308
- }>;
309
- ordered: typeof Schema.Boolean;
310
- start: Schema.optional<typeof Schema.Number>;
311
- children: Schema.Array$<Schema.Struct<{
312
- _tag: Schema.Literal<["ListItem"]>;
313
- checked: Schema.optional<typeof Schema.Boolean>;
314
- children: Schema.Array$<Schema.Union<[typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
315
- rawSource: Schema.optional<typeof Schema.String>;
258
+ readonly _tag: Schema.Literal<"List">;
259
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
260
+ readonly ordered: Schema.Boolean;
261
+ readonly start: Schema.optional<Schema.Number>;
262
+ readonly children: Schema.$Array<Schema.Struct<{
263
+ readonly _tag: Schema.Literal<"ListItem">;
264
+ readonly checked: Schema.optional<Schema.Boolean>;
265
+ readonly children: Schema.$Array<Schema.Union<readonly [typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
266
+ readonly rawSource: Schema.optional<Schema.String>;
316
267
  }>>;
317
- rawSource: Schema.optional<typeof Schema.String>;
268
+ readonly rawSource: Schema.optional<Schema.String>;
318
269
  }>;
319
270
  /**
320
271
  * Type for List.
@@ -328,12 +279,12 @@ export type List = Schema.Schema.Type<typeof List>;
328
279
  * @category BlockNode
329
280
  */
330
281
  export declare const TaskItem: Schema.Struct<{
331
- _tag: Schema.Literal<["TaskItem"]>;
332
- id: typeof Schema.String;
333
- uuid: typeof Schema.String;
334
- status: Schema.Literal<["incomplete", "complete"]>;
335
- body: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
336
- rawSource: Schema.optional<typeof Schema.String>;
282
+ readonly _tag: Schema.Literal<"TaskItem">;
283
+ readonly id: Schema.String;
284
+ readonly uuid: Schema.String;
285
+ readonly status: Schema.Literals<readonly ["incomplete", "complete"]>;
286
+ readonly body: Schema.$Array<Schema.Union<readonly [typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
287
+ readonly rawSource: Schema.optional<Schema.String>;
337
288
  }>;
338
289
  /**
339
290
  * Type for TaskItem.
@@ -347,19 +298,17 @@ export type TaskItem = Schema.Schema.Type<typeof TaskItem>;
347
298
  * @category BlockNode
348
299
  */
349
300
  export declare const TaskList: Schema.Struct<{
350
- _tag: Schema.Literal<["TaskList"]>;
351
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
352
- default: () => number;
353
- }>;
354
- children: Schema.Array$<Schema.Struct<{
355
- _tag: Schema.Literal<["TaskItem"]>;
356
- id: typeof Schema.String;
357
- uuid: typeof Schema.String;
358
- status: Schema.Literal<["incomplete", "complete"]>;
359
- body: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
360
- rawSource: Schema.optional<typeof Schema.String>;
301
+ readonly _tag: Schema.Literal<"TaskList">;
302
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
303
+ readonly children: Schema.$Array<Schema.Struct<{
304
+ readonly _tag: Schema.Literal<"TaskItem">;
305
+ readonly id: Schema.String;
306
+ readonly uuid: Schema.String;
307
+ readonly status: Schema.Literals<readonly ["incomplete", "complete"]>;
308
+ readonly body: Schema.$Array<Schema.Union<readonly [typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
309
+ readonly rawSource: Schema.optional<Schema.String>;
361
310
  }>>;
362
- rawSource: Schema.optional<typeof Schema.String>;
311
+ readonly rawSource: Schema.optional<Schema.String>;
363
312
  }>;
364
313
  /**
365
314
  * Type for TaskList.
@@ -372,41 +321,35 @@ export type TaskList = Schema.Schema.Type<typeof TaskList>;
372
321
  *
373
322
  * @category BlockNode
374
323
  */
375
- export declare const BlockNode: Schema.Union<[typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, Schema.Struct<{
376
- _tag: Schema.Literal<["BlockQuote"]>;
377
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
378
- default: () => number;
379
- }>;
380
- children: Schema.Array$<Schema.Union<[typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
381
- rawSource: Schema.optional<typeof Schema.String>;
324
+ export declare const BlockNode: Schema.Union<readonly [typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, Schema.Struct<{
325
+ readonly _tag: Schema.Literal<"BlockQuote">;
326
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
327
+ readonly children: Schema.$Array<Schema.Union<readonly [typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
328
+ readonly rawSource: Schema.optional<Schema.String>;
382
329
  }>, typeof Image, typeof Table, Schema.Struct<{
383
- _tag: Schema.Literal<["List"]>;
384
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
385
- default: () => number;
386
- }>;
387
- ordered: typeof Schema.Boolean;
388
- start: Schema.optional<typeof Schema.Number>;
389
- children: Schema.Array$<Schema.Struct<{
390
- _tag: Schema.Literal<["ListItem"]>;
391
- checked: Schema.optional<typeof Schema.Boolean>;
392
- children: Schema.Array$<Schema.Union<[typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
393
- rawSource: Schema.optional<typeof Schema.String>;
330
+ readonly _tag: Schema.Literal<"List">;
331
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
332
+ readonly ordered: Schema.Boolean;
333
+ readonly start: Schema.optional<Schema.Number>;
334
+ readonly children: Schema.$Array<Schema.Struct<{
335
+ readonly _tag: Schema.Literal<"ListItem">;
336
+ readonly checked: Schema.optional<Schema.Boolean>;
337
+ readonly children: Schema.$Array<Schema.Union<readonly [typeof Heading, typeof Paragraph, typeof CodeBlock, typeof ThematicBreak, typeof Image, typeof Table, typeof UnsupportedBlock]>>;
338
+ readonly rawSource: Schema.optional<Schema.String>;
394
339
  }>>;
395
- rawSource: Schema.optional<typeof Schema.String>;
340
+ readonly rawSource: Schema.optional<Schema.String>;
396
341
  }>, Schema.Struct<{
397
- _tag: Schema.Literal<["TaskList"]>;
398
- version: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
399
- default: () => number;
400
- }>;
401
- children: Schema.Array$<Schema.Struct<{
402
- _tag: Schema.Literal<["TaskItem"]>;
403
- id: typeof Schema.String;
404
- uuid: typeof Schema.String;
405
- status: Schema.Literal<["incomplete", "complete"]>;
406
- body: Schema.Array$<Schema.Union<[typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
407
- rawSource: Schema.optional<typeof Schema.String>;
342
+ readonly _tag: Schema.Literal<"TaskList">;
343
+ readonly version: Schema.withConstructorDefault<Schema.Int>;
344
+ readonly children: Schema.$Array<Schema.Struct<{
345
+ readonly _tag: Schema.Literal<"TaskItem">;
346
+ readonly id: Schema.String;
347
+ readonly uuid: Schema.String;
348
+ readonly status: Schema.Literals<readonly ["incomplete", "complete"]>;
349
+ readonly body: Schema.$Array<Schema.Union<readonly [typeof import("./InlineNode.js").Text, typeof import("./InlineNode.js").Strong, typeof import("./InlineNode.js").Emphasis, typeof import("./InlineNode.js").InlineCode, typeof import("./InlineNode.js").Link, typeof import("./InlineNode.js").LineBreak, typeof import("./InlineNode.js").Emoticon, typeof import("./InlineNode.js").UserMention, typeof import("./InlineNode.js").DateTime, typeof import("./InlineNode.js").Underline, typeof import("./InlineNode.js").Subscript, typeof import("./InlineNode.js").Superscript, typeof import("./InlineNode.js").Strikethrough, typeof import("./InlineNode.js").ColoredText, typeof import("./InlineNode.js").Highlight, typeof import("./InlineNode.js").UnsupportedInline]>>;
350
+ readonly rawSource: Schema.optional<Schema.String>;
408
351
  }>>;
409
- rawSource: Schema.optional<typeof Schema.String>;
352
+ readonly rawSource: Schema.optional<Schema.String>;
410
353
  }>, typeof UnsupportedBlock]>;
411
354
  /**
412
355
  * Type for block nodes.
@@ -1 +1 @@
1
- {"version":3,"file":"BlockNode.d.ts","sourceRoot":"","sources":["../../src/ast/BlockNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAc,KAAK,UAAU,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAE/E;;;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} from "./InlineNode.js";
16
17
  /**
@@ -18,7 +19,7 @@ import { InlineNode } from "./InlineNode.js";
18
19
  *
19
20
  * @category Version
20
21
  */
21
- export const SchemaVersion = Schema.Number.pipe(Schema.int(), Schema.positive(), Schema.optionalWith({ default: () => 1 }));
22
+ export const SchemaVersion = Schema.Int.pipe(Schema.check(Schema.isGreaterThan(0)), Schema.withConstructorDefault(Effect.succeed(1)));
22
23
  /**
23
24
  * Optional raw source for exact roundtrip preservation.
24
25
  *
@@ -42,7 +43,7 @@ export const RawSource = Schema.optional(Schema.String);
42
43
  */
43
44
  export class Heading extends Schema.TaggedClass()("Heading", {
44
45
  version: SchemaVersion,
45
- level: Schema.Literal(1, 2, 3, 4, 5, 6),
46
+ level: Schema.Literals([1, 2, 3, 4, 5, 6]),
46
47
  children: Schema.Array(InlineNode),
47
48
  rawSource: RawSource
48
49
  }) {
@@ -52,7 +53,7 @@ export class Heading extends Schema.TaggedClass()("Heading", {
52
53
  *
53
54
  * @category BlockNode
54
55
  */
55
- export const TextAlignment = Schema.Literal("left", "center", "right");
56
+ export const TextAlignment = Schema.Literals(["left", "center", "right"]);
56
57
  /**
57
58
  * Paragraph element with optional alignment and indentation.
58
59
  *
@@ -164,7 +165,7 @@ export class Image extends Schema.TaggedClass()("Image", {
164
165
  * @category BlockNode
165
166
  */
166
167
  export class TableCell extends Schema.TaggedClass()("TableCell", {
167
- isHeader: Schema.optionalWith(Schema.Boolean, { default: () => false }),
168
+ isHeader: Schema.Boolean.pipe(Schema.withConstructorDefault(Effect.succeed(false))),
168
169
  children: Schema.Array(InlineNode),
169
170
  rawSource: RawSource
170
171
  }) {
@@ -200,11 +201,19 @@ export class UnsupportedBlock extends Schema.TaggedClass()("UnsupportedBlock", {
200
201
  rawHtml: Schema.optional(Schema.String),
201
202
  rawMarkdown: Schema.optional(Schema.String),
202
203
  rawAdf: Schema.optional(Schema.String),
203
- source: Schema.Literal("confluence", "markdown", "adf")
204
+ source: Schema.Literals(["confluence", "markdown", "adf"])
204
205
  }) {
205
206
  }
206
207
  // Non-recursive block nodes
207
- const SimpleBlockNode = Schema.Union(Heading, Paragraph, CodeBlock, ThematicBreak, Image, Table, UnsupportedBlock);
208
+ const SimpleBlockNode = Schema.Union([
209
+ Heading,
210
+ Paragraph,
211
+ CodeBlock,
212
+ ThematicBreak,
213
+ Image,
214
+ Table,
215
+ UnsupportedBlock
216
+ ]);
208
217
  /**
209
218
  * Block quote element with nested block content.
210
219
  *
@@ -249,7 +258,7 @@ export const TaskItem = Schema.Struct({
249
258
  _tag: Schema.Literal("TaskItem"),
250
259
  id: Schema.String,
251
260
  uuid: Schema.String,
252
- status: Schema.Literal("incomplete", "complete"),
261
+ status: Schema.Literals(["incomplete", "complete"]),
253
262
  body: Schema.Array(InlineNode),
254
263
  rawSource: RawSource
255
264
  });
@@ -269,7 +278,18 @@ export const TaskList = Schema.Struct({
269
278
  *
270
279
  * @category BlockNode
271
280
  */
272
- export const BlockNode = Schema.Union(Heading, Paragraph, CodeBlock, ThematicBreak, BlockQuote, Image, Table, List, TaskList, UnsupportedBlock);
281
+ export const BlockNode = Schema.Union([
282
+ Heading,
283
+ Paragraph,
284
+ CodeBlock,
285
+ ThematicBreak,
286
+ BlockQuote,
287
+ Image,
288
+ Table,
289
+ List,
290
+ TaskList,
291
+ UnsupportedBlock
292
+ ]);
273
293
  /**
274
294
  * Simple block nodes (non-recursive).
275
295
  *
@@ -1 +1 @@
1
- {"version":3,"file":"BlockNode.js","sourceRoot":"","sources":["../../src/ast/BlockNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,UAAU,EAAqC,MAAM,iBAAiB,CAAA;AAE/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAC7C,MAAM,CAAC,GAAG,EAAE,EACZ,MAAM,CAAC,QAAQ,EAAE,EACjB,MAA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