@gitbook/api 0.63.0 → 0.65.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 +936 -418
- package/dist/index.cjs +2475 -2398
- package/dist/index.js +2474 -2398
- package/package.json +3 -6
- package/spec/openapi.json +3329 -1810
- package/spec/openapi.yaml +1439 -556
package/dist/client.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export interface DocumentMarkColor {
|
|
|
83
83
|
background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
export
|
|
86
|
+
export type DocumentTextMark = DocumentMarkBold | DocumentMarkItalic | DocumentMarkCode | DocumentMarkStrikethrough | DocumentMarkColor;
|
|
87
87
|
export interface DocumentTextLeaf {
|
|
88
88
|
object: 'leaf';
|
|
89
89
|
text: string;
|
|
@@ -150,7 +150,7 @@ export interface ContentRefSyncedBlock {
|
|
|
150
150
|
syncedBlock: string;
|
|
151
151
|
}
|
|
152
152
|
/** A relative reference to content in GitBook. */
|
|
153
|
-
export
|
|
153
|
+
export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefSnippet | ContentRefSyncedBlock;
|
|
154
154
|
export interface DocumentInlineLink {
|
|
155
155
|
object: 'inline';
|
|
156
156
|
type: 'link';
|
|
@@ -180,7 +180,7 @@ export interface DocumentInlineMath {
|
|
|
180
180
|
};
|
|
181
181
|
isVoid: true;
|
|
182
182
|
}
|
|
183
|
-
export
|
|
183
|
+
export type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
|
|
184
184
|
export interface DocumentFragment {
|
|
185
185
|
object: 'fragment';
|
|
186
186
|
key?: string;
|
|
@@ -236,7 +236,7 @@ export interface DocumentInlineMention {
|
|
|
236
236
|
};
|
|
237
237
|
isVoid: true;
|
|
238
238
|
}
|
|
239
|
-
export
|
|
239
|
+
export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
|
|
240
240
|
export interface DocumentBlockParagraph {
|
|
241
241
|
object: 'block';
|
|
242
242
|
type: 'paragraph';
|
|
@@ -332,24 +332,24 @@ export interface DocumentTableDefinitionBase {
|
|
|
332
332
|
/** Title for the column */
|
|
333
333
|
title: string;
|
|
334
334
|
}
|
|
335
|
-
export
|
|
335
|
+
export type DocumentTableDefinitionText = DocumentTableDefinitionBase & {
|
|
336
336
|
type: 'text';
|
|
337
337
|
textAlignment: 'center' | 'right' | 'left';
|
|
338
338
|
};
|
|
339
|
-
export
|
|
339
|
+
export type DocumentTableDefinitionNumber = DocumentTableDefinitionBase & {
|
|
340
340
|
type: 'number';
|
|
341
341
|
};
|
|
342
|
-
export
|
|
342
|
+
export type DocumentTableDefinitionCheckbox = DocumentTableDefinitionBase & {
|
|
343
343
|
type: 'checkbox';
|
|
344
344
|
};
|
|
345
|
-
export
|
|
345
|
+
export type DocumentTableDefinitionFiles = DocumentTableDefinitionBase & {
|
|
346
346
|
type: 'files';
|
|
347
347
|
};
|
|
348
|
-
export
|
|
348
|
+
export type DocumentTableDefinitionUsers = DocumentTableDefinitionBase & {
|
|
349
349
|
type: 'users';
|
|
350
350
|
multiple: boolean;
|
|
351
351
|
};
|
|
352
|
-
export
|
|
352
|
+
export type DocumentTableDefinitionRating = DocumentTableDefinitionBase & {
|
|
353
353
|
type: 'rating';
|
|
354
354
|
max: number;
|
|
355
355
|
};
|
|
@@ -358,15 +358,15 @@ export interface DocumentTableSelectOption {
|
|
|
358
358
|
label: string;
|
|
359
359
|
color: string;
|
|
360
360
|
}
|
|
361
|
-
export
|
|
361
|
+
export type DocumentTableDefinitionSelect = DocumentTableDefinitionBase & {
|
|
362
362
|
type: 'select';
|
|
363
363
|
multiple: boolean;
|
|
364
364
|
options: DocumentTableSelectOption[];
|
|
365
365
|
};
|
|
366
|
-
export
|
|
366
|
+
export type DocumentTableDefinitionContentRef = DocumentTableDefinitionBase & {
|
|
367
367
|
type: 'content-ref';
|
|
368
368
|
};
|
|
369
|
-
export
|
|
369
|
+
export type DocumentTableDefinition = DocumentTableDefinitionText | DocumentTableDefinitionNumber | DocumentTableDefinitionCheckbox | DocumentTableDefinitionFiles | DocumentTableDefinitionUsers | DocumentTableDefinitionRating | DocumentTableDefinitionSelect | DocumentTableDefinitionContentRef;
|
|
370
370
|
export interface DocumentBlockTable {
|
|
371
371
|
object: 'block';
|
|
372
372
|
type: 'table';
|
|
@@ -425,7 +425,7 @@ export interface DocumentBlockDivider {
|
|
|
425
425
|
isVoid: true;
|
|
426
426
|
data: object;
|
|
427
427
|
}
|
|
428
|
-
export
|
|
428
|
+
export type DocumentBlockImageDimension = number | {
|
|
429
429
|
unit: string;
|
|
430
430
|
value: number;
|
|
431
431
|
};
|
|
@@ -441,7 +441,7 @@ export interface DocumentBlockImage {
|
|
|
441
441
|
alt?: string;
|
|
442
442
|
};
|
|
443
443
|
fragments: (DocumentFragment & {
|
|
444
|
-
|
|
444
|
+
fragment: 'caption';
|
|
445
445
|
nodes: DocumentBlockParagraph[];
|
|
446
446
|
})[];
|
|
447
447
|
isVoid: true;
|
|
@@ -455,7 +455,7 @@ export interface DocumentBlockImages {
|
|
|
455
455
|
fullWidth?: boolean;
|
|
456
456
|
};
|
|
457
457
|
nodes: DocumentBlockImage[];
|
|
458
|
-
isVoid:
|
|
458
|
+
isVoid: false;
|
|
459
459
|
}
|
|
460
460
|
export interface DocumentBlockFile {
|
|
461
461
|
object: 'block';
|
|
@@ -520,14 +520,18 @@ export interface DocumentBlockContentRef {
|
|
|
520
520
|
};
|
|
521
521
|
isVoid: true;
|
|
522
522
|
}
|
|
523
|
+
export type PlainObject = any;
|
|
523
524
|
/** Action to open an overlay modal defined by "componentId". */
|
|
524
|
-
export
|
|
525
|
+
export type ContentKitDefaultAction = {
|
|
525
526
|
action: '@ui.modal.open';
|
|
526
527
|
componentId: string;
|
|
527
|
-
props:
|
|
528
|
+
props: PlainObject;
|
|
528
529
|
} | {
|
|
529
530
|
action: '@ui.modal.close';
|
|
530
|
-
returnValue:
|
|
531
|
+
returnValue: PlainObject;
|
|
532
|
+
} | {
|
|
533
|
+
action: '@ui.submit';
|
|
534
|
+
returnValue: PlainObject;
|
|
531
535
|
} | {
|
|
532
536
|
action: '@ui.url.open';
|
|
533
537
|
url: string;
|
|
@@ -536,10 +540,10 @@ export declare type ContentKitDefaultAction = {
|
|
|
536
540
|
url: string;
|
|
537
541
|
} | {
|
|
538
542
|
action: '@editor.node.updateProps';
|
|
539
|
-
props:
|
|
543
|
+
props: PlainObject;
|
|
540
544
|
};
|
|
541
545
|
/** Custom action to re-render the block. */
|
|
542
|
-
export
|
|
546
|
+
export type ContentKitAction = {
|
|
543
547
|
action: string;
|
|
544
548
|
[key: string]: any;
|
|
545
549
|
} | ContentKitDefaultAction;
|
|
@@ -553,7 +557,7 @@ export interface DocumentBlockIntegration {
|
|
|
553
557
|
/** ID of the block in the integration */
|
|
554
558
|
block: string;
|
|
555
559
|
/** Properties passed to the block during rendering */
|
|
556
|
-
props:
|
|
560
|
+
props: PlainObject;
|
|
557
561
|
/** Custom action to re-render the block. */
|
|
558
562
|
action?: ContentKitAction;
|
|
559
563
|
/**
|
|
@@ -621,7 +625,7 @@ export interface DocumentBlockSyncedBlock {
|
|
|
621
625
|
};
|
|
622
626
|
isVoid: true;
|
|
623
627
|
}
|
|
624
|
-
export
|
|
628
|
+
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
|
|
625
629
|
export interface JSONDocument {
|
|
626
630
|
object: 'document';
|
|
627
631
|
data: {
|
|
@@ -631,10 +635,10 @@ export interface JSONDocument {
|
|
|
631
635
|
};
|
|
632
636
|
nodes: DocumentBlocksTopLevels[];
|
|
633
637
|
}
|
|
634
|
-
export
|
|
638
|
+
export type Document = MarkdownDocument | {
|
|
635
639
|
document: JSONDocument;
|
|
636
640
|
} | object;
|
|
637
|
-
export
|
|
641
|
+
export type SearchAIAnswerSource = {
|
|
638
642
|
type: 'page' | 'capture';
|
|
639
643
|
} & ({
|
|
640
644
|
type: 'page';
|
|
@@ -701,7 +705,7 @@ export interface User {
|
|
|
701
705
|
};
|
|
702
706
|
}
|
|
703
707
|
/** @format date-time */
|
|
704
|
-
export
|
|
708
|
+
export type Timestamp = string;
|
|
705
709
|
/** The API token details, excluding the token itself. */
|
|
706
710
|
export interface UserAPIToken {
|
|
707
711
|
/** The API token ID. */
|
|
@@ -712,7 +716,7 @@ export interface UserAPIToken {
|
|
|
712
716
|
createdAt: Timestamp;
|
|
713
717
|
}
|
|
714
718
|
/** The API token details, including the token itself. */
|
|
715
|
-
export
|
|
719
|
+
export type UserAPITokenExtended = UserAPIToken & {
|
|
716
720
|
/** The actual token value. */
|
|
717
721
|
token: string;
|
|
718
722
|
};
|
|
@@ -720,13 +724,13 @@ export declare type UserAPITokenExtended = UserAPIToken & {
|
|
|
720
724
|
* Title of the space
|
|
721
725
|
* @maxLength 50
|
|
722
726
|
*/
|
|
723
|
-
export
|
|
727
|
+
export type SpaceTitle = string;
|
|
724
728
|
/**
|
|
725
729
|
* Unicode codepoint or character of the emoji
|
|
726
730
|
* @maxLength 50
|
|
727
731
|
* @example "🎉"
|
|
728
732
|
*/
|
|
729
|
-
export
|
|
733
|
+
export type Emoji = string;
|
|
730
734
|
/**
|
|
731
735
|
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
732
736
|
* * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
@@ -754,7 +758,7 @@ export declare enum SpaceEditMode {
|
|
|
754
758
|
Locked = "locked"
|
|
755
759
|
}
|
|
756
760
|
/** @format uri */
|
|
757
|
-
export
|
|
761
|
+
export type URL = string;
|
|
758
762
|
/**
|
|
759
763
|
* * `running`: The operation is still running
|
|
760
764
|
* * `failure`: The operation failed
|
|
@@ -797,7 +801,7 @@ export interface VisitorAuthIntegrationBackend {
|
|
|
797
801
|
/** Integration as backend for Visitor Authentication */
|
|
798
802
|
backend: 'integration';
|
|
799
803
|
}
|
|
800
|
-
export
|
|
804
|
+
export type VisitorAuth = VisitorAuthCustomBackend | (VisitorAuthIntegrationBackend & {
|
|
801
805
|
/** Name of integration being used as the backend for Visitor Authentication */
|
|
802
806
|
integration: string;
|
|
803
807
|
});
|
|
@@ -819,9 +823,9 @@ export declare enum MemberRole {
|
|
|
819
823
|
Read = "read"
|
|
820
824
|
}
|
|
821
825
|
/** The role of a member in an organization, null for guests */
|
|
822
|
-
export
|
|
826
|
+
export type MemberRoleOrGuest = MemberRole | null;
|
|
823
827
|
/** Default level for a piece of content */
|
|
824
|
-
export
|
|
828
|
+
export type DefaultLevel = MemberRoleOrGuest | 'inherit';
|
|
825
829
|
export interface Space {
|
|
826
830
|
/** Type of Object, always equals to "space" */
|
|
827
831
|
object: 'space';
|
|
@@ -902,7 +906,7 @@ export interface ContentPosition {
|
|
|
902
906
|
after?: SpacePointer | CollectionPointer;
|
|
903
907
|
}
|
|
904
908
|
/** Format the custom block as a codeblock */
|
|
905
|
-
export
|
|
909
|
+
export type IntegrationBlockMarkdown = {
|
|
906
910
|
/** Code block syntax to use to identify the block. */
|
|
907
911
|
codeblock: string;
|
|
908
912
|
/** Key of the property to use as body of the codeblock. */
|
|
@@ -930,7 +934,7 @@ export interface IntegrationBlock {
|
|
|
930
934
|
/** Format the custom block as a codeblock */
|
|
931
935
|
markdown?: IntegrationBlockMarkdown;
|
|
932
936
|
}
|
|
933
|
-
export
|
|
937
|
+
export type Embed = {
|
|
934
938
|
title: string;
|
|
935
939
|
site: string;
|
|
936
940
|
icon?: string;
|
|
@@ -1031,13 +1035,13 @@ export interface SyncGitRepository {
|
|
|
1031
1035
|
* @maxLength 50
|
|
1032
1036
|
* @example "gear"
|
|
1033
1037
|
*/
|
|
1034
|
-
export
|
|
1038
|
+
export type Icon = string;
|
|
1035
1039
|
export interface RevisionPageBase {
|
|
1036
1040
|
/** Unique identifier for the page in the revision */
|
|
1037
1041
|
id: string;
|
|
1038
1042
|
/**
|
|
1039
1043
|
* Title of the page
|
|
1040
|
-
* @
|
|
1044
|
+
* @minLength 1
|
|
1041
1045
|
*/
|
|
1042
1046
|
title: string;
|
|
1043
1047
|
/** Emoji of the page, if one has been set. */
|
|
@@ -1049,7 +1053,7 @@ export interface RevisionPageBase {
|
|
|
1049
1053
|
/** When the page was last edited. Only present if page has been edited at least once. */
|
|
1050
1054
|
updatedAt?: Timestamp;
|
|
1051
1055
|
}
|
|
1052
|
-
export
|
|
1056
|
+
export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
1053
1057
|
/** @deprecated */
|
|
1054
1058
|
kind: 'sheet';
|
|
1055
1059
|
type: 'document';
|
|
@@ -1064,7 +1068,7 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1064
1068
|
description?: string;
|
|
1065
1069
|
/** ID of the document with the page body. If undefined, the page is empty. */
|
|
1066
1070
|
documentId?: string;
|
|
1067
|
-
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
1071
|
+
pages: (RevisionPageDocument | RevisionPageLink | RevisionPageComputed)[];
|
|
1068
1072
|
git?: GitSyncBlob;
|
|
1069
1073
|
layout: RevisionPageLayoutOptions;
|
|
1070
1074
|
cover?: RevisionPageDocumentCover;
|
|
@@ -1083,8 +1087,10 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1083
1087
|
* @default false
|
|
1084
1088
|
*/
|
|
1085
1089
|
noRobotsIndex?: boolean;
|
|
1090
|
+
/** Defined when the page was generated by a computed content. */
|
|
1091
|
+
computed?: ComputedContentSource;
|
|
1086
1092
|
};
|
|
1087
|
-
export
|
|
1093
|
+
export type RevisionPageLink = RevisionPageBase & {
|
|
1088
1094
|
/** @deprecated */
|
|
1089
1095
|
kind: 'link';
|
|
1090
1096
|
type: 'link';
|
|
@@ -1097,6 +1103,23 @@ export declare type RevisionPageLink = RevisionPageBase & {
|
|
|
1097
1103
|
*/
|
|
1098
1104
|
hidden?: boolean;
|
|
1099
1105
|
};
|
|
1106
|
+
export type ComputedContentDependency = ContentRefSpace;
|
|
1107
|
+
/** Parameters for a computed content */
|
|
1108
|
+
export interface ComputedContentSource {
|
|
1109
|
+
/** Name of the integration */
|
|
1110
|
+
integration: string;
|
|
1111
|
+
/** Identifier of the source used for computation */
|
|
1112
|
+
source: string;
|
|
1113
|
+
/** Properties to be passed to the computation */
|
|
1114
|
+
props: PlainObject;
|
|
1115
|
+
/** Dependencies the computation depend on. When the dependency's targets are updated, the computation will be updated. */
|
|
1116
|
+
dependsOn?: ComputedContentDependency[];
|
|
1117
|
+
}
|
|
1118
|
+
export type RevisionPageComputed = RevisionPageBase & {
|
|
1119
|
+
type: 'computed';
|
|
1120
|
+
/** Parameters for a computed content */
|
|
1121
|
+
computed: ComputedContentSource;
|
|
1122
|
+
};
|
|
1100
1123
|
export interface GitSyncBlob {
|
|
1101
1124
|
/** SHA for the blob */
|
|
1102
1125
|
oid: string;
|
|
@@ -1230,7 +1253,7 @@ export interface InviteEmailsUsersTeamsToSpace {
|
|
|
1230
1253
|
/** Role to set on the team. */
|
|
1231
1254
|
role: MemberRoleOrGuest;
|
|
1232
1255
|
}
|
|
1233
|
-
export
|
|
1256
|
+
export type RevisionPageGroup = RevisionPageBase & {
|
|
1234
1257
|
/** @deprecated */
|
|
1235
1258
|
kind: 'group';
|
|
1236
1259
|
type: 'group';
|
|
@@ -1253,9 +1276,9 @@ export declare type RevisionPageGroup = RevisionPageBase & {
|
|
|
1253
1276
|
* @default false
|
|
1254
1277
|
*/
|
|
1255
1278
|
noRobotsIndex?: boolean;
|
|
1256
|
-
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
1279
|
+
pages: (RevisionPageDocument | RevisionPageLink | RevisionPageComputed)[];
|
|
1257
1280
|
};
|
|
1258
|
-
export
|
|
1281
|
+
export type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink | RevisionPageComputed;
|
|
1259
1282
|
export interface RevisionFile {
|
|
1260
1283
|
id: string;
|
|
1261
1284
|
name: string;
|
|
@@ -1312,7 +1335,7 @@ export interface RevisionBase {
|
|
|
1312
1335
|
public?: string;
|
|
1313
1336
|
};
|
|
1314
1337
|
}
|
|
1315
|
-
export
|
|
1338
|
+
export type RevisionTypeEdits = RevisionBase & {
|
|
1316
1339
|
/** Revision created by editing the content. */
|
|
1317
1340
|
type: 'edits';
|
|
1318
1341
|
};
|
|
@@ -1327,7 +1350,7 @@ export declare enum ChangeRequestStatus {
|
|
|
1327
1350
|
* @minLength 0
|
|
1328
1351
|
* @maxLength 100
|
|
1329
1352
|
*/
|
|
1330
|
-
export
|
|
1353
|
+
export type ChangeRequestSubject = string;
|
|
1331
1354
|
export interface ChangeRequest {
|
|
1332
1355
|
/** Type of Object, always equals to "change-request" */
|
|
1333
1356
|
object: 'change-request';
|
|
@@ -1357,20 +1380,24 @@ export interface ChangeRequest {
|
|
|
1357
1380
|
location: string;
|
|
1358
1381
|
};
|
|
1359
1382
|
}
|
|
1360
|
-
export
|
|
1383
|
+
export type RevisionTypeMerge = RevisionBase & {
|
|
1361
1384
|
/** Revision created when merging a change request with primary. */
|
|
1362
1385
|
type: 'merge';
|
|
1363
1386
|
mergedFrom: ChangeRequest;
|
|
1364
1387
|
};
|
|
1365
|
-
export
|
|
1388
|
+
export type RevisionTypeRollback = RevisionBase & {
|
|
1366
1389
|
/** Revision created as a rollback of a previous revision. */
|
|
1367
1390
|
type: 'rollback';
|
|
1368
1391
|
};
|
|
1369
|
-
export
|
|
1392
|
+
export type RevisionTypeUpdate = RevisionBase & {
|
|
1370
1393
|
/** Revision created when updating a change request with changes from primary. */
|
|
1371
1394
|
type: 'update';
|
|
1372
1395
|
};
|
|
1373
|
-
export
|
|
1396
|
+
export type RevisionTypeComputed = RevisionBase & {
|
|
1397
|
+
/** Virtual revision, computed from a source revision */
|
|
1398
|
+
type: 'computed';
|
|
1399
|
+
};
|
|
1400
|
+
export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
|
|
1374
1401
|
export declare enum ImportContentSource {
|
|
1375
1402
|
Website = "website",
|
|
1376
1403
|
Docx = "docx",
|
|
@@ -1403,14 +1430,14 @@ export interface ImportContentResult {
|
|
|
1403
1430
|
* @minLength 2
|
|
1404
1431
|
* @maxLength 255
|
|
1405
1432
|
*/
|
|
1406
|
-
export
|
|
1407
|
-
export
|
|
1433
|
+
export type OrganizationTitle = string;
|
|
1434
|
+
export type OrganizationEmailDomains = string[];
|
|
1408
1435
|
/**
|
|
1409
1436
|
* Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io
|
|
1410
1437
|
* @minLength 3
|
|
1411
1438
|
* @maxLength 32
|
|
1412
1439
|
*/
|
|
1413
|
-
export
|
|
1440
|
+
export type OrganizationHostname = string;
|
|
1414
1441
|
export declare enum OrganizationType {
|
|
1415
1442
|
Business = "business",
|
|
1416
1443
|
Community = "community"
|
|
@@ -1437,7 +1464,7 @@ export interface SitePointer {
|
|
|
1437
1464
|
site: string;
|
|
1438
1465
|
}
|
|
1439
1466
|
/** The default content for the organization */
|
|
1440
|
-
export
|
|
1467
|
+
export type OrganizationDefaultContent = SpacePointer | CollectionPointer | SitePointer;
|
|
1441
1468
|
export interface Organization {
|
|
1442
1469
|
/** Type of Object, always equals to "organization" */
|
|
1443
1470
|
object: 'organization';
|
|
@@ -1521,13 +1548,13 @@ export interface ContentLocationUser {
|
|
|
1521
1548
|
* Title of the collection
|
|
1522
1549
|
* @maxLength 50
|
|
1523
1550
|
*/
|
|
1524
|
-
export
|
|
1551
|
+
export type CollectionTitle = string;
|
|
1525
1552
|
/**
|
|
1526
1553
|
* Description of the collection
|
|
1527
1554
|
* @minLength 0
|
|
1528
1555
|
* @maxLength 100
|
|
1529
1556
|
*/
|
|
1530
|
-
export
|
|
1557
|
+
export type CollectionDescription = string;
|
|
1531
1558
|
export interface Collection {
|
|
1532
1559
|
/** Type of Object, always equals to "collection" */
|
|
1533
1560
|
object: 'collection';
|
|
@@ -1590,17 +1617,17 @@ export interface ContentLocationSpace {
|
|
|
1590
1617
|
* @minLength 2
|
|
1591
1618
|
* @maxLength 30
|
|
1592
1619
|
*/
|
|
1593
|
-
export
|
|
1620
|
+
export type IntegrationTitle = string;
|
|
1594
1621
|
/**
|
|
1595
1622
|
* Description of the integration
|
|
1596
1623
|
* @maxLength 100
|
|
1597
1624
|
*/
|
|
1598
|
-
export
|
|
1625
|
+
export type IntegrationDescription = string;
|
|
1599
1626
|
/**
|
|
1600
1627
|
* Long form markdown summary of the integration
|
|
1601
1628
|
* @maxLength 2048
|
|
1602
1629
|
*/
|
|
1603
|
-
export
|
|
1630
|
+
export type IntegrationSummary = string;
|
|
1604
1631
|
export declare enum IntegrationTarget {
|
|
1605
1632
|
Organization = "organization",
|
|
1606
1633
|
All = "all"
|
|
@@ -1629,7 +1656,7 @@ export declare enum IntegrationScope {
|
|
|
1629
1656
|
SiteVisitorAuth = "site:visitor:auth"
|
|
1630
1657
|
}
|
|
1631
1658
|
/** Permissions that should be granted to the integration */
|
|
1632
|
-
export
|
|
1659
|
+
export type IntegrationScopes = IntegrationScope[];
|
|
1633
1660
|
export declare enum IntegrationCategory {
|
|
1634
1661
|
Analytics = "analytics",
|
|
1635
1662
|
Captures = "captures",
|
|
@@ -1641,9 +1668,35 @@ export declare enum IntegrationCategory {
|
|
|
1641
1668
|
Other = "other"
|
|
1642
1669
|
}
|
|
1643
1670
|
/** Categories for which the integration is listed in the marketplace */
|
|
1644
|
-
export
|
|
1671
|
+
export type IntegrationCategories = IntegrationCategory[];
|
|
1645
1672
|
/** Custom blocks defined by this integration. */
|
|
1646
|
-
export
|
|
1673
|
+
export type IntegrationBlocks = IntegrationBlock[];
|
|
1674
|
+
/** ContentKit component for configuration */
|
|
1675
|
+
export interface IntegrationConfigurationComponent {
|
|
1676
|
+
/** ID of the ContentKit component defined in the integration */
|
|
1677
|
+
componentId: string;
|
|
1678
|
+
}
|
|
1679
|
+
/** Definition of a content source provided by the integration. */
|
|
1680
|
+
export interface IntegrationContentSource {
|
|
1681
|
+
/** Unique ID in the integration for the source. */
|
|
1682
|
+
id: string;
|
|
1683
|
+
/**
|
|
1684
|
+
* Short descriptive title for the source.
|
|
1685
|
+
* @minLength 2
|
|
1686
|
+
* @maxLength 40
|
|
1687
|
+
*/
|
|
1688
|
+
title: string;
|
|
1689
|
+
/**
|
|
1690
|
+
* Long descriptive text for the source.
|
|
1691
|
+
* @minLength 0
|
|
1692
|
+
* @maxLength 150
|
|
1693
|
+
*/
|
|
1694
|
+
description?: string;
|
|
1695
|
+
/** URL of the icon to represent this source. */
|
|
1696
|
+
icon?: string;
|
|
1697
|
+
/** ContentKit component for configuration */
|
|
1698
|
+
configuration?: IntegrationConfigurationComponent;
|
|
1699
|
+
}
|
|
1647
1700
|
/** Schema for a configuration */
|
|
1648
1701
|
export interface IntegrationConfigurationSchema {
|
|
1649
1702
|
properties: Record<string, {
|
|
@@ -1668,12 +1721,7 @@ export interface IntegrationConfigurationSchema {
|
|
|
1668
1721
|
/** @uniqueItems true */
|
|
1669
1722
|
required?: string[];
|
|
1670
1723
|
}
|
|
1671
|
-
|
|
1672
|
-
export interface IntegrationConfigurationComponent {
|
|
1673
|
-
/** ID of the ContentKit component defined in the integration */
|
|
1674
|
-
componentId: string;
|
|
1675
|
-
}
|
|
1676
|
-
export declare type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
|
|
1724
|
+
export type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
|
|
1677
1725
|
export interface IntegrationConfigurations {
|
|
1678
1726
|
account?: IntegrationConfiguration;
|
|
1679
1727
|
space?: IntegrationConfiguration;
|
|
@@ -1683,7 +1731,7 @@ export interface IntegrationConfigurations {
|
|
|
1683
1731
|
* External urls configured by the developer of the integration
|
|
1684
1732
|
* @maxItems 5
|
|
1685
1733
|
*/
|
|
1686
|
-
export
|
|
1734
|
+
export type IntegrationExternalLinks = {
|
|
1687
1735
|
url: URL;
|
|
1688
1736
|
label: string;
|
|
1689
1737
|
}[];
|
|
@@ -1691,7 +1739,7 @@ export declare type IntegrationExternalLinks = {
|
|
|
1691
1739
|
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
1692
1740
|
* headers when processing the script fetch event and the blocks fetch events.
|
|
1693
1741
|
*/
|
|
1694
|
-
export
|
|
1742
|
+
export type IntegrationContentSecurityPolicy = string | {
|
|
1695
1743
|
'base-uri'?: string;
|
|
1696
1744
|
'block-all-mixed-content'?: string;
|
|
1697
1745
|
'child-src'?: string;
|
|
@@ -1751,6 +1799,7 @@ export interface Integration {
|
|
|
1751
1799
|
categories: IntegrationCategories;
|
|
1752
1800
|
/** Custom blocks defined by this integration. */
|
|
1753
1801
|
blocks?: IntegrationBlocks;
|
|
1802
|
+
contentSources?: IntegrationContentSource[];
|
|
1754
1803
|
configurations?: IntegrationConfigurations;
|
|
1755
1804
|
/** External urls configured by the developer of the integration */
|
|
1756
1805
|
externalLinks: IntegrationExternalLinks;
|
|
@@ -1848,11 +1897,17 @@ export interface SyncedBlock {
|
|
|
1848
1897
|
organization: string;
|
|
1849
1898
|
/** @format date-time */
|
|
1850
1899
|
createdAt: string;
|
|
1900
|
+
createdBy: User;
|
|
1851
1901
|
/**
|
|
1852
1902
|
* Title describing the synced block.
|
|
1853
1903
|
* @maxLength 100
|
|
1854
1904
|
*/
|
|
1855
1905
|
title?: string;
|
|
1906
|
+
/**
|
|
1907
|
+
* Description of the synced block.
|
|
1908
|
+
* @maxLength 500
|
|
1909
|
+
*/
|
|
1910
|
+
description?: string;
|
|
1856
1911
|
/** Usage of synced block */
|
|
1857
1912
|
usage: {
|
|
1858
1913
|
/** Number of spaces where the synced block is used in */
|
|
@@ -1862,6 +1917,8 @@ export interface SyncedBlock {
|
|
|
1862
1917
|
urls: {
|
|
1863
1918
|
/** URL of the synced block in the API */
|
|
1864
1919
|
location: URL;
|
|
1920
|
+
/** URL of the synced block in the app */
|
|
1921
|
+
app: URL;
|
|
1865
1922
|
};
|
|
1866
1923
|
}
|
|
1867
1924
|
export interface ContentLocationSyncedBlock {
|
|
@@ -1870,7 +1927,41 @@ export interface ContentLocationSyncedBlock {
|
|
|
1870
1927
|
syncedBlock: SyncedBlock;
|
|
1871
1928
|
}
|
|
1872
1929
|
/** An absolute reference to content in GitBook. */
|
|
1873
|
-
export
|
|
1930
|
+
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationSyncedBlock;
|
|
1931
|
+
/**
|
|
1932
|
+
* Text to display to represent the reference. Possible values include:
|
|
1933
|
+
* - `ok` - No problems detected for this content reference.
|
|
1934
|
+
* - `broken` - The target does not exist in the revision.
|
|
1935
|
+
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
1936
|
+
*/
|
|
1937
|
+
export declare enum ContentReferenceStatus {
|
|
1938
|
+
Ok = "ok",
|
|
1939
|
+
Broken = "broken",
|
|
1940
|
+
InApp = "in-app"
|
|
1941
|
+
}
|
|
1942
|
+
export interface ContentReferencesStats {
|
|
1943
|
+
/** Total count of links */
|
|
1944
|
+
total: number;
|
|
1945
|
+
broken: {
|
|
1946
|
+
/** Count of broken links */
|
|
1947
|
+
total: number;
|
|
1948
|
+
/** Count of broken links that were broken in current change request, if applicable. */
|
|
1949
|
+
changeRequest?: number;
|
|
1950
|
+
};
|
|
1951
|
+
}
|
|
1952
|
+
export interface ContentReferenceUsage {
|
|
1953
|
+
/**
|
|
1954
|
+
* Text to display to represent the reference. Possible values include:
|
|
1955
|
+
* - `ok` - No problems detected for this content reference.
|
|
1956
|
+
* - `broken` - The target does not exist in the revision.
|
|
1957
|
+
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
1958
|
+
*/
|
|
1959
|
+
status: ContentReferenceStatus;
|
|
1960
|
+
/** The reference target where a list of pages are pointing at */
|
|
1961
|
+
targetReference?: ContentLocation;
|
|
1962
|
+
/** Pages locations where a link to the target is found. */
|
|
1963
|
+
locationReferences: ContentLocation[];
|
|
1964
|
+
}
|
|
1874
1965
|
export interface CreateChangeRequest {
|
|
1875
1966
|
/** Subject of the change-request */
|
|
1876
1967
|
subject?: string;
|
|
@@ -1892,8 +1983,8 @@ export interface EmojiReaction {
|
|
|
1892
1983
|
reactedAt: Timestamp;
|
|
1893
1984
|
}[];
|
|
1894
1985
|
}
|
|
1895
|
-
export
|
|
1896
|
-
export
|
|
1986
|
+
export type EmojiReactions = EmojiReaction[];
|
|
1987
|
+
export type Comment = {
|
|
1897
1988
|
/** Type of Object, always equals to "comment" */
|
|
1898
1989
|
object: 'comment';
|
|
1899
1990
|
/** Unique identifier for the comment. */
|
|
@@ -1975,7 +2066,7 @@ export interface Team {
|
|
|
1975
2066
|
/** Unique identifier for the team */
|
|
1976
2067
|
id: string;
|
|
1977
2068
|
}
|
|
1978
|
-
export
|
|
2069
|
+
export type ChangeRequestRequestedReviewer = {
|
|
1979
2070
|
/** Type of Object, always equals to "change-request-requested-reviewer" */
|
|
1980
2071
|
object: 'change-request-requested-reviewer';
|
|
1981
2072
|
/** The revision of the content when the request was made. */
|
|
@@ -1992,40 +2083,6 @@ export declare type ChangeRequestRequestedReviewer = {
|
|
|
1992
2083
|
/** The team who was requested to review. */
|
|
1993
2084
|
team: Team;
|
|
1994
2085
|
});
|
|
1995
|
-
/**
|
|
1996
|
-
* Text to display to represent the reference. Possible values include:
|
|
1997
|
-
* - `ok` - No problems detected for this content reference.
|
|
1998
|
-
* - `broken` - The target does not exist in the revision.
|
|
1999
|
-
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
2000
|
-
*/
|
|
2001
|
-
export declare enum ContentReferenceStatus {
|
|
2002
|
-
Ok = "ok",
|
|
2003
|
-
Broken = "broken",
|
|
2004
|
-
InApp = "in-app"
|
|
2005
|
-
}
|
|
2006
|
-
export interface ContentReferencesStats {
|
|
2007
|
-
/** Total count of links */
|
|
2008
|
-
total: number;
|
|
2009
|
-
broken: {
|
|
2010
|
-
/** Count of broken links */
|
|
2011
|
-
total: number;
|
|
2012
|
-
/** Count of broken links that were broken in current change request, if applicable. */
|
|
2013
|
-
changeRequest?: number;
|
|
2014
|
-
};
|
|
2015
|
-
}
|
|
2016
|
-
export interface ContentReferenceUsage {
|
|
2017
|
-
/**
|
|
2018
|
-
* Text to display to represent the reference. Possible values include:
|
|
2019
|
-
* - `ok` - No problems detected for this content reference.
|
|
2020
|
-
* - `broken` - The target does not exist in the revision.
|
|
2021
|
-
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
2022
|
-
*/
|
|
2023
|
-
status: ContentReferenceStatus;
|
|
2024
|
-
/** The reference target where a list of pages are pointing at */
|
|
2025
|
-
targetReference?: ContentLocation;
|
|
2026
|
-
/** Pages locations where a link to the target is found. */
|
|
2027
|
-
locationReferences: ContentLocation[];
|
|
2028
|
-
}
|
|
2029
2086
|
export interface PostCommentSchema {
|
|
2030
2087
|
/** The node to which the comment is posted, if any. */
|
|
2031
2088
|
node?: string;
|
|
@@ -2077,7 +2134,8 @@ export interface UserContributor {
|
|
|
2077
2134
|
export declare enum RevisionPageType {
|
|
2078
2135
|
Document = "document",
|
|
2079
2136
|
Group = "group",
|
|
2080
|
-
Link = "link"
|
|
2137
|
+
Link = "link",
|
|
2138
|
+
Computed = "computed"
|
|
2081
2139
|
}
|
|
2082
2140
|
export interface ChangedRevisionPage {
|
|
2083
2141
|
id: string;
|
|
@@ -2103,12 +2161,12 @@ export declare enum RevisionPageLayoutPreset {
|
|
|
2103
2161
|
Editorial = "editorial",
|
|
2104
2162
|
Landing = "landing"
|
|
2105
2163
|
}
|
|
2106
|
-
export
|
|
2164
|
+
export type RevisionPageLayout = RevisionPageLayoutPreset | RevisionPageLayoutOptions;
|
|
2107
2165
|
export interface ChangeAttributeRevisionPageLayout {
|
|
2108
2166
|
before?: RevisionPageLayout;
|
|
2109
2167
|
after?: RevisionPageLayout;
|
|
2110
2168
|
}
|
|
2111
|
-
export
|
|
2169
|
+
export type CustomFieldValue = string | number | boolean | string[];
|
|
2112
2170
|
export interface ChangeAttributeCustomFields {
|
|
2113
2171
|
before?: Record<string, {
|
|
2114
2172
|
value: CustomFieldValue;
|
|
@@ -2204,7 +2262,7 @@ export interface RevisionSemanticChangeCustomFieldsEdited {
|
|
|
2204
2262
|
type: 'custom_fields_edited';
|
|
2205
2263
|
customFields: ChangeAttributeCustomFields;
|
|
2206
2264
|
}
|
|
2207
|
-
export
|
|
2265
|
+
export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited;
|
|
2208
2266
|
export interface RevisionSemanticChanges {
|
|
2209
2267
|
changes: RevisionSemanticChange[];
|
|
2210
2268
|
/** How many changes were omitted because above the result limit */
|
|
@@ -2233,7 +2291,7 @@ export interface UserContentPermission {
|
|
|
2233
2291
|
user: User;
|
|
2234
2292
|
}
|
|
2235
2293
|
/** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
|
|
2236
|
-
export
|
|
2294
|
+
export type Color = string;
|
|
2237
2295
|
export interface CustomizationThemedColor {
|
|
2238
2296
|
light: Color;
|
|
2239
2297
|
dark: Color;
|
|
@@ -2291,7 +2349,8 @@ export interface CustomizationContentLink {
|
|
|
2291
2349
|
/** A relative reference to content in GitBook. */
|
|
2292
2350
|
to: ContentRef;
|
|
2293
2351
|
}
|
|
2294
|
-
export
|
|
2352
|
+
export type CustomizationHeaderLink = CustomizationContentLink & {
|
|
2353
|
+
style?: 'link' | 'button-primary' | 'button-secondary';
|
|
2295
2354
|
links?: CustomizationContentLink[];
|
|
2296
2355
|
};
|
|
2297
2356
|
export interface CustomizationFooterGroup {
|
|
@@ -2374,7 +2433,7 @@ export interface CustomizationSettings {
|
|
|
2374
2433
|
url?: URL;
|
|
2375
2434
|
};
|
|
2376
2435
|
}
|
|
2377
|
-
export
|
|
2436
|
+
export type SpaceIntegrationBlocks = {
|
|
2378
2437
|
/** Unique named identifier for the integration */
|
|
2379
2438
|
name: string;
|
|
2380
2439
|
blocks: IntegrationBlock[];
|
|
@@ -2392,11 +2451,11 @@ export interface SpaceIntegrationScript {
|
|
|
2392
2451
|
* @maxLength 50
|
|
2393
2452
|
* @pattern ^[a-z_\-0-9]+$
|
|
2394
2453
|
*/
|
|
2395
|
-
export
|
|
2454
|
+
export type CustomFieldName = string;
|
|
2396
2455
|
/** @maxLength 100 */
|
|
2397
|
-
export
|
|
2456
|
+
export type CustomFieldTitle = string;
|
|
2398
2457
|
/** @maxLength 200 */
|
|
2399
|
-
export
|
|
2458
|
+
export type CustomFieldDescription = string;
|
|
2400
2459
|
export declare enum CustomFieldType {
|
|
2401
2460
|
Text = "text",
|
|
2402
2461
|
Number = "number",
|
|
@@ -2406,12 +2465,12 @@ export declare enum CustomFieldType {
|
|
|
2406
2465
|
SelectSingle = "select:single"
|
|
2407
2466
|
}
|
|
2408
2467
|
/** @maxLength 100 */
|
|
2409
|
-
export
|
|
2468
|
+
export type CustomFieldPlaceholder = string;
|
|
2410
2469
|
/**
|
|
2411
2470
|
* @maxItems 50
|
|
2412
2471
|
* @minItems 1
|
|
2413
2472
|
*/
|
|
2414
|
-
export
|
|
2473
|
+
export type CustomFieldOptions = string[];
|
|
2415
2474
|
/** Custom field */
|
|
2416
2475
|
export interface CustomField {
|
|
2417
2476
|
id: string;
|
|
@@ -2432,7 +2491,7 @@ export interface CustomField {
|
|
|
2432
2491
|
location: string;
|
|
2433
2492
|
};
|
|
2434
2493
|
}
|
|
2435
|
-
export
|
|
2494
|
+
export type CustomFieldValues = {
|
|
2436
2495
|
/** Custom field */
|
|
2437
2496
|
customField: CustomField;
|
|
2438
2497
|
value?: CustomFieldValue;
|
|
@@ -2469,7 +2528,7 @@ export interface PageFeedback {
|
|
|
2469
2528
|
* @minLength 0
|
|
2470
2529
|
* @maxLength 50
|
|
2471
2530
|
*/
|
|
2472
|
-
export
|
|
2531
|
+
export type ShareLinkName = string;
|
|
2473
2532
|
export interface ShareLink {
|
|
2474
2533
|
/** Type of Object, always equals to "share-link" */
|
|
2475
2534
|
object: 'share-link';
|
|
@@ -2488,14 +2547,14 @@ export interface ShareLink {
|
|
|
2488
2547
|
published?: string;
|
|
2489
2548
|
};
|
|
2490
2549
|
}
|
|
2491
|
-
export
|
|
2550
|
+
export type CustomizationCollectionSettings = CustomizationSettings & {
|
|
2492
2551
|
collection: {
|
|
2493
2552
|
/** ID of the space used by default in the collection */
|
|
2494
2553
|
defaultSpace?: string;
|
|
2495
2554
|
};
|
|
2496
2555
|
};
|
|
2497
2556
|
/** Secrets stored on the integration and passed at runtime. */
|
|
2498
|
-
export
|
|
2557
|
+
export type IntegrationSecrets = Record<string, string>;
|
|
2499
2558
|
export interface PublishIntegration {
|
|
2500
2559
|
/**
|
|
2501
2560
|
* Base64 content of the icon
|
|
@@ -2519,6 +2578,7 @@ export interface PublishIntegration {
|
|
|
2519
2578
|
categories?: IntegrationCategories;
|
|
2520
2579
|
/** Custom blocks defined by this integration. */
|
|
2521
2580
|
blocks?: IntegrationBlocks;
|
|
2581
|
+
contentSources?: IntegrationContentSource[];
|
|
2522
2582
|
/** External urls configured by the developer of the integration */
|
|
2523
2583
|
externalLinks?: IntegrationExternalLinks;
|
|
2524
2584
|
configurations?: IntegrationConfigurations;
|
|
@@ -2550,16 +2610,16 @@ export declare enum IntegrationInstallationSiteSelection {
|
|
|
2550
2610
|
Selected = "selected"
|
|
2551
2611
|
}
|
|
2552
2612
|
/** Configuration of the integration at the account level */
|
|
2553
|
-
export
|
|
2613
|
+
export type IntegrationInstallationConfiguration = Record<string, any>;
|
|
2554
2614
|
/**
|
|
2555
2615
|
* External IDs assigned by the integration.
|
|
2556
2616
|
* @maxItems 5
|
|
2557
2617
|
*/
|
|
2558
|
-
export
|
|
2618
|
+
export type IntegrationInstallationExternalIds = string[];
|
|
2559
2619
|
export interface OrganizationTarget {
|
|
2560
2620
|
organization: string;
|
|
2561
2621
|
}
|
|
2562
|
-
export
|
|
2622
|
+
export type IntegrationInstallationTarget = OrganizationTarget;
|
|
2563
2623
|
/** Installation of an integration on an account */
|
|
2564
2624
|
export interface IntegrationInstallation {
|
|
2565
2625
|
id: string;
|
|
@@ -2605,12 +2665,12 @@ export interface BaseEvent {
|
|
|
2605
2665
|
type: string;
|
|
2606
2666
|
}
|
|
2607
2667
|
/** Common properties for all events related to an installation */
|
|
2608
|
-
export
|
|
2668
|
+
export type InstallationEvent = BaseEvent & {
|
|
2609
2669
|
/** ID of the integration installation */
|
|
2610
2670
|
installationId: string;
|
|
2611
2671
|
};
|
|
2612
2672
|
/** Event received when integration has been installed or updated. */
|
|
2613
|
-
export
|
|
2673
|
+
export type InstallationSetupEvent = InstallationEvent & {
|
|
2614
2674
|
type: 'installation_setup';
|
|
2615
2675
|
status: IntegrationInstallationStatus;
|
|
2616
2676
|
/** The state of the installation at the account level before it was updated. */
|
|
@@ -2621,12 +2681,12 @@ export declare type InstallationSetupEvent = InstallationEvent & {
|
|
|
2621
2681
|
};
|
|
2622
2682
|
};
|
|
2623
2683
|
/** Common properties for all events related to a specific space. */
|
|
2624
|
-
export
|
|
2684
|
+
export type SpaceEvent = InstallationEvent & {
|
|
2625
2685
|
/** ID of the space */
|
|
2626
2686
|
spaceId: string;
|
|
2627
2687
|
};
|
|
2628
2688
|
/** Event received when integration has been installed or updated on a space. */
|
|
2629
|
-
export
|
|
2689
|
+
export type SpaceInstallationSetupEvent = SpaceEvent & {
|
|
2630
2690
|
type: 'space_installation_setup';
|
|
2631
2691
|
status: IntegrationInstallationStatus;
|
|
2632
2692
|
/** The state of the Space installation before it was updated. */
|
|
@@ -2637,7 +2697,7 @@ export declare type SpaceInstallationSetupEvent = SpaceEvent & {
|
|
|
2637
2697
|
};
|
|
2638
2698
|
};
|
|
2639
2699
|
/** Event received when integration has been uninstalled from a space. */
|
|
2640
|
-
export
|
|
2700
|
+
export type SpaceInstallationDeletedEvent = SpaceEvent & {
|
|
2641
2701
|
type: 'space_installation_deleted';
|
|
2642
2702
|
/** The state of the Space installation before it was deleted. */
|
|
2643
2703
|
previous: {
|
|
@@ -2646,12 +2706,12 @@ export declare type SpaceInstallationDeletedEvent = SpaceEvent & {
|
|
|
2646
2706
|
};
|
|
2647
2707
|
};
|
|
2648
2708
|
/** Common properties for all events related to a specific site. */
|
|
2649
|
-
export
|
|
2709
|
+
export type SiteEvent = InstallationEvent & {
|
|
2650
2710
|
/** ID of the site */
|
|
2651
2711
|
siteId: string;
|
|
2652
2712
|
};
|
|
2653
2713
|
/** Event received when integration has been installed or updated on a site. */
|
|
2654
|
-
export
|
|
2714
|
+
export type SiteInstallationSetupEvent = SiteEvent & {
|
|
2655
2715
|
type: 'site_installation_setup';
|
|
2656
2716
|
status: IntegrationInstallationStatus;
|
|
2657
2717
|
/** The state of the site installation before it was updated. */
|
|
@@ -2662,7 +2722,7 @@ export declare type SiteInstallationSetupEvent = SiteEvent & {
|
|
|
2662
2722
|
};
|
|
2663
2723
|
};
|
|
2664
2724
|
/** Event received when integration has been uninstalled from a site. */
|
|
2665
|
-
export
|
|
2725
|
+
export type SiteInstallationDeletedEvent = SiteEvent & {
|
|
2666
2726
|
type: 'site_installation_deleted';
|
|
2667
2727
|
/** The state of the site installation before it was deleted. */
|
|
2668
2728
|
previous: {
|
|
@@ -2671,7 +2731,7 @@ export declare type SiteInstallationDeletedEvent = SiteEvent & {
|
|
|
2671
2731
|
};
|
|
2672
2732
|
};
|
|
2673
2733
|
/** Event received when a page has been visited. */
|
|
2674
|
-
export
|
|
2734
|
+
export type SpaceViewEvent = SpaceEvent & {
|
|
2675
2735
|
type: 'space_view';
|
|
2676
2736
|
/** Unique identifier of the visited page. */
|
|
2677
2737
|
pageId?: string;
|
|
@@ -2694,7 +2754,7 @@ export declare type SpaceViewEvent = SpaceEvent & {
|
|
|
2694
2754
|
referrer: string;
|
|
2695
2755
|
};
|
|
2696
2756
|
/** Event received when a page has been visited on a site. */
|
|
2697
|
-
export
|
|
2757
|
+
export type SiteViewEvent = SiteEvent & {
|
|
2698
2758
|
type: 'site_view';
|
|
2699
2759
|
/** Unique identifier of the visited space in the site. */
|
|
2700
2760
|
spaceId: string;
|
|
@@ -2719,13 +2779,13 @@ export declare type SiteViewEvent = SiteEvent & {
|
|
|
2719
2779
|
referrer: string;
|
|
2720
2780
|
};
|
|
2721
2781
|
/** Event when the primary content of a space has been updated. */
|
|
2722
|
-
export
|
|
2782
|
+
export type SpaceContentUpdatedEvent = SpaceEvent & {
|
|
2723
2783
|
type: 'space_content_updated';
|
|
2724
2784
|
/** Unique identifier of the new content revision */
|
|
2725
2785
|
revisionId: string;
|
|
2726
2786
|
};
|
|
2727
2787
|
/** Event when a GitSync operation has been completed. */
|
|
2728
|
-
export
|
|
2788
|
+
export type SpaceGitSyncCompletedEvent = SpaceEvent & {
|
|
2729
2789
|
type: 'space_gitsync_completed';
|
|
2730
2790
|
state: 'success' | 'failure';
|
|
2731
2791
|
/** Unique identifier of the new content revision */
|
|
@@ -2734,7 +2794,7 @@ export declare type SpaceGitSyncCompletedEvent = SpaceEvent & {
|
|
|
2734
2794
|
commitId: string;
|
|
2735
2795
|
};
|
|
2736
2796
|
/** Event when a GitSync operation has been started. */
|
|
2737
|
-
export
|
|
2797
|
+
export type SpaceGitSyncStartedEvent = SpaceEvent & {
|
|
2738
2798
|
type: 'space_gitsync_started';
|
|
2739
2799
|
/** Unique identifier of the new content revision */
|
|
2740
2800
|
revisionId: string;
|
|
@@ -2742,7 +2802,7 @@ export declare type SpaceGitSyncStartedEvent = SpaceEvent & {
|
|
|
2742
2802
|
commitId: string;
|
|
2743
2803
|
};
|
|
2744
2804
|
/** Event when the visibility of the space has been changed. */
|
|
2745
|
-
export
|
|
2805
|
+
export type SpaceVisibilityUpdatedEvent = SpaceEvent & {
|
|
2746
2806
|
type: 'space_visibility_updated';
|
|
2747
2807
|
/**
|
|
2748
2808
|
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
@@ -2771,7 +2831,7 @@ export interface FetchRequest {
|
|
|
2771
2831
|
headers: Record<string, string>;
|
|
2772
2832
|
}
|
|
2773
2833
|
/** Event representing an incoming HTTP request. */
|
|
2774
|
-
export
|
|
2834
|
+
export type FetchEvent = BaseEvent & {
|
|
2775
2835
|
/** The space ID, if requests are specific to a single space */
|
|
2776
2836
|
spaceId?: string;
|
|
2777
2837
|
/** The site ID, if requests are specific to a single site */
|
|
@@ -2786,11 +2846,11 @@ export declare type FetchEvent = BaseEvent & {
|
|
|
2786
2846
|
request: FetchRequest;
|
|
2787
2847
|
};
|
|
2788
2848
|
/** Common properties for all events related to fetching a published script from an installation */
|
|
2789
|
-
export
|
|
2849
|
+
export type FetchPublishedScriptEvent = (SpaceEvent | SiteEvent) & {
|
|
2790
2850
|
type: 'fetch_published_script';
|
|
2791
2851
|
};
|
|
2792
2852
|
/** Common properties for all events related to visitor authentication from an installation */
|
|
2793
|
-
export
|
|
2853
|
+
export type FetchVisitorAuthenticationEvent = (SpaceEvent | SiteEvent) & {
|
|
2794
2854
|
type: 'fetch_visitor_authentication';
|
|
2795
2855
|
location?: string;
|
|
2796
2856
|
};
|
|
@@ -2799,34 +2859,40 @@ export interface ContentKitContextBase {
|
|
|
2799
2859
|
theme: 'dark' | 'light';
|
|
2800
2860
|
}
|
|
2801
2861
|
/** Context while rendering in an account installation's configuration. */
|
|
2802
|
-
export
|
|
2862
|
+
export type ContentKitContextConfigurationAccount = ContentKitContextBase & {
|
|
2803
2863
|
type: 'configuration_account';
|
|
2804
2864
|
/** ID of the organization the account installation configuration is in. */
|
|
2805
2865
|
organizationId: string;
|
|
2806
2866
|
};
|
|
2807
2867
|
/** Context while rendering in a space-installation's configuration. */
|
|
2808
|
-
export
|
|
2868
|
+
export type ContentKitContextConfigurationSpace = ContentKitContextBase & {
|
|
2809
2869
|
type: 'configuration_space';
|
|
2810
2870
|
/** ID of the space the space-installation configuration is in. */
|
|
2811
2871
|
spaceId: string;
|
|
2812
2872
|
};
|
|
2813
2873
|
/** Context while rendering in a site-installation's configuration. */
|
|
2814
|
-
export
|
|
2874
|
+
export type ContentKitContextConfigurationSite = ContentKitContextBase & {
|
|
2815
2875
|
type: 'configuration_site';
|
|
2816
2876
|
/** ID of the site the site-installation configuration is in. */
|
|
2817
2877
|
siteId: string;
|
|
2818
2878
|
};
|
|
2879
|
+
/** Context while rendering the configuration flow of a content source. */
|
|
2880
|
+
export type ContentKitContextConfigurationContentSource = ContentKitContextBase & {
|
|
2881
|
+
type: 'configuration_contentsource';
|
|
2882
|
+
/** ID of the organization the content source installation configuration is in. */
|
|
2883
|
+
organizationId: string;
|
|
2884
|
+
};
|
|
2819
2885
|
/** Context while rendering in a document. */
|
|
2820
|
-
export
|
|
2886
|
+
export type ContentKitContextDocument = ContentKitContextBase & {
|
|
2821
2887
|
type: 'document';
|
|
2822
2888
|
/** ID of the space content the document is in. */
|
|
2823
2889
|
spaceId: string;
|
|
2824
2890
|
editable: boolean;
|
|
2825
2891
|
};
|
|
2826
2892
|
/** Object representing the context in which a ContentKit component is rendered. */
|
|
2827
|
-
export
|
|
2893
|
+
export type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextConfigurationSite | ContentKitContextConfigurationContentSource | ContentKitContextDocument;
|
|
2828
2894
|
/** Event generated when rendering a UI */
|
|
2829
|
-
export
|
|
2895
|
+
export type UIRenderEvent = (SpaceEvent | SiteEvent | InstallationEvent) & {
|
|
2830
2896
|
auth?: {
|
|
2831
2897
|
/** The user's ID. */
|
|
2832
2898
|
userId: string;
|
|
@@ -2841,8 +2907,28 @@ export declare type UIRenderEvent = (SpaceEvent | SiteEvent | InstallationEvent)
|
|
|
2841
2907
|
context: ContentKitContext;
|
|
2842
2908
|
action?: object;
|
|
2843
2909
|
};
|
|
2910
|
+
/** Generic event when computing the content of a space */
|
|
2911
|
+
export type ContentComputeEvent = SpaceEvent & {
|
|
2912
|
+
sourceId: string;
|
|
2913
|
+
/** Properties passed to the rendering. */
|
|
2914
|
+
props: PlainObject;
|
|
2915
|
+
};
|
|
2916
|
+
/**
|
|
2917
|
+
* Event generated when computing the document of a pages.
|
|
2918
|
+
* The integration should respond with a `Document`.
|
|
2919
|
+
*/
|
|
2920
|
+
export type ContentComputeDocumentEvent = ContentComputeEvent & {
|
|
2921
|
+
type: 'content_compute_document';
|
|
2922
|
+
};
|
|
2923
|
+
/**
|
|
2924
|
+
* Event generated when computing revision in a content.
|
|
2925
|
+
* The integration should respond with an array of pages and files.
|
|
2926
|
+
*/
|
|
2927
|
+
export type ContentComputeRevisionEvent = ContentComputeEvent & {
|
|
2928
|
+
type: 'content_compute_revision';
|
|
2929
|
+
};
|
|
2844
2930
|
/** Any event that can be received from GitBook. */
|
|
2845
|
-
export
|
|
2931
|
+
export type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent;
|
|
2846
2932
|
export interface IntegrationEvent {
|
|
2847
2933
|
/** Unique ID of the event. */
|
|
2848
2934
|
id: string;
|
|
@@ -2958,7 +3044,7 @@ export interface ContentKitTextInput {
|
|
|
2958
3044
|
inputType?: 'text' | 'password';
|
|
2959
3045
|
}
|
|
2960
3046
|
/** Any element that can be used as children. */
|
|
2961
|
-
export
|
|
3047
|
+
export type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink | ContentKitStepperStep;
|
|
2962
3048
|
/** Horizontal stack of boxes. */
|
|
2963
3049
|
export interface ContentKitHStack {
|
|
2964
3050
|
type: 'hstack';
|
|
@@ -3065,7 +3151,7 @@ export interface ContentKitImage {
|
|
|
3065
3151
|
aspectRatio: number;
|
|
3066
3152
|
}
|
|
3067
3153
|
/** Any element that is inline. */
|
|
3068
|
-
export
|
|
3154
|
+
export type ContentKitInlineElement = ContentKitText | ContentKitImage | ContentKitLink;
|
|
3069
3155
|
export interface ContentKitCard {
|
|
3070
3156
|
type: 'card';
|
|
3071
3157
|
title?: string;
|
|
@@ -3150,6 +3236,23 @@ export interface ContentKitHint {
|
|
|
3150
3236
|
type: 'hint';
|
|
3151
3237
|
children: ContentKitInlineElement[];
|
|
3152
3238
|
}
|
|
3239
|
+
export interface ContentKitStepperStep {
|
|
3240
|
+
type: 'step';
|
|
3241
|
+
/** unique identifier for the step */
|
|
3242
|
+
id: string;
|
|
3243
|
+
/**
|
|
3244
|
+
* title of the step
|
|
3245
|
+
* @maxLength 50
|
|
3246
|
+
*/
|
|
3247
|
+
title?: string;
|
|
3248
|
+
/**
|
|
3249
|
+
* indicates if the user can progress to the next step based on some internal validation or condition
|
|
3250
|
+
* @default false
|
|
3251
|
+
*/
|
|
3252
|
+
next?: boolean;
|
|
3253
|
+
/** @minItems 1 */
|
|
3254
|
+
children: ContentKitDescendantElement[];
|
|
3255
|
+
}
|
|
3153
3256
|
/** Control menu item displayed for the block. */
|
|
3154
3257
|
export interface ContentKitBlockControl {
|
|
3155
3258
|
icon?: ContentKitIcon;
|
|
@@ -3177,20 +3280,36 @@ export interface ContentKitModal {
|
|
|
3177
3280
|
/** Pressable button triggering an action. */
|
|
3178
3281
|
submit?: ContentKitButton;
|
|
3179
3282
|
}
|
|
3283
|
+
export interface ContentKitStepper {
|
|
3284
|
+
type: 'stepper';
|
|
3285
|
+
/** id of the currently active step */
|
|
3286
|
+
activeStep: string;
|
|
3287
|
+
/** Custom action to re-render the block. */
|
|
3288
|
+
onStepChange: ContentKitAction;
|
|
3289
|
+
/** Custom action to re-render the block. */
|
|
3290
|
+
onComplete: ContentKitAction;
|
|
3291
|
+
/** @minItems 1 */
|
|
3292
|
+
children: ContentKitStepperStep[];
|
|
3293
|
+
}
|
|
3294
|
+
/** Higher level element to define a configuration block. Does not add any UI elements or wrappers. Must be used as a top level element for any configuration component. */
|
|
3295
|
+
export interface ContentKitConfiguration {
|
|
3296
|
+
type: 'configuration';
|
|
3297
|
+
children: ContentKitStepper[] | ContentKitDescendantElement[];
|
|
3298
|
+
}
|
|
3180
3299
|
/** Element used as root */
|
|
3181
|
-
export
|
|
3300
|
+
export type ContentKitRootElement = ContentKitBlock | ContentKitModal | ContentKitConfiguration;
|
|
3182
3301
|
/** Output of the integration when rendering an UI. */
|
|
3183
3302
|
export interface ContentKitRenderOutput {
|
|
3184
3303
|
/** Element used as root */
|
|
3185
3304
|
element: ContentKitRootElement;
|
|
3186
3305
|
state: object;
|
|
3187
|
-
props:
|
|
3306
|
+
props: PlainObject;
|
|
3188
3307
|
}
|
|
3189
3308
|
export interface RenderIntegrationUI {
|
|
3190
3309
|
/** ID of the component to render in the integration. */
|
|
3191
3310
|
componentId: string;
|
|
3192
3311
|
/** Current properties of the UI. */
|
|
3193
|
-
props:
|
|
3312
|
+
props: PlainObject;
|
|
3194
3313
|
/** Current local state of the UI. */
|
|
3195
3314
|
state?: object;
|
|
3196
3315
|
/** Object representing the context in which a ContentKit component is rendered. */
|
|
@@ -3296,7 +3415,7 @@ export interface MemberContentPermission {
|
|
|
3296
3415
|
* @minLength 1
|
|
3297
3416
|
* @maxLength 64
|
|
3298
3417
|
*/
|
|
3299
|
-
export
|
|
3418
|
+
export type OrganizationTeamTitle = string;
|
|
3300
3419
|
export interface OrganizationTeam {
|
|
3301
3420
|
/** Type of Object, always equals to "team" */
|
|
3302
3421
|
object: 'team';
|
|
@@ -3366,7 +3485,7 @@ export interface CreateInviteToCollection {
|
|
|
3366
3485
|
/** The ID of collection the member has been invited to */
|
|
3367
3486
|
collection: string;
|
|
3368
3487
|
}
|
|
3369
|
-
export
|
|
3488
|
+
export type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
|
|
3370
3489
|
export interface InviteToOrganization {
|
|
3371
3490
|
/** The role of the member in the organization */
|
|
3372
3491
|
role: MemberRoleOrGuest;
|
|
@@ -3383,7 +3502,7 @@ export interface InviteToCollection {
|
|
|
3383
3502
|
/** The collection the member has been invited to */
|
|
3384
3503
|
collection: Collection;
|
|
3385
3504
|
}
|
|
3386
|
-
export
|
|
3505
|
+
export type OrganizationInvite = {
|
|
3387
3506
|
/** Type of Object, always equals to "invite" */
|
|
3388
3507
|
object: 'invite';
|
|
3389
3508
|
/** Unique identifier for the organization invite */
|
|
@@ -3420,9 +3539,10 @@ export interface UpgradeOrganizationBilling {
|
|
|
3420
3539
|
interval: BillingInterval;
|
|
3421
3540
|
/** Members to remove or sites to unpublish before upgrading */
|
|
3422
3541
|
exclude?: {
|
|
3423
|
-
members
|
|
3424
|
-
|
|
3425
|
-
|
|
3542
|
+
/** A list of member identifiers to be removed, `all` to remove all members but the current admin */
|
|
3543
|
+
members?: string[] | 'all';
|
|
3544
|
+
/** A list of site identifiers to be unpublished, 'all' to unpublish all sites */
|
|
3545
|
+
sites?: string[] | 'all';
|
|
3426
3546
|
};
|
|
3427
3547
|
/** Reason that triggered the billing upgrade */
|
|
3428
3548
|
reason?: string;
|
|
@@ -3446,7 +3566,7 @@ export interface BillingInvoicePreview {
|
|
|
3446
3566
|
periodEnd: Timestamp;
|
|
3447
3567
|
}[];
|
|
3448
3568
|
}
|
|
3449
|
-
export
|
|
3569
|
+
export type BillingUpgrade = {
|
|
3450
3570
|
result: 'checkout';
|
|
3451
3571
|
/** Stripe payment session ID */
|
|
3452
3572
|
sessionId: string;
|
|
@@ -3489,11 +3609,11 @@ export interface OrganizationExperimentalFeature {
|
|
|
3489
3609
|
* @minLength 1
|
|
3490
3610
|
* @maxLength 30
|
|
3491
3611
|
*/
|
|
3492
|
-
export
|
|
3612
|
+
export type SAMLProviderLabel = string;
|
|
3493
3613
|
/** @maxLength 1024 */
|
|
3494
|
-
export
|
|
3614
|
+
export type SAMLProviderEntityID = string;
|
|
3495
3615
|
/** @maxLength 10000 */
|
|
3496
|
-
export
|
|
3616
|
+
export type SAMLProviderCertificate = string;
|
|
3497
3617
|
export interface OrganizationSAMLProvider {
|
|
3498
3618
|
/** Type of Object, always equals to "saml-provider" */
|
|
3499
3619
|
object: 'saml-provider';
|
|
@@ -3542,7 +3662,7 @@ export interface OrganizationUsageCollections {
|
|
|
3542
3662
|
total: number;
|
|
3543
3663
|
}
|
|
3544
3664
|
/** Sites usage metrics of an organization */
|
|
3545
|
-
export
|
|
3665
|
+
export type OrganizationUsageSites = {
|
|
3546
3666
|
/** Count of all sites */
|
|
3547
3667
|
total: number;
|
|
3548
3668
|
/** Count of all legacy basic sites */
|
|
@@ -3556,8 +3676,8 @@ export declare type OrganizationUsageSites = {
|
|
|
3556
3676
|
basic: number;
|
|
3557
3677
|
/** Count of all premium sites */
|
|
3558
3678
|
premium: number;
|
|
3559
|
-
/** Count of all
|
|
3560
|
-
|
|
3679
|
+
/** Count of all ultimate sites */
|
|
3680
|
+
ultimate: number;
|
|
3561
3681
|
};
|
|
3562
3682
|
/** Team members usage metrics of an organization */
|
|
3563
3683
|
export interface OrganizationUsageTeams {
|
|
@@ -3613,8 +3733,8 @@ export interface OrganizationUsage {
|
|
|
3613
3733
|
* Optional title describing the capture
|
|
3614
3734
|
* @maxLength 100
|
|
3615
3735
|
*/
|
|
3616
|
-
export
|
|
3617
|
-
export
|
|
3736
|
+
export type CaptureTitle = string;
|
|
3737
|
+
export type CaptureContext = 'thread' | 'walkthrough' | 'document';
|
|
3618
3738
|
export interface Capture {
|
|
3619
3739
|
/** Unique identifier for the capture */
|
|
3620
3740
|
id: string;
|
|
@@ -3679,12 +3799,12 @@ export interface BaseCaptureEvent {
|
|
|
3679
3799
|
name: string;
|
|
3680
3800
|
};
|
|
3681
3801
|
}
|
|
3682
|
-
export
|
|
3802
|
+
export type CaptureTerminalCommandEvent = BaseCaptureEvent & {
|
|
3683
3803
|
type: 'terminal.command';
|
|
3684
3804
|
command: string;
|
|
3685
3805
|
stdout: string;
|
|
3686
3806
|
};
|
|
3687
|
-
export
|
|
3807
|
+
export type CaptureSpeechEvent = BaseCaptureEvent & {
|
|
3688
3808
|
type: 'speech';
|
|
3689
3809
|
} & ({
|
|
3690
3810
|
/** WAV audio file, encoded as base64 */
|
|
@@ -3693,27 +3813,27 @@ export declare type CaptureSpeechEvent = BaseCaptureEvent & {
|
|
|
3693
3813
|
/** Transcript of the speech */
|
|
3694
3814
|
transcript: string;
|
|
3695
3815
|
});
|
|
3696
|
-
export
|
|
3816
|
+
export type CaptureThreadMessageEvent = BaseCaptureEvent & {
|
|
3697
3817
|
type: 'thread.message';
|
|
3698
3818
|
isFirst?: boolean;
|
|
3699
3819
|
text: string;
|
|
3700
3820
|
};
|
|
3701
|
-
export
|
|
3821
|
+
export type CaptureFileAddedEvent = BaseCaptureEvent & {
|
|
3702
3822
|
type: 'file.added';
|
|
3703
3823
|
filename: string;
|
|
3704
3824
|
fileSnapshot: string;
|
|
3705
3825
|
};
|
|
3706
|
-
export
|
|
3826
|
+
export type CaptureFileChangedEvent = BaseCaptureEvent & {
|
|
3707
3827
|
type: 'file.changed';
|
|
3708
3828
|
filename: string;
|
|
3709
3829
|
fileDiff: string;
|
|
3710
3830
|
};
|
|
3711
|
-
export
|
|
3831
|
+
export type CaptureFileRemovedEvent = BaseCaptureEvent & {
|
|
3712
3832
|
type: 'file.removed';
|
|
3713
3833
|
filename: string;
|
|
3714
3834
|
fileSnapshot: string;
|
|
3715
3835
|
};
|
|
3716
|
-
export
|
|
3836
|
+
export type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
|
|
3717
3837
|
export interface UpdateSnippetSchema {
|
|
3718
3838
|
/** A new title for the snippet. */
|
|
3719
3839
|
title?: string;
|
|
@@ -3722,7 +3842,7 @@ export interface UpdateSnippetSchema {
|
|
|
3722
3842
|
export declare enum SiteType {
|
|
3723
3843
|
Basic = "basic",
|
|
3724
3844
|
Premium = "premium",
|
|
3725
|
-
|
|
3845
|
+
Ultimate = "ultimate",
|
|
3726
3846
|
LegacyBasic = "legacy-basic",
|
|
3727
3847
|
LegacyPremium = "legacy-premium"
|
|
3728
3848
|
}
|
|
@@ -3731,18 +3851,18 @@ export declare enum SiteType {
|
|
|
3731
3851
|
* @minLength 2
|
|
3732
3852
|
* @maxLength 128
|
|
3733
3853
|
*/
|
|
3734
|
-
export
|
|
3854
|
+
export type SiteTitle = string;
|
|
3735
3855
|
/**
|
|
3736
3856
|
* Custom hostname for the site, for e.g. docs.mycompany.com
|
|
3737
3857
|
* @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
|
|
3738
3858
|
*/
|
|
3739
|
-
export
|
|
3859
|
+
export type SiteHostname = string;
|
|
3740
3860
|
/**
|
|
3741
3861
|
* Basename for the site. For e.g. api
|
|
3742
3862
|
* @minLength 1
|
|
3743
3863
|
* @maxLength 100
|
|
3744
3864
|
*/
|
|
3745
|
-
export
|
|
3865
|
+
export type SiteBasename = string;
|
|
3746
3866
|
/**
|
|
3747
3867
|
* The visibility setting of the site determines the audience of the site.
|
|
3748
3868
|
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
@@ -3761,7 +3881,7 @@ export declare enum SiteAdsTopic {
|
|
|
3761
3881
|
Webdev = "webdev",
|
|
3762
3882
|
Crypto = "crypto"
|
|
3763
3883
|
}
|
|
3764
|
-
export
|
|
3884
|
+
export type SiteAds = {
|
|
3765
3885
|
status: 'pending';
|
|
3766
3886
|
/** True if the user can submit the site for review. */
|
|
3767
3887
|
submittable: boolean;
|
|
@@ -3824,7 +3944,7 @@ export interface Site {
|
|
|
3824
3944
|
};
|
|
3825
3945
|
}
|
|
3826
3946
|
/** A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request. */
|
|
3827
|
-
export
|
|
3947
|
+
export type BillingOperationPreviewResponse = {
|
|
3828
3948
|
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
3829
3949
|
type: 'go-ahead';
|
|
3830
3950
|
} | {
|
|
@@ -3844,7 +3964,70 @@ export declare type BillingOperationPreviewResponse = {
|
|
|
3844
3964
|
plan: BillingProduct;
|
|
3845
3965
|
invoice?: BillingInvoicePreview;
|
|
3846
3966
|
};
|
|
3847
|
-
|
|
3967
|
+
/**
|
|
3968
|
+
* Title of the site section
|
|
3969
|
+
* @minLength 2
|
|
3970
|
+
* @maxLength 128
|
|
3971
|
+
*/
|
|
3972
|
+
export type SiteSectionTitle = string;
|
|
3973
|
+
/**
|
|
3974
|
+
* Path to the section on the site
|
|
3975
|
+
* @minLength 1
|
|
3976
|
+
* @maxLength 100
|
|
3977
|
+
*/
|
|
3978
|
+
export type SiteSectionPath = string;
|
|
3979
|
+
/**
|
|
3980
|
+
* Path to the space on the site
|
|
3981
|
+
* @minLength 1
|
|
3982
|
+
* @maxLength 100
|
|
3983
|
+
*/
|
|
3984
|
+
export type SiteSpacePath = string;
|
|
3985
|
+
export interface SiteSpace {
|
|
3986
|
+
/** The object type, which is always "site-space" */
|
|
3987
|
+
object?: 'site-space';
|
|
3988
|
+
/** Unique identifier of the site-space */
|
|
3989
|
+
id: string;
|
|
3990
|
+
/** Path to the space on the site */
|
|
3991
|
+
path: SiteSpacePath;
|
|
3992
|
+
/** ID of the section the space belongs to in the site */
|
|
3993
|
+
section?: string;
|
|
3994
|
+
space: Space;
|
|
3995
|
+
title: string;
|
|
3996
|
+
/** Whether this is the default space for the site */
|
|
3997
|
+
default?: boolean;
|
|
3998
|
+
/** Whether the space has advanced customization feature enabled */
|
|
3999
|
+
hasAdvancedCustomizationFeature?: boolean;
|
|
4000
|
+
/** URLs associated with the object */
|
|
4001
|
+
urls: {
|
|
4002
|
+
/**
|
|
4003
|
+
* URL of the published version of the site-space. Only defined when site is published.
|
|
4004
|
+
* @format uri
|
|
4005
|
+
*/
|
|
4006
|
+
published?: string;
|
|
4007
|
+
};
|
|
4008
|
+
}
|
|
4009
|
+
export interface SiteSection {
|
|
4010
|
+
/** The object type, which is always "site-section" */
|
|
4011
|
+
object?: 'site-section';
|
|
4012
|
+
/** Unique identifier of the site section */
|
|
4013
|
+
id: string;
|
|
4014
|
+
/** Title of the site section */
|
|
4015
|
+
title: SiteSectionTitle;
|
|
4016
|
+
/** Whether this is the default section for the site */
|
|
4017
|
+
default?: boolean;
|
|
4018
|
+
/** Path to the section on the site */
|
|
4019
|
+
path: SiteSectionPath;
|
|
4020
|
+
siteSpaces: SiteSpace[];
|
|
4021
|
+
/** URLs associated with the object */
|
|
4022
|
+
urls: {
|
|
4023
|
+
/**
|
|
4024
|
+
* URL of the published version of the site section. Only defined when site is published.
|
|
4025
|
+
* @format uri
|
|
4026
|
+
*/
|
|
4027
|
+
published?: string;
|
|
4028
|
+
};
|
|
4029
|
+
}
|
|
4030
|
+
export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
3848
4031
|
/** Type of Object, always equals to "publishing-auth" */
|
|
3849
4032
|
object: 'publishing-auth';
|
|
3850
4033
|
/** Private key used to sign JWT tokens. */
|
|
@@ -3860,7 +4043,7 @@ export declare type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuth
|
|
|
3860
4043
|
*/
|
|
3861
4044
|
integration?: string;
|
|
3862
4045
|
};
|
|
3863
|
-
export
|
|
4046
|
+
export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
3864
4047
|
/**
|
|
3865
4048
|
* A fallback URL that will be used if authentication fails.
|
|
3866
4049
|
* @format uri
|
|
@@ -3955,122 +4138,6 @@ export interface SiteIntegrationScript {
|
|
|
3955
4138
|
/** If true, the script will potentially load use cookies and visitors should be aware. */
|
|
3956
4139
|
cookies: boolean;
|
|
3957
4140
|
}
|
|
3958
|
-
/**
|
|
3959
|
-
* Path to the space on the site
|
|
3960
|
-
* @minLength 1
|
|
3961
|
-
* @maxLength 100
|
|
3962
|
-
*/
|
|
3963
|
-
export declare type SiteSpacePath = string;
|
|
3964
|
-
export interface SiteSpace {
|
|
3965
|
-
/** The object type, which is always "site-space" */
|
|
3966
|
-
object?: 'site-space';
|
|
3967
|
-
/** Unique identifier of the site-space */
|
|
3968
|
-
id: string;
|
|
3969
|
-
/** Path to the space on the site */
|
|
3970
|
-
path: SiteSpacePath;
|
|
3971
|
-
space: Space;
|
|
3972
|
-
title: string;
|
|
3973
|
-
/** Whether this is the default space for the site */
|
|
3974
|
-
default?: boolean;
|
|
3975
|
-
/** Whether the space has advanced customization feature enabled */
|
|
3976
|
-
hasAdvancedCustomizationFeature?: boolean;
|
|
3977
|
-
/** URLs associated with the object */
|
|
3978
|
-
urls: {
|
|
3979
|
-
/**
|
|
3980
|
-
* URL of the published version of the site-space. Only defined when site is published.
|
|
3981
|
-
* @format uri
|
|
3982
|
-
*/
|
|
3983
|
-
published?: string;
|
|
3984
|
-
};
|
|
3985
|
-
}
|
|
3986
|
-
export interface SiteSpaceCustomizationOverrides {
|
|
3987
|
-
/** Title to use for the published site variant. If not defined, it'll fallback to the content title. */
|
|
3988
|
-
title?: SiteTitle;
|
|
3989
|
-
styling?: {
|
|
3990
|
-
/** The primary color used for links and UI text. Set to null to reset the override. */
|
|
3991
|
-
primaryColor?: CustomizationThemedColor | null;
|
|
3992
|
-
/** The style of the corners to use. Set to null to reset the override. */
|
|
3993
|
-
corners?: CustomizationCorners | null;
|
|
3994
|
-
/** The font family to use for the content. Set to null to reset the override. */
|
|
3995
|
-
font?: CustomizationFont | null;
|
|
3996
|
-
/** The icons style to use for the content. Set to null to reset the override. */
|
|
3997
|
-
icons?: CustomizationIconsStyle | null;
|
|
3998
|
-
/** The style of background to use. Set to null to reset the override. */
|
|
3999
|
-
background?: CustomizationBackground | null;
|
|
4000
|
-
};
|
|
4001
|
-
internationalization?: {
|
|
4002
|
-
/** The locale to use for the non-custom elements of the UI. Set to null to reset the override. */
|
|
4003
|
-
locale: CustomizationLocale | null;
|
|
4004
|
-
};
|
|
4005
|
-
/** The favicon to use. Set to null to reset the override. */
|
|
4006
|
-
favicon?: {
|
|
4007
|
-
icon: CustomizationThemedURL;
|
|
4008
|
-
} | {
|
|
4009
|
-
/** Unicode codepoint or character of the emoji */
|
|
4010
|
-
emoji: Emoji;
|
|
4011
|
-
} | object | null;
|
|
4012
|
-
header?: {
|
|
4013
|
-
/** The theme preset to use. Set to null to reset the override. */
|
|
4014
|
-
preset?: CustomizationHeaderPreset | null;
|
|
4015
|
-
/** The header logo to use. Set to null to reset the override. */
|
|
4016
|
-
logo?: CustomizationThemedURL | null;
|
|
4017
|
-
/** The background color used in the header. Set to null to reset the override. */
|
|
4018
|
-
backgroundColor?: CustomizationThemedColor | null;
|
|
4019
|
-
/** The color used by the links in the header. Set to null to reset the override. */
|
|
4020
|
-
linkColor?: CustomizationThemedColor | null;
|
|
4021
|
-
/** The links that are displayed in the header. Set to null to reset the override. */
|
|
4022
|
-
links?: CustomizationHeaderLink[] | null;
|
|
4023
|
-
};
|
|
4024
|
-
footer?: {
|
|
4025
|
-
/** The logo displayed in the footer. Set to null to reset the override. */
|
|
4026
|
-
logo?: CustomizationThemedURL | null;
|
|
4027
|
-
/** The links groups that are displayed in the footer. Set to null to reset the override. */
|
|
4028
|
-
groups?: CustomizationFooterGroup[] | null;
|
|
4029
|
-
/**
|
|
4030
|
-
* The copyright text that is displayed in the footer. Set to null to reset the override.
|
|
4031
|
-
* @maxLength 300
|
|
4032
|
-
*/
|
|
4033
|
-
copyright?: string | null;
|
|
4034
|
-
};
|
|
4035
|
-
themes?: {
|
|
4036
|
-
/** The theme mode default value. Set to null to reset the override. */
|
|
4037
|
-
default?: CustomizationThemeMode | null;
|
|
4038
|
-
/** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
|
|
4039
|
-
toggeable?: boolean | null;
|
|
4040
|
-
};
|
|
4041
|
-
pdf?: {
|
|
4042
|
-
/** If true, PDF export is enabled for the published site. Set to null to reset the override. */
|
|
4043
|
-
enabled: boolean | null;
|
|
4044
|
-
};
|
|
4045
|
-
feedback?: {
|
|
4046
|
-
/** If true, feedback gathering is enabled. Set to null to reset the override. */
|
|
4047
|
-
enabled: boolean | null;
|
|
4048
|
-
};
|
|
4049
|
-
aiSearch?: {
|
|
4050
|
-
/** If true, AI search is enabled. Set to null to reset the override. */
|
|
4051
|
-
enabled: boolean | null;
|
|
4052
|
-
};
|
|
4053
|
-
git?: {
|
|
4054
|
-
/** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override. */
|
|
4055
|
-
showEditLink: boolean | null;
|
|
4056
|
-
};
|
|
4057
|
-
pagination?: {
|
|
4058
|
-
/** Whether the pagination navigation should be displayed on pages. Set to null to reset the override. */
|
|
4059
|
-
enabled: boolean | null;
|
|
4060
|
-
};
|
|
4061
|
-
trademark?: {
|
|
4062
|
-
/** Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override. */
|
|
4063
|
-
enabled: boolean | null;
|
|
4064
|
-
};
|
|
4065
|
-
privacyPolicy?: {
|
|
4066
|
-
/** The custom link to the privacy policy. Set to null to reset the override. */
|
|
4067
|
-
url?: URL | null;
|
|
4068
|
-
};
|
|
4069
|
-
socialPreview?: {
|
|
4070
|
-
/** The URL for the social preview image. Set to null to reset the override. */
|
|
4071
|
-
url?: URL | null;
|
|
4072
|
-
};
|
|
4073
|
-
}
|
|
4074
4141
|
export interface SiteSpacePointer {
|
|
4075
4142
|
type: 'site-space';
|
|
4076
4143
|
/** Unique identifier for the site space */
|
|
@@ -4155,7 +4222,7 @@ export declare enum CustomHostnameErrorStatus {
|
|
|
4155
4222
|
InvalidDomain = "invalid_domain",
|
|
4156
4223
|
InternalError = "internal_error"
|
|
4157
4224
|
}
|
|
4158
|
-
export
|
|
4225
|
+
export type CustomHostnameStatus = CustomHostnameDnsStatus | CustomHostnameSslStatus | CustomHostnameErrorStatus;
|
|
4159
4226
|
export interface CustomHostname {
|
|
4160
4227
|
object: 'custom-hostname';
|
|
4161
4228
|
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
@@ -4289,7 +4356,7 @@ export interface UserImpersonationInfo {
|
|
|
4289
4356
|
impersonatorId: string;
|
|
4290
4357
|
}
|
|
4291
4358
|
/** The info returned when impersonating a GitBook User. */
|
|
4292
|
-
export
|
|
4359
|
+
export type UserImpersonation = UserBackOfficeInfo & {
|
|
4293
4360
|
/** The GitBook User impersonation info. */
|
|
4294
4361
|
impersonation: UserImpersonationInfo;
|
|
4295
4362
|
};
|
|
@@ -4339,11 +4406,11 @@ export declare enum SpaceBlockReason {
|
|
|
4339
4406
|
SOCIAL_ENGINEERING = "SOCIAL_ENGINEERING",
|
|
4340
4407
|
UNWANTED_SOFTWARE = "UNWANTED_SOFTWARE"
|
|
4341
4408
|
}
|
|
4342
|
-
export
|
|
4409
|
+
export type BackOfficeSite = Site & {
|
|
4343
4410
|
/** ID of the organization owning this site */
|
|
4344
4411
|
organization: string;
|
|
4345
4412
|
};
|
|
4346
|
-
export
|
|
4413
|
+
export type PublishedSiteContentLookup = {
|
|
4347
4414
|
/** Type of target for the redirect */
|
|
4348
4415
|
target: 'application' | 'content' | 'external';
|
|
4349
4416
|
redirect: URL;
|
|
@@ -4368,6 +4435,8 @@ export declare type PublishedSiteContentLookup = {
|
|
|
4368
4435
|
organization: string;
|
|
4369
4436
|
/** Share link key of the site in case the site was published with share-links. */
|
|
4370
4437
|
shareKey?: string;
|
|
4438
|
+
/** Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments. */
|
|
4439
|
+
complete: boolean;
|
|
4371
4440
|
};
|
|
4372
4441
|
export interface UpdateContentPublishingAuth {
|
|
4373
4442
|
/**
|
|
@@ -4396,7 +4465,65 @@ export interface ContentPublishingAuth {
|
|
|
4396
4465
|
*/
|
|
4397
4466
|
fallbackURL?: string;
|
|
4398
4467
|
}
|
|
4399
|
-
export
|
|
4468
|
+
export 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 | DocumentBlockSyncedBlock;
|
|
4469
|
+
export type InputPageBase = {
|
|
4470
|
+
/**
|
|
4471
|
+
* Optional unique identifier for the page.
|
|
4472
|
+
* It can be used to reference pages in document links.
|
|
4473
|
+
*/
|
|
4474
|
+
id?: string;
|
|
4475
|
+
/** @minLength 1 */
|
|
4476
|
+
title: string;
|
|
4477
|
+
} & ({
|
|
4478
|
+
/** Emoji of the page. */
|
|
4479
|
+
emoji: Emoji;
|
|
4480
|
+
} | {
|
|
4481
|
+
/** Icon of the page. */
|
|
4482
|
+
icon?: Icon;
|
|
4483
|
+
});
|
|
4484
|
+
export type InputPageDocument = InputPageBase & {
|
|
4485
|
+
type: 'document';
|
|
4486
|
+
/**
|
|
4487
|
+
* @minLength 0
|
|
4488
|
+
* @maxLength 300
|
|
4489
|
+
*/
|
|
4490
|
+
description?: string;
|
|
4491
|
+
/** Page's slug in its direct parent */
|
|
4492
|
+
slug?: string;
|
|
4493
|
+
pages?: (InputPageDocument | InputPageLink | InputPageComputed)[];
|
|
4494
|
+
/** Parameters for a computed content */
|
|
4495
|
+
computed?: ComputedContentSource;
|
|
4496
|
+
};
|
|
4497
|
+
export type InputPageLink = InputPageBase & {
|
|
4498
|
+
type: 'link';
|
|
4499
|
+
/** A relative reference to content in GitBook. */
|
|
4500
|
+
target: ContentRef;
|
|
4501
|
+
};
|
|
4502
|
+
export type InputPageComputed = InputPageBase & {
|
|
4503
|
+
type: 'computed';
|
|
4504
|
+
/** Parameters for a computed content */
|
|
4505
|
+
computed: ComputedContentSource;
|
|
4506
|
+
};
|
|
4507
|
+
export type InputPageGroup = InputPageBase & {
|
|
4508
|
+
type: 'group';
|
|
4509
|
+
/** Page's slug in its direct parent */
|
|
4510
|
+
slug?: string;
|
|
4511
|
+
/** @minLength 1 */
|
|
4512
|
+
pages: (InputPageDocument | InputPageLink | InputPageComputed)[];
|
|
4513
|
+
};
|
|
4514
|
+
export type InputPage = InputPageDocument | InputPageLink | InputPageComputed | InputPageGroup;
|
|
4515
|
+
export interface InputFile {
|
|
4516
|
+
id?: string;
|
|
4517
|
+
name: string;
|
|
4518
|
+
contentType: string;
|
|
4519
|
+
downloadURL: string;
|
|
4520
|
+
size: number;
|
|
4521
|
+
/** For images, it contains the dimensions of it. */
|
|
4522
|
+
dimensions?: {
|
|
4523
|
+
width: number;
|
|
4524
|
+
height: number;
|
|
4525
|
+
};
|
|
4526
|
+
}
|
|
4400
4527
|
/** The type of semantic change. */
|
|
4401
4528
|
export declare enum RevisionSemanticChangeType {
|
|
4402
4529
|
PageCreated = "page_created",
|
|
@@ -4454,6 +4581,15 @@ export interface IntegrationEnvironment {
|
|
|
4454
4581
|
installation?: string;
|
|
4455
4582
|
};
|
|
4456
4583
|
}
|
|
4584
|
+
/** Response expected for an event of type `content_compute_document`. */
|
|
4585
|
+
export interface ContentComputeDocumentEventResponse {
|
|
4586
|
+
document: Document;
|
|
4587
|
+
}
|
|
4588
|
+
/** Response expected for an event of type `content_compute_pages`. */
|
|
4589
|
+
export interface ContentComputeRevisionEventResponse {
|
|
4590
|
+
pages?: InputPage[];
|
|
4591
|
+
files?: InputFile[];
|
|
4592
|
+
}
|
|
4457
4593
|
export declare enum BillingTrialStatus {
|
|
4458
4594
|
Notapplicable = "notapplicable",
|
|
4459
4595
|
None = "none",
|
|
@@ -4467,7 +4603,7 @@ export declare enum APIIntegrationScope {
|
|
|
4467
4603
|
IntegrationInstallationRead = "integration:installation:read",
|
|
4468
4604
|
IntegrationInstallationUpdate = "integration:installation:update"
|
|
4469
4605
|
}
|
|
4470
|
-
export
|
|
4606
|
+
export type APIScope = IntegrationScope | APIIntegrationScope;
|
|
4471
4607
|
/** Common properties for all Content API tokens. */
|
|
4472
4608
|
export interface ContentAPIBaseToken {
|
|
4473
4609
|
/** ID of the organization that owns the content. A content token is always scoped to spaces from the same organization. */
|
|
@@ -4477,17 +4613,17 @@ export interface ContentAPIBaseToken {
|
|
|
4477
4613
|
/** Multiplier for the rate limit applied to the token. */
|
|
4478
4614
|
rateLimitMultiplier?: number;
|
|
4479
4615
|
}
|
|
4480
|
-
export
|
|
4616
|
+
export type SpaceAPIToken = ContentAPIBaseToken & {
|
|
4481
4617
|
kind: 'space';
|
|
4482
4618
|
/** ID of the space that the token is allowed to access. */
|
|
4483
4619
|
space: string;
|
|
4484
4620
|
};
|
|
4485
|
-
export
|
|
4621
|
+
export type CollectionAPIToken = ContentAPIBaseToken & {
|
|
4486
4622
|
kind: 'collection';
|
|
4487
4623
|
/** ID of the collection that the token is allowed to access. */
|
|
4488
4624
|
collection: string;
|
|
4489
4625
|
};
|
|
4490
|
-
export
|
|
4626
|
+
export type SiteAPIToken = ContentAPIBaseToken & {
|
|
4491
4627
|
kind: 'site';
|
|
4492
4628
|
/** ID of the site that the token is allowed to access. */
|
|
4493
4629
|
site: string;
|
|
@@ -4497,7 +4633,7 @@ export declare type SiteAPIToken = ContentAPIBaseToken & {
|
|
|
4497
4633
|
space: string;
|
|
4498
4634
|
};
|
|
4499
4635
|
/** Content properties stored in a Content API token. */
|
|
4500
|
-
export
|
|
4636
|
+
export type ContentAPITokenPayload = SpaceAPIToken | CollectionAPIToken | SiteAPIToken;
|
|
4501
4637
|
export interface SpaceInfoChannel {
|
|
4502
4638
|
channel: 'space';
|
|
4503
4639
|
space: string;
|
|
@@ -4747,12 +4883,22 @@ export interface SiteShareLinkChannel {
|
|
|
4747
4883
|
site: string;
|
|
4748
4884
|
siteShareLink: string;
|
|
4749
4885
|
}
|
|
4886
|
+
/** Subscription channel for changes in site sections in an organization. */
|
|
4887
|
+
export interface SiteSectionsChannel {
|
|
4888
|
+
channel: 'site-sections';
|
|
4889
|
+
site: string;
|
|
4890
|
+
}
|
|
4891
|
+
export interface SiteSectionChannel {
|
|
4892
|
+
channel: 'site-section';
|
|
4893
|
+
site: string;
|
|
4894
|
+
siteSection: string;
|
|
4895
|
+
}
|
|
4750
4896
|
export interface CustomHostnameChannel {
|
|
4751
4897
|
channel: 'custom-hostname';
|
|
4752
4898
|
customHostname: string;
|
|
4753
4899
|
}
|
|
4754
4900
|
/** Channel to subscribe to for API updates. */
|
|
4755
|
-
export
|
|
4901
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceBrokenLinksChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestBrokenLinksChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | OrganizationSyncedBlocksChannel | OrganizationSyncedBlockChannel | CommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionsChannel | SiteSectionChannel | CustomHostnameChannel;
|
|
4756
4902
|
/** The status of ads on the site */
|
|
4757
4903
|
export declare enum SiteAdsStatus {
|
|
4758
4904
|
Pending = "pending",
|
|
@@ -4772,32 +4918,32 @@ export interface Seat {
|
|
|
4772
4918
|
/** @format date-time */
|
|
4773
4919
|
updatedAt: string;
|
|
4774
4920
|
}
|
|
4775
|
-
export
|
|
4776
|
-
export
|
|
4777
|
-
export
|
|
4778
|
-
export
|
|
4779
|
-
export
|
|
4780
|
-
export
|
|
4781
|
-
export
|
|
4782
|
-
export
|
|
4783
|
-
export
|
|
4784
|
-
export
|
|
4785
|
-
export
|
|
4786
|
-
export
|
|
4787
|
-
export
|
|
4788
|
-
export
|
|
4789
|
-
export
|
|
4790
|
-
export
|
|
4791
|
-
export
|
|
4792
|
-
export
|
|
4793
|
-
export
|
|
4794
|
-
export
|
|
4795
|
-
export
|
|
4796
|
-
export
|
|
4797
|
-
export
|
|
4921
|
+
export type RequestSpaceTrackPageView = SpaceTrackPageView;
|
|
4922
|
+
export type RequestSiteTrackPageView = SiteTrackPageView;
|
|
4923
|
+
export type RequestPublishIntegration = PublishIntegration;
|
|
4924
|
+
export type RequestUpdateIntegrationInstallation = UpdateIntegrationInstallation;
|
|
4925
|
+
export type RequestUpdateIntegrationSpaceInstallation = UpdateIntegrationSpaceInstallation;
|
|
4926
|
+
export type RequestUpdateIntegrationSiteInstallation = UpdateIntegrationSiteInstallation;
|
|
4927
|
+
export type RequestUpgradeOrganizationBilling = UpgradeOrganizationBilling;
|
|
4928
|
+
export type RequestInviteUsersToOrganization = InviteUsersToOrganization;
|
|
4929
|
+
export type RequestImportGitRepository = ImportGitRepository;
|
|
4930
|
+
export type RequestSyncGitRepository = SyncGitRepository;
|
|
4931
|
+
export type RequestExportToGitRepository = ExportToGitRepository;
|
|
4932
|
+
export type RequestImportContent = ImportContent;
|
|
4933
|
+
export type RequestCreateSpace = CreateSpace;
|
|
4934
|
+
export type RequestCreateChangeRequest = CreateChangeRequest;
|
|
4935
|
+
export type RequestRenderIntegrationUI = RenderIntegrationUI;
|
|
4936
|
+
export type RequestUpdateContentPublishingAuth = UpdateContentPublishingAuth;
|
|
4937
|
+
export type RequestCreateOrganization = CreateOrganization;
|
|
4938
|
+
export type RequestUpdateSpaceGitInfo = UpdateSpaceGitInfo;
|
|
4939
|
+
export type RequestPurgeCDNCacheContext = PurgeCDNCacheContext;
|
|
4940
|
+
export type SpaceVisitorAuth = VisitorAuth;
|
|
4941
|
+
export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
|
|
4942
|
+
export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
|
|
4943
|
+
export type UserPermissions = Index;
|
|
4798
4944
|
import { EventIterator } from 'event-iterator';
|
|
4799
|
-
export
|
|
4800
|
-
export
|
|
4945
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
4946
|
+
export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
4801
4947
|
export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
4802
4948
|
/** set parameter to `true` for call `securityWorker` for this request */
|
|
4803
4949
|
secure?: boolean;
|
|
@@ -4816,7 +4962,7 @@ export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
|
4816
4962
|
/** request cancellation token */
|
|
4817
4963
|
cancelToken?: CancelToken;
|
|
4818
4964
|
}
|
|
4819
|
-
export
|
|
4965
|
+
export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
|
|
4820
4966
|
export interface ApiConfig<SecurityDataType = unknown> {
|
|
4821
4967
|
baseUrl?: string;
|
|
4822
4968
|
baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
|
|
@@ -4827,7 +4973,7 @@ export interface HttpResponse<D extends unknown, E extends unknown = unknown> ex
|
|
|
4827
4973
|
data: D;
|
|
4828
4974
|
error: E;
|
|
4829
4975
|
}
|
|
4830
|
-
|
|
4976
|
+
type CancelToken = Symbol | string | number;
|
|
4831
4977
|
export declare enum ContentType {
|
|
4832
4978
|
Json = "application/json",
|
|
4833
4979
|
FormData = "multipart/form-data",
|
|
@@ -4853,7 +4999,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
4853
4999
|
protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
|
|
4854
5000
|
abortRequest: (cancelToken: CancelToken) => void;
|
|
4855
5001
|
request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
|
|
4856
|
-
streamRequest: <T, E>({ path, baseUrl, cancelToken, secure, ...params }: FullRequestParams) => EventIterator<T>;
|
|
5002
|
+
streamRequest: <T, E = any>({ path, baseUrl, cancelToken, secure, ...params }: FullRequestParams) => EventIterator<T>;
|
|
4857
5003
|
}
|
|
4858
5004
|
/**
|
|
4859
5005
|
* @title GitBook API
|
|
@@ -4910,7 +5056,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4910
5056
|
askQueryWithGet: (query: {
|
|
4911
5057
|
query: string;
|
|
4912
5058
|
/** Output format for the content. */
|
|
4913
|
-
format?:
|
|
5059
|
+
format?: "document" | "markdown";
|
|
4914
5060
|
/** Return query details in the result */
|
|
4915
5061
|
details?: boolean;
|
|
4916
5062
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -4927,7 +5073,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4927
5073
|
*/
|
|
4928
5074
|
askQuery: (data: SearchAIQuery, query?: {
|
|
4929
5075
|
/** Output format for the content. */
|
|
4930
|
-
format?:
|
|
5076
|
+
format?: "document" | "markdown";
|
|
4931
5077
|
/** Return query details in the result */
|
|
4932
5078
|
details?: boolean;
|
|
4933
5079
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -5158,7 +5304,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5158
5304
|
askQueryInSpaceWithGet: (spaceId: string, query: {
|
|
5159
5305
|
query: string;
|
|
5160
5306
|
/** Output format for the content. */
|
|
5161
|
-
format?:
|
|
5307
|
+
format?: "document" | "markdown";
|
|
5162
5308
|
/** Return query details in the result */
|
|
5163
5309
|
details?: boolean;
|
|
5164
5310
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -5175,7 +5321,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5175
5321
|
*/
|
|
5176
5322
|
askQueryInSpace: (spaceId: string, data: SearchAIQuery, query?: {
|
|
5177
5323
|
/** Output format for the content. */
|
|
5178
|
-
format?:
|
|
5324
|
+
format?: "document" | "markdown";
|
|
5179
5325
|
/** Return query details in the result */
|
|
5180
5326
|
details?: boolean;
|
|
5181
5327
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -5193,7 +5339,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5193
5339
|
streamAskInSpace: (spaceId: string, query: {
|
|
5194
5340
|
query: string;
|
|
5195
5341
|
/** Output format for the content. */
|
|
5196
|
-
format?:
|
|
5342
|
+
format?: "document" | "markdown";
|
|
5197
5343
|
/** Ensure that the response is never null */
|
|
5198
5344
|
details?: boolean;
|
|
5199
5345
|
}, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
|
|
@@ -5357,6 +5503,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5357
5503
|
* @default true
|
|
5358
5504
|
*/
|
|
5359
5505
|
metadata?: boolean;
|
|
5506
|
+
/**
|
|
5507
|
+
* If `false` is passed, content will not be computed
|
|
5508
|
+
* @default true
|
|
5509
|
+
*/
|
|
5510
|
+
computed?: boolean;
|
|
5360
5511
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
|
|
5361
5512
|
/**
|
|
5362
5513
|
* No description
|
|
@@ -5381,6 +5532,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5381
5532
|
* @default true
|
|
5382
5533
|
*/
|
|
5383
5534
|
metadata?: boolean;
|
|
5535
|
+
/**
|
|
5536
|
+
* If `false` is passed, content will not be computed
|
|
5537
|
+
* @default true
|
|
5538
|
+
*/
|
|
5539
|
+
computed?: boolean;
|
|
5384
5540
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
5385
5541
|
pages: RevisionPage[];
|
|
5386
5542
|
}, Error>>;
|
|
@@ -5406,6 +5562,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5406
5562
|
* @default true
|
|
5407
5563
|
*/
|
|
5408
5564
|
metadata?: boolean;
|
|
5565
|
+
/**
|
|
5566
|
+
* If `false` is passed, content will not be computed
|
|
5567
|
+
* @default true
|
|
5568
|
+
*/
|
|
5569
|
+
computed?: boolean;
|
|
5409
5570
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5410
5571
|
items: RevisionFile[];
|
|
5411
5572
|
}, Error>>;
|
|
@@ -5423,6 +5584,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5423
5584
|
* @default true
|
|
5424
5585
|
*/
|
|
5425
5586
|
metadata?: boolean;
|
|
5587
|
+
/**
|
|
5588
|
+
* If `false` is passed, content will not be computed
|
|
5589
|
+
* @default true
|
|
5590
|
+
*/
|
|
5591
|
+
computed?: boolean;
|
|
5426
5592
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
5427
5593
|
/**
|
|
5428
5594
|
* No description
|
|
@@ -5455,20 +5621,54 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5455
5621
|
*/
|
|
5456
5622
|
getPageById: (spaceId: string, pageId: string, query?: {
|
|
5457
5623
|
/** Output format for the content. */
|
|
5458
|
-
format?:
|
|
5624
|
+
format?: "document" | "markdown";
|
|
5459
5625
|
/**
|
|
5460
5626
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5461
5627
|
* @default true
|
|
5462
5628
|
*/
|
|
5463
5629
|
metadata?: boolean;
|
|
5630
|
+
/**
|
|
5631
|
+
* If `false` is passed, content will not be computed
|
|
5632
|
+
* @default true
|
|
5633
|
+
*/
|
|
5634
|
+
computed?: boolean;
|
|
5464
5635
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
5636
|
+
/**
|
|
5637
|
+
* No description
|
|
5638
|
+
*
|
|
5639
|
+
* @tags spaces, links
|
|
5640
|
+
* @name ListPageLinksInSpace
|
|
5641
|
+
* @summary List all links in a page
|
|
5642
|
+
* @request GET:/spaces/{spaceId}/content/page/{pageId}/links
|
|
5643
|
+
* @secure
|
|
5644
|
+
*/
|
|
5645
|
+
listPageLinksInSpace: (spaceId: string, pageId: string, query?: {
|
|
5646
|
+
/** Identifier of the page results to fetch. */
|
|
5647
|
+
page?: string;
|
|
5648
|
+
/**
|
|
5649
|
+
* The number of results per page
|
|
5650
|
+
* @min 0
|
|
5651
|
+
* @max 1000
|
|
5652
|
+
*/
|
|
5653
|
+
limit?: number;
|
|
5654
|
+
/**
|
|
5655
|
+
* Text to display to represent the reference. Possible values include:
|
|
5656
|
+
* - `ok` - No problems detected for this content reference.
|
|
5657
|
+
* - `broken` - The target does not exist in the revision.
|
|
5658
|
+
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
5659
|
+
*/
|
|
5660
|
+
status?: ContentReferenceStatus;
|
|
5661
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5662
|
+
stats: ContentReferencesStats;
|
|
5663
|
+
items: ContentReferenceUsage[];
|
|
5664
|
+
}, Error>>;
|
|
5465
5665
|
/**
|
|
5466
5666
|
* No description
|
|
5467
5667
|
*
|
|
5468
5668
|
* @tags spaces
|
|
5469
5669
|
* @name ListSpacePageBacklinks
|
|
5470
5670
|
* @summary Get backlink locations for a page existing in a space.
|
|
5471
|
-
* @request GET:/spaces/{spaceId}/content/
|
|
5671
|
+
* @request GET:/spaces/{spaceId}/content/page/{pageId}/backlinks
|
|
5472
5672
|
* @secure
|
|
5473
5673
|
*/
|
|
5474
5674
|
listSpacePageBacklinks: (spaceId: string, pageId: string, query?: {
|
|
@@ -5502,13 +5702,33 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5502
5702
|
*/
|
|
5503
5703
|
getPageByPath: (spaceId: string, pagePath: string, query?: {
|
|
5504
5704
|
/** Output format for the content. */
|
|
5505
|
-
format?:
|
|
5705
|
+
format?: "document" | "markdown";
|
|
5506
5706
|
/**
|
|
5507
5707
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5508
5708
|
* @default true
|
|
5509
5709
|
*/
|
|
5510
5710
|
metadata?: boolean;
|
|
5711
|
+
/**
|
|
5712
|
+
* If `false` is passed, content will not be computed
|
|
5713
|
+
* @default true
|
|
5714
|
+
*/
|
|
5715
|
+
computed?: boolean;
|
|
5511
5716
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
5717
|
+
/**
|
|
5718
|
+
* No description
|
|
5719
|
+
*
|
|
5720
|
+
* @name ComputePageDocument
|
|
5721
|
+
* @summary Get the document for a page in a computed content.
|
|
5722
|
+
* @request POST:/spaces/{spaceId}/content/computed/document
|
|
5723
|
+
* @secure
|
|
5724
|
+
*/
|
|
5725
|
+
computePageDocument: (spaceId: string, data: {
|
|
5726
|
+
/** Parameters for a computed content */
|
|
5727
|
+
source: ComputedContentSource;
|
|
5728
|
+
}, query?: {
|
|
5729
|
+
/** Output format for the content. */
|
|
5730
|
+
format?: "document" | "markdown";
|
|
5731
|
+
}, params?: RequestParams) => Promise<HttpResponse<Document, Error>>;
|
|
5512
5732
|
/**
|
|
5513
5733
|
* No description
|
|
5514
5734
|
*
|
|
@@ -5519,7 +5739,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5519
5739
|
*/
|
|
5520
5740
|
getDocumentById: (spaceId: string, documentId: string, query?: {
|
|
5521
5741
|
/** Version of the schema used for the document. */
|
|
5522
|
-
schema?:
|
|
5742
|
+
schema?: "current" | "next";
|
|
5523
5743
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, Error>>;
|
|
5524
5744
|
/**
|
|
5525
5745
|
* No description
|
|
@@ -5585,7 +5805,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5585
5805
|
updateChangeRequestById: (spaceId: string, changeRequestId: string, data: {
|
|
5586
5806
|
/** Subject of the change request */
|
|
5587
5807
|
subject?: ChangeRequestSubject;
|
|
5588
|
-
status?:
|
|
5808
|
+
status?: "draft" | "open" | "archived";
|
|
5589
5809
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
5590
5810
|
/**
|
|
5591
5811
|
* No description
|
|
@@ -5599,7 +5819,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5599
5819
|
mergeChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
5600
5820
|
/** ID of the resulting revision */
|
|
5601
5821
|
revision: string;
|
|
5602
|
-
result:
|
|
5822
|
+
result: "merge" | "conflicts";
|
|
5603
5823
|
}, Error>>;
|
|
5604
5824
|
/**
|
|
5605
5825
|
* No description
|
|
@@ -5613,7 +5833,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5613
5833
|
updateChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
5614
5834
|
/** ID of the resulting revision */
|
|
5615
5835
|
revision: string;
|
|
5616
|
-
result:
|
|
5836
|
+
result: "update" | "conflicts";
|
|
5617
5837
|
}, Error>>;
|
|
5618
5838
|
/**
|
|
5619
5839
|
* No description
|
|
@@ -5626,7 +5846,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5626
5846
|
*/
|
|
5627
5847
|
getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
|
|
5628
5848
|
/** Output format for the content. */
|
|
5629
|
-
format?:
|
|
5849
|
+
format?: "document" | "markdown";
|
|
5630
5850
|
/** Identifier of the page results to fetch. */
|
|
5631
5851
|
page?: string;
|
|
5632
5852
|
/**
|
|
@@ -5723,7 +5943,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5723
5943
|
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
5724
5944
|
*/
|
|
5725
5945
|
status?: ContentReferenceStatus;
|
|
5726
|
-
brokenContext?:
|
|
5946
|
+
brokenContext?: "change-request" | "space";
|
|
5727
5947
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5728
5948
|
stats: ContentReferencesStats;
|
|
5729
5949
|
items: ContentReferenceUsage[];
|
|
@@ -5756,14 +5976,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5756
5976
|
* An order for the items in the list
|
|
5757
5977
|
* @default "desc"
|
|
5758
5978
|
*/
|
|
5759
|
-
order?:
|
|
5979
|
+
order?: "asc" | "desc";
|
|
5760
5980
|
/** Output format for the content. */
|
|
5761
|
-
format?:
|
|
5981
|
+
format?: "document" | "markdown";
|
|
5762
5982
|
/**
|
|
5763
5983
|
* When provided, only comments with the given status are returned. Defaults to "all".
|
|
5764
5984
|
* @default "all"
|
|
5765
5985
|
*/
|
|
5766
|
-
status?:
|
|
5986
|
+
status?: "all" | "open" | "resolved";
|
|
5767
5987
|
/** The target page of the comment */
|
|
5768
5988
|
targetPage?: string;
|
|
5769
5989
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -5790,7 +6010,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5790
6010
|
*/
|
|
5791
6011
|
getCommentInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, query?: {
|
|
5792
6012
|
/** Output format for the content. */
|
|
5793
|
-
format?:
|
|
6013
|
+
format?: "document" | "markdown";
|
|
5794
6014
|
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
5795
6015
|
/**
|
|
5796
6016
|
* No description
|
|
@@ -5831,7 +6051,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5831
6051
|
*/
|
|
5832
6052
|
limit?: number;
|
|
5833
6053
|
/** Output format for the content. */
|
|
5834
|
-
format?:
|
|
6054
|
+
format?: "document" | "markdown";
|
|
5835
6055
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5836
6056
|
items: CommentReply[];
|
|
5837
6057
|
}, Error>>;
|
|
@@ -5846,7 +6066,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5846
6066
|
*/
|
|
5847
6067
|
postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, data: PostCommentReplySchema, query?: {
|
|
5848
6068
|
/** Output format for the content. */
|
|
5849
|
-
format?:
|
|
6069
|
+
format?: "document" | "markdown";
|
|
5850
6070
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
5851
6071
|
/**
|
|
5852
6072
|
* No description
|
|
@@ -5859,7 +6079,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5859
6079
|
*/
|
|
5860
6080
|
getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, commentReplyId: string, query?: {
|
|
5861
6081
|
/** Output format for the content. */
|
|
5862
|
-
format?:
|
|
6082
|
+
format?: "document" | "markdown";
|
|
5863
6083
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
5864
6084
|
/**
|
|
5865
6085
|
* No description
|
|
@@ -5913,6 +6133,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5913
6133
|
* @default true
|
|
5914
6134
|
*/
|
|
5915
6135
|
metadata?: boolean;
|
|
6136
|
+
/**
|
|
6137
|
+
* If `false` is passed, content will not be computed
|
|
6138
|
+
* @default true
|
|
6139
|
+
*/
|
|
6140
|
+
computed?: boolean;
|
|
5916
6141
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
|
|
5917
6142
|
/**
|
|
5918
6143
|
* No description
|
|
@@ -5937,6 +6162,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5937
6162
|
* @default true
|
|
5938
6163
|
*/
|
|
5939
6164
|
metadata?: boolean;
|
|
6165
|
+
/**
|
|
6166
|
+
* If `false` is passed, content will not be computed
|
|
6167
|
+
* @default true
|
|
6168
|
+
*/
|
|
6169
|
+
computed?: boolean;
|
|
5940
6170
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
5941
6171
|
pages: RevisionPage[];
|
|
5942
6172
|
}, Error>>;
|
|
@@ -5962,6 +6192,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5962
6192
|
* @default true
|
|
5963
6193
|
*/
|
|
5964
6194
|
metadata?: boolean;
|
|
6195
|
+
/**
|
|
6196
|
+
* If `false` is passed, content will not be computed
|
|
6197
|
+
* @default true
|
|
6198
|
+
*/
|
|
6199
|
+
computed?: boolean;
|
|
5965
6200
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5966
6201
|
items: RevisionFile[];
|
|
5967
6202
|
}, Error>>;
|
|
@@ -5979,6 +6214,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5979
6214
|
* @default true
|
|
5980
6215
|
*/
|
|
5981
6216
|
metadata?: boolean;
|
|
6217
|
+
/**
|
|
6218
|
+
* If `false` is passed, content will not be computed
|
|
6219
|
+
* @default true
|
|
6220
|
+
*/
|
|
6221
|
+
computed?: boolean;
|
|
5982
6222
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
5983
6223
|
/**
|
|
5984
6224
|
* No description
|
|
@@ -6011,13 +6251,40 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6011
6251
|
*/
|
|
6012
6252
|
getPageInChangeRequestById: (spaceId: string, changeRequestId: string, pageId: string, query?: {
|
|
6013
6253
|
/** Output format for the content. */
|
|
6014
|
-
format?:
|
|
6254
|
+
format?: "document" | "markdown";
|
|
6015
6255
|
/**
|
|
6016
6256
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
6017
6257
|
* @default true
|
|
6018
6258
|
*/
|
|
6019
6259
|
metadata?: boolean;
|
|
6260
|
+
/**
|
|
6261
|
+
* If `false` is passed, content will not be computed
|
|
6262
|
+
* @default true
|
|
6263
|
+
*/
|
|
6264
|
+
computed?: boolean;
|
|
6020
6265
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
6266
|
+
/**
|
|
6267
|
+
* No description
|
|
6268
|
+
*
|
|
6269
|
+
* @tags spaces
|
|
6270
|
+
* @name ListPageLinksInChangeRequest
|
|
6271
|
+
* @summary List all links in a page inside a change request.
|
|
6272
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links
|
|
6273
|
+
* @secure
|
|
6274
|
+
*/
|
|
6275
|
+
listPageLinksInChangeRequest: (spaceId: string, changeRequestId: string, pageId: string, query?: {
|
|
6276
|
+
/** Identifier of the page results to fetch. */
|
|
6277
|
+
page?: string;
|
|
6278
|
+
/**
|
|
6279
|
+
* The number of results per page
|
|
6280
|
+
* @min 0
|
|
6281
|
+
* @max 1000
|
|
6282
|
+
*/
|
|
6283
|
+
limit?: number;
|
|
6284
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6285
|
+
stats: ContentReferencesStats;
|
|
6286
|
+
items: ContentReferenceUsage[];
|
|
6287
|
+
}, Error>>;
|
|
6021
6288
|
/**
|
|
6022
6289
|
* No description
|
|
6023
6290
|
*
|
|
@@ -6058,12 +6325,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6058
6325
|
*/
|
|
6059
6326
|
getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string, pagePath: string, query?: {
|
|
6060
6327
|
/** Output format for the content. */
|
|
6061
|
-
format?:
|
|
6328
|
+
format?: "document" | "markdown";
|
|
6062
6329
|
/**
|
|
6063
6330
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
6064
6331
|
* @default true
|
|
6065
6332
|
*/
|
|
6066
6333
|
metadata?: boolean;
|
|
6334
|
+
/**
|
|
6335
|
+
* If `false` is passed, content will not be computed
|
|
6336
|
+
* @default true
|
|
6337
|
+
*/
|
|
6338
|
+
computed?: boolean;
|
|
6067
6339
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
6068
6340
|
/**
|
|
6069
6341
|
* No description
|
|
@@ -6080,7 +6352,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6080
6352
|
/** The branch id of the touched content. */
|
|
6081
6353
|
branchId: string;
|
|
6082
6354
|
/** The relation of the touched content to the change request. */
|
|
6083
|
-
relation:
|
|
6355
|
+
relation: "synced-block";
|
|
6084
6356
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
6085
6357
|
/**
|
|
6086
6358
|
* No description
|
|
@@ -6114,6 +6386,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6114
6386
|
* @default true
|
|
6115
6387
|
*/
|
|
6116
6388
|
metadata?: boolean;
|
|
6389
|
+
/**
|
|
6390
|
+
* If `false` is passed, content will not be computed
|
|
6391
|
+
* @default true
|
|
6392
|
+
*/
|
|
6393
|
+
computed?: boolean;
|
|
6117
6394
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
|
|
6118
6395
|
/**
|
|
6119
6396
|
* No description
|
|
@@ -6129,6 +6406,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6129
6406
|
* @default true
|
|
6130
6407
|
*/
|
|
6131
6408
|
metadata?: boolean;
|
|
6409
|
+
/**
|
|
6410
|
+
* If `false` is passed, content will not be computed
|
|
6411
|
+
* @default true
|
|
6412
|
+
*/
|
|
6413
|
+
computed?: boolean;
|
|
6132
6414
|
/**
|
|
6133
6415
|
* Limit the number of changes returned
|
|
6134
6416
|
* @default 10
|
|
@@ -6149,6 +6431,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6149
6431
|
* @default true
|
|
6150
6432
|
*/
|
|
6151
6433
|
metadata?: boolean;
|
|
6434
|
+
/**
|
|
6435
|
+
* If `false` is passed, content will not be computed
|
|
6436
|
+
* @default true
|
|
6437
|
+
*/
|
|
6438
|
+
computed?: boolean;
|
|
6152
6439
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
6153
6440
|
pages: RevisionPage[];
|
|
6154
6441
|
}, Error>>;
|
|
@@ -6174,6 +6461,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6174
6461
|
* @default true
|
|
6175
6462
|
*/
|
|
6176
6463
|
metadata?: boolean;
|
|
6464
|
+
/**
|
|
6465
|
+
* If `false` is passed, content will not be computed
|
|
6466
|
+
* @default true
|
|
6467
|
+
*/
|
|
6468
|
+
computed?: boolean;
|
|
6177
6469
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6178
6470
|
items: RevisionFile[];
|
|
6179
6471
|
}, Error>>;
|
|
@@ -6191,6 +6483,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6191
6483
|
* @default true
|
|
6192
6484
|
*/
|
|
6193
6485
|
metadata?: boolean;
|
|
6486
|
+
/**
|
|
6487
|
+
* If `false` is passed, content will not be computed
|
|
6488
|
+
* @default true
|
|
6489
|
+
*/
|
|
6490
|
+
computed?: boolean;
|
|
6194
6491
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
|
|
6195
6492
|
/**
|
|
6196
6493
|
* No description
|
|
@@ -6202,12 +6499,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6202
6499
|
*/
|
|
6203
6500
|
getPageInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
|
|
6204
6501
|
/** Output format for the content. */
|
|
6205
|
-
format?:
|
|
6502
|
+
format?: "document" | "markdown";
|
|
6206
6503
|
/**
|
|
6207
6504
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
6208
6505
|
* @default true
|
|
6209
6506
|
*/
|
|
6210
6507
|
metadata?: boolean;
|
|
6508
|
+
/**
|
|
6509
|
+
* If `false` is passed, content will not be computed
|
|
6510
|
+
* @default true
|
|
6511
|
+
*/
|
|
6512
|
+
computed?: boolean;
|
|
6211
6513
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
6212
6514
|
/**
|
|
6213
6515
|
* No description
|
|
@@ -6219,12 +6521,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6219
6521
|
*/
|
|
6220
6522
|
getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
|
|
6221
6523
|
/** Output format for the content. */
|
|
6222
|
-
format?:
|
|
6524
|
+
format?: "document" | "markdown";
|
|
6223
6525
|
/**
|
|
6224
6526
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
6225
6527
|
* @default true
|
|
6226
6528
|
*/
|
|
6227
6529
|
metadata?: boolean;
|
|
6530
|
+
/**
|
|
6531
|
+
* If `false` is passed, content will not be computed
|
|
6532
|
+
* @default true
|
|
6533
|
+
*/
|
|
6534
|
+
computed?: boolean;
|
|
6228
6535
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPageDocument | RevisionPageGroup, Error>>;
|
|
6229
6536
|
/**
|
|
6230
6537
|
* No description
|
|
@@ -6248,14 +6555,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6248
6555
|
* An order for the items in the list
|
|
6249
6556
|
* @default "desc"
|
|
6250
6557
|
*/
|
|
6251
|
-
order?:
|
|
6558
|
+
order?: "asc" | "desc";
|
|
6252
6559
|
/**
|
|
6253
6560
|
* When provided, only comments with the given status are returned. Defaults to "all".
|
|
6254
6561
|
* @default "all"
|
|
6255
6562
|
*/
|
|
6256
|
-
status?:
|
|
6563
|
+
status?: "all" | "open" | "resolved";
|
|
6257
6564
|
/** Output format for the content. */
|
|
6258
|
-
format?:
|
|
6565
|
+
format?: "document" | "markdown";
|
|
6259
6566
|
/** The target page of the comment */
|
|
6260
6567
|
targetPage?: string;
|
|
6261
6568
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -6282,7 +6589,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6282
6589
|
*/
|
|
6283
6590
|
getCommentInSpace: (spaceId: string, commentId: string, query?: {
|
|
6284
6591
|
/** Output format for the content. */
|
|
6285
|
-
format?:
|
|
6592
|
+
format?: "document" | "markdown";
|
|
6286
6593
|
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
6287
6594
|
/**
|
|
6288
6595
|
* No description
|
|
@@ -6323,7 +6630,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6323
6630
|
*/
|
|
6324
6631
|
limit?: number;
|
|
6325
6632
|
/** Output format for the content. */
|
|
6326
|
-
format?:
|
|
6633
|
+
format?: "document" | "markdown";
|
|
6327
6634
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6328
6635
|
items: CommentReply[];
|
|
6329
6636
|
}, Error>>;
|
|
@@ -6348,7 +6655,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6348
6655
|
*/
|
|
6349
6656
|
getCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, query?: {
|
|
6350
6657
|
/** Output format for the content. */
|
|
6351
|
-
format?:
|
|
6658
|
+
format?: "document" | "markdown";
|
|
6352
6659
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
6353
6660
|
/**
|
|
6354
6661
|
* No description
|
|
@@ -6574,7 +6881,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6574
6881
|
*
|
|
6575
6882
|
* @tags spaces, links
|
|
6576
6883
|
* @name ListSpaceLinks
|
|
6577
|
-
* @summary Get all links in
|
|
6884
|
+
* @summary Get all links in a space including their status and location where they appear.
|
|
6578
6885
|
* @request GET:/spaces/{spaceId}/links
|
|
6579
6886
|
* @secure
|
|
6580
6887
|
*/
|
|
@@ -6860,6 +7167,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6860
7167
|
* @pattern ^[a-zA-Z0-9-_.]+$
|
|
6861
7168
|
*/
|
|
6862
7169
|
blockDomain?: string;
|
|
7170
|
+
/** If true, returns only integrations with blocks. If false, returns only integrations without blocks. */
|
|
7171
|
+
blocks?: boolean;
|
|
6863
7172
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6864
7173
|
items: Integration[];
|
|
6865
7174
|
}, Error>>;
|
|
@@ -7011,18 +7320,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7011
7320
|
* No description
|
|
7012
7321
|
*
|
|
7013
7322
|
* @tags integrations
|
|
7014
|
-
* @name
|
|
7015
|
-
* @summary Update
|
|
7016
|
-
* @request PUT:/integrations/{integrationName}/
|
|
7323
|
+
* @name SetIntegrationDevelopmentMode
|
|
7324
|
+
* @summary Update an integration to be in development mode.
|
|
7325
|
+
* @request PUT:/integrations/{integrationName}/dev
|
|
7017
7326
|
* @secure
|
|
7018
7327
|
*/
|
|
7019
|
-
|
|
7328
|
+
setIntegrationDevelopmentMode: (integrationName: string, data: {
|
|
7020
7329
|
/**
|
|
7021
7330
|
* URL of the tunnel to dispatch integration events to
|
|
7022
7331
|
* @minLength 1
|
|
7023
7332
|
* @maxLength 256
|
|
7024
7333
|
*/
|
|
7025
7334
|
tunnelUrl: string;
|
|
7335
|
+
/**
|
|
7336
|
+
* If set to true, all requests will be forwarded to the tunnel, not just from the owning organization.
|
|
7337
|
+
* @default false
|
|
7338
|
+
*/
|
|
7339
|
+
all?: boolean;
|
|
7026
7340
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
7027
7341
|
error: {
|
|
7028
7342
|
/** @format int32 */
|
|
@@ -7034,18 +7348,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7034
7348
|
* No description
|
|
7035
7349
|
*
|
|
7036
7350
|
* @tags integrations
|
|
7037
|
-
* @name
|
|
7038
|
-
* @summary
|
|
7039
|
-
* @request DELETE:/integrations/{integrationName}/
|
|
7351
|
+
* @name DisableIntegrationDevelopmentMode
|
|
7352
|
+
* @summary Disable the development mode on an integration.
|
|
7353
|
+
* @request DELETE:/integrations/{integrationName}/dev
|
|
7040
7354
|
* @secure
|
|
7041
7355
|
*/
|
|
7042
|
-
|
|
7043
|
-
error: {
|
|
7044
|
-
/** @format int32 */
|
|
7045
|
-
code: 404;
|
|
7046
|
-
message: string;
|
|
7047
|
-
};
|
|
7048
|
-
}>>;
|
|
7356
|
+
disableIntegrationDevelopmentMode: (integrationName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
7049
7357
|
/**
|
|
7050
7358
|
* No description
|
|
7051
7359
|
*
|
|
@@ -7412,16 +7720,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7412
7720
|
* An order for the items in the list
|
|
7413
7721
|
* @default "desc"
|
|
7414
7722
|
*/
|
|
7415
|
-
order?:
|
|
7723
|
+
order?: "asc" | "desc";
|
|
7416
7724
|
/** The Role to filter the member list by */
|
|
7417
|
-
role?: MemberRole |
|
|
7725
|
+
role?: MemberRole | "guest";
|
|
7418
7726
|
/** A query to filter the member list (displayName and email) */
|
|
7419
7727
|
search?: string;
|
|
7420
7728
|
/**
|
|
7421
7729
|
* The property to sort the results by. When sorting by lastSeenAt, only active members will be listed.
|
|
7422
7730
|
* @default "joinedAt"
|
|
7423
7731
|
*/
|
|
7424
|
-
sort?:
|
|
7732
|
+
sort?: "joinedAt" | "lastSeenAt";
|
|
7425
7733
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7426
7734
|
items: OrganizationMember[];
|
|
7427
7735
|
}, Error>>;
|
|
@@ -7732,7 +8040,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7732
8040
|
* @request POST:/orgs/{organizationId}/billing
|
|
7733
8041
|
* @secure
|
|
7734
8042
|
*/
|
|
7735
|
-
upgradeOrganizationPlan: (organizationId: string, data: UpgradeOrganizationBilling,
|
|
8043
|
+
upgradeOrganizationPlan: (organizationId: string, data: UpgradeOrganizationBilling, query?: {
|
|
8044
|
+
/** The app screen URL to bring the user back to after a successful checkout. */
|
|
8045
|
+
successReturnURL?: string;
|
|
8046
|
+
/** The app screen URL to bring the user back to after a canceled checkout. */
|
|
8047
|
+
cancelReturnURL?: string;
|
|
8048
|
+
}, params?: RequestParams) => Promise<HttpResponse<BillingUpgrade, Error>>;
|
|
7736
8049
|
/**
|
|
7737
8050
|
* No description
|
|
7738
8051
|
*
|
|
@@ -7761,8 +8074,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7761
8074
|
members?: number;
|
|
7762
8075
|
/** The desired amount of published premium sites */
|
|
7763
8076
|
premiumSites?: number;
|
|
7764
|
-
/** The desired amount of published
|
|
7765
|
-
|
|
8077
|
+
/** The desired amount of published ultimate sites */
|
|
8078
|
+
ultimateSites?: number;
|
|
7766
8079
|
}, params?: RequestParams) => Promise<HttpResponse<BillingInvoicePreview, Error>>;
|
|
7767
8080
|
/**
|
|
7768
8081
|
* No description
|
|
@@ -8269,7 +8582,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8269
8582
|
*/
|
|
8270
8583
|
listCaptures: (organizationId: string, query?: {
|
|
8271
8584
|
/** Output format for the content. */
|
|
8272
|
-
format?:
|
|
8585
|
+
format?: "document" | "markdown";
|
|
8273
8586
|
/** Identifier of the page results to fetch. */
|
|
8274
8587
|
page?: string;
|
|
8275
8588
|
/**
|
|
@@ -8279,7 +8592,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8279
8592
|
*/
|
|
8280
8593
|
limit?: number;
|
|
8281
8594
|
/** The context in which the item was captured */
|
|
8282
|
-
context?:
|
|
8595
|
+
context?: "walkthrough" | "thread";
|
|
8283
8596
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8284
8597
|
items: Capture[];
|
|
8285
8598
|
}, Error>>;
|
|
@@ -8316,7 +8629,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8316
8629
|
*/
|
|
8317
8630
|
getCapture: (organizationId: string, captureId: string, query?: {
|
|
8318
8631
|
/** Output format for the content. */
|
|
8319
|
-
format?:
|
|
8632
|
+
format?: "document" | "markdown";
|
|
8320
8633
|
}, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
|
|
8321
8634
|
/**
|
|
8322
8635
|
* No description
|
|
@@ -8341,7 +8654,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8341
8654
|
*/
|
|
8342
8655
|
stopCapture: (organizationId: string, captureId: string, data: object, query?: {
|
|
8343
8656
|
/** Output format for the content. */
|
|
8344
|
-
format?:
|
|
8657
|
+
format?: "document" | "markdown";
|
|
8345
8658
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
8346
8659
|
capture: Capture;
|
|
8347
8660
|
/** Example questions that would be answered by the content of this capture. */
|
|
@@ -8486,6 +8799,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8486
8799
|
* @max 1000
|
|
8487
8800
|
*/
|
|
8488
8801
|
limit?: number;
|
|
8802
|
+
/** A list of IDs to filter the synced blocks. */
|
|
8803
|
+
ids?: string[];
|
|
8489
8804
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8490
8805
|
items: SyncedBlock[];
|
|
8491
8806
|
}, Error>>;
|
|
@@ -8501,8 +8816,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8501
8816
|
createSyncedBlock: (organizationId: string, data: {
|
|
8502
8817
|
/** Title of synced block */
|
|
8503
8818
|
title?: string;
|
|
8504
|
-
/** The content of the synced block. For now, only JSON documents are supported. */
|
|
8505
|
-
content: Document;
|
|
8506
8819
|
}, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
|
|
8507
8820
|
/**
|
|
8508
8821
|
* No description
|
|
@@ -8520,13 +8833,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8520
8833
|
* @tags organizations
|
|
8521
8834
|
* @name UpdateSyncedBlock
|
|
8522
8835
|
* @summary Update an existing synced block.
|
|
8523
|
-
* @request
|
|
8836
|
+
* @request PATCH:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
|
|
8524
8837
|
* @secure
|
|
8525
8838
|
*/
|
|
8526
8839
|
updateSyncedBlock: (organizationId: string, syncedBlockId: string, data: {
|
|
8527
8840
|
/** A new title for the Synced Block. */
|
|
8528
8841
|
title?: string;
|
|
8842
|
+
/** A new description for the Synced Block. */
|
|
8843
|
+
description?: string;
|
|
8529
8844
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8845
|
+
/**
|
|
8846
|
+
* No description
|
|
8847
|
+
*
|
|
8848
|
+
* @tags organizations
|
|
8849
|
+
* @name DeleteSyncedBlock
|
|
8850
|
+
* @summary Delete a synced block by its ID
|
|
8851
|
+
* @request DELETE:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
|
|
8852
|
+
* @secure
|
|
8853
|
+
*/
|
|
8854
|
+
deleteSyncedBlock: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8530
8855
|
/**
|
|
8531
8856
|
* No description
|
|
8532
8857
|
*
|
|
@@ -8558,6 +8883,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8558
8883
|
* @max 1000
|
|
8559
8884
|
*/
|
|
8560
8885
|
limit?: number;
|
|
8886
|
+
/** Filter backlinks relative to a change request. */
|
|
8887
|
+
changeRequestId?: string;
|
|
8888
|
+
/** Filter backlinks relative to a space. */
|
|
8889
|
+
spaceId?: string;
|
|
8561
8890
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8562
8891
|
items: ContentLocationPage[];
|
|
8563
8892
|
}, Error>>;
|
|
@@ -8592,7 +8921,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8592
8921
|
*/
|
|
8593
8922
|
askInOrganization: (organizationId: string, data: SearchAIQuery, query?: {
|
|
8594
8923
|
/** Output format for the content. */
|
|
8595
|
-
format?:
|
|
8924
|
+
format?: "document" | "markdown";
|
|
8596
8925
|
/** Return query details in the result */
|
|
8597
8926
|
details?: boolean;
|
|
8598
8927
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -8628,7 +8957,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8628
8957
|
streamAskInOrganization: (organizationId: string, query: {
|
|
8629
8958
|
query: string;
|
|
8630
8959
|
/** Output format for the content. */
|
|
8631
|
-
format?:
|
|
8960
|
+
format?: "document" | "markdown";
|
|
8632
8961
|
/** Return query details in the result */
|
|
8633
8962
|
details?: boolean;
|
|
8634
8963
|
}, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
|
|
@@ -8656,6 +8985,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8656
8985
|
title?: string;
|
|
8657
8986
|
/** Filter sites by their published status */
|
|
8658
8987
|
published?: boolean;
|
|
8988
|
+
/** Filter by site type */
|
|
8989
|
+
type?: SiteType[];
|
|
8659
8990
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8660
8991
|
items: Site[];
|
|
8661
8992
|
}, Error>>;
|
|
@@ -8682,7 +9013,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8682
9013
|
*/
|
|
8683
9014
|
visibility?: SiteVisibility;
|
|
8684
9015
|
/** ID of spaces to be added to the site */
|
|
8685
|
-
spaces?: string[] |
|
|
9016
|
+
spaces?: string[] | "sample" | "empty";
|
|
8686
9017
|
}, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
|
|
8687
9018
|
/**
|
|
8688
9019
|
* No description
|
|
@@ -8735,8 +9066,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8735
9066
|
visibility?: SiteVisibility;
|
|
8736
9067
|
/** Basename for the site. For e.g. api */
|
|
8737
9068
|
basename?: SiteBasename;
|
|
8738
|
-
/** ID of the site-space to be used as the default */
|
|
9069
|
+
/** ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section. */
|
|
8739
9070
|
defaultSiteSpace?: string;
|
|
9071
|
+
/** ID of the site-section to be used as the default. */
|
|
9072
|
+
defaultSiteSection?: string;
|
|
8740
9073
|
}, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
|
|
8741
9074
|
/**
|
|
8742
9075
|
* No description
|
|
@@ -8758,7 +9091,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8758
9091
|
* @secure
|
|
8759
9092
|
*/
|
|
8760
9093
|
publishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site | {
|
|
8761
|
-
type:
|
|
9094
|
+
type: "checkout";
|
|
8762
9095
|
/** Stripe payment session ID */
|
|
8763
9096
|
sessionId: string;
|
|
8764
9097
|
}, Error>>;
|
|
@@ -8830,6 +9163,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8830
9163
|
* @secure
|
|
8831
9164
|
*/
|
|
8832
9165
|
deleteSiteShareLinkById: (organizationId: string, siteId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9166
|
+
/**
|
|
9167
|
+
* No description
|
|
9168
|
+
*
|
|
9169
|
+
* @tags sites
|
|
9170
|
+
* @name GetSiteStructure
|
|
9171
|
+
* @summary Get the structure of a site which includes site-sections and site-spaces
|
|
9172
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/structure
|
|
9173
|
+
* @secure
|
|
9174
|
+
*/
|
|
9175
|
+
getSiteStructure: (organizationId: string, siteId: string, query?: {
|
|
9176
|
+
/** For sites published via share-links, the share key is useful to resolve published URLs. */
|
|
9177
|
+
shareKey?: string;
|
|
9178
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
9179
|
+
type?: "sections";
|
|
9180
|
+
structure?: SiteSection[];
|
|
9181
|
+
} | {
|
|
9182
|
+
type?: "siteSpaces";
|
|
9183
|
+
structure?: SiteSpace[];
|
|
9184
|
+
}, Error | {
|
|
9185
|
+
error: {
|
|
9186
|
+
/** @format int32 */
|
|
9187
|
+
code: 404;
|
|
9188
|
+
message: string;
|
|
9189
|
+
};
|
|
9190
|
+
}>>;
|
|
8833
9191
|
/**
|
|
8834
9192
|
* No description
|
|
8835
9193
|
*
|
|
@@ -8845,23 +9203,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8845
9203
|
/** Desired interval for new subscriptions. Defaults to the existing billing interval. */
|
|
8846
9204
|
interval?: BillingInterval;
|
|
8847
9205
|
}, query?: {
|
|
8848
|
-
/** The app screen URL to bring the user back to after a
|
|
9206
|
+
/** The app screen URL to bring the user back to after a successful checkout. */
|
|
8849
9207
|
successReturnURL?: string;
|
|
8850
9208
|
/** The app screen URL to bring the user back to after a canceled checkout. */
|
|
8851
9209
|
cancelReturnURL?: string;
|
|
8852
9210
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
8853
9211
|
/** User must checkout to complete the update. */
|
|
8854
|
-
type:
|
|
9212
|
+
type: "checkout";
|
|
8855
9213
|
/** Stripe payment session ID */
|
|
8856
9214
|
sessionId: string;
|
|
8857
9215
|
} | {
|
|
8858
9216
|
/** User needs to go through the legacy update flow. */
|
|
8859
|
-
type:
|
|
9217
|
+
type: "legacy-checkout";
|
|
8860
9218
|
/** Stripe payment session ID */
|
|
8861
9219
|
sessionId: string;
|
|
8862
9220
|
} | {
|
|
8863
9221
|
/** The site plan was successfully updated. */
|
|
8864
|
-
type:
|
|
9222
|
+
type: "success";
|
|
8865
9223
|
}, Error>>;
|
|
8866
9224
|
/**
|
|
8867
9225
|
* No description
|
|
@@ -9049,6 +9407,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9049
9407
|
addSpaceToSite: (organizationId: string, siteId: string, data: {
|
|
9050
9408
|
/** ID of the space */
|
|
9051
9409
|
spaceId: string;
|
|
9410
|
+
/** ID of the section to add the space to. If not provided, the space will be added to the default section or at the root level if the site has no sections. */
|
|
9411
|
+
sectionId?: string;
|
|
9052
9412
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error>>;
|
|
9053
9413
|
/**
|
|
9054
9414
|
* No description
|
|
@@ -9075,6 +9435,74 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9075
9435
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9076
9436
|
items: SiteSpace[];
|
|
9077
9437
|
}, Error>>;
|
|
9438
|
+
/**
|
|
9439
|
+
* No description
|
|
9440
|
+
*
|
|
9441
|
+
* @tags sites
|
|
9442
|
+
* @name AddSectionToSite
|
|
9443
|
+
* @summary Add a section to a site in an organization
|
|
9444
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/sections
|
|
9445
|
+
* @secure
|
|
9446
|
+
*/
|
|
9447
|
+
addSectionToSite: (organizationId: string, siteId: string, data: {
|
|
9448
|
+
/** ID of the space to be added to the section as a site space variant */
|
|
9449
|
+
spaceId: string;
|
|
9450
|
+
/**
|
|
9451
|
+
* Title of the section
|
|
9452
|
+
* @maxLength 64
|
|
9453
|
+
*/
|
|
9454
|
+
title?: string;
|
|
9455
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error>>;
|
|
9456
|
+
/**
|
|
9457
|
+
* No description
|
|
9458
|
+
*
|
|
9459
|
+
* @tags sites
|
|
9460
|
+
* @name ListSiteSections
|
|
9461
|
+
* @summary List all the site sections under a site in an organization
|
|
9462
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/sections
|
|
9463
|
+
* @secure
|
|
9464
|
+
*/
|
|
9465
|
+
listSiteSections: (organizationId: string, siteId: string, query?: {
|
|
9466
|
+
/** For sites published via share-links, the share key is useful to resolve published URLs. */
|
|
9467
|
+
shareKey?: string;
|
|
9468
|
+
/** Identifier of the page results to fetch. */
|
|
9469
|
+
page?: string;
|
|
9470
|
+
/**
|
|
9471
|
+
* The number of results per page
|
|
9472
|
+
* @min 0
|
|
9473
|
+
* @max 1000
|
|
9474
|
+
*/
|
|
9475
|
+
limit?: number;
|
|
9476
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9477
|
+
items: SiteSection[];
|
|
9478
|
+
}, Error>>;
|
|
9479
|
+
/**
|
|
9480
|
+
* No description
|
|
9481
|
+
*
|
|
9482
|
+
* @tags sites
|
|
9483
|
+
* @name UpdateSiteSectionById
|
|
9484
|
+
* @summary Update a section on a site in an organization
|
|
9485
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}
|
|
9486
|
+
* @secure
|
|
9487
|
+
*/
|
|
9488
|
+
updateSiteSectionById: (organizationId: string, siteId: string, siteSectionId: string, data: {
|
|
9489
|
+
/** Title of the site section */
|
|
9490
|
+
title?: SiteSectionTitle;
|
|
9491
|
+
/** Path to the section on the site */
|
|
9492
|
+
path?: SiteSectionPath;
|
|
9493
|
+
/** ID of the site-space to be used as the default in this section. */
|
|
9494
|
+
defaultSiteSpace?: string;
|
|
9495
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error>>;
|
|
9496
|
+
/**
|
|
9497
|
+
* No description
|
|
9498
|
+
*
|
|
9499
|
+
* @tags sites
|
|
9500
|
+
* @name DeleteSiteSectionById
|
|
9501
|
+
* @summary Delete a section on a site in an organization
|
|
9502
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}
|
|
9503
|
+
* @secure
|
|
9504
|
+
*/
|
|
9505
|
+
deleteSiteSectionById: (organizationId: string, siteId: string, siteSectionId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9078
9506
|
/**
|
|
9079
9507
|
* No description
|
|
9080
9508
|
*
|
|
@@ -9154,7 +9582,94 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9154
9582
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
|
|
9155
9583
|
* @secure
|
|
9156
9584
|
*/
|
|
9157
|
-
overrideSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, data:
|
|
9585
|
+
overrideSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, data: {
|
|
9586
|
+
/** Title to use for the published site variant. If not defined, the title will not be changed. If set to null, the title will be unset and will fallback to the content title. */
|
|
9587
|
+
title?: SiteTitle | null;
|
|
9588
|
+
styling?: {
|
|
9589
|
+
/** The primary color used for links and UI text. Set to null to reset the override. */
|
|
9590
|
+
primaryColor?: CustomizationThemedColor | null;
|
|
9591
|
+
/** The style of the corners to use. Set to null to reset the override. */
|
|
9592
|
+
corners?: CustomizationCorners | null;
|
|
9593
|
+
/** The font family to use for the content. Set to null to reset the override. */
|
|
9594
|
+
font?: CustomizationFont | null;
|
|
9595
|
+
/** The icons style to use for the content. Set to null to reset the override. */
|
|
9596
|
+
icons?: CustomizationIconsStyle | null;
|
|
9597
|
+
/** The style of background to use. Set to null to reset the override. */
|
|
9598
|
+
background?: CustomizationBackground | null;
|
|
9599
|
+
};
|
|
9600
|
+
internationalization?: {
|
|
9601
|
+
/** The locale to use for the non-custom elements of the UI. Set to null to reset the override. */
|
|
9602
|
+
locale: CustomizationLocale | null;
|
|
9603
|
+
};
|
|
9604
|
+
/** The favicon to use. Set to null to reset the override. */
|
|
9605
|
+
favicon?: {
|
|
9606
|
+
icon: CustomizationThemedURL;
|
|
9607
|
+
} | {
|
|
9608
|
+
/** Unicode codepoint or character of the emoji */
|
|
9609
|
+
emoji: Emoji;
|
|
9610
|
+
} | object | null;
|
|
9611
|
+
header?: {
|
|
9612
|
+
/** The theme preset to use. Set to null to reset the override. */
|
|
9613
|
+
preset?: CustomizationHeaderPreset | null;
|
|
9614
|
+
/** The header logo to use. Set to null to reset the override. */
|
|
9615
|
+
logo?: CustomizationThemedURL | null;
|
|
9616
|
+
/** The background color used in the header. Set to null to reset the override. */
|
|
9617
|
+
backgroundColor?: CustomizationThemedColor | null;
|
|
9618
|
+
/** The color used by the links in the header. Set to null to reset the override. */
|
|
9619
|
+
linkColor?: CustomizationThemedColor | null;
|
|
9620
|
+
/** The links that are displayed in the header. Set to null to reset the override. */
|
|
9621
|
+
links?: CustomizationHeaderLink[] | null;
|
|
9622
|
+
};
|
|
9623
|
+
footer?: {
|
|
9624
|
+
/** The logo displayed in the footer. Set to null to reset the override. */
|
|
9625
|
+
logo?: CustomizationThemedURL | null;
|
|
9626
|
+
/** The links groups that are displayed in the footer. Set to null to reset the override. */
|
|
9627
|
+
groups?: CustomizationFooterGroup[] | null;
|
|
9628
|
+
/**
|
|
9629
|
+
* The copyright text that is displayed in the footer. Set to null to reset the override.
|
|
9630
|
+
* @maxLength 300
|
|
9631
|
+
*/
|
|
9632
|
+
copyright?: string | null;
|
|
9633
|
+
};
|
|
9634
|
+
themes?: {
|
|
9635
|
+
/** The theme mode default value. Set to null to reset the override. */
|
|
9636
|
+
default?: CustomizationThemeMode | null;
|
|
9637
|
+
/** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
|
|
9638
|
+
toggeable?: boolean | null;
|
|
9639
|
+
};
|
|
9640
|
+
pdf?: {
|
|
9641
|
+
/** If true, PDF export is enabled for the published site. Set to null to reset the override. */
|
|
9642
|
+
enabled: boolean | null;
|
|
9643
|
+
};
|
|
9644
|
+
feedback?: {
|
|
9645
|
+
/** If true, feedback gathering is enabled. Set to null to reset the override. */
|
|
9646
|
+
enabled: boolean | null;
|
|
9647
|
+
};
|
|
9648
|
+
aiSearch?: {
|
|
9649
|
+
/** If true, AI search is enabled. Set to null to reset the override. */
|
|
9650
|
+
enabled: boolean | null;
|
|
9651
|
+
};
|
|
9652
|
+
git?: {
|
|
9653
|
+
/** Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override. */
|
|
9654
|
+
showEditLink: boolean | null;
|
|
9655
|
+
};
|
|
9656
|
+
pagination?: {
|
|
9657
|
+
/** Whether the pagination navigation should be displayed on pages. Set to null to reset the override. */
|
|
9658
|
+
enabled: boolean | null;
|
|
9659
|
+
};
|
|
9660
|
+
trademark?: {
|
|
9661
|
+
/** Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override. */
|
|
9662
|
+
enabled: boolean | null;
|
|
9663
|
+
};
|
|
9664
|
+
privacyPolicy?: {
|
|
9665
|
+
/** The custom link to the privacy policy. Set to null to reset the override. */
|
|
9666
|
+
url?: URL | null;
|
|
9667
|
+
};
|
|
9668
|
+
socialPreview?: {
|
|
9669
|
+
/** The URL for the social preview image. Set to null to reset the override. */
|
|
9670
|
+
url?: URL | null;
|
|
9671
|
+
};
|
|
9672
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
|
|
9158
9673
|
error: {
|
|
9159
9674
|
/** @format int32 */
|
|
9160
9675
|
code: 400;
|
|
@@ -9189,7 +9704,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9189
9704
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content
|
|
9190
9705
|
* @secure
|
|
9191
9706
|
*/
|
|
9192
|
-
getContentAnalyticsForSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string,
|
|
9707
|
+
getContentAnalyticsForSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, query?: {
|
|
9708
|
+
period?: AnalyticsSearchPeriod;
|
|
9709
|
+
}, params?: RequestParams) => Promise<HttpResponse<AnalyticsContentPages, Error>>;
|
|
9193
9710
|
/**
|
|
9194
9711
|
* No description
|
|
9195
9712
|
*
|
|
@@ -9264,12 +9781,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9264
9781
|
* @tags analytics, sites
|
|
9265
9782
|
* @name GetSearchAnalyticsForSiteById
|
|
9266
9783
|
* @summary Get an overview of the top search queries in a site.
|
|
9267
|
-
* @request
|
|
9784
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/insights/search
|
|
9268
9785
|
* @secure
|
|
9269
9786
|
*/
|
|
9270
|
-
getSearchAnalyticsForSiteById: (organizationId: string, siteId: string,
|
|
9271
|
-
siteSpaceIds?: string[];
|
|
9787
|
+
getSearchAnalyticsForSiteById: (organizationId: string, siteId: string, query?: {
|
|
9272
9788
|
period?: AnalyticsSearchPeriod;
|
|
9789
|
+
/** The site spaces to filter the search on */
|
|
9790
|
+
siteSpaceIds?: string[];
|
|
9273
9791
|
}, params?: RequestParams) => Promise<HttpResponse<AnalyticsTopSearches, Error>>;
|
|
9274
9792
|
/**
|
|
9275
9793
|
* No description
|
|
@@ -9281,7 +9799,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9281
9799
|
* @secure
|
|
9282
9800
|
*/
|
|
9283
9801
|
updateSiteAdsById: (organizationId: string, siteId: string, data?: {
|
|
9284
|
-
status?:
|
|
9802
|
+
status?: "in-review" | "disabled";
|
|
9285
9803
|
/** Topic of the content */
|
|
9286
9804
|
topic?: SiteAdsTopic;
|
|
9287
9805
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
@@ -9414,15 +9932,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9414
9932
|
* @secure
|
|
9415
9933
|
*/
|
|
9416
9934
|
adsUpdateSite: (siteId: string, data: {
|
|
9417
|
-
status:
|
|
9935
|
+
status: "live";
|
|
9418
9936
|
/** ID of the zone */
|
|
9419
9937
|
zoneId: string;
|
|
9420
9938
|
/** ID to fetch reporting data */
|
|
9421
9939
|
reportingId: string;
|
|
9422
9940
|
} | {
|
|
9423
|
-
status:
|
|
9941
|
+
status: "rejected";
|
|
9424
9942
|
} | {
|
|
9425
|
-
status:
|
|
9943
|
+
status: "pending";
|
|
9426
9944
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9427
9945
|
};
|
|
9428
9946
|
internal: {
|