@gitbook/api 0.13.0 → 0.14.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/client.d.ts +22 -23
- package/package.json +1 -1
- package/spec/openapi.json +142 -75
- package/spec/openapi.yaml +61 -43
package/dist/client.d.ts
CHANGED
|
@@ -404,20 +404,22 @@ export interface JSONDocument {
|
|
|
404
404
|
data: object;
|
|
405
405
|
nodes: DocumentBlocksTopLevels[];
|
|
406
406
|
}
|
|
407
|
-
export declare type
|
|
408
|
-
export declare type
|
|
409
|
-
export interface
|
|
407
|
+
export declare type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration;
|
|
408
|
+
export declare type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
|
|
409
|
+
export interface DocumentText {
|
|
410
410
|
object: 'text';
|
|
411
411
|
key?: string;
|
|
412
412
|
leaves: DocumentTextLeaf[];
|
|
413
413
|
}
|
|
414
|
-
export interface
|
|
414
|
+
export interface DocumentFragment {
|
|
415
415
|
object: 'fragment';
|
|
416
416
|
key?: string;
|
|
417
417
|
fragment?: string;
|
|
418
418
|
type?: string;
|
|
419
419
|
nodes: DocumentBlocksEssentials[];
|
|
420
420
|
}
|
|
421
|
+
export declare type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
|
|
422
|
+
export declare type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration;
|
|
421
423
|
export interface DocumentTextLeaf {
|
|
422
424
|
object: 'leaf';
|
|
423
425
|
text: string;
|
|
@@ -452,7 +454,7 @@ export interface DocumentInlineLink {
|
|
|
452
454
|
object: 'inline';
|
|
453
455
|
type: 'link';
|
|
454
456
|
key?: string;
|
|
455
|
-
nodes: (
|
|
457
|
+
nodes: (DocumentText | DocumentInlineImage)[];
|
|
456
458
|
data: {
|
|
457
459
|
ref: ContentRef;
|
|
458
460
|
};
|
|
@@ -501,20 +503,19 @@ export interface DocumentInlineAnnotation {
|
|
|
501
503
|
object: 'inline';
|
|
502
504
|
type: 'annotation';
|
|
503
505
|
key?: string;
|
|
504
|
-
fragments: (
|
|
506
|
+
fragments: (DocumentFragment & {
|
|
505
507
|
type: 'annotation-body';
|
|
506
508
|
nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
|
|
507
509
|
})[];
|
|
508
|
-
isVoid:
|
|
509
|
-
nodes:
|
|
510
|
+
isVoid: false;
|
|
511
|
+
nodes: DocumentText[];
|
|
510
512
|
data?: object;
|
|
511
513
|
}
|
|
512
|
-
export declare type DocumentInlinesRich = DocumentNodeText | DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
|
|
513
514
|
export interface DocumentBlockParagraph {
|
|
514
515
|
object: 'block';
|
|
515
516
|
type: 'paragraph';
|
|
516
517
|
key?: string;
|
|
517
|
-
nodes:
|
|
518
|
+
nodes: (DocumentInline | DocumentText)[];
|
|
518
519
|
isVoid?: false;
|
|
519
520
|
data?: object;
|
|
520
521
|
}
|
|
@@ -522,7 +523,7 @@ export interface DocumentBlockHeading {
|
|
|
522
523
|
object: 'block';
|
|
523
524
|
type: 'heading-1' | 'heading-2' | 'heading-3';
|
|
524
525
|
key?: string;
|
|
525
|
-
nodes:
|
|
526
|
+
nodes: (DocumentInline | DocumentText)[];
|
|
526
527
|
data: {
|
|
527
528
|
id?: string;
|
|
528
529
|
};
|
|
@@ -571,7 +572,7 @@ export interface DocumentBlockListTasks {
|
|
|
571
572
|
object: 'block';
|
|
572
573
|
type: 'list-tasks';
|
|
573
574
|
key?: string;
|
|
574
|
-
nodes:
|
|
575
|
+
nodes: DocumentBlockListItem[];
|
|
575
576
|
isVoid?: false;
|
|
576
577
|
data?: object;
|
|
577
578
|
}
|
|
@@ -581,13 +582,10 @@ export interface DocumentBlockListItem {
|
|
|
581
582
|
key?: string;
|
|
582
583
|
nodes: DocumentBlocksEssentials[];
|
|
583
584
|
isVoid?: false;
|
|
584
|
-
data?:
|
|
585
|
-
|
|
586
|
-
export declare type DocumentBlockTaskListItem = DocumentBlockListItem & {
|
|
587
|
-
data: {
|
|
588
|
-
checked: boolean;
|
|
585
|
+
data?: {
|
|
586
|
+
checked?: boolean;
|
|
589
587
|
};
|
|
590
|
-
}
|
|
588
|
+
}
|
|
591
589
|
export interface DocumentBlockImages {
|
|
592
590
|
object: 'block';
|
|
593
591
|
type: 'images';
|
|
@@ -611,8 +609,9 @@ export interface DocumentBlockImage {
|
|
|
611
609
|
value: number;
|
|
612
610
|
};
|
|
613
611
|
height?: any;
|
|
612
|
+
alt?: string;
|
|
614
613
|
};
|
|
615
|
-
fragments: (
|
|
614
|
+
fragments: (DocumentFragment & {
|
|
616
615
|
type: 'caption';
|
|
617
616
|
nodes: DocumentBlockParagraph[];
|
|
618
617
|
})[];
|
|
@@ -664,7 +663,7 @@ export interface DocumentBlockCodeLine {
|
|
|
664
663
|
object: 'block';
|
|
665
664
|
type: 'code-line';
|
|
666
665
|
key?: string;
|
|
667
|
-
nodes: (
|
|
666
|
+
nodes: (DocumentText | DocumentInlineAnnotation)[];
|
|
668
667
|
data: {
|
|
669
668
|
highlighted?: boolean;
|
|
670
669
|
};
|
|
@@ -685,11 +684,11 @@ export interface DocumentBlockExpandable {
|
|
|
685
684
|
key?: string;
|
|
686
685
|
isVoid: true;
|
|
687
686
|
data: object;
|
|
688
|
-
fragments: ((
|
|
687
|
+
fragments: ((DocumentFragment & {
|
|
689
688
|
fragment: 'expandable-title';
|
|
690
689
|
type: 'expandable-title';
|
|
691
690
|
nodes: DocumentBlockParagraph[];
|
|
692
|
-
}) | (
|
|
691
|
+
}) | (DocumentFragment & {
|
|
693
692
|
fragment: 'expandable-body';
|
|
694
693
|
type: 'expandable-body';
|
|
695
694
|
nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
|
|
@@ -733,7 +732,7 @@ export interface DocumentBlockTable {
|
|
|
733
732
|
definition: Record<string, DocumentTableDefinition>;
|
|
734
733
|
fullWidth?: boolean;
|
|
735
734
|
};
|
|
736
|
-
fragments:
|
|
735
|
+
fragments: DocumentFragment[];
|
|
737
736
|
}
|
|
738
737
|
export interface DocumentTableRecord {
|
|
739
738
|
orderIndex: string;
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -1427,7 +1427,7 @@
|
|
|
1427
1427
|
"nodes"
|
|
1428
1428
|
]
|
|
1429
1429
|
},
|
|
1430
|
-
"
|
|
1430
|
+
"DocumentBlock": {
|
|
1431
1431
|
"oneOf": [
|
|
1432
1432
|
{
|
|
1433
1433
|
"$ref": "#/components/schemas/DocumentBlockParagraph"
|
|
@@ -1445,14 +1445,10 @@
|
|
|
1445
1445
|
"$ref": "#/components/schemas/DocumentBlockListTasks"
|
|
1446
1446
|
},
|
|
1447
1447
|
{
|
|
1448
|
-
"$ref": "#/components/schemas/
|
|
1449
|
-
}
|
|
1450
|
-
]
|
|
1451
|
-
},
|
|
1452
|
-
"DocumentBlocksTopLevels": {
|
|
1453
|
-
"oneOf": [
|
|
1448
|
+
"$ref": "#/components/schemas/DocumentBlockListItem"
|
|
1449
|
+
},
|
|
1454
1450
|
{
|
|
1455
|
-
"$ref": "#/components/schemas/
|
|
1451
|
+
"$ref": "#/components/schemas/DocumentBlockDivider"
|
|
1456
1452
|
},
|
|
1457
1453
|
{
|
|
1458
1454
|
"$ref": "#/components/schemas/DocumentBlockQuote"
|
|
@@ -1463,6 +1459,9 @@
|
|
|
1463
1459
|
{
|
|
1464
1460
|
"$ref": "#/components/schemas/DocumentBlockImages"
|
|
1465
1461
|
},
|
|
1462
|
+
{
|
|
1463
|
+
"$ref": "#/components/schemas/DocumentBlockImage"
|
|
1464
|
+
},
|
|
1466
1465
|
{
|
|
1467
1466
|
"$ref": "#/components/schemas/DocumentBlockFile"
|
|
1468
1467
|
},
|
|
@@ -1475,6 +1474,9 @@
|
|
|
1475
1474
|
{
|
|
1476
1475
|
"$ref": "#/components/schemas/DocumentBlockCode"
|
|
1477
1476
|
},
|
|
1477
|
+
{
|
|
1478
|
+
"$ref": "#/components/schemas/DocumentBlockCodeLine"
|
|
1479
|
+
},
|
|
1478
1480
|
{
|
|
1479
1481
|
"$ref": "#/components/schemas/DocumentBlockMath"
|
|
1480
1482
|
},
|
|
@@ -1484,6 +1486,9 @@
|
|
|
1484
1486
|
{
|
|
1485
1487
|
"$ref": "#/components/schemas/DocumentBlockTabs"
|
|
1486
1488
|
},
|
|
1489
|
+
{
|
|
1490
|
+
"$ref": "#/components/schemas/DocumentBlockTabsItem"
|
|
1491
|
+
},
|
|
1487
1492
|
{
|
|
1488
1493
|
"$ref": "#/components/schemas/DocumentBlockTable"
|
|
1489
1494
|
},
|
|
@@ -1498,7 +1503,29 @@
|
|
|
1498
1503
|
}
|
|
1499
1504
|
]
|
|
1500
1505
|
},
|
|
1501
|
-
"
|
|
1506
|
+
"DocumentInline": {
|
|
1507
|
+
"oneOf": [
|
|
1508
|
+
{
|
|
1509
|
+
"$ref": "#/components/schemas/DocumentInlineLink"
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"$ref": "#/components/schemas/DocumentInlineEmoji"
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
"$ref": "#/components/schemas/DocumentInlineMath"
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"$ref": "#/components/schemas/DocumentInlineImage"
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
"$ref": "#/components/schemas/DocumentInlineAnnotation"
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"$ref": "#/components/schemas/DocumentInlineMention"
|
|
1525
|
+
}
|
|
1526
|
+
]
|
|
1527
|
+
},
|
|
1528
|
+
"DocumentText": {
|
|
1502
1529
|
"type": "object",
|
|
1503
1530
|
"properties": {
|
|
1504
1531
|
"object": {
|
|
@@ -1522,7 +1549,7 @@
|
|
|
1522
1549
|
"leaves"
|
|
1523
1550
|
]
|
|
1524
1551
|
},
|
|
1525
|
-
"
|
|
1552
|
+
"DocumentFragment": {
|
|
1526
1553
|
"type": "object",
|
|
1527
1554
|
"properties": {
|
|
1528
1555
|
"object": {
|
|
@@ -1552,6 +1579,77 @@
|
|
|
1552
1579
|
"nodes"
|
|
1553
1580
|
]
|
|
1554
1581
|
},
|
|
1582
|
+
"DocumentBlocksEssentials": {
|
|
1583
|
+
"oneOf": [
|
|
1584
|
+
{
|
|
1585
|
+
"$ref": "#/components/schemas/DocumentBlockParagraph"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"$ref": "#/components/schemas/DocumentBlockHeading"
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"$ref": "#/components/schemas/DocumentBlockListOrdered"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"$ref": "#/components/schemas/DocumentBlockListUnordered"
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"$ref": "#/components/schemas/DocumentBlockListTasks"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"$ref": "#/components/schemas/DocumentBlockDivider"
|
|
1601
|
+
}
|
|
1602
|
+
]
|
|
1603
|
+
},
|
|
1604
|
+
"DocumentBlocksTopLevels": {
|
|
1605
|
+
"oneOf": [
|
|
1606
|
+
{
|
|
1607
|
+
"$ref": "#/components/schemas/DocumentBlocksEssentials"
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"$ref": "#/components/schemas/DocumentBlockQuote"
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"$ref": "#/components/schemas/DocumentBlockHint"
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
"$ref": "#/components/schemas/DocumentBlockImages"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"$ref": "#/components/schemas/DocumentBlockFile"
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
"$ref": "#/components/schemas/DocumentBlockDrawing"
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
"$ref": "#/components/schemas/DocumentBlockEmbed"
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"$ref": "#/components/schemas/DocumentBlockCode"
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
"$ref": "#/components/schemas/DocumentBlockMath"
|
|
1632
|
+
},
|
|
1633
|
+
{
|
|
1634
|
+
"$ref": "#/components/schemas/DocumentBlockExpandable"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"$ref": "#/components/schemas/DocumentBlockTabs"
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
"$ref": "#/components/schemas/DocumentBlockTable"
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"$ref": "#/components/schemas/DocumentBlockSwagger"
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
"$ref": "#/components/schemas/DocumentBlockContentRef"
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"$ref": "#/components/schemas/DocumentBlockIntegration"
|
|
1650
|
+
}
|
|
1651
|
+
]
|
|
1652
|
+
},
|
|
1555
1653
|
"DocumentTextLeaf": {
|
|
1556
1654
|
"type": "object",
|
|
1557
1655
|
"properties": {
|
|
@@ -1758,7 +1856,7 @@
|
|
|
1758
1856
|
"items": {
|
|
1759
1857
|
"oneOf": [
|
|
1760
1858
|
{
|
|
1761
|
-
"$ref": "#/components/schemas/
|
|
1859
|
+
"$ref": "#/components/schemas/DocumentText"
|
|
1762
1860
|
},
|
|
1763
1861
|
{
|
|
1764
1862
|
"$ref": "#/components/schemas/DocumentInlineImage"
|
|
@@ -2013,7 +2111,7 @@
|
|
|
2013
2111
|
"items": {
|
|
2014
2112
|
"allOf": [
|
|
2015
2113
|
{
|
|
2016
|
-
"$ref": "#/components/schemas/
|
|
2114
|
+
"$ref": "#/components/schemas/DocumentFragment"
|
|
2017
2115
|
},
|
|
2018
2116
|
{
|
|
2019
2117
|
"type": "object",
|
|
@@ -2050,13 +2148,13 @@
|
|
|
2050
2148
|
"isVoid": {
|
|
2051
2149
|
"type": "boolean",
|
|
2052
2150
|
"enum": [
|
|
2053
|
-
|
|
2151
|
+
false
|
|
2054
2152
|
]
|
|
2055
2153
|
},
|
|
2056
2154
|
"nodes": {
|
|
2057
2155
|
"type": "array",
|
|
2058
2156
|
"items": {
|
|
2059
|
-
"$ref": "#/components/schemas/
|
|
2157
|
+
"$ref": "#/components/schemas/DocumentText"
|
|
2060
2158
|
}
|
|
2061
2159
|
},
|
|
2062
2160
|
"data": {
|
|
@@ -2073,31 +2171,6 @@
|
|
|
2073
2171
|
"nodes"
|
|
2074
2172
|
]
|
|
2075
2173
|
},
|
|
2076
|
-
"DocumentInlinesRich": {
|
|
2077
|
-
"oneOf": [
|
|
2078
|
-
{
|
|
2079
|
-
"$ref": "#/components/schemas/DocumentNodeText"
|
|
2080
|
-
},
|
|
2081
|
-
{
|
|
2082
|
-
"$ref": "#/components/schemas/DocumentInlineLink"
|
|
2083
|
-
},
|
|
2084
|
-
{
|
|
2085
|
-
"$ref": "#/components/schemas/DocumentInlineEmoji"
|
|
2086
|
-
},
|
|
2087
|
-
{
|
|
2088
|
-
"$ref": "#/components/schemas/DocumentInlineMath"
|
|
2089
|
-
},
|
|
2090
|
-
{
|
|
2091
|
-
"$ref": "#/components/schemas/DocumentInlineImage"
|
|
2092
|
-
},
|
|
2093
|
-
{
|
|
2094
|
-
"$ref": "#/components/schemas/DocumentInlineAnnotation"
|
|
2095
|
-
},
|
|
2096
|
-
{
|
|
2097
|
-
"$ref": "#/components/schemas/DocumentInlineMention"
|
|
2098
|
-
}
|
|
2099
|
-
]
|
|
2100
|
-
},
|
|
2101
2174
|
"DocumentBlockParagraph": {
|
|
2102
2175
|
"type": "object",
|
|
2103
2176
|
"properties": {
|
|
@@ -2119,7 +2192,14 @@
|
|
|
2119
2192
|
"nodes": {
|
|
2120
2193
|
"type": "array",
|
|
2121
2194
|
"items": {
|
|
2122
|
-
"
|
|
2195
|
+
"oneOf": [
|
|
2196
|
+
{
|
|
2197
|
+
"$ref": "#/components/schemas/DocumentInline"
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
"$ref": "#/components/schemas/DocumentText"
|
|
2201
|
+
}
|
|
2202
|
+
]
|
|
2123
2203
|
}
|
|
2124
2204
|
},
|
|
2125
2205
|
"isVoid": {
|
|
@@ -2163,7 +2243,14 @@
|
|
|
2163
2243
|
"nodes": {
|
|
2164
2244
|
"type": "array",
|
|
2165
2245
|
"items": {
|
|
2166
|
-
"
|
|
2246
|
+
"oneOf": [
|
|
2247
|
+
{
|
|
2248
|
+
"$ref": "#/components/schemas/DocumentInline"
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
"$ref": "#/components/schemas/DocumentText"
|
|
2252
|
+
}
|
|
2253
|
+
]
|
|
2167
2254
|
}
|
|
2168
2255
|
},
|
|
2169
2256
|
"data": {
|
|
@@ -2424,7 +2511,7 @@
|
|
|
2424
2511
|
"items": {
|
|
2425
2512
|
"oneOf": [
|
|
2426
2513
|
{
|
|
2427
|
-
"$ref": "#/components/schemas/
|
|
2514
|
+
"$ref": "#/components/schemas/DocumentBlockListItem"
|
|
2428
2515
|
}
|
|
2429
2516
|
]
|
|
2430
2517
|
}
|
|
@@ -2483,8 +2570,11 @@
|
|
|
2483
2570
|
},
|
|
2484
2571
|
"data": {
|
|
2485
2572
|
"type": "object",
|
|
2486
|
-
"properties": {
|
|
2487
|
-
|
|
2573
|
+
"properties": {
|
|
2574
|
+
"checked": {
|
|
2575
|
+
"type": "boolean"
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2488
2578
|
}
|
|
2489
2579
|
},
|
|
2490
2580
|
"required": [
|
|
@@ -2493,32 +2583,6 @@
|
|
|
2493
2583
|
"nodes"
|
|
2494
2584
|
]
|
|
2495
2585
|
},
|
|
2496
|
-
"DocumentBlockTaskListItem": {
|
|
2497
|
-
"allOf": [
|
|
2498
|
-
{
|
|
2499
|
-
"$ref": "#/components/schemas/DocumentBlockListItem"
|
|
2500
|
-
},
|
|
2501
|
-
{
|
|
2502
|
-
"type": "object",
|
|
2503
|
-
"properties": {
|
|
2504
|
-
"data": {
|
|
2505
|
-
"type": "object",
|
|
2506
|
-
"properties": {
|
|
2507
|
-
"checked": {
|
|
2508
|
-
"type": "boolean"
|
|
2509
|
-
}
|
|
2510
|
-
},
|
|
2511
|
-
"required": [
|
|
2512
|
-
"checked"
|
|
2513
|
-
]
|
|
2514
|
-
}
|
|
2515
|
-
},
|
|
2516
|
-
"required": [
|
|
2517
|
-
"data"
|
|
2518
|
-
]
|
|
2519
|
-
}
|
|
2520
|
-
]
|
|
2521
|
-
},
|
|
2522
2586
|
"DocumentBlockImages": {
|
|
2523
2587
|
"type": "object",
|
|
2524
2588
|
"properties": {
|
|
@@ -2639,6 +2703,9 @@
|
|
|
2639
2703
|
},
|
|
2640
2704
|
"height": {
|
|
2641
2705
|
"$ref": "#/components/schemas/DocumentBlockImage/properties/data/properties/width"
|
|
2706
|
+
},
|
|
2707
|
+
"alt": {
|
|
2708
|
+
"type": "string"
|
|
2642
2709
|
}
|
|
2643
2710
|
},
|
|
2644
2711
|
"required": [
|
|
@@ -2650,7 +2717,7 @@
|
|
|
2650
2717
|
"items": {
|
|
2651
2718
|
"allOf": [
|
|
2652
2719
|
{
|
|
2653
|
-
"$ref": "#/components/schemas/
|
|
2720
|
+
"$ref": "#/components/schemas/DocumentFragment"
|
|
2654
2721
|
},
|
|
2655
2722
|
{
|
|
2656
2723
|
"type": "object",
|
|
@@ -2914,7 +2981,7 @@
|
|
|
2914
2981
|
"items": {
|
|
2915
2982
|
"oneOf": [
|
|
2916
2983
|
{
|
|
2917
|
-
"$ref": "#/components/schemas/
|
|
2984
|
+
"$ref": "#/components/schemas/DocumentText"
|
|
2918
2985
|
},
|
|
2919
2986
|
{
|
|
2920
2987
|
"$ref": "#/components/schemas/DocumentInlineAnnotation"
|
|
@@ -3023,7 +3090,7 @@
|
|
|
3023
3090
|
{
|
|
3024
3091
|
"allOf": [
|
|
3025
3092
|
{
|
|
3026
|
-
"$ref": "#/components/schemas/
|
|
3093
|
+
"$ref": "#/components/schemas/DocumentFragment"
|
|
3027
3094
|
},
|
|
3028
3095
|
{
|
|
3029
3096
|
"type": "object",
|
|
@@ -3060,7 +3127,7 @@
|
|
|
3060
3127
|
{
|
|
3061
3128
|
"allOf": [
|
|
3062
3129
|
{
|
|
3063
|
-
"$ref": "#/components/schemas/
|
|
3130
|
+
"$ref": "#/components/schemas/DocumentFragment"
|
|
3064
3131
|
},
|
|
3065
3132
|
{
|
|
3066
3133
|
"type": "object",
|
|
@@ -3303,7 +3370,7 @@
|
|
|
3303
3370
|
"fragments": {
|
|
3304
3371
|
"type": "array",
|
|
3305
3372
|
"items": {
|
|
3306
|
-
"$ref": "#/components/schemas/
|
|
3373
|
+
"$ref": "#/components/schemas/DocumentFragment"
|
|
3307
3374
|
}
|
|
3308
3375
|
}
|
|
3309
3376
|
},
|
package/spec/openapi.yaml
CHANGED
|
@@ -1003,32 +1003,41 @@ components:
|
|
|
1003
1003
|
- object
|
|
1004
1004
|
- data
|
|
1005
1005
|
- nodes
|
|
1006
|
-
|
|
1006
|
+
DocumentBlock:
|
|
1007
1007
|
oneOf:
|
|
1008
1008
|
- $ref: "#/components/schemas/DocumentBlockParagraph"
|
|
1009
1009
|
- $ref: "#/components/schemas/DocumentBlockHeading"
|
|
1010
1010
|
- $ref: "#/components/schemas/DocumentBlockListOrdered"
|
|
1011
1011
|
- $ref: "#/components/schemas/DocumentBlockListUnordered"
|
|
1012
1012
|
- $ref: "#/components/schemas/DocumentBlockListTasks"
|
|
1013
|
+
- $ref: "#/components/schemas/DocumentBlockListItem"
|
|
1013
1014
|
- $ref: "#/components/schemas/DocumentBlockDivider"
|
|
1014
|
-
DocumentBlocksTopLevels:
|
|
1015
|
-
oneOf:
|
|
1016
|
-
- $ref: "#/components/schemas/DocumentBlocksEssentials"
|
|
1017
1015
|
- $ref: "#/components/schemas/DocumentBlockQuote"
|
|
1018
1016
|
- $ref: "#/components/schemas/DocumentBlockHint"
|
|
1019
1017
|
- $ref: "#/components/schemas/DocumentBlockImages"
|
|
1018
|
+
- $ref: "#/components/schemas/DocumentBlockImage"
|
|
1020
1019
|
- $ref: "#/components/schemas/DocumentBlockFile"
|
|
1021
1020
|
- $ref: "#/components/schemas/DocumentBlockDrawing"
|
|
1022
1021
|
- $ref: "#/components/schemas/DocumentBlockEmbed"
|
|
1023
1022
|
- $ref: "#/components/schemas/DocumentBlockCode"
|
|
1023
|
+
- $ref: "#/components/schemas/DocumentBlockCodeLine"
|
|
1024
1024
|
- $ref: "#/components/schemas/DocumentBlockMath"
|
|
1025
1025
|
- $ref: "#/components/schemas/DocumentBlockExpandable"
|
|
1026
1026
|
- $ref: "#/components/schemas/DocumentBlockTabs"
|
|
1027
|
+
- $ref: "#/components/schemas/DocumentBlockTabsItem"
|
|
1027
1028
|
- $ref: "#/components/schemas/DocumentBlockTable"
|
|
1028
1029
|
- $ref: "#/components/schemas/DocumentBlockSwagger"
|
|
1029
1030
|
- $ref: "#/components/schemas/DocumentBlockContentRef"
|
|
1030
1031
|
- $ref: "#/components/schemas/DocumentBlockIntegration"
|
|
1031
|
-
|
|
1032
|
+
DocumentInline:
|
|
1033
|
+
oneOf:
|
|
1034
|
+
- $ref: "#/components/schemas/DocumentInlineLink"
|
|
1035
|
+
- $ref: "#/components/schemas/DocumentInlineEmoji"
|
|
1036
|
+
- $ref: "#/components/schemas/DocumentInlineMath"
|
|
1037
|
+
- $ref: "#/components/schemas/DocumentInlineImage"
|
|
1038
|
+
- $ref: "#/components/schemas/DocumentInlineAnnotation"
|
|
1039
|
+
- $ref: "#/components/schemas/DocumentInlineMention"
|
|
1040
|
+
DocumentText:
|
|
1032
1041
|
type: object
|
|
1033
1042
|
properties:
|
|
1034
1043
|
object:
|
|
@@ -1044,7 +1053,7 @@ components:
|
|
|
1044
1053
|
required:
|
|
1045
1054
|
- object
|
|
1046
1055
|
- leaves
|
|
1047
|
-
|
|
1056
|
+
DocumentFragment:
|
|
1048
1057
|
type: object
|
|
1049
1058
|
properties:
|
|
1050
1059
|
object:
|
|
@@ -1064,6 +1073,31 @@ components:
|
|
|
1064
1073
|
required:
|
|
1065
1074
|
- object
|
|
1066
1075
|
- nodes
|
|
1076
|
+
DocumentBlocksEssentials:
|
|
1077
|
+
oneOf:
|
|
1078
|
+
- $ref: "#/components/schemas/DocumentBlockParagraph"
|
|
1079
|
+
- $ref: "#/components/schemas/DocumentBlockHeading"
|
|
1080
|
+
- $ref: "#/components/schemas/DocumentBlockListOrdered"
|
|
1081
|
+
- $ref: "#/components/schemas/DocumentBlockListUnordered"
|
|
1082
|
+
- $ref: "#/components/schemas/DocumentBlockListTasks"
|
|
1083
|
+
- $ref: "#/components/schemas/DocumentBlockDivider"
|
|
1084
|
+
DocumentBlocksTopLevels:
|
|
1085
|
+
oneOf:
|
|
1086
|
+
- $ref: "#/components/schemas/DocumentBlocksEssentials"
|
|
1087
|
+
- $ref: "#/components/schemas/DocumentBlockQuote"
|
|
1088
|
+
- $ref: "#/components/schemas/DocumentBlockHint"
|
|
1089
|
+
- $ref: "#/components/schemas/DocumentBlockImages"
|
|
1090
|
+
- $ref: "#/components/schemas/DocumentBlockFile"
|
|
1091
|
+
- $ref: "#/components/schemas/DocumentBlockDrawing"
|
|
1092
|
+
- $ref: "#/components/schemas/DocumentBlockEmbed"
|
|
1093
|
+
- $ref: "#/components/schemas/DocumentBlockCode"
|
|
1094
|
+
- $ref: "#/components/schemas/DocumentBlockMath"
|
|
1095
|
+
- $ref: "#/components/schemas/DocumentBlockExpandable"
|
|
1096
|
+
- $ref: "#/components/schemas/DocumentBlockTabs"
|
|
1097
|
+
- $ref: "#/components/schemas/DocumentBlockTable"
|
|
1098
|
+
- $ref: "#/components/schemas/DocumentBlockSwagger"
|
|
1099
|
+
- $ref: "#/components/schemas/DocumentBlockContentRef"
|
|
1100
|
+
- $ref: "#/components/schemas/DocumentBlockIntegration"
|
|
1067
1101
|
DocumentTextLeaf:
|
|
1068
1102
|
type: object
|
|
1069
1103
|
properties:
|
|
@@ -1202,7 +1236,7 @@ components:
|
|
|
1202
1236
|
type: array
|
|
1203
1237
|
items:
|
|
1204
1238
|
oneOf:
|
|
1205
|
-
- $ref: "#/components/schemas/
|
|
1239
|
+
- $ref: "#/components/schemas/DocumentText"
|
|
1206
1240
|
- $ref: "#/components/schemas/DocumentInlineImage"
|
|
1207
1241
|
data:
|
|
1208
1242
|
type: object
|
|
@@ -1366,7 +1400,7 @@ components:
|
|
|
1366
1400
|
type: array
|
|
1367
1401
|
items:
|
|
1368
1402
|
allOf:
|
|
1369
|
-
- $ref: "#/components/schemas/
|
|
1403
|
+
- $ref: "#/components/schemas/DocumentFragment"
|
|
1370
1404
|
- type: object
|
|
1371
1405
|
properties:
|
|
1372
1406
|
type:
|
|
@@ -1386,11 +1420,11 @@ components:
|
|
|
1386
1420
|
isVoid:
|
|
1387
1421
|
type: boolean
|
|
1388
1422
|
enum:
|
|
1389
|
-
-
|
|
1423
|
+
- false
|
|
1390
1424
|
nodes:
|
|
1391
1425
|
type: array
|
|
1392
1426
|
items:
|
|
1393
|
-
$ref: "#/components/schemas/
|
|
1427
|
+
$ref: "#/components/schemas/DocumentText"
|
|
1394
1428
|
data:
|
|
1395
1429
|
type: object
|
|
1396
1430
|
properties: {}
|
|
@@ -1401,15 +1435,6 @@ components:
|
|
|
1401
1435
|
- fragments
|
|
1402
1436
|
- isVoid
|
|
1403
1437
|
- nodes
|
|
1404
|
-
DocumentInlinesRich:
|
|
1405
|
-
oneOf:
|
|
1406
|
-
- $ref: "#/components/schemas/DocumentNodeText"
|
|
1407
|
-
- $ref: "#/components/schemas/DocumentInlineLink"
|
|
1408
|
-
- $ref: "#/components/schemas/DocumentInlineEmoji"
|
|
1409
|
-
- $ref: "#/components/schemas/DocumentInlineMath"
|
|
1410
|
-
- $ref: "#/components/schemas/DocumentInlineImage"
|
|
1411
|
-
- $ref: "#/components/schemas/DocumentInlineAnnotation"
|
|
1412
|
-
- $ref: "#/components/schemas/DocumentInlineMention"
|
|
1413
1438
|
DocumentBlockParagraph:
|
|
1414
1439
|
type: object
|
|
1415
1440
|
properties:
|
|
@@ -1426,7 +1451,9 @@ components:
|
|
|
1426
1451
|
nodes:
|
|
1427
1452
|
type: array
|
|
1428
1453
|
items:
|
|
1429
|
-
|
|
1454
|
+
oneOf:
|
|
1455
|
+
- $ref: "#/components/schemas/DocumentInline"
|
|
1456
|
+
- $ref: "#/components/schemas/DocumentText"
|
|
1430
1457
|
isVoid:
|
|
1431
1458
|
type: boolean
|
|
1432
1459
|
enum:
|
|
@@ -1457,7 +1484,9 @@ components:
|
|
|
1457
1484
|
nodes:
|
|
1458
1485
|
type: array
|
|
1459
1486
|
items:
|
|
1460
|
-
|
|
1487
|
+
oneOf:
|
|
1488
|
+
- $ref: "#/components/schemas/DocumentInline"
|
|
1489
|
+
- $ref: "#/components/schemas/DocumentText"
|
|
1461
1490
|
data:
|
|
1462
1491
|
type: object
|
|
1463
1492
|
properties:
|
|
@@ -1629,7 +1658,7 @@ components:
|
|
|
1629
1658
|
type: array
|
|
1630
1659
|
items:
|
|
1631
1660
|
oneOf:
|
|
1632
|
-
- $ref: "#/components/schemas/
|
|
1661
|
+
- $ref: "#/components/schemas/DocumentBlockListItem"
|
|
1633
1662
|
isVoid:
|
|
1634
1663
|
type: boolean
|
|
1635
1664
|
enum:
|
|
@@ -1666,26 +1695,13 @@ components:
|
|
|
1666
1695
|
- false
|
|
1667
1696
|
data:
|
|
1668
1697
|
type: object
|
|
1669
|
-
properties:
|
|
1670
|
-
|
|
1698
|
+
properties:
|
|
1699
|
+
checked:
|
|
1700
|
+
type: boolean
|
|
1671
1701
|
required:
|
|
1672
1702
|
- object
|
|
1673
1703
|
- type
|
|
1674
1704
|
- nodes
|
|
1675
|
-
DocumentBlockTaskListItem:
|
|
1676
|
-
allOf:
|
|
1677
|
-
- $ref: "#/components/schemas/DocumentBlockListItem"
|
|
1678
|
-
- type: object
|
|
1679
|
-
properties:
|
|
1680
|
-
data:
|
|
1681
|
-
type: object
|
|
1682
|
-
properties:
|
|
1683
|
-
checked:
|
|
1684
|
-
type: boolean
|
|
1685
|
-
required:
|
|
1686
|
-
- checked
|
|
1687
|
-
required:
|
|
1688
|
-
- data
|
|
1689
1705
|
DocumentBlockImages:
|
|
1690
1706
|
type: object
|
|
1691
1707
|
properties:
|
|
@@ -1762,13 +1778,15 @@ components:
|
|
|
1762
1778
|
- value
|
|
1763
1779
|
height:
|
|
1764
1780
|
$ref: "#/components/schemas/DocumentBlockImage/properties/data/properties/width"
|
|
1781
|
+
alt:
|
|
1782
|
+
type: string
|
|
1765
1783
|
required:
|
|
1766
1784
|
- ref
|
|
1767
1785
|
fragments:
|
|
1768
1786
|
type: array
|
|
1769
1787
|
items:
|
|
1770
1788
|
allOf:
|
|
1771
|
-
- $ref: "#/components/schemas/
|
|
1789
|
+
- $ref: "#/components/schemas/DocumentFragment"
|
|
1772
1790
|
- type: object
|
|
1773
1791
|
properties:
|
|
1774
1792
|
type:
|
|
@@ -1941,7 +1959,7 @@ components:
|
|
|
1941
1959
|
type: array
|
|
1942
1960
|
items:
|
|
1943
1961
|
oneOf:
|
|
1944
|
-
- $ref: "#/components/schemas/
|
|
1962
|
+
- $ref: "#/components/schemas/DocumentText"
|
|
1945
1963
|
- $ref: "#/components/schemas/DocumentInlineAnnotation"
|
|
1946
1964
|
data:
|
|
1947
1965
|
type: object
|
|
@@ -2012,7 +2030,7 @@ components:
|
|
|
2012
2030
|
items:
|
|
2013
2031
|
oneOf:
|
|
2014
2032
|
- allOf:
|
|
2015
|
-
- $ref: "#/components/schemas/
|
|
2033
|
+
- $ref: "#/components/schemas/DocumentFragment"
|
|
2016
2034
|
- type: object
|
|
2017
2035
|
properties:
|
|
2018
2036
|
fragment:
|
|
@@ -2034,7 +2052,7 @@ components:
|
|
|
2034
2052
|
- fragment
|
|
2035
2053
|
- type
|
|
2036
2054
|
- allOf:
|
|
2037
|
-
- $ref: "#/components/schemas/
|
|
2055
|
+
- $ref: "#/components/schemas/DocumentFragment"
|
|
2038
2056
|
- type: object
|
|
2039
2057
|
properties:
|
|
2040
2058
|
fragment:
|
|
@@ -2190,7 +2208,7 @@ components:
|
|
|
2190
2208
|
fragments:
|
|
2191
2209
|
type: array
|
|
2192
2210
|
items:
|
|
2193
|
-
$ref: "#/components/schemas/
|
|
2211
|
+
$ref: "#/components/schemas/DocumentFragment"
|
|
2194
2212
|
required:
|
|
2195
2213
|
- object
|
|
2196
2214
|
- type
|