@gitbook/api 0.11.1 → 0.13.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 +332 -27
- package/dist/index.cjs +94 -0
- package/dist/index.js +89 -0
- package/package.json +1 -1
- package/spec/openapi.json +1305 -253
- package/spec/openapi.yaml +830 -129
package/dist/client.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ export interface List {
|
|
|
15
15
|
* @format uri
|
|
16
16
|
*/
|
|
17
17
|
export declare type URL = string;
|
|
18
|
+
/**
|
|
19
|
+
* @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$
|
|
20
|
+
*/
|
|
21
|
+
export declare type Color = string;
|
|
18
22
|
/**
|
|
19
23
|
* @format date
|
|
20
24
|
*/
|
|
@@ -388,17 +392,17 @@ export interface CommentReply {
|
|
|
388
392
|
location: string;
|
|
389
393
|
};
|
|
390
394
|
}
|
|
391
|
-
export declare type Document = MarkdownDocument |
|
|
395
|
+
export declare type Document = MarkdownDocument | {
|
|
396
|
+
document: JSONDocument;
|
|
397
|
+
} | object;
|
|
392
398
|
export interface MarkdownDocument {
|
|
393
399
|
/** Content of the document formatted as markdown */
|
|
394
400
|
markdown: string;
|
|
395
401
|
}
|
|
396
402
|
export interface JSONDocument {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
nodes: DocumentBlocksTopLevels[];
|
|
401
|
-
};
|
|
403
|
+
object: 'document';
|
|
404
|
+
data: object;
|
|
405
|
+
nodes: DocumentBlocksTopLevels[];
|
|
402
406
|
}
|
|
403
407
|
export declare type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
|
|
404
408
|
export declare type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration;
|
|
@@ -419,31 +423,40 @@ export interface DocumentTextLeaf {
|
|
|
419
423
|
text: string;
|
|
420
424
|
marks: DocumentTextMark[];
|
|
421
425
|
}
|
|
422
|
-
export
|
|
426
|
+
export interface DocumentMarkBold {
|
|
423
427
|
object: 'mark';
|
|
424
|
-
} & ({
|
|
425
428
|
type: 'bold';
|
|
426
|
-
}
|
|
429
|
+
}
|
|
430
|
+
export interface DocumentMarkItalic {
|
|
431
|
+
object: 'mark';
|
|
427
432
|
type: 'italic';
|
|
428
|
-
}
|
|
433
|
+
}
|
|
434
|
+
export interface DocumentMarkCode {
|
|
435
|
+
object: 'mark';
|
|
429
436
|
type: 'code';
|
|
430
|
-
}
|
|
437
|
+
}
|
|
438
|
+
export interface DocumentMarkStrikethrough {
|
|
439
|
+
object: 'mark';
|
|
431
440
|
type: 'strikethrough';
|
|
432
|
-
}
|
|
441
|
+
}
|
|
442
|
+
export interface DocumentMarkColor {
|
|
443
|
+
object: 'mark';
|
|
433
444
|
type: 'color';
|
|
434
445
|
data: {
|
|
435
446
|
text: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
|
|
436
447
|
background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
|
|
437
448
|
};
|
|
438
|
-
}
|
|
449
|
+
}
|
|
450
|
+
export declare type DocumentTextMark = DocumentMarkBold | DocumentMarkItalic | DocumentMarkCode | DocumentMarkStrikethrough | DocumentMarkColor;
|
|
439
451
|
export interface DocumentInlineLink {
|
|
440
452
|
object: 'inline';
|
|
441
453
|
type: 'link';
|
|
442
454
|
key?: string;
|
|
443
|
-
nodes: DocumentNodeText[];
|
|
455
|
+
nodes: (DocumentNodeText | DocumentInlineImage)[];
|
|
444
456
|
data: {
|
|
445
457
|
ref: ContentRef;
|
|
446
458
|
};
|
|
459
|
+
isVoid?: false;
|
|
447
460
|
}
|
|
448
461
|
export interface DocumentInlineMath {
|
|
449
462
|
object: 'inline';
|
|
@@ -493,31 +506,38 @@ export interface DocumentInlineAnnotation {
|
|
|
493
506
|
nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
|
|
494
507
|
})[];
|
|
495
508
|
isVoid: true;
|
|
509
|
+
nodes: DocumentNodeText[];
|
|
510
|
+
data?: object;
|
|
496
511
|
}
|
|
497
|
-
export declare type DocumentInlinesRich = DocumentInlineImage;
|
|
512
|
+
export declare type DocumentInlinesRich = DocumentNodeText | DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
|
|
498
513
|
export interface DocumentBlockParagraph {
|
|
499
514
|
object: 'block';
|
|
500
515
|
type: 'paragraph';
|
|
501
516
|
key?: string;
|
|
502
|
-
nodes:
|
|
517
|
+
nodes: DocumentInlinesRich[];
|
|
518
|
+
isVoid?: false;
|
|
519
|
+
data?: object;
|
|
503
520
|
}
|
|
504
521
|
export interface DocumentBlockHeading {
|
|
505
522
|
object: 'block';
|
|
506
523
|
type: 'heading-1' | 'heading-2' | 'heading-3';
|
|
507
524
|
key?: string;
|
|
508
|
-
nodes:
|
|
525
|
+
nodes: DocumentInlinesRich[];
|
|
509
526
|
data: {
|
|
510
527
|
id?: string;
|
|
511
528
|
};
|
|
512
529
|
meta?: {
|
|
513
530
|
id: string;
|
|
514
531
|
};
|
|
532
|
+
isVoid?: false;
|
|
515
533
|
}
|
|
516
534
|
export interface DocumentBlockQuote {
|
|
517
535
|
object: 'block';
|
|
518
|
-
type: '
|
|
536
|
+
type: 'blockquote';
|
|
519
537
|
key?: string;
|
|
520
538
|
nodes: (DocumentBlocksEssentials | DocumentBlockQuote)[];
|
|
539
|
+
isVoid?: false;
|
|
540
|
+
data?: object;
|
|
521
541
|
}
|
|
522
542
|
export interface DocumentBlockHint {
|
|
523
543
|
object: 'block';
|
|
@@ -527,12 +547,15 @@ export interface DocumentBlockHint {
|
|
|
527
547
|
style: 'info' | 'warning' | 'danger' | 'success';
|
|
528
548
|
};
|
|
529
549
|
nodes: DocumentBlocksEssentials[];
|
|
550
|
+
isVoid?: false;
|
|
530
551
|
}
|
|
531
552
|
export interface DocumentBlockListUnordered {
|
|
532
553
|
object: 'block';
|
|
533
554
|
type: 'list-unordered';
|
|
534
555
|
key?: string;
|
|
535
556
|
nodes: DocumentBlockListItem[];
|
|
557
|
+
data?: object;
|
|
558
|
+
isVoid?: false;
|
|
536
559
|
}
|
|
537
560
|
export interface DocumentBlockListOrdered {
|
|
538
561
|
object: 'block';
|
|
@@ -542,18 +565,23 @@ export interface DocumentBlockListOrdered {
|
|
|
542
565
|
start?: number;
|
|
543
566
|
};
|
|
544
567
|
nodes: DocumentBlockListItem[];
|
|
568
|
+
isVoid?: false;
|
|
545
569
|
}
|
|
546
570
|
export interface DocumentBlockListTasks {
|
|
547
571
|
object: 'block';
|
|
548
572
|
type: 'list-tasks';
|
|
549
573
|
key?: string;
|
|
550
574
|
nodes: DocumentBlockTaskListItem[];
|
|
575
|
+
isVoid?: false;
|
|
576
|
+
data?: object;
|
|
551
577
|
}
|
|
552
578
|
export interface DocumentBlockListItem {
|
|
553
579
|
object: 'block';
|
|
554
580
|
type: 'list-item';
|
|
555
581
|
key?: string;
|
|
556
582
|
nodes: DocumentBlocksEssentials[];
|
|
583
|
+
isVoid?: false;
|
|
584
|
+
data?: object;
|
|
557
585
|
}
|
|
558
586
|
export declare type DocumentBlockTaskListItem = DocumentBlockListItem & {
|
|
559
587
|
data: {
|
|
@@ -630,6 +658,7 @@ export interface DocumentBlockCode {
|
|
|
630
658
|
fullWidth?: boolean;
|
|
631
659
|
};
|
|
632
660
|
nodes: DocumentBlockCodeLine[];
|
|
661
|
+
isVoid?: false;
|
|
633
662
|
}
|
|
634
663
|
export interface DocumentBlockCodeLine {
|
|
635
664
|
object: 'block';
|
|
@@ -639,6 +668,7 @@ export interface DocumentBlockCodeLine {
|
|
|
639
668
|
data: {
|
|
640
669
|
highlighted?: boolean;
|
|
641
670
|
};
|
|
671
|
+
isVoid?: false;
|
|
642
672
|
}
|
|
643
673
|
export interface DocumentBlockMath {
|
|
644
674
|
object: 'block';
|
|
@@ -654,6 +684,7 @@ export interface DocumentBlockExpandable {
|
|
|
654
684
|
type: 'expandable';
|
|
655
685
|
key?: string;
|
|
656
686
|
isVoid: true;
|
|
687
|
+
data: object;
|
|
657
688
|
fragments: ((DocumentNodeFragment & {
|
|
658
689
|
fragment: 'expandable-title';
|
|
659
690
|
type: 'expandable-title';
|
|
@@ -672,6 +703,8 @@ export interface DocumentBlockTabs {
|
|
|
672
703
|
type: 'tabs';
|
|
673
704
|
key?: string;
|
|
674
705
|
nodes: DocumentBlockTabsItem[];
|
|
706
|
+
isVoid?: false;
|
|
707
|
+
data?: object;
|
|
675
708
|
}
|
|
676
709
|
export interface DocumentBlockSwagger {
|
|
677
710
|
object: 'block';
|
|
@@ -791,6 +824,7 @@ export interface DocumentBlockTabsItem {
|
|
|
791
824
|
meta?: {
|
|
792
825
|
id: string;
|
|
793
826
|
};
|
|
827
|
+
isVoid?: false;
|
|
794
828
|
}
|
|
795
829
|
export interface DocumentBlockContentRef {
|
|
796
830
|
object: 'block';
|
|
@@ -820,6 +854,7 @@ export interface DocumentBlockDivider {
|
|
|
820
854
|
type: 'divider';
|
|
821
855
|
key?: string;
|
|
822
856
|
isVoid: true;
|
|
857
|
+
data: object;
|
|
823
858
|
}
|
|
824
859
|
export declare type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace;
|
|
825
860
|
export interface ContentRefURL {
|
|
@@ -896,12 +931,7 @@ export interface RevisionBase {
|
|
|
896
931
|
pages: RevisionPage[];
|
|
897
932
|
files: RevisionFile[];
|
|
898
933
|
/** Metadata about a potential associated git commit. */
|
|
899
|
-
git?:
|
|
900
|
-
oid: string;
|
|
901
|
-
message: string;
|
|
902
|
-
createdByGitBook: boolean;
|
|
903
|
-
url?: string;
|
|
904
|
-
};
|
|
934
|
+
git?: GitSyncCommit;
|
|
905
935
|
urls: {
|
|
906
936
|
app: string;
|
|
907
937
|
published?: string;
|
|
@@ -928,6 +958,10 @@ export interface RevisionPageBase {
|
|
|
928
958
|
id: string;
|
|
929
959
|
/** Title of the page */
|
|
930
960
|
title: string;
|
|
961
|
+
/** When the page was first created. Only present if page has been edited at least once. */
|
|
962
|
+
createdAt?: Date;
|
|
963
|
+
/** When the page was last edited. Only present if page has been edited at least once. */
|
|
964
|
+
updatedAt?: Date;
|
|
931
965
|
}
|
|
932
966
|
export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
933
967
|
kind: 'sheet';
|
|
@@ -936,6 +970,7 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
936
970
|
path: string;
|
|
937
971
|
description?: string;
|
|
938
972
|
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
973
|
+
git?: GitSyncBlob;
|
|
939
974
|
};
|
|
940
975
|
export declare type RevisionPageGroup = RevisionPageBase & {
|
|
941
976
|
kind: 'group';
|
|
@@ -947,6 +982,7 @@ export declare type RevisionPageGroup = RevisionPageBase & {
|
|
|
947
982
|
export declare type RevisionPageLink = RevisionPageBase & {
|
|
948
983
|
kind: 'link';
|
|
949
984
|
type: 'link';
|
|
985
|
+
target: ContentRef;
|
|
950
986
|
href?: string;
|
|
951
987
|
};
|
|
952
988
|
export interface RevisionFile {
|
|
@@ -954,6 +990,13 @@ export interface RevisionFile {
|
|
|
954
990
|
name: string;
|
|
955
991
|
contentType: string;
|
|
956
992
|
downloadURL: string;
|
|
993
|
+
size: number;
|
|
994
|
+
/** For images, it contains the dimensions of it. */
|
|
995
|
+
dimensions?: {
|
|
996
|
+
width: number;
|
|
997
|
+
height: number;
|
|
998
|
+
};
|
|
999
|
+
git?: GitSyncBlob;
|
|
957
1000
|
}
|
|
958
1001
|
export declare enum ImportContentSource {
|
|
959
1002
|
Website = "website",
|
|
@@ -1002,6 +1045,24 @@ export declare enum GitSyncOperationState {
|
|
|
1002
1045
|
Failure = "failure",
|
|
1003
1046
|
Success = "success"
|
|
1004
1047
|
}
|
|
1048
|
+
export interface GitSyncCommit {
|
|
1049
|
+
/** SHA for the commit */
|
|
1050
|
+
oid: string;
|
|
1051
|
+
/** Message describing the purpose of the commit */
|
|
1052
|
+
message: string;
|
|
1053
|
+
/** If true, the Git commit was generated by an export from GitBook */
|
|
1054
|
+
createdByGitBook: boolean;
|
|
1055
|
+
/** URL of the commit in the GitSync provider */
|
|
1056
|
+
url?: string;
|
|
1057
|
+
/** Original name of the ref where the commit originated from */
|
|
1058
|
+
ref?: string;
|
|
1059
|
+
}
|
|
1060
|
+
export interface GitSyncBlob {
|
|
1061
|
+
/** SHA for the blob */
|
|
1062
|
+
oid: string;
|
|
1063
|
+
/** Path of the blob in the Git tree */
|
|
1064
|
+
path: string;
|
|
1065
|
+
}
|
|
1005
1066
|
export interface Organization {
|
|
1006
1067
|
/** Type of Object, always equals to "organization" */
|
|
1007
1068
|
object: 'organization';
|
|
@@ -1534,10 +1595,17 @@ export interface Collection {
|
|
|
1534
1595
|
*/
|
|
1535
1596
|
visibility: ContentVisibility;
|
|
1536
1597
|
publishingType?: 'variants';
|
|
1537
|
-
/** ID of the
|
|
1538
|
-
|
|
1598
|
+
/** ID of the organization owning this collection */
|
|
1599
|
+
organization: string;
|
|
1600
|
+
/** ID of the parent collection, if any */
|
|
1601
|
+
parent?: string;
|
|
1539
1602
|
/** ID of the parent collection, if any */
|
|
1540
1603
|
collection?: string;
|
|
1604
|
+
/** URLs associated with the object */
|
|
1605
|
+
urls: {
|
|
1606
|
+
location: string;
|
|
1607
|
+
app: string;
|
|
1608
|
+
};
|
|
1541
1609
|
}
|
|
1542
1610
|
export interface Integration {
|
|
1543
1611
|
object: 'integration';
|
|
@@ -2264,6 +2332,30 @@ export interface UserImpersonationInfo {
|
|
|
2264
2332
|
authURL: string;
|
|
2265
2333
|
impersonatorId: string;
|
|
2266
2334
|
}
|
|
2335
|
+
/**
|
|
2336
|
+
* All the permissions of a user
|
|
2337
|
+
*/
|
|
2338
|
+
export interface UserPermissions {
|
|
2339
|
+
updatedAt: Date;
|
|
2340
|
+
searchKey: string;
|
|
2341
|
+
organizations: Record<string, {
|
|
2342
|
+
role: MemberRoleOrGuest;
|
|
2343
|
+
teams: Record<string, {
|
|
2344
|
+
role: TeamMemberRole;
|
|
2345
|
+
}>;
|
|
2346
|
+
disabled?: boolean;
|
|
2347
|
+
}>;
|
|
2348
|
+
collections: Record<string, {
|
|
2349
|
+
organization: string;
|
|
2350
|
+
level: MemberRoleOrGuest;
|
|
2351
|
+
collection?: string;
|
|
2352
|
+
}>;
|
|
2353
|
+
spaces: Record<string, {
|
|
2354
|
+
organization: string;
|
|
2355
|
+
level: MemberRoleOrGuest;
|
|
2356
|
+
collection?: string;
|
|
2357
|
+
}>;
|
|
2358
|
+
}
|
|
2267
2359
|
/**
|
|
2268
2360
|
* The GitBook User risk evaluation.
|
|
2269
2361
|
*/
|
|
@@ -2699,7 +2791,7 @@ export interface ContentKitURL {
|
|
|
2699
2791
|
/**
|
|
2700
2792
|
* Channel to subscribe to for API updates.
|
|
2701
2793
|
*/
|
|
2702
|
-
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 | {
|
|
2794
|
+
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
|
|
2703
2795
|
channel: 'space-comments';
|
|
2704
2796
|
space: string;
|
|
2705
2797
|
changeRequest?: string;
|
|
@@ -2732,6 +2824,10 @@ export interface SpacePublishingAuthChannel {
|
|
|
2732
2824
|
channel: 'space-publishing-auth';
|
|
2733
2825
|
space: string;
|
|
2734
2826
|
}
|
|
2827
|
+
export interface SpacePublishingCustomizationChannel {
|
|
2828
|
+
channel: 'space-publishing-customization';
|
|
2829
|
+
space: string;
|
|
2830
|
+
}
|
|
2735
2831
|
export interface SpaceEntitiesChannel {
|
|
2736
2832
|
channel: 'space-entities';
|
|
2737
2833
|
space: string;
|
|
@@ -2756,6 +2852,10 @@ export interface UserProfileChannel {
|
|
|
2756
2852
|
channel: 'user-profile';
|
|
2757
2853
|
user: string;
|
|
2758
2854
|
}
|
|
2855
|
+
export interface CollectionPublishingCustomizationChannel {
|
|
2856
|
+
channel: 'collection-publishing-customization';
|
|
2857
|
+
collection: string;
|
|
2858
|
+
}
|
|
2759
2859
|
export interface ChangeRequestReviewsChannel {
|
|
2760
2860
|
channel: 'space-change-request-reviews';
|
|
2761
2861
|
space: string;
|
|
@@ -2801,6 +2901,13 @@ export interface OrganizationSpacesChannel {
|
|
|
2801
2901
|
channel: 'organization-spaces';
|
|
2802
2902
|
organization: string;
|
|
2803
2903
|
}
|
|
2904
|
+
/**
|
|
2905
|
+
* Subscription channel for changes in collections in an organization.
|
|
2906
|
+
*/
|
|
2907
|
+
export interface OrganizationCollectionsChannel {
|
|
2908
|
+
channel: 'organization-collections';
|
|
2909
|
+
organization: string;
|
|
2910
|
+
}
|
|
2804
2911
|
/**
|
|
2805
2912
|
* Subscription channel for entities in an organization.
|
|
2806
2913
|
*/
|
|
@@ -2892,6 +2999,131 @@ export interface UpdateCustomFieldValues {
|
|
|
2892
2999
|
}
|
|
2893
3000
|
export declare type CustomFieldOptions = string[];
|
|
2894
3001
|
export declare type CustomFieldPlaceholder = string;
|
|
3002
|
+
export interface CustomizationSettings {
|
|
3003
|
+
/** Inherit customization settings from the parent collection. */
|
|
3004
|
+
inherit: boolean;
|
|
3005
|
+
/** Title to use for the published content. If not defined, it'll fallback to the content title. */
|
|
3006
|
+
title?: string;
|
|
3007
|
+
styling: {
|
|
3008
|
+
primaryColor: CustomizationThemedColor;
|
|
3009
|
+
corners: CustomizationCorners;
|
|
3010
|
+
font: CustomizationFont;
|
|
3011
|
+
};
|
|
3012
|
+
internationalization: {
|
|
3013
|
+
locale: CustomizationLocale;
|
|
3014
|
+
inherit: boolean;
|
|
3015
|
+
};
|
|
3016
|
+
favicon: {
|
|
3017
|
+
icon: CustomizationThemedURL;
|
|
3018
|
+
} | {
|
|
3019
|
+
emoji: Emoji;
|
|
3020
|
+
} | object;
|
|
3021
|
+
header: {
|
|
3022
|
+
preset: CustomizationHeaderPreset;
|
|
3023
|
+
logo?: CustomizationThemedURL;
|
|
3024
|
+
backgroundColor?: CustomizationThemedColor;
|
|
3025
|
+
linkColor?: CustomizationThemedColor;
|
|
3026
|
+
links: CustomizationHeaderLink[];
|
|
3027
|
+
};
|
|
3028
|
+
footer: {
|
|
3029
|
+
logo?: CustomizationThemedURL;
|
|
3030
|
+
groups: CustomizationFooterGroup[];
|
|
3031
|
+
copyright?: string;
|
|
3032
|
+
};
|
|
3033
|
+
themes: {
|
|
3034
|
+
default: CustomizationThemeMode;
|
|
3035
|
+
toggeable: boolean;
|
|
3036
|
+
};
|
|
3037
|
+
pdf: {
|
|
3038
|
+
enabled: boolean;
|
|
3039
|
+
};
|
|
3040
|
+
feedback: {
|
|
3041
|
+
enabled: boolean;
|
|
3042
|
+
};
|
|
3043
|
+
aiSearch: {
|
|
3044
|
+
enabled: boolean;
|
|
3045
|
+
};
|
|
3046
|
+
git: {
|
|
3047
|
+
showEditLink: boolean;
|
|
3048
|
+
};
|
|
3049
|
+
pagination: {
|
|
3050
|
+
enabled: boolean;
|
|
3051
|
+
};
|
|
3052
|
+
trademark: {
|
|
3053
|
+
enabled: boolean;
|
|
3054
|
+
};
|
|
3055
|
+
privacyPolicy: {
|
|
3056
|
+
url?: URL;
|
|
3057
|
+
};
|
|
3058
|
+
socialPreview: {
|
|
3059
|
+
url?: URL;
|
|
3060
|
+
};
|
|
3061
|
+
}
|
|
3062
|
+
export declare type CustomizationCollectionSettings = CustomizationSettings & {
|
|
3063
|
+
collection: {
|
|
3064
|
+
defaultSpace?: string;
|
|
3065
|
+
};
|
|
3066
|
+
};
|
|
3067
|
+
/**
|
|
3068
|
+
* Language for the UI element
|
|
3069
|
+
*/
|
|
3070
|
+
export declare enum CustomizationLocale {
|
|
3071
|
+
En = "en",
|
|
3072
|
+
Fr = "fr",
|
|
3073
|
+
Es = "es",
|
|
3074
|
+
Zh = "zh",
|
|
3075
|
+
Ja = "ja"
|
|
3076
|
+
}
|
|
3077
|
+
export declare enum CustomizationFont {
|
|
3078
|
+
Inter = "Inter",
|
|
3079
|
+
Roboto = "Roboto",
|
|
3080
|
+
RobotoSlab = "RobotoSlab",
|
|
3081
|
+
OpenSans = "OpenSans",
|
|
3082
|
+
SourceSansPro = "SourceSansPro",
|
|
3083
|
+
Lato = "Lato",
|
|
3084
|
+
Ubuntu = "Ubuntu",
|
|
3085
|
+
Raleway = "Raleway",
|
|
3086
|
+
Merriweather = "Merriweather",
|
|
3087
|
+
Overpass = "Overpass",
|
|
3088
|
+
NotoSans = "NotoSans",
|
|
3089
|
+
IBMPlexSerif = "IBMPlexSerif",
|
|
3090
|
+
Poppins = "Poppins",
|
|
3091
|
+
FiraSans = "FiraSans"
|
|
3092
|
+
}
|
|
3093
|
+
export declare enum CustomizationHeaderPreset {
|
|
3094
|
+
Default = "default",
|
|
3095
|
+
Bold = "bold",
|
|
3096
|
+
Contrast = "contrast",
|
|
3097
|
+
Custom = "custom",
|
|
3098
|
+
None = "none"
|
|
3099
|
+
}
|
|
3100
|
+
export declare enum CustomizationThemeMode {
|
|
3101
|
+
Light = "light",
|
|
3102
|
+
Dark = "dark"
|
|
3103
|
+
}
|
|
3104
|
+
export declare type CustomizationHeaderLink = CustomizationContentLink & {
|
|
3105
|
+
links?: CustomizationContentLink[];
|
|
3106
|
+
};
|
|
3107
|
+
export interface CustomizationContentLink {
|
|
3108
|
+
title: string;
|
|
3109
|
+
to: ContentRef;
|
|
3110
|
+
}
|
|
3111
|
+
export interface CustomizationFooterGroup {
|
|
3112
|
+
title: string;
|
|
3113
|
+
links: CustomizationContentLink[];
|
|
3114
|
+
}
|
|
3115
|
+
export declare enum CustomizationCorners {
|
|
3116
|
+
Straight = "straight",
|
|
3117
|
+
Rounded = "rounded"
|
|
3118
|
+
}
|
|
3119
|
+
export interface CustomizationThemedURL {
|
|
3120
|
+
light: URL;
|
|
3121
|
+
dark: URL;
|
|
3122
|
+
}
|
|
3123
|
+
export interface CustomizationThemedColor {
|
|
3124
|
+
light: Color;
|
|
3125
|
+
dark: Color;
|
|
3126
|
+
}
|
|
2895
3127
|
export declare type QueryParamsType = Record<string | number, any>;
|
|
2896
3128
|
export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
2897
3129
|
export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
@@ -3790,6 +4022,36 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3790
4022
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
3791
4023
|
items: UserContentPermission[];
|
|
3792
4024
|
}, Error>>;
|
|
4025
|
+
/**
|
|
4026
|
+
* No description
|
|
4027
|
+
*
|
|
4028
|
+
* @tags spaces
|
|
4029
|
+
* @name GetSpacePublishingCustomizationById
|
|
4030
|
+
* @summary Get the publishing customization configuration for a space.
|
|
4031
|
+
* @request GET:/spaces/{spaceId}/publishing/customization
|
|
4032
|
+
* @secure
|
|
4033
|
+
*/
|
|
4034
|
+
getSpacePublishingCustomizationById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
|
|
4035
|
+
error: {
|
|
4036
|
+
code: 400;
|
|
4037
|
+
message: string;
|
|
4038
|
+
};
|
|
4039
|
+
}>>;
|
|
4040
|
+
/**
|
|
4041
|
+
* No description
|
|
4042
|
+
*
|
|
4043
|
+
* @tags spaces
|
|
4044
|
+
* @name UpdateSpacePublishingCustomizationById
|
|
4045
|
+
* @summary Update the publishing customization configuration for a space.
|
|
4046
|
+
* @request PUT:/spaces/{spaceId}/publishing/customization
|
|
4047
|
+
* @secure
|
|
4048
|
+
*/
|
|
4049
|
+
updateSpacePublishingCustomizationById: (spaceId: string, data: CustomizationSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationSettings, Error | {
|
|
4050
|
+
error: {
|
|
4051
|
+
code: 400;
|
|
4052
|
+
message: string;
|
|
4053
|
+
};
|
|
4054
|
+
}>>;
|
|
3793
4055
|
/**
|
|
3794
4056
|
* No description
|
|
3795
4057
|
*
|
|
@@ -3940,6 +4202,36 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3940
4202
|
message: string;
|
|
3941
4203
|
};
|
|
3942
4204
|
}>>;
|
|
4205
|
+
/**
|
|
4206
|
+
* No description
|
|
4207
|
+
*
|
|
4208
|
+
* @tags collections
|
|
4209
|
+
* @name GetCollectionPublishingCustomizationById
|
|
4210
|
+
* @summary Get the publishing customization configuration for a collection.
|
|
4211
|
+
* @request GET:/collections/{collectionId}/publishing/customization
|
|
4212
|
+
* @secure
|
|
4213
|
+
*/
|
|
4214
|
+
getCollectionPublishingCustomizationById: (collectionId: string, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
|
|
4215
|
+
error: {
|
|
4216
|
+
code: 400;
|
|
4217
|
+
message: string;
|
|
4218
|
+
};
|
|
4219
|
+
}>>;
|
|
4220
|
+
/**
|
|
4221
|
+
* No description
|
|
4222
|
+
*
|
|
4223
|
+
* @tags collections
|
|
4224
|
+
* @name UpdateCollectionPublishingCustomizationById
|
|
4225
|
+
* @summary Update the publishing customization configuration for a collection.
|
|
4226
|
+
* @request PUT:/collections/{collectionId}/publishing/customization
|
|
4227
|
+
* @secure
|
|
4228
|
+
*/
|
|
4229
|
+
updateCollectionPublishingCustomizationById: (collectionId: string, data: CustomizationCollectionSettings, params?: RequestParams) => Promise<HttpResponse<CustomizationCollectionSettings, Error | {
|
|
4230
|
+
error: {
|
|
4231
|
+
code: 400;
|
|
4232
|
+
message: string;
|
|
4233
|
+
};
|
|
4234
|
+
}>>;
|
|
3943
4235
|
};
|
|
3944
4236
|
integrations: {
|
|
3945
4237
|
/**
|
|
@@ -4672,6 +4964,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4672
4964
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4673
4965
|
items: Collection[];
|
|
4674
4966
|
}, Error>>;
|
|
4967
|
+
/**
|
|
4968
|
+
* No description
|
|
4969
|
+
*
|
|
4970
|
+
* @tags collections
|
|
4971
|
+
* @name CreateCollection
|
|
4972
|
+
* @summary Create an organization collection
|
|
4973
|
+
* @request POST:/orgs/{organizationId}/collections
|
|
4974
|
+
* @secure
|
|
4975
|
+
*/
|
|
4976
|
+
createCollection: (organizationId: string, data: {
|
|
4977
|
+
title?: string;
|
|
4978
|
+
parent?: string;
|
|
4979
|
+
}, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
|
|
4675
4980
|
/**
|
|
4676
4981
|
* No description
|
|
4677
4982
|
*
|