@gitbook/api 0.11.0 → 0.12.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/README.md +21 -0
- package/dist/client.d.ts +656 -311
- package/dist/index.cjs +35 -115
- package/dist/index.js +34 -111
- package/package.json +2 -1
- package/spec/openapi.json +3329 -880
- package/spec/openapi.yaml +2135 -588
package/dist/client.d.ts
CHANGED
|
@@ -172,17 +172,6 @@ export interface RequestCreateSpace {
|
|
|
172
172
|
emoji?: Emoji;
|
|
173
173
|
/** Private spaces are no longer supported by GitBook. */
|
|
174
174
|
private?: boolean;
|
|
175
|
-
/**
|
|
176
|
-
* - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
|
|
177
|
-
* - `website`: A single web page or a collection of related web pages under a single domain.
|
|
178
|
-
* - `service`: An independently-deployable software unit that is usually is operated by a person or a team.
|
|
179
|
-
* - `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
|
|
180
|
-
* - `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
|
|
181
|
-
* - `database`: A databse entity, persisting data. A database is typically used by services or applications.
|
|
182
|
-
* - `other`: A space that doesn’t match the service, library, or application type.
|
|
183
|
-
*
|
|
184
|
-
*/
|
|
185
|
-
type?: SpaceType;
|
|
186
175
|
/** ID of a parent collection */
|
|
187
176
|
parent?: string;
|
|
188
177
|
}
|
|
@@ -271,24 +260,6 @@ export interface User {
|
|
|
271
260
|
location?: string;
|
|
272
261
|
};
|
|
273
262
|
}
|
|
274
|
-
export interface UserPreferences {
|
|
275
|
-
/** Type of Object, always equals to "user-preferences" */
|
|
276
|
-
object: 'user-preferences';
|
|
277
|
-
/** Preferred theme for the application */
|
|
278
|
-
theme: UserPreferencesTheme;
|
|
279
|
-
/** URLs associated with the object */
|
|
280
|
-
urls: {
|
|
281
|
-
location?: string;
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Preferred theme for the application
|
|
286
|
-
*/
|
|
287
|
-
export declare enum UserPreferencesTheme {
|
|
288
|
-
Light = "light",
|
|
289
|
-
Dark = "dark",
|
|
290
|
-
Default = "default"
|
|
291
|
-
}
|
|
292
263
|
/**
|
|
293
264
|
* The API token details, excluding the token itself.
|
|
294
265
|
*/
|
|
@@ -358,6 +329,16 @@ export interface ImportContentResult {
|
|
|
358
329
|
/** How many resources were processed */
|
|
359
330
|
totalResources: number;
|
|
360
331
|
}
|
|
332
|
+
export declare type Embed = {
|
|
333
|
+
title: string;
|
|
334
|
+
site: string;
|
|
335
|
+
icon?: string;
|
|
336
|
+
} & ({
|
|
337
|
+
type: 'link';
|
|
338
|
+
} | {
|
|
339
|
+
type: 'rich';
|
|
340
|
+
html: string;
|
|
341
|
+
});
|
|
361
342
|
export declare type Comment = {
|
|
362
343
|
object: 'comment';
|
|
363
344
|
id: string;
|
|
@@ -407,32 +388,507 @@ export interface CommentReply {
|
|
|
407
388
|
location: string;
|
|
408
389
|
};
|
|
409
390
|
}
|
|
410
|
-
export declare type Document = MarkdownDocument |
|
|
391
|
+
export declare type Document = MarkdownDocument | {
|
|
392
|
+
document: JSONDocument;
|
|
393
|
+
} | object;
|
|
411
394
|
export interface MarkdownDocument {
|
|
412
395
|
/** Content of the document formatted as markdown */
|
|
413
396
|
markdown: string;
|
|
414
397
|
}
|
|
415
398
|
export interface JSONDocument {
|
|
416
|
-
|
|
417
|
-
|
|
399
|
+
object: 'document';
|
|
400
|
+
data: object;
|
|
401
|
+
nodes: DocumentBlocksTopLevels[];
|
|
402
|
+
}
|
|
403
|
+
export declare type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
|
|
404
|
+
export declare type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration;
|
|
405
|
+
export interface DocumentNodeText {
|
|
406
|
+
object: 'text';
|
|
407
|
+
key?: string;
|
|
408
|
+
leaves: DocumentTextLeaf[];
|
|
409
|
+
}
|
|
410
|
+
export interface DocumentNodeFragment {
|
|
411
|
+
object: 'fragment';
|
|
412
|
+
key?: string;
|
|
413
|
+
fragment?: string;
|
|
414
|
+
type?: string;
|
|
415
|
+
nodes: DocumentBlocksEssentials[];
|
|
416
|
+
}
|
|
417
|
+
export interface DocumentTextLeaf {
|
|
418
|
+
object: 'leaf';
|
|
419
|
+
text: string;
|
|
420
|
+
marks: DocumentTextMark[];
|
|
421
|
+
}
|
|
422
|
+
export interface DocumentMarkBold {
|
|
423
|
+
object: 'mark';
|
|
424
|
+
type: 'bold';
|
|
425
|
+
}
|
|
426
|
+
export interface DocumentMarkItalic {
|
|
427
|
+
object: 'mark';
|
|
428
|
+
type: 'italic';
|
|
429
|
+
}
|
|
430
|
+
export interface DocumentMarkCode {
|
|
431
|
+
object: 'mark';
|
|
432
|
+
type: 'code';
|
|
433
|
+
}
|
|
434
|
+
export interface DocumentMarkStrikethrough {
|
|
435
|
+
object: 'mark';
|
|
436
|
+
type: 'strikethrough';
|
|
437
|
+
}
|
|
438
|
+
export interface DocumentMarkColor {
|
|
439
|
+
object: 'mark';
|
|
440
|
+
type: 'color';
|
|
441
|
+
data: {
|
|
442
|
+
text: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
|
|
443
|
+
background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
export declare type DocumentTextMark = DocumentMarkBold | DocumentMarkItalic | DocumentMarkCode | DocumentMarkStrikethrough | DocumentMarkColor;
|
|
447
|
+
export interface DocumentInlineLink {
|
|
448
|
+
object: 'inline';
|
|
449
|
+
type: 'link';
|
|
450
|
+
key?: string;
|
|
451
|
+
nodes: (DocumentNodeText | DocumentInlineImage)[];
|
|
452
|
+
data: {
|
|
453
|
+
ref: ContentRef;
|
|
454
|
+
};
|
|
455
|
+
isVoid?: false;
|
|
456
|
+
}
|
|
457
|
+
export interface DocumentInlineMath {
|
|
458
|
+
object: 'inline';
|
|
459
|
+
type: 'inline-math';
|
|
460
|
+
key?: string;
|
|
461
|
+
data: {
|
|
462
|
+
formula: string;
|
|
463
|
+
};
|
|
464
|
+
isVoid: true;
|
|
465
|
+
}
|
|
466
|
+
export interface DocumentInlineEmoji {
|
|
467
|
+
object: 'inline';
|
|
468
|
+
type: 'emoji';
|
|
469
|
+
key?: string;
|
|
470
|
+
data: {
|
|
471
|
+
code: string;
|
|
472
|
+
};
|
|
473
|
+
isVoid: true;
|
|
474
|
+
}
|
|
475
|
+
export interface DocumentInlineImage {
|
|
476
|
+
object: 'inline';
|
|
477
|
+
type: 'inline-image';
|
|
478
|
+
key?: string;
|
|
479
|
+
data: {
|
|
480
|
+
ref: ContentRefURL | ContentRefFile;
|
|
481
|
+
refDark?: ContentRefURL | ContentRefFile;
|
|
482
|
+
caption?: string;
|
|
483
|
+
size?: 'original' | 'line';
|
|
484
|
+
};
|
|
485
|
+
isVoid: true;
|
|
486
|
+
}
|
|
487
|
+
export interface DocumentInlineMention {
|
|
488
|
+
object: 'inline';
|
|
489
|
+
type: 'mention';
|
|
490
|
+
key?: string;
|
|
491
|
+
data: {
|
|
492
|
+
ref: ContentRef;
|
|
493
|
+
};
|
|
494
|
+
isVoid: true;
|
|
495
|
+
}
|
|
496
|
+
export interface DocumentInlineAnnotation {
|
|
497
|
+
object: 'inline';
|
|
498
|
+
type: 'annotation';
|
|
499
|
+
key?: string;
|
|
500
|
+
fragments: (DocumentNodeFragment & {
|
|
501
|
+
type: 'annotation-body';
|
|
502
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
|
|
503
|
+
})[];
|
|
504
|
+
isVoid: true;
|
|
505
|
+
nodes: DocumentNodeText[];
|
|
506
|
+
data?: object;
|
|
507
|
+
}
|
|
508
|
+
export declare type DocumentInlinesRich = DocumentNodeText | DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
|
|
509
|
+
export interface DocumentBlockParagraph {
|
|
510
|
+
object: 'block';
|
|
511
|
+
type: 'paragraph';
|
|
512
|
+
key?: string;
|
|
513
|
+
nodes: DocumentInlinesRich[];
|
|
514
|
+
isVoid?: false;
|
|
515
|
+
data?: object;
|
|
516
|
+
}
|
|
517
|
+
export interface DocumentBlockHeading {
|
|
518
|
+
object: 'block';
|
|
519
|
+
type: 'heading-1' | 'heading-2' | 'heading-3';
|
|
520
|
+
key?: string;
|
|
521
|
+
nodes: DocumentInlinesRich[];
|
|
522
|
+
data: {
|
|
523
|
+
id?: string;
|
|
524
|
+
};
|
|
525
|
+
meta?: {
|
|
526
|
+
id: string;
|
|
527
|
+
};
|
|
528
|
+
isVoid?: false;
|
|
529
|
+
}
|
|
530
|
+
export interface DocumentBlockQuote {
|
|
531
|
+
object: 'block';
|
|
532
|
+
type: 'blockquote';
|
|
533
|
+
key?: string;
|
|
534
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockQuote)[];
|
|
535
|
+
isVoid?: false;
|
|
536
|
+
data?: object;
|
|
537
|
+
}
|
|
538
|
+
export interface DocumentBlockHint {
|
|
539
|
+
object: 'block';
|
|
540
|
+
type: 'hint';
|
|
541
|
+
key?: string;
|
|
542
|
+
data: {
|
|
543
|
+
style: 'info' | 'warning' | 'danger' | 'success';
|
|
544
|
+
};
|
|
545
|
+
nodes: DocumentBlocksEssentials[];
|
|
546
|
+
isVoid?: false;
|
|
547
|
+
}
|
|
548
|
+
export interface DocumentBlockListUnordered {
|
|
549
|
+
object: 'block';
|
|
550
|
+
type: 'list-unordered';
|
|
551
|
+
key?: string;
|
|
552
|
+
nodes: DocumentBlockListItem[];
|
|
553
|
+
data?: object;
|
|
554
|
+
isVoid?: false;
|
|
555
|
+
}
|
|
556
|
+
export interface DocumentBlockListOrdered {
|
|
557
|
+
object: 'block';
|
|
558
|
+
type: 'list-ordered';
|
|
559
|
+
key?: string;
|
|
560
|
+
data: {
|
|
561
|
+
start?: number;
|
|
562
|
+
};
|
|
563
|
+
nodes: DocumentBlockListItem[];
|
|
564
|
+
isVoid?: false;
|
|
565
|
+
}
|
|
566
|
+
export interface DocumentBlockListTasks {
|
|
567
|
+
object: 'block';
|
|
568
|
+
type: 'list-tasks';
|
|
569
|
+
key?: string;
|
|
570
|
+
nodes: DocumentBlockTaskListItem[];
|
|
571
|
+
isVoid?: false;
|
|
572
|
+
data?: object;
|
|
573
|
+
}
|
|
574
|
+
export interface DocumentBlockListItem {
|
|
575
|
+
object: 'block';
|
|
576
|
+
type: 'list-item';
|
|
577
|
+
key?: string;
|
|
578
|
+
nodes: DocumentBlocksEssentials[];
|
|
579
|
+
isVoid?: false;
|
|
580
|
+
data?: object;
|
|
581
|
+
}
|
|
582
|
+
export declare type DocumentBlockTaskListItem = DocumentBlockListItem & {
|
|
583
|
+
data: {
|
|
584
|
+
checked: boolean;
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
export interface DocumentBlockImages {
|
|
588
|
+
object: 'block';
|
|
589
|
+
type: 'images';
|
|
590
|
+
key?: string;
|
|
591
|
+
data: {
|
|
592
|
+
align?: 'center' | 'left' | 'right';
|
|
593
|
+
fullWidth?: boolean;
|
|
594
|
+
};
|
|
595
|
+
nodes: DocumentBlockImage[];
|
|
596
|
+
isVoid: true;
|
|
597
|
+
}
|
|
598
|
+
export interface DocumentBlockImage {
|
|
599
|
+
object: 'block';
|
|
600
|
+
type: 'image';
|
|
601
|
+
key?: string;
|
|
602
|
+
data: {
|
|
603
|
+
ref: ContentRefURL | ContentRefFile;
|
|
604
|
+
refDark?: ContentRefURL | ContentRefFile;
|
|
605
|
+
width?: number | {
|
|
606
|
+
unit: string;
|
|
607
|
+
value: number;
|
|
608
|
+
};
|
|
609
|
+
height?: any;
|
|
610
|
+
};
|
|
611
|
+
fragments: (DocumentNodeFragment & {
|
|
612
|
+
type: 'caption';
|
|
613
|
+
nodes: DocumentBlockParagraph[];
|
|
614
|
+
})[];
|
|
615
|
+
isVoid: true;
|
|
616
|
+
}
|
|
617
|
+
export interface DocumentBlockFile {
|
|
618
|
+
object: 'block';
|
|
619
|
+
type: 'file';
|
|
620
|
+
key?: string;
|
|
621
|
+
data: {
|
|
622
|
+
ref: ContentRefFile;
|
|
623
|
+
};
|
|
624
|
+
isVoid: true;
|
|
625
|
+
}
|
|
626
|
+
export interface DocumentBlockDrawing {
|
|
627
|
+
object: 'block';
|
|
628
|
+
type: 'drawing';
|
|
629
|
+
key?: string;
|
|
630
|
+
data: {
|
|
631
|
+
ref?: ContentRefFile;
|
|
632
|
+
};
|
|
633
|
+
isVoid: true;
|
|
634
|
+
}
|
|
635
|
+
export interface DocumentBlockEmbed {
|
|
636
|
+
object: 'block';
|
|
637
|
+
type: 'embed';
|
|
638
|
+
key?: string;
|
|
639
|
+
data: {
|
|
640
|
+
url: string;
|
|
641
|
+
fullWidth?: boolean;
|
|
642
|
+
};
|
|
643
|
+
isVoid: true;
|
|
644
|
+
}
|
|
645
|
+
export interface DocumentBlockCode {
|
|
646
|
+
object: 'block';
|
|
647
|
+
type: 'code';
|
|
648
|
+
key?: string;
|
|
649
|
+
data: {
|
|
650
|
+
syntax?: string;
|
|
651
|
+
title?: string;
|
|
652
|
+
overflow?: 'scroll' | 'wrap';
|
|
653
|
+
lineNumbers?: boolean;
|
|
654
|
+
fullWidth?: boolean;
|
|
655
|
+
};
|
|
656
|
+
nodes: DocumentBlockCodeLine[];
|
|
657
|
+
isVoid?: false;
|
|
658
|
+
}
|
|
659
|
+
export interface DocumentBlockCodeLine {
|
|
660
|
+
object: 'block';
|
|
661
|
+
type: 'code-line';
|
|
662
|
+
key?: string;
|
|
663
|
+
nodes: (DocumentNodeText | DocumentInlineAnnotation)[];
|
|
664
|
+
data: {
|
|
665
|
+
highlighted?: boolean;
|
|
666
|
+
};
|
|
667
|
+
isVoid?: false;
|
|
668
|
+
}
|
|
669
|
+
export interface DocumentBlockMath {
|
|
670
|
+
object: 'block';
|
|
671
|
+
type: 'math';
|
|
672
|
+
key?: string;
|
|
673
|
+
data: {
|
|
674
|
+
formula: string;
|
|
675
|
+
};
|
|
676
|
+
isVoid: true;
|
|
677
|
+
}
|
|
678
|
+
export interface DocumentBlockExpandable {
|
|
679
|
+
object: 'block';
|
|
680
|
+
type: 'expandable';
|
|
681
|
+
key?: string;
|
|
682
|
+
isVoid: true;
|
|
683
|
+
data: object;
|
|
684
|
+
fragments: ((DocumentNodeFragment & {
|
|
685
|
+
fragment: 'expandable-title';
|
|
686
|
+
type: 'expandable-title';
|
|
687
|
+
nodes: DocumentBlockParagraph[];
|
|
688
|
+
}) | (DocumentNodeFragment & {
|
|
689
|
+
fragment: 'expandable-body';
|
|
690
|
+
type: 'expandable-body';
|
|
691
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
|
|
692
|
+
}))[];
|
|
693
|
+
meta?: {
|
|
694
|
+
id: string;
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
export interface DocumentBlockTabs {
|
|
698
|
+
object: 'block';
|
|
699
|
+
type: 'tabs';
|
|
700
|
+
key?: string;
|
|
701
|
+
nodes: DocumentBlockTabsItem[];
|
|
702
|
+
isVoid?: false;
|
|
703
|
+
data?: object;
|
|
704
|
+
}
|
|
705
|
+
export interface DocumentBlockSwagger {
|
|
706
|
+
object: 'block';
|
|
707
|
+
type: 'swagger';
|
|
708
|
+
key?: string;
|
|
709
|
+
data: {
|
|
710
|
+
ref: ContentRefFile;
|
|
711
|
+
path?: string;
|
|
712
|
+
method?: string;
|
|
713
|
+
expanded?: boolean;
|
|
714
|
+
fullWidth?: boolean;
|
|
715
|
+
};
|
|
716
|
+
isVoid: true;
|
|
717
|
+
meta?: {
|
|
718
|
+
id: string;
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
export interface DocumentBlockTable {
|
|
722
|
+
object: 'block';
|
|
723
|
+
type: 'table';
|
|
724
|
+
key?: string;
|
|
725
|
+
isVoid: true;
|
|
726
|
+
data: {
|
|
727
|
+
view: DocumentTableViewGrid | DocumentTableViewCards;
|
|
728
|
+
records: Record<string, DocumentTableRecord>;
|
|
729
|
+
definition: Record<string, DocumentTableDefinition>;
|
|
730
|
+
fullWidth?: boolean;
|
|
731
|
+
};
|
|
732
|
+
fragments: DocumentNodeFragment[];
|
|
733
|
+
}
|
|
734
|
+
export interface DocumentTableRecord {
|
|
735
|
+
orderIndex: string;
|
|
736
|
+
values: Record<string, number | string | boolean | string[] | ContentRef>;
|
|
737
|
+
}
|
|
738
|
+
export interface DocumentTableDefinitionBase {
|
|
739
|
+
id: string;
|
|
740
|
+
/** Title for the column */
|
|
741
|
+
title: string;
|
|
742
|
+
}
|
|
743
|
+
export declare type DocumentTableDefinition = DocumentTableDefinitionText | DocumentTableDefinitionNumber | DocumentTableDefinitionCheckbox | DocumentTableDefinitionFiles | DocumentTableDefinitionUsers | DocumentTableDefinitionRating | DocumentTableDefinitionSelect | DocumentTableDefinitionContentRef;
|
|
744
|
+
export declare type DocumentTableDefinitionText = DocumentTableDefinitionBase & {
|
|
745
|
+
type: 'text';
|
|
746
|
+
textAlignment: 'center' | 'right' | 'left';
|
|
747
|
+
};
|
|
748
|
+
export declare type DocumentTableDefinitionNumber = DocumentTableDefinitionBase & {
|
|
749
|
+
type: 'number';
|
|
750
|
+
};
|
|
751
|
+
export declare type DocumentTableDefinitionCheckbox = DocumentTableDefinitionBase & {
|
|
752
|
+
type: 'checkbox';
|
|
753
|
+
};
|
|
754
|
+
export declare type DocumentTableDefinitionFiles = DocumentTableDefinitionBase & {
|
|
755
|
+
type: 'files';
|
|
756
|
+
};
|
|
757
|
+
export declare type DocumentTableDefinitionUsers = DocumentTableDefinitionBase & {
|
|
758
|
+
type: 'users';
|
|
759
|
+
multiple: boolean;
|
|
760
|
+
};
|
|
761
|
+
export declare type DocumentTableDefinitionRating = DocumentTableDefinitionBase & {
|
|
762
|
+
type: 'rating';
|
|
763
|
+
max: number;
|
|
764
|
+
};
|
|
765
|
+
export declare type DocumentTableDefinitionSelect = DocumentTableDefinitionBase & {
|
|
766
|
+
type: 'select';
|
|
767
|
+
multiple: boolean;
|
|
768
|
+
options: DocumentTableSelectOption[];
|
|
769
|
+
};
|
|
770
|
+
export declare type DocumentTableDefinitionContentRef = DocumentTableDefinitionBase & {
|
|
771
|
+
type: 'content-ref';
|
|
772
|
+
};
|
|
773
|
+
export interface DocumentTableSelectOption {
|
|
774
|
+
value: string;
|
|
775
|
+
label: string;
|
|
776
|
+
color: string;
|
|
777
|
+
}
|
|
778
|
+
export interface DocumentTableViewCards {
|
|
779
|
+
type: 'cards';
|
|
780
|
+
/** Size of the cards. It indicates how many columns will be used */
|
|
781
|
+
cardSize: 'medium' | 'large';
|
|
782
|
+
/** Ordered list of the definition IDs to display */
|
|
783
|
+
columns: string[];
|
|
784
|
+
/** Definition ID to use as a target link for the card */
|
|
785
|
+
targetDefinition?: string;
|
|
786
|
+
/** Definition ID to use as a cover image */
|
|
787
|
+
coverDefinition?: string;
|
|
788
|
+
/** Should we display the column title or not */
|
|
789
|
+
hideColumnTitle?: boolean;
|
|
790
|
+
}
|
|
791
|
+
export interface DocumentTableViewGrid {
|
|
792
|
+
type: 'grid';
|
|
793
|
+
/** Ordered list of the definition IDs to display */
|
|
794
|
+
columns: string[];
|
|
795
|
+
/** Percent width of each column */
|
|
796
|
+
columnWidths?: Record<string, number>;
|
|
797
|
+
/** Should we display the header with column titles */
|
|
798
|
+
hideHeader: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* Tables in GitBook originally used a scaled width approach i.e. the width defined
|
|
801
|
+
* in columnWidths would be scaled to ensure a 100% width table.
|
|
802
|
+
*
|
|
803
|
+
* We later changed this to treat the widths in columnWidths as exact values - they are
|
|
804
|
+
* never scaled. A columnWidth of 50 is rendered as 50px.
|
|
805
|
+
* In order to maintain backwards compatibility, we track whether or not we
|
|
806
|
+
* use the new system here.
|
|
807
|
+
* All new tables should have this value set to true, older tables will have it set
|
|
808
|
+
* to undefined.
|
|
809
|
+
*/
|
|
810
|
+
useNewSizing?: boolean;
|
|
811
|
+
}
|
|
812
|
+
export interface DocumentBlockTabsItem {
|
|
813
|
+
object: 'block';
|
|
814
|
+
type: 'tabs-item';
|
|
815
|
+
key?: string;
|
|
816
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
|
|
817
|
+
data: {
|
|
818
|
+
title?: string;
|
|
819
|
+
};
|
|
820
|
+
meta?: {
|
|
821
|
+
id: string;
|
|
822
|
+
};
|
|
823
|
+
isVoid?: false;
|
|
824
|
+
}
|
|
825
|
+
export interface DocumentBlockContentRef {
|
|
826
|
+
object: 'block';
|
|
827
|
+
type: 'content-ref';
|
|
828
|
+
key?: string;
|
|
829
|
+
data: {
|
|
830
|
+
ref: ContentRef;
|
|
831
|
+
};
|
|
832
|
+
isVoid: true;
|
|
833
|
+
}
|
|
834
|
+
export interface DocumentBlockIntegration {
|
|
835
|
+
object: 'block';
|
|
836
|
+
type: 'integration';
|
|
837
|
+
key?: string;
|
|
838
|
+
data: {
|
|
839
|
+
integration: string;
|
|
840
|
+
block: string;
|
|
841
|
+
props: Record<string, any>;
|
|
842
|
+
action?: ContentKitAction;
|
|
843
|
+
url?: string;
|
|
844
|
+
fullWidth?: boolean;
|
|
418
845
|
};
|
|
846
|
+
isVoid: true;
|
|
847
|
+
}
|
|
848
|
+
export interface DocumentBlockDivider {
|
|
849
|
+
object: 'block';
|
|
850
|
+
type: 'divider';
|
|
851
|
+
key?: string;
|
|
852
|
+
isVoid: true;
|
|
853
|
+
data: object;
|
|
854
|
+
}
|
|
855
|
+
export declare type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace;
|
|
856
|
+
export interface ContentRefURL {
|
|
857
|
+
kind: 'url';
|
|
858
|
+
url: string;
|
|
859
|
+
}
|
|
860
|
+
export interface ContentRefFile {
|
|
861
|
+
kind: 'file';
|
|
862
|
+
file: string;
|
|
863
|
+
}
|
|
864
|
+
export interface ContentRefPage {
|
|
865
|
+
kind: 'page';
|
|
866
|
+
page: string;
|
|
867
|
+
space: string;
|
|
868
|
+
}
|
|
869
|
+
export interface ContentRefAnchor {
|
|
870
|
+
kind: 'anchor';
|
|
871
|
+
anchor: string;
|
|
872
|
+
space?: string;
|
|
873
|
+
page?: string;
|
|
874
|
+
}
|
|
875
|
+
export interface ContentRefUser {
|
|
876
|
+
kind: 'user';
|
|
877
|
+
user: string;
|
|
878
|
+
}
|
|
879
|
+
export interface ContentRefCollection {
|
|
880
|
+
kind: 'collection';
|
|
881
|
+
collection: string;
|
|
882
|
+
}
|
|
883
|
+
export interface ContentRefSpace {
|
|
884
|
+
kind: 'space';
|
|
885
|
+
space: string;
|
|
419
886
|
}
|
|
420
887
|
export interface Space {
|
|
421
888
|
/** Type of Object, always equals to "space" */
|
|
422
889
|
object: 'space';
|
|
423
890
|
/** Unique identifier for the space */
|
|
424
891
|
id: string;
|
|
425
|
-
/**
|
|
426
|
-
* - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
|
|
427
|
-
* - `website`: A single web page or a collection of related web pages under a single domain.
|
|
428
|
-
* - `service`: An independently-deployable software unit that is usually is operated by a person or a team.
|
|
429
|
-
* - `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
|
|
430
|
-
* - `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
|
|
431
|
-
* - `database`: A databse entity, persisting data. A database is typically used by services or applications.
|
|
432
|
-
* - `other`: A space that doesn’t match the service, library, or application type.
|
|
433
|
-
*
|
|
434
|
-
*/
|
|
435
|
-
type: SpaceType;
|
|
436
892
|
/** Title of the space */
|
|
437
893
|
title: string;
|
|
438
894
|
/**
|
|
@@ -461,58 +917,6 @@ export interface Space {
|
|
|
461
917
|
/** ID of the parent collection. */
|
|
462
918
|
parent?: string;
|
|
463
919
|
}
|
|
464
|
-
/**
|
|
465
|
-
* - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
|
|
466
|
-
- `website`: A single web page or a collection of related web pages under a single domain.
|
|
467
|
-
- `service`: An independently-deployable software unit that is usually is operated by a person or a team.
|
|
468
|
-
- `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
|
|
469
|
-
- `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
|
|
470
|
-
- `database`: A databse entity, persisting data. A database is typically used by services or applications.
|
|
471
|
-
- `other`: A space that doesn’t match the service, library, or application type.
|
|
472
|
-
*/
|
|
473
|
-
export declare enum SpaceType {
|
|
474
|
-
Application = "application",
|
|
475
|
-
Website = "website",
|
|
476
|
-
Service = "service",
|
|
477
|
-
Library = "library",
|
|
478
|
-
CloudResource = "cloud-resource",
|
|
479
|
-
Database = "database",
|
|
480
|
-
Other = "other"
|
|
481
|
-
}
|
|
482
|
-
export declare enum SpaceRelationType {
|
|
483
|
-
DependsOn = "dependsOn",
|
|
484
|
-
DependencyOf = "dependencyOf",
|
|
485
|
-
PartOf = "partOf",
|
|
486
|
-
HasPart = "hasPart"
|
|
487
|
-
}
|
|
488
|
-
/**
|
|
489
|
-
* Edge of a space relation (target or source)
|
|
490
|
-
*/
|
|
491
|
-
export interface SpaceRelationEdge {
|
|
492
|
-
/** ID of the space */
|
|
493
|
-
id: string;
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* Relation between an origin space and another space
|
|
497
|
-
*/
|
|
498
|
-
export interface SpaceRelation {
|
|
499
|
-
id: string;
|
|
500
|
-
type: SpaceRelationType;
|
|
501
|
-
/** Other space in the relation. If undefined, the current user doesn't have access to it. */
|
|
502
|
-
target: Space | SpaceRelationEdge;
|
|
503
|
-
createdAt: Date;
|
|
504
|
-
/** URLs associated with the object */
|
|
505
|
-
urls: {
|
|
506
|
-
location: string;
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* Relation between an origin space and another space
|
|
511
|
-
*/
|
|
512
|
-
export declare type SpaceRelationPair = SpaceRelation & {
|
|
513
|
-
target: SpaceRelationEdge;
|
|
514
|
-
source: SpaceRelationEdge;
|
|
515
|
-
};
|
|
516
920
|
export interface RevisionBase {
|
|
517
921
|
/** Type of Object, always equals to "revision" */
|
|
518
922
|
object: 'revision';
|
|
@@ -523,12 +927,7 @@ export interface RevisionBase {
|
|
|
523
927
|
pages: RevisionPage[];
|
|
524
928
|
files: RevisionFile[];
|
|
525
929
|
/** Metadata about a potential associated git commit. */
|
|
526
|
-
git?:
|
|
527
|
-
oid: string;
|
|
528
|
-
message: string;
|
|
529
|
-
createdByGitBook: boolean;
|
|
530
|
-
url?: string;
|
|
531
|
-
};
|
|
930
|
+
git?: GitSyncCommit;
|
|
532
931
|
urls: {
|
|
533
932
|
app: string;
|
|
534
933
|
published?: string;
|
|
@@ -555,6 +954,10 @@ export interface RevisionPageBase {
|
|
|
555
954
|
id: string;
|
|
556
955
|
/** Title of the page */
|
|
557
956
|
title: string;
|
|
957
|
+
/** When the page was first created. Only present if page has been edited at least once. */
|
|
958
|
+
createdAt?: Date;
|
|
959
|
+
/** When the page was last edited. Only present if page has been edited at least once. */
|
|
960
|
+
updatedAt?: Date;
|
|
558
961
|
}
|
|
559
962
|
export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
560
963
|
kind: 'sheet';
|
|
@@ -563,6 +966,7 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
563
966
|
path: string;
|
|
564
967
|
description?: string;
|
|
565
968
|
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
969
|
+
git?: GitSyncBlob;
|
|
566
970
|
};
|
|
567
971
|
export declare type RevisionPageGroup = RevisionPageBase & {
|
|
568
972
|
kind: 'group';
|
|
@@ -581,6 +985,13 @@ export interface RevisionFile {
|
|
|
581
985
|
name: string;
|
|
582
986
|
contentType: string;
|
|
583
987
|
downloadURL: string;
|
|
988
|
+
size: number;
|
|
989
|
+
/** For images, it contains the dimensions of it. */
|
|
990
|
+
dimensions?: {
|
|
991
|
+
width: number;
|
|
992
|
+
height: number;
|
|
993
|
+
};
|
|
994
|
+
git?: GitSyncBlob;
|
|
584
995
|
}
|
|
585
996
|
export declare enum ImportContentSource {
|
|
586
997
|
Website = "website",
|
|
@@ -629,6 +1040,24 @@ export declare enum GitSyncOperationState {
|
|
|
629
1040
|
Failure = "failure",
|
|
630
1041
|
Success = "success"
|
|
631
1042
|
}
|
|
1043
|
+
export interface GitSyncCommit {
|
|
1044
|
+
/** SHA for the commit */
|
|
1045
|
+
oid: string;
|
|
1046
|
+
/** Message describing the purpose of the commit */
|
|
1047
|
+
message: string;
|
|
1048
|
+
/** If true, the Git commit was generated by an export from GitBook */
|
|
1049
|
+
createdByGitBook: boolean;
|
|
1050
|
+
/** URL of the commit in the GitSync provider */
|
|
1051
|
+
url?: string;
|
|
1052
|
+
/** Original name of the ref where the commit originated from */
|
|
1053
|
+
ref?: string;
|
|
1054
|
+
}
|
|
1055
|
+
export interface GitSyncBlob {
|
|
1056
|
+
/** SHA for the blob */
|
|
1057
|
+
oid: string;
|
|
1058
|
+
/** Path of the blob in the Git tree */
|
|
1059
|
+
path: string;
|
|
1060
|
+
}
|
|
632
1061
|
export interface Organization {
|
|
633
1062
|
/** Type of Object, always equals to "organization" */
|
|
634
1063
|
object: 'organization';
|
|
@@ -761,20 +1190,27 @@ export interface OrganizationTeam {
|
|
|
761
1190
|
export interface TeamMember {
|
|
762
1191
|
/**
|
|
763
1192
|
* "The role of a team member.
|
|
764
|
-
* "
|
|
765
|
-
* "
|
|
1193
|
+
* "owner": Can manage team members.
|
|
1194
|
+
* "member": Is a member of the team.
|
|
766
1195
|
*
|
|
767
1196
|
*/
|
|
768
1197
|
role: TeamMemberRole;
|
|
769
1198
|
}
|
|
770
1199
|
/**
|
|
771
1200
|
* "The role of a team member.
|
|
772
|
-
"
|
|
773
|
-
"
|
|
1201
|
+
"owner": Can manage team members.
|
|
1202
|
+
"member": Is a member of the team.
|
|
774
1203
|
*/
|
|
775
1204
|
export declare enum TeamMemberRole {
|
|
776
|
-
|
|
777
|
-
|
|
1205
|
+
Owner = "owner",
|
|
1206
|
+
Member = "member"
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* A member of a team in an organization, including its relationship to it
|
|
1210
|
+
*/
|
|
1211
|
+
export interface OrganizationTeamMember {
|
|
1212
|
+
organization: OrganizationMember;
|
|
1213
|
+
team: TeamMember;
|
|
778
1214
|
}
|
|
779
1215
|
export interface Capture {
|
|
780
1216
|
/** Unique identifier for the capture */
|
|
@@ -793,6 +1229,8 @@ export interface Capture {
|
|
|
793
1229
|
createdAt: string;
|
|
794
1230
|
/** @format date-time */
|
|
795
1231
|
stoppedAt?: string;
|
|
1232
|
+
/** @format date-time */
|
|
1233
|
+
editedAt?: string;
|
|
796
1234
|
/** Count of events recorded. */
|
|
797
1235
|
events: {
|
|
798
1236
|
'terminal.command'?: number;
|
|
@@ -862,6 +1300,12 @@ export declare type CaptureFileRemovedEvent = BaseCaptureEvent & {
|
|
|
862
1300
|
filename: string;
|
|
863
1301
|
fileSnapshot: string;
|
|
864
1302
|
};
|
|
1303
|
+
export interface UpdateCaptureSchema {
|
|
1304
|
+
/** A new title for the capture. */
|
|
1305
|
+
title?: string;
|
|
1306
|
+
/** Content of the capture. */
|
|
1307
|
+
body?: Document;
|
|
1308
|
+
}
|
|
865
1309
|
export interface ChangeRequest {
|
|
866
1310
|
/** Type of Object, always equals to "change-request" */
|
|
867
1311
|
object: 'change-request';
|
|
@@ -1055,7 +1499,7 @@ export declare type SearchAIAnswerSource = {
|
|
|
1055
1499
|
integration?: string;
|
|
1056
1500
|
} | {
|
|
1057
1501
|
type: 'capture';
|
|
1058
|
-
|
|
1502
|
+
captureId: string;
|
|
1059
1503
|
source: string;
|
|
1060
1504
|
});
|
|
1061
1505
|
/**
|
|
@@ -1165,6 +1609,9 @@ export interface Integration {
|
|
|
1165
1609
|
summary?: IntegrationSummary;
|
|
1166
1610
|
/** URLs of images to showcase the integration */
|
|
1167
1611
|
previewImages: string[];
|
|
1612
|
+
target: IntegrationTarget;
|
|
1613
|
+
/** If true, the integration has been verified by the GitBook team */
|
|
1614
|
+
verified: boolean;
|
|
1168
1615
|
visibility: IntegrationVisibility;
|
|
1169
1616
|
/** Permissions that should be granted to the integration */
|
|
1170
1617
|
scopes: IntegrationScopes;
|
|
@@ -1175,13 +1622,19 @@ export interface Integration {
|
|
|
1175
1622
|
configurations?: IntegrationConfigurations;
|
|
1176
1623
|
/** External urls configured by the developer of the integration */
|
|
1177
1624
|
externalLinks: IntegrationExternalLinks;
|
|
1625
|
+
owner: Organization;
|
|
1178
1626
|
/** URLs associated with the object */
|
|
1179
1627
|
urls: {
|
|
1628
|
+
location: string;
|
|
1180
1629
|
icon?: string;
|
|
1181
1630
|
app: string;
|
|
1182
1631
|
assets: string;
|
|
1183
1632
|
publicEndpoint: string;
|
|
1184
1633
|
};
|
|
1634
|
+
/** The set of permissions for the integration */
|
|
1635
|
+
permissions: {
|
|
1636
|
+
admin: boolean;
|
|
1637
|
+
};
|
|
1185
1638
|
/**
|
|
1186
1639
|
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
1187
1640
|
* headers when processing the script fetch event and the blocks fetch events.
|
|
@@ -1285,10 +1738,11 @@ export declare enum IntegrationInstallationSpaceSelection {
|
|
|
1285
1738
|
}
|
|
1286
1739
|
export declare enum IntegrationCategory {
|
|
1287
1740
|
Analytics = "analytics",
|
|
1741
|
+
Captures = "captures",
|
|
1288
1742
|
Collaboration = "collaboration",
|
|
1289
|
-
Marketing = "marketing",
|
|
1290
1743
|
Content = "content",
|
|
1291
1744
|
Gitsync = "gitsync",
|
|
1745
|
+
Marketing = "marketing",
|
|
1292
1746
|
Other = "other"
|
|
1293
1747
|
}
|
|
1294
1748
|
export interface IntegrationConfigurations {
|
|
@@ -1339,10 +1793,15 @@ export interface IntegrationInstallation {
|
|
|
1339
1793
|
status: IntegrationInstallationStatus;
|
|
1340
1794
|
/** Describe whether all spaces have been selected or there's a selection involved */
|
|
1341
1795
|
space_selection: IntegrationInstallationSpaceSelection;
|
|
1796
|
+
/** Count of spaces, the installation is managing */
|
|
1797
|
+
spaces: number;
|
|
1342
1798
|
/** Configuration of the integration at the account level */
|
|
1343
1799
|
configuration: IntegrationInstallationConfiguration;
|
|
1800
|
+
createdAt: Date;
|
|
1801
|
+
updatedAt: Date;
|
|
1344
1802
|
/** URLs associated with the object */
|
|
1345
1803
|
urls: {
|
|
1804
|
+
location: string;
|
|
1346
1805
|
app: string;
|
|
1347
1806
|
publicEndpoint: string;
|
|
1348
1807
|
};
|
|
@@ -1368,6 +1827,7 @@ export interface IntegrationSpaceInstallation {
|
|
|
1368
1827
|
externalIds: IntegrationInstallationExternalIds;
|
|
1369
1828
|
/** URLs associated with the object */
|
|
1370
1829
|
urls: {
|
|
1830
|
+
location: string;
|
|
1371
1831
|
publicEndpoint: string;
|
|
1372
1832
|
};
|
|
1373
1833
|
}
|
|
@@ -2295,7 +2755,7 @@ export interface ContentKitURL {
|
|
|
2295
2755
|
/**
|
|
2296
2756
|
* Channel to subscribe to for API updates.
|
|
2297
2757
|
*/
|
|
2298
|
-
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel |
|
|
2758
|
+
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
|
|
2299
2759
|
channel: 'space-comments';
|
|
2300
2760
|
space: string;
|
|
2301
2761
|
changeRequest?: string;
|
|
@@ -2315,7 +2775,7 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
|
|
|
2315
2775
|
space: string;
|
|
2316
2776
|
changeRequest?: string;
|
|
2317
2777
|
comment: string;
|
|
2318
|
-
};
|
|
2778
|
+
} | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel;
|
|
2319
2779
|
export interface SpaceInfoChannel {
|
|
2320
2780
|
channel: 'space';
|
|
2321
2781
|
space: string;
|
|
@@ -2328,10 +2788,6 @@ export interface SpacePublishingAuthChannel {
|
|
|
2328
2788
|
channel: 'space-publishing-auth';
|
|
2329
2789
|
space: string;
|
|
2330
2790
|
}
|
|
2331
|
-
export interface SpaceRelationsChannel {
|
|
2332
|
-
channel: 'space-relations';
|
|
2333
|
-
space: string;
|
|
2334
|
-
}
|
|
2335
2791
|
export interface SpaceEntitiesChannel {
|
|
2336
2792
|
channel: 'space-entities';
|
|
2337
2793
|
space: string;
|
|
@@ -2352,10 +2808,6 @@ export interface UserAPITokensChannel {
|
|
|
2352
2808
|
channel: 'user-api-tokens';
|
|
2353
2809
|
user: string;
|
|
2354
2810
|
}
|
|
2355
|
-
export interface UserPreferencesChannel {
|
|
2356
|
-
channel: 'user-preferences';
|
|
2357
|
-
user: string;
|
|
2358
|
-
}
|
|
2359
2811
|
export interface UserProfileChannel {
|
|
2360
2812
|
channel: 'user-profile';
|
|
2361
2813
|
user: string;
|
|
@@ -2398,13 +2850,6 @@ export interface OrganizationTeamMemberChannel {
|
|
|
2398
2850
|
team?: string;
|
|
2399
2851
|
member: string;
|
|
2400
2852
|
}
|
|
2401
|
-
/**
|
|
2402
|
-
* Subscription channel for changes in relations between spaces in an organization.
|
|
2403
|
-
*/
|
|
2404
|
-
export interface OrganizationSpaceRelationsChannel {
|
|
2405
|
-
channel: 'organization-space-relations';
|
|
2406
|
-
organization: string;
|
|
2407
|
-
}
|
|
2408
2853
|
/**
|
|
2409
2854
|
* Subscription channel for changes in spaces in an organization.
|
|
2410
2855
|
*/
|
|
@@ -2427,14 +2872,38 @@ export interface OrganizationSchemasChannel {
|
|
|
2427
2872
|
channel: 'organization-schemas';
|
|
2428
2873
|
organization: string;
|
|
2429
2874
|
}
|
|
2430
|
-
export interface OrganizationEnvironmentsChannel {
|
|
2431
|
-
channel: 'organization-environments';
|
|
2432
|
-
organization: string;
|
|
2433
|
-
}
|
|
2434
2875
|
export interface OrganizationCapturesChannel {
|
|
2435
2876
|
channel: 'organization-captures';
|
|
2436
2877
|
organization: string;
|
|
2437
2878
|
}
|
|
2879
|
+
export interface OrganizationIntegrationsChannel {
|
|
2880
|
+
channel: 'organization-integrations';
|
|
2881
|
+
organization: string;
|
|
2882
|
+
}
|
|
2883
|
+
export interface OrganizationInstallationsChannel {
|
|
2884
|
+
channel: 'organization-installations';
|
|
2885
|
+
organization: string;
|
|
2886
|
+
}
|
|
2887
|
+
export interface IntegrationChannel {
|
|
2888
|
+
channel: 'integration';
|
|
2889
|
+
integration: string;
|
|
2890
|
+
}
|
|
2891
|
+
export interface IntegrationInstallationChannel {
|
|
2892
|
+
channel: 'integration-installation';
|
|
2893
|
+
integration: string;
|
|
2894
|
+
installation: string;
|
|
2895
|
+
}
|
|
2896
|
+
export interface IntegrationSpaceInstallationChannel {
|
|
2897
|
+
channel: 'integration-space-installation';
|
|
2898
|
+
integration: string;
|
|
2899
|
+
installation: string;
|
|
2900
|
+
space: string;
|
|
2901
|
+
}
|
|
2902
|
+
export interface IntegrationSpaceInstallationsChannel {
|
|
2903
|
+
channel: 'integration-space-installations';
|
|
2904
|
+
integration: string;
|
|
2905
|
+
installation: string;
|
|
2906
|
+
}
|
|
2438
2907
|
/**
|
|
2439
2908
|
* Custom field
|
|
2440
2909
|
*/
|
|
@@ -2479,52 +2948,6 @@ export interface UpdateCustomFieldValues {
|
|
|
2479
2948
|
}
|
|
2480
2949
|
export declare type CustomFieldOptions = string[];
|
|
2481
2950
|
export declare type CustomFieldPlaceholder = string;
|
|
2482
|
-
/**
|
|
2483
|
-
* An environment
|
|
2484
|
-
*/
|
|
2485
|
-
export interface Environment {
|
|
2486
|
-
id: string;
|
|
2487
|
-
name: EnvironmentName;
|
|
2488
|
-
title: EnvironmentTitle;
|
|
2489
|
-
/**
|
|
2490
|
-
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2491
|
-
*
|
|
2492
|
-
*/
|
|
2493
|
-
primary: EnvironmentPrimary;
|
|
2494
|
-
/** URLs associated with the object */
|
|
2495
|
-
urls: {
|
|
2496
|
-
location: string;
|
|
2497
|
-
};
|
|
2498
|
-
}
|
|
2499
|
-
export declare type EnvironmentTitle = string;
|
|
2500
|
-
/**
|
|
2501
|
-
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2502
|
-
*/
|
|
2503
|
-
export declare type EnvironmentPrimary = boolean;
|
|
2504
|
-
/**
|
|
2505
|
-
* @pattern ^[a-zA-Z_\-0-9]+$
|
|
2506
|
-
*/
|
|
2507
|
-
export declare type EnvironmentName = string;
|
|
2508
|
-
export interface CreateEnvironment {
|
|
2509
|
-
name: EnvironmentName;
|
|
2510
|
-
title: EnvironmentTitle;
|
|
2511
|
-
/**
|
|
2512
|
-
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2513
|
-
*
|
|
2514
|
-
*/
|
|
2515
|
-
primary?: EnvironmentPrimary;
|
|
2516
|
-
}
|
|
2517
|
-
/**
|
|
2518
|
-
* An object containing the new title for an Environment
|
|
2519
|
-
*/
|
|
2520
|
-
export interface UpdateEnvironment {
|
|
2521
|
-
title?: EnvironmentTitle;
|
|
2522
|
-
/**
|
|
2523
|
-
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2524
|
-
*
|
|
2525
|
-
*/
|
|
2526
|
-
primary?: EnvironmentPrimary;
|
|
2527
|
-
}
|
|
2528
2951
|
export declare type QueryParamsType = Record<string | number, any>;
|
|
2529
2952
|
export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
2530
2953
|
export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
@@ -2667,28 +3090,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2667
3090
|
* @secure
|
|
2668
3091
|
*/
|
|
2669
3092
|
getAuthenticatedUser: (params?: RequestParams) => Promise<HttpResponse<User, Error>>;
|
|
2670
|
-
/**
|
|
2671
|
-
* @description Returns the preferences for the user associated with the authentication provided in the request's authorization header.
|
|
2672
|
-
*
|
|
2673
|
-
* @tags users
|
|
2674
|
-
* @name GetPreferencesForAuthenticatedUser
|
|
2675
|
-
* @summary Get the preferences for the currently authenticated user
|
|
2676
|
-
* @request GET:/user/preferences
|
|
2677
|
-
* @secure
|
|
2678
|
-
*/
|
|
2679
|
-
getPreferencesForAuthenticatedUser: (params?: RequestParams) => Promise<HttpResponse<UserPreferences, Error>>;
|
|
2680
|
-
/**
|
|
2681
|
-
* No description
|
|
2682
|
-
*
|
|
2683
|
-
* @tags users
|
|
2684
|
-
* @name UpdatePreferencesForAuthenticatedUser
|
|
2685
|
-
* @summary Update the preferences for the currently authenticated user
|
|
2686
|
-
* @request PATCH:/user/preferences
|
|
2687
|
-
* @secure
|
|
2688
|
-
*/
|
|
2689
|
-
updatePreferencesForAuthenticatedUser: (data: {
|
|
2690
|
-
theme: UserPreferencesTheme;
|
|
2691
|
-
}, params?: RequestParams) => Promise<HttpResponse<UserPreferences, Error>>;
|
|
2692
3093
|
};
|
|
2693
3094
|
users: {
|
|
2694
3095
|
/**
|
|
@@ -2724,7 +3125,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2724
3125
|
*/
|
|
2725
3126
|
updateSpaceById: (spaceId: string, data: {
|
|
2726
3127
|
visibility?: ContentVisibility;
|
|
2727
|
-
type?: SpaceType;
|
|
2728
3128
|
}, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
|
|
2729
3129
|
/**
|
|
2730
3130
|
* No description
|
|
@@ -3491,59 +3891,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3491
3891
|
message: string;
|
|
3492
3892
|
};
|
|
3493
3893
|
}>>;
|
|
3494
|
-
/**
|
|
3495
|
-
* No description
|
|
3496
|
-
*
|
|
3497
|
-
* @tags spaces
|
|
3498
|
-
* @name ListSpaceRelations
|
|
3499
|
-
* @summary List all relations for a space
|
|
3500
|
-
* @request GET:/spaces/{spaceId}/relations
|
|
3501
|
-
* @secure
|
|
3502
|
-
*/
|
|
3503
|
-
listSpaceRelations: (spaceId: string, query?: {
|
|
3504
|
-
page?: string;
|
|
3505
|
-
limit?: number;
|
|
3506
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3507
|
-
items: SpaceRelation[];
|
|
3508
|
-
}, Error>>;
|
|
3509
|
-
/**
|
|
3510
|
-
* No description
|
|
3511
|
-
*
|
|
3512
|
-
* @tags spaces
|
|
3513
|
-
* @name CreateSpaceRelation
|
|
3514
|
-
* @summary Create a new relation between a source space and a target space
|
|
3515
|
-
* @request POST:/spaces/{spaceId}/relations
|
|
3516
|
-
* @secure
|
|
3517
|
-
*/
|
|
3518
|
-
createSpaceRelation: (spaceId: string, data: {
|
|
3519
|
-
target: string;
|
|
3520
|
-
type: SpaceRelationType;
|
|
3521
|
-
}, params?: RequestParams) => Promise<HttpResponse<SpaceRelation, Error>>;
|
|
3522
|
-
/**
|
|
3523
|
-
* No description
|
|
3524
|
-
*
|
|
3525
|
-
* @tags spaces
|
|
3526
|
-
* @name GetSpaceRelation
|
|
3527
|
-
* @summary Get the relation between 2 spaces.
|
|
3528
|
-
* @request GET:/spaces/{spaceId}/relations/{targetSpaceId}
|
|
3529
|
-
* @secure
|
|
3530
|
-
*/
|
|
3531
|
-
getSpaceRelation: (spaceId: string, targetSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SpaceRelation, Error | {
|
|
3532
|
-
error: {
|
|
3533
|
-
code: 404;
|
|
3534
|
-
message: string;
|
|
3535
|
-
};
|
|
3536
|
-
}>>;
|
|
3537
|
-
/**
|
|
3538
|
-
* No description
|
|
3539
|
-
*
|
|
3540
|
-
* @tags spaces
|
|
3541
|
-
* @name DeleteSpaceRelation
|
|
3542
|
-
* @summary Delete a relation between spaces
|
|
3543
|
-
* @request DELETE:/spaces/{spaceId}/relations/{targetSpaceId}
|
|
3544
|
-
* @secure
|
|
3545
|
-
*/
|
|
3546
|
-
deleteSpaceRelation: (spaceId: string, targetSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
3547
3894
|
/**
|
|
3548
3895
|
* No description
|
|
3549
3896
|
*
|
|
@@ -3663,6 +4010,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3663
4010
|
listIntegrations: (query?: {
|
|
3664
4011
|
page?: string;
|
|
3665
4012
|
limit?: number;
|
|
4013
|
+
category?: IntegrationCategory;
|
|
4014
|
+
blockDomain?: string;
|
|
3666
4015
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3667
4016
|
items: Integration[];
|
|
3668
4017
|
}, Error>>;
|
|
@@ -3911,6 +4260,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3911
4260
|
message: string;
|
|
3912
4261
|
};
|
|
3913
4262
|
}>>;
|
|
4263
|
+
/**
|
|
4264
|
+
* No description
|
|
4265
|
+
*
|
|
4266
|
+
* @tags integrations
|
|
4267
|
+
* @name ListIntegrationInstallationSpaces
|
|
4268
|
+
* @summary List installations on spaces for an integration in an organization
|
|
4269
|
+
* @request GET:/integrations/{integrationName}/installations/{installationId}/spaces
|
|
4270
|
+
* @secure
|
|
4271
|
+
*/
|
|
4272
|
+
listIntegrationInstallationSpaces: (integrationName: string, installationId: string, query?: {
|
|
4273
|
+
page?: string;
|
|
4274
|
+
limit?: number;
|
|
4275
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4276
|
+
items: IntegrationSpaceInstallation[];
|
|
4277
|
+
}, Error>>;
|
|
3914
4278
|
/**
|
|
3915
4279
|
* No description
|
|
3916
4280
|
*
|
|
@@ -4176,7 +4540,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4176
4540
|
remove?: string[];
|
|
4177
4541
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4178
4542
|
/**
|
|
4179
|
-
* @description Lists members for the specified organization team.
|
|
4543
|
+
* @description Lists members, and their roles, for the specified organization team.
|
|
4180
4544
|
*
|
|
4181
4545
|
* @tags organizations
|
|
4182
4546
|
* @name ListTeamMembersInOrganizationById
|
|
@@ -4188,7 +4552,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4188
4552
|
page?: string;
|
|
4189
4553
|
limit?: number;
|
|
4190
4554
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4191
|
-
items:
|
|
4555
|
+
items: OrganizationTeamMember[];
|
|
4192
4556
|
}, Error>>;
|
|
4193
4557
|
/**
|
|
4194
4558
|
* @description Add or updates member in the specified organization team.
|
|
@@ -4481,77 +4845,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4481
4845
|
* No description
|
|
4482
4846
|
*
|
|
4483
4847
|
* @tags spaces
|
|
4484
|
-
* @name
|
|
4485
|
-
* @summary List
|
|
4486
|
-
* @request GET:/orgs/{organizationId}/
|
|
4848
|
+
* @name ListOrganizationIntegrations
|
|
4849
|
+
* @summary List integrations owned by an organization
|
|
4850
|
+
* @request GET:/orgs/{organizationId}/integrations
|
|
4487
4851
|
* @secure
|
|
4488
4852
|
*/
|
|
4489
|
-
|
|
4853
|
+
listOrganizationIntegrations: (organizationId: string, query?: {
|
|
4490
4854
|
page?: string;
|
|
4491
4855
|
limit?: number;
|
|
4492
4856
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4493
|
-
items:
|
|
4857
|
+
items: Integration[];
|
|
4494
4858
|
}, Error>>;
|
|
4495
4859
|
/**
|
|
4496
4860
|
* No description
|
|
4497
4861
|
*
|
|
4498
|
-
* @tags
|
|
4499
|
-
* @name
|
|
4500
|
-
* @summary
|
|
4501
|
-
* @request GET:/orgs/{organizationId}/
|
|
4862
|
+
* @tags spaces
|
|
4863
|
+
* @name ListOrganizationInstallations
|
|
4864
|
+
* @summary List installations of integrations in an organization.
|
|
4865
|
+
* @request GET:/orgs/{organizationId}/installations
|
|
4502
4866
|
* @secure
|
|
4503
4867
|
*/
|
|
4504
|
-
|
|
4868
|
+
listOrganizationInstallations: (organizationId: string, query?: {
|
|
4505
4869
|
page?: string;
|
|
4506
4870
|
limit?: number;
|
|
4507
4871
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4508
|
-
items
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
* @tags organizations, environments
|
|
4514
|
-
* @name CreateEnvironment
|
|
4515
|
-
* @summary Create a new environment within an organization
|
|
4516
|
-
* @request POST:/orgs/{organizationId}/environments
|
|
4517
|
-
* @secure
|
|
4518
|
-
*/
|
|
4519
|
-
createEnvironment: (organizationId: string, data: CreateEnvironment, params?: RequestParams) => Promise<HttpResponse<Environment, Error>>;
|
|
4520
|
-
/**
|
|
4521
|
-
* No description
|
|
4522
|
-
*
|
|
4523
|
-
* @tags organizations, environments
|
|
4524
|
-
* @name GetEnvironmentByName
|
|
4525
|
-
* @summary Get an environment by its name
|
|
4526
|
-
* @request GET:/orgs/{organizationId}/environments/{environmentName}
|
|
4527
|
-
* @secure
|
|
4528
|
-
*/
|
|
4529
|
-
getEnvironmentByName: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<Environment, Error | {
|
|
4530
|
-
error: {
|
|
4531
|
-
code: 404;
|
|
4532
|
-
message: string;
|
|
4533
|
-
};
|
|
4534
|
-
}>>;
|
|
4535
|
-
/**
|
|
4536
|
-
* No description
|
|
4537
|
-
*
|
|
4538
|
-
* @tags organizations, environments
|
|
4539
|
-
* @name UpdateEnvironment
|
|
4540
|
-
* @summary Update an existing environment within an organization
|
|
4541
|
-
* @request PATCH:/orgs/{organizationId}/environments/{environmentName}
|
|
4542
|
-
* @secure
|
|
4543
|
-
*/
|
|
4544
|
-
updateEnvironment: (organizationId: string, environmentName: string, data: UpdateEnvironment, params?: RequestParams) => Promise<HttpResponse<Environment, Error>>;
|
|
4545
|
-
/**
|
|
4546
|
-
* No description
|
|
4547
|
-
*
|
|
4548
|
-
* @tags organizations, environments
|
|
4549
|
-
* @name DeleteEnvironment
|
|
4550
|
-
* @summary Delete an environment in an organization
|
|
4551
|
-
* @request DELETE:/orgs/{organizationId}/environments/{environmentName}
|
|
4552
|
-
* @secure
|
|
4553
|
-
*/
|
|
4554
|
-
deleteEnvironment: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4872
|
+
items: {
|
|
4873
|
+
installation: IntegrationInstallation;
|
|
4874
|
+
integration: Integration;
|
|
4875
|
+
}[];
|
|
4876
|
+
}, Error>>;
|
|
4555
4877
|
/**
|
|
4556
4878
|
* No description
|
|
4557
4879
|
*
|
|
@@ -4649,6 +4971,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4649
4971
|
format?: 'document' | 'markdown';
|
|
4650
4972
|
page?: string;
|
|
4651
4973
|
limit?: number;
|
|
4974
|
+
context?: 'walkthrough' | 'thread';
|
|
4652
4975
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4653
4976
|
items: Capture[];
|
|
4654
4977
|
}, Error>>;
|
|
@@ -4689,6 +5012,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4689
5012
|
* @secure
|
|
4690
5013
|
*/
|
|
4691
5014
|
deleteCapture: (organizationId: string, captureId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
5015
|
+
/**
|
|
5016
|
+
* No description
|
|
5017
|
+
*
|
|
5018
|
+
* @tags organizations
|
|
5019
|
+
* @name UpdateCapture
|
|
5020
|
+
* @summary Update an existing capture
|
|
5021
|
+
* @request PUT:/orgs/{organizationId}/captures/{captureId}
|
|
5022
|
+
* @secure
|
|
5023
|
+
*/
|
|
5024
|
+
updateCapture: (organizationId: string, captureId: string, data: UpdateCaptureSchema, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
|
|
4692
5025
|
/**
|
|
4693
5026
|
* No description
|
|
4694
5027
|
*
|
|
@@ -4761,6 +5094,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4761
5094
|
changeRequest?: ChangeRequest;
|
|
4762
5095
|
page?: RevisionPageDocument | RevisionPageGroup;
|
|
4763
5096
|
}, Error>>;
|
|
5097
|
+
/**
|
|
5098
|
+
* No description
|
|
5099
|
+
*
|
|
5100
|
+
* @tags urls
|
|
5101
|
+
* @name GetEmbedByUrl
|
|
5102
|
+
* @summary Resolve a URL to an embed
|
|
5103
|
+
* @request GET:/urls/embed
|
|
5104
|
+
* @secure
|
|
5105
|
+
*/
|
|
5106
|
+
getEmbedByUrl: (query: {
|
|
5107
|
+
url: string;
|
|
5108
|
+
}, params?: RequestParams) => Promise<HttpResponse<Embed, Error>>;
|
|
4764
5109
|
};
|
|
4765
5110
|
}
|
|
4766
5111
|
export {};
|