@gitbook/api 0.62.0 → 0.64.1
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 +706 -402
- package/dist/index.cjs +2465 -2389
- package/dist/index.js +2464 -2389
- package/package.json +3 -6
- package/spec/openapi.json +2215 -1195
- package/spec/openapi.yaml +1005 -399
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
|
};
|
|
@@ -521,7 +521,7 @@ export interface DocumentBlockContentRef {
|
|
|
521
521
|
isVoid: true;
|
|
522
522
|
}
|
|
523
523
|
/** Action to open an overlay modal defined by "componentId". */
|
|
524
|
-
export
|
|
524
|
+
export type ContentKitDefaultAction = {
|
|
525
525
|
action: '@ui.modal.open';
|
|
526
526
|
componentId: string;
|
|
527
527
|
props: object;
|
|
@@ -539,7 +539,7 @@ export declare type ContentKitDefaultAction = {
|
|
|
539
539
|
props: object;
|
|
540
540
|
};
|
|
541
541
|
/** Custom action to re-render the block. */
|
|
542
|
-
export
|
|
542
|
+
export type ContentKitAction = {
|
|
543
543
|
action: string;
|
|
544
544
|
[key: string]: any;
|
|
545
545
|
} | ContentKitDefaultAction;
|
|
@@ -621,7 +621,7 @@ export interface DocumentBlockSyncedBlock {
|
|
|
621
621
|
};
|
|
622
622
|
isVoid: true;
|
|
623
623
|
}
|
|
624
|
-
export
|
|
624
|
+
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockSyncedBlock;
|
|
625
625
|
export interface JSONDocument {
|
|
626
626
|
object: 'document';
|
|
627
627
|
data: {
|
|
@@ -631,10 +631,10 @@ export interface JSONDocument {
|
|
|
631
631
|
};
|
|
632
632
|
nodes: DocumentBlocksTopLevels[];
|
|
633
633
|
}
|
|
634
|
-
export
|
|
634
|
+
export type Document = MarkdownDocument | {
|
|
635
635
|
document: JSONDocument;
|
|
636
636
|
} | object;
|
|
637
|
-
export
|
|
637
|
+
export type SearchAIAnswerSource = {
|
|
638
638
|
type: 'page' | 'capture';
|
|
639
639
|
} & ({
|
|
640
640
|
type: 'page';
|
|
@@ -701,7 +701,7 @@ export interface User {
|
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
703
|
/** @format date-time */
|
|
704
|
-
export
|
|
704
|
+
export type Timestamp = string;
|
|
705
705
|
/** The API token details, excluding the token itself. */
|
|
706
706
|
export interface UserAPIToken {
|
|
707
707
|
/** The API token ID. */
|
|
@@ -712,7 +712,7 @@ export interface UserAPIToken {
|
|
|
712
712
|
createdAt: Timestamp;
|
|
713
713
|
}
|
|
714
714
|
/** The API token details, including the token itself. */
|
|
715
|
-
export
|
|
715
|
+
export type UserAPITokenExtended = UserAPIToken & {
|
|
716
716
|
/** The actual token value. */
|
|
717
717
|
token: string;
|
|
718
718
|
};
|
|
@@ -720,13 +720,13 @@ export declare type UserAPITokenExtended = UserAPIToken & {
|
|
|
720
720
|
* Title of the space
|
|
721
721
|
* @maxLength 50
|
|
722
722
|
*/
|
|
723
|
-
export
|
|
723
|
+
export type SpaceTitle = string;
|
|
724
724
|
/**
|
|
725
725
|
* Unicode codepoint or character of the emoji
|
|
726
726
|
* @maxLength 50
|
|
727
727
|
* @example "🎉"
|
|
728
728
|
*/
|
|
729
|
-
export
|
|
729
|
+
export type Emoji = string;
|
|
730
730
|
/**
|
|
731
731
|
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
732
732
|
* * `unlisted`: Anyone can access the content, and the content is not indexed by search engines
|
|
@@ -754,7 +754,7 @@ export declare enum SpaceEditMode {
|
|
|
754
754
|
Locked = "locked"
|
|
755
755
|
}
|
|
756
756
|
/** @format uri */
|
|
757
|
-
export
|
|
757
|
+
export type URL = string;
|
|
758
758
|
/**
|
|
759
759
|
* * `running`: The operation is still running
|
|
760
760
|
* * `failure`: The operation failed
|
|
@@ -797,7 +797,7 @@ export interface VisitorAuthIntegrationBackend {
|
|
|
797
797
|
/** Integration as backend for Visitor Authentication */
|
|
798
798
|
backend: 'integration';
|
|
799
799
|
}
|
|
800
|
-
export
|
|
800
|
+
export type VisitorAuth = VisitorAuthCustomBackend | (VisitorAuthIntegrationBackend & {
|
|
801
801
|
/** Name of integration being used as the backend for Visitor Authentication */
|
|
802
802
|
integration: string;
|
|
803
803
|
});
|
|
@@ -819,9 +819,9 @@ export declare enum MemberRole {
|
|
|
819
819
|
Read = "read"
|
|
820
820
|
}
|
|
821
821
|
/** The role of a member in an organization, null for guests */
|
|
822
|
-
export
|
|
822
|
+
export type MemberRoleOrGuest = MemberRole | null;
|
|
823
823
|
/** Default level for a piece of content */
|
|
824
|
-
export
|
|
824
|
+
export type DefaultLevel = MemberRoleOrGuest | 'inherit';
|
|
825
825
|
export interface Space {
|
|
826
826
|
/** Type of Object, always equals to "space" */
|
|
827
827
|
object: 'space';
|
|
@@ -902,7 +902,7 @@ export interface ContentPosition {
|
|
|
902
902
|
after?: SpacePointer | CollectionPointer;
|
|
903
903
|
}
|
|
904
904
|
/** Format the custom block as a codeblock */
|
|
905
|
-
export
|
|
905
|
+
export type IntegrationBlockMarkdown = {
|
|
906
906
|
/** Code block syntax to use to identify the block. */
|
|
907
907
|
codeblock: string;
|
|
908
908
|
/** Key of the property to use as body of the codeblock. */
|
|
@@ -930,7 +930,7 @@ export interface IntegrationBlock {
|
|
|
930
930
|
/** Format the custom block as a codeblock */
|
|
931
931
|
markdown?: IntegrationBlockMarkdown;
|
|
932
932
|
}
|
|
933
|
-
export
|
|
933
|
+
export type Embed = {
|
|
934
934
|
title: string;
|
|
935
935
|
site: string;
|
|
936
936
|
icon?: string;
|
|
@@ -1031,7 +1031,7 @@ export interface SyncGitRepository {
|
|
|
1031
1031
|
* @maxLength 50
|
|
1032
1032
|
* @example "gear"
|
|
1033
1033
|
*/
|
|
1034
|
-
export
|
|
1034
|
+
export type Icon = string;
|
|
1035
1035
|
export interface RevisionPageBase {
|
|
1036
1036
|
/** Unique identifier for the page in the revision */
|
|
1037
1037
|
id: string;
|
|
@@ -1049,7 +1049,7 @@ export interface RevisionPageBase {
|
|
|
1049
1049
|
/** When the page was last edited. Only present if page has been edited at least once. */
|
|
1050
1050
|
updatedAt?: Timestamp;
|
|
1051
1051
|
}
|
|
1052
|
-
export
|
|
1052
|
+
export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
1053
1053
|
/** @deprecated */
|
|
1054
1054
|
kind: 'sheet';
|
|
1055
1055
|
type: 'document';
|
|
@@ -1084,7 +1084,7 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1084
1084
|
*/
|
|
1085
1085
|
noRobotsIndex?: boolean;
|
|
1086
1086
|
};
|
|
1087
|
-
export
|
|
1087
|
+
export type RevisionPageLink = RevisionPageBase & {
|
|
1088
1088
|
/** @deprecated */
|
|
1089
1089
|
kind: 'link';
|
|
1090
1090
|
type: 'link';
|
|
@@ -1230,7 +1230,7 @@ export interface InviteEmailsUsersTeamsToSpace {
|
|
|
1230
1230
|
/** Role to set on the team. */
|
|
1231
1231
|
role: MemberRoleOrGuest;
|
|
1232
1232
|
}
|
|
1233
|
-
export
|
|
1233
|
+
export type RevisionPageGroup = RevisionPageBase & {
|
|
1234
1234
|
/** @deprecated */
|
|
1235
1235
|
kind: 'group';
|
|
1236
1236
|
type: 'group';
|
|
@@ -1255,7 +1255,7 @@ export declare type RevisionPageGroup = RevisionPageBase & {
|
|
|
1255
1255
|
noRobotsIndex?: boolean;
|
|
1256
1256
|
pages: (RevisionPageDocument | RevisionPageLink)[];
|
|
1257
1257
|
};
|
|
1258
|
-
export
|
|
1258
|
+
export type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
|
|
1259
1259
|
export interface RevisionFile {
|
|
1260
1260
|
id: string;
|
|
1261
1261
|
name: string;
|
|
@@ -1312,7 +1312,7 @@ export interface RevisionBase {
|
|
|
1312
1312
|
public?: string;
|
|
1313
1313
|
};
|
|
1314
1314
|
}
|
|
1315
|
-
export
|
|
1315
|
+
export type RevisionTypeEdits = RevisionBase & {
|
|
1316
1316
|
/** Revision created by editing the content. */
|
|
1317
1317
|
type: 'edits';
|
|
1318
1318
|
};
|
|
@@ -1327,7 +1327,7 @@ export declare enum ChangeRequestStatus {
|
|
|
1327
1327
|
* @minLength 0
|
|
1328
1328
|
* @maxLength 100
|
|
1329
1329
|
*/
|
|
1330
|
-
export
|
|
1330
|
+
export type ChangeRequestSubject = string;
|
|
1331
1331
|
export interface ChangeRequest {
|
|
1332
1332
|
/** Type of Object, always equals to "change-request" */
|
|
1333
1333
|
object: 'change-request';
|
|
@@ -1357,20 +1357,20 @@ export interface ChangeRequest {
|
|
|
1357
1357
|
location: string;
|
|
1358
1358
|
};
|
|
1359
1359
|
}
|
|
1360
|
-
export
|
|
1360
|
+
export type RevisionTypeMerge = RevisionBase & {
|
|
1361
1361
|
/** Revision created when merging a change request with primary. */
|
|
1362
1362
|
type: 'merge';
|
|
1363
1363
|
mergedFrom: ChangeRequest;
|
|
1364
1364
|
};
|
|
1365
|
-
export
|
|
1365
|
+
export type RevisionTypeRollback = RevisionBase & {
|
|
1366
1366
|
/** Revision created as a rollback of a previous revision. */
|
|
1367
1367
|
type: 'rollback';
|
|
1368
1368
|
};
|
|
1369
|
-
export
|
|
1369
|
+
export type RevisionTypeUpdate = RevisionBase & {
|
|
1370
1370
|
/** Revision created when updating a change request with changes from primary. */
|
|
1371
1371
|
type: 'update';
|
|
1372
1372
|
};
|
|
1373
|
-
export
|
|
1373
|
+
export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate;
|
|
1374
1374
|
export declare enum ImportContentSource {
|
|
1375
1375
|
Website = "website",
|
|
1376
1376
|
Docx = "docx",
|
|
@@ -1403,14 +1403,14 @@ export interface ImportContentResult {
|
|
|
1403
1403
|
* @minLength 2
|
|
1404
1404
|
* @maxLength 255
|
|
1405
1405
|
*/
|
|
1406
|
-
export
|
|
1407
|
-
export
|
|
1406
|
+
export type OrganizationTitle = string;
|
|
1407
|
+
export type OrganizationEmailDomains = string[];
|
|
1408
1408
|
/**
|
|
1409
1409
|
* Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io
|
|
1410
1410
|
* @minLength 3
|
|
1411
1411
|
* @maxLength 32
|
|
1412
1412
|
*/
|
|
1413
|
-
export
|
|
1413
|
+
export type OrganizationHostname = string;
|
|
1414
1414
|
export declare enum OrganizationType {
|
|
1415
1415
|
Business = "business",
|
|
1416
1416
|
Community = "community"
|
|
@@ -1437,7 +1437,7 @@ export interface SitePointer {
|
|
|
1437
1437
|
site: string;
|
|
1438
1438
|
}
|
|
1439
1439
|
/** The default content for the organization */
|
|
1440
|
-
export
|
|
1440
|
+
export type OrganizationDefaultContent = SpacePointer | CollectionPointer | SitePointer;
|
|
1441
1441
|
export interface Organization {
|
|
1442
1442
|
/** Type of Object, always equals to "organization" */
|
|
1443
1443
|
object: 'organization';
|
|
@@ -1521,13 +1521,13 @@ export interface ContentLocationUser {
|
|
|
1521
1521
|
* Title of the collection
|
|
1522
1522
|
* @maxLength 50
|
|
1523
1523
|
*/
|
|
1524
|
-
export
|
|
1524
|
+
export type CollectionTitle = string;
|
|
1525
1525
|
/**
|
|
1526
1526
|
* Description of the collection
|
|
1527
1527
|
* @minLength 0
|
|
1528
1528
|
* @maxLength 100
|
|
1529
1529
|
*/
|
|
1530
|
-
export
|
|
1530
|
+
export type CollectionDescription = string;
|
|
1531
1531
|
export interface Collection {
|
|
1532
1532
|
/** Type of Object, always equals to "collection" */
|
|
1533
1533
|
object: 'collection';
|
|
@@ -1590,17 +1590,17 @@ export interface ContentLocationSpace {
|
|
|
1590
1590
|
* @minLength 2
|
|
1591
1591
|
* @maxLength 30
|
|
1592
1592
|
*/
|
|
1593
|
-
export
|
|
1593
|
+
export type IntegrationTitle = string;
|
|
1594
1594
|
/**
|
|
1595
1595
|
* Description of the integration
|
|
1596
1596
|
* @maxLength 100
|
|
1597
1597
|
*/
|
|
1598
|
-
export
|
|
1598
|
+
export type IntegrationDescription = string;
|
|
1599
1599
|
/**
|
|
1600
1600
|
* Long form markdown summary of the integration
|
|
1601
1601
|
* @maxLength 2048
|
|
1602
1602
|
*/
|
|
1603
|
-
export
|
|
1603
|
+
export type IntegrationSummary = string;
|
|
1604
1604
|
export declare enum IntegrationTarget {
|
|
1605
1605
|
Organization = "organization",
|
|
1606
1606
|
All = "all"
|
|
@@ -1629,7 +1629,7 @@ export declare enum IntegrationScope {
|
|
|
1629
1629
|
SiteVisitorAuth = "site:visitor:auth"
|
|
1630
1630
|
}
|
|
1631
1631
|
/** Permissions that should be granted to the integration */
|
|
1632
|
-
export
|
|
1632
|
+
export type IntegrationScopes = IntegrationScope[];
|
|
1633
1633
|
export declare enum IntegrationCategory {
|
|
1634
1634
|
Analytics = "analytics",
|
|
1635
1635
|
Captures = "captures",
|
|
@@ -1641,9 +1641,9 @@ export declare enum IntegrationCategory {
|
|
|
1641
1641
|
Other = "other"
|
|
1642
1642
|
}
|
|
1643
1643
|
/** Categories for which the integration is listed in the marketplace */
|
|
1644
|
-
export
|
|
1644
|
+
export type IntegrationCategories = IntegrationCategory[];
|
|
1645
1645
|
/** Custom blocks defined by this integration. */
|
|
1646
|
-
export
|
|
1646
|
+
export type IntegrationBlocks = IntegrationBlock[];
|
|
1647
1647
|
/** Schema for a configuration */
|
|
1648
1648
|
export interface IntegrationConfigurationSchema {
|
|
1649
1649
|
properties: Record<string, {
|
|
@@ -1673,7 +1673,7 @@ export interface IntegrationConfigurationComponent {
|
|
|
1673
1673
|
/** ID of the ContentKit component defined in the integration */
|
|
1674
1674
|
componentId: string;
|
|
1675
1675
|
}
|
|
1676
|
-
export
|
|
1676
|
+
export type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
|
|
1677
1677
|
export interface IntegrationConfigurations {
|
|
1678
1678
|
account?: IntegrationConfiguration;
|
|
1679
1679
|
space?: IntegrationConfiguration;
|
|
@@ -1683,7 +1683,7 @@ export interface IntegrationConfigurations {
|
|
|
1683
1683
|
* External urls configured by the developer of the integration
|
|
1684
1684
|
* @maxItems 5
|
|
1685
1685
|
*/
|
|
1686
|
-
export
|
|
1686
|
+
export type IntegrationExternalLinks = {
|
|
1687
1687
|
url: URL;
|
|
1688
1688
|
label: string;
|
|
1689
1689
|
}[];
|
|
@@ -1691,7 +1691,7 @@ export declare type IntegrationExternalLinks = {
|
|
|
1691
1691
|
* Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
|
|
1692
1692
|
* headers when processing the script fetch event and the blocks fetch events.
|
|
1693
1693
|
*/
|
|
1694
|
-
export
|
|
1694
|
+
export type IntegrationContentSecurityPolicy = string | {
|
|
1695
1695
|
'base-uri'?: string;
|
|
1696
1696
|
'block-all-mixed-content'?: string;
|
|
1697
1697
|
'child-src'?: string;
|
|
@@ -1848,11 +1848,17 @@ export interface SyncedBlock {
|
|
|
1848
1848
|
organization: string;
|
|
1849
1849
|
/** @format date-time */
|
|
1850
1850
|
createdAt: string;
|
|
1851
|
+
createdBy: User;
|
|
1851
1852
|
/**
|
|
1852
1853
|
* Title describing the synced block.
|
|
1853
1854
|
* @maxLength 100
|
|
1854
1855
|
*/
|
|
1855
1856
|
title?: string;
|
|
1857
|
+
/**
|
|
1858
|
+
* Description of the synced block.
|
|
1859
|
+
* @maxLength 500
|
|
1860
|
+
*/
|
|
1861
|
+
description?: string;
|
|
1856
1862
|
/** Usage of synced block */
|
|
1857
1863
|
usage: {
|
|
1858
1864
|
/** Number of spaces where the synced block is used in */
|
|
@@ -1862,6 +1868,8 @@ export interface SyncedBlock {
|
|
|
1862
1868
|
urls: {
|
|
1863
1869
|
/** URL of the synced block in the API */
|
|
1864
1870
|
location: URL;
|
|
1871
|
+
/** URL of the synced block in the app */
|
|
1872
|
+
app: URL;
|
|
1865
1873
|
};
|
|
1866
1874
|
}
|
|
1867
1875
|
export interface ContentLocationSyncedBlock {
|
|
@@ -1870,7 +1878,41 @@ export interface ContentLocationSyncedBlock {
|
|
|
1870
1878
|
syncedBlock: SyncedBlock;
|
|
1871
1879
|
}
|
|
1872
1880
|
/** An absolute reference to content in GitBook. */
|
|
1873
|
-
export
|
|
1881
|
+
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationSyncedBlock;
|
|
1882
|
+
/**
|
|
1883
|
+
* Text to display to represent the reference. Possible values include:
|
|
1884
|
+
* - `ok` - No problems detected for this content reference.
|
|
1885
|
+
* - `broken` - The target does not exist in the revision.
|
|
1886
|
+
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
1887
|
+
*/
|
|
1888
|
+
export declare enum ContentReferenceStatus {
|
|
1889
|
+
Ok = "ok",
|
|
1890
|
+
Broken = "broken",
|
|
1891
|
+
InApp = "in-app"
|
|
1892
|
+
}
|
|
1893
|
+
export interface ContentReferencesStats {
|
|
1894
|
+
/** Total count of links */
|
|
1895
|
+
total: number;
|
|
1896
|
+
broken: {
|
|
1897
|
+
/** Count of broken links */
|
|
1898
|
+
total: number;
|
|
1899
|
+
/** Count of broken links that were broken in current change request, if applicable. */
|
|
1900
|
+
changeRequest?: number;
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
export interface ContentReferenceUsage {
|
|
1904
|
+
/**
|
|
1905
|
+
* Text to display to represent the reference. Possible values include:
|
|
1906
|
+
* - `ok` - No problems detected for this content reference.
|
|
1907
|
+
* - `broken` - The target does not exist in the revision.
|
|
1908
|
+
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
1909
|
+
*/
|
|
1910
|
+
status: ContentReferenceStatus;
|
|
1911
|
+
/** The reference target where a list of pages are pointing at */
|
|
1912
|
+
targetReference?: ContentLocation;
|
|
1913
|
+
/** Pages locations where a link to the target is found. */
|
|
1914
|
+
locationReferences: ContentLocation[];
|
|
1915
|
+
}
|
|
1874
1916
|
export interface CreateChangeRequest {
|
|
1875
1917
|
/** Subject of the change-request */
|
|
1876
1918
|
subject?: string;
|
|
@@ -1892,8 +1934,8 @@ export interface EmojiReaction {
|
|
|
1892
1934
|
reactedAt: Timestamp;
|
|
1893
1935
|
}[];
|
|
1894
1936
|
}
|
|
1895
|
-
export
|
|
1896
|
-
export
|
|
1937
|
+
export type EmojiReactions = EmojiReaction[];
|
|
1938
|
+
export type Comment = {
|
|
1897
1939
|
/** Type of Object, always equals to "comment" */
|
|
1898
1940
|
object: 'comment';
|
|
1899
1941
|
/** Unique identifier for the comment. */
|
|
@@ -1975,7 +2017,7 @@ export interface Team {
|
|
|
1975
2017
|
/** Unique identifier for the team */
|
|
1976
2018
|
id: string;
|
|
1977
2019
|
}
|
|
1978
|
-
export
|
|
2020
|
+
export type ChangeRequestRequestedReviewer = {
|
|
1979
2021
|
/** Type of Object, always equals to "change-request-requested-reviewer" */
|
|
1980
2022
|
object: 'change-request-requested-reviewer';
|
|
1981
2023
|
/** The revision of the content when the request was made. */
|
|
@@ -1992,40 +2034,6 @@ export declare type ChangeRequestRequestedReviewer = {
|
|
|
1992
2034
|
/** The team who was requested to review. */
|
|
1993
2035
|
team: Team;
|
|
1994
2036
|
});
|
|
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
2037
|
export interface PostCommentSchema {
|
|
2030
2038
|
/** The node to which the comment is posted, if any. */
|
|
2031
2039
|
node?: string;
|
|
@@ -2103,12 +2111,12 @@ export declare enum RevisionPageLayoutPreset {
|
|
|
2103
2111
|
Editorial = "editorial",
|
|
2104
2112
|
Landing = "landing"
|
|
2105
2113
|
}
|
|
2106
|
-
export
|
|
2114
|
+
export type RevisionPageLayout = RevisionPageLayoutPreset | RevisionPageLayoutOptions;
|
|
2107
2115
|
export interface ChangeAttributeRevisionPageLayout {
|
|
2108
2116
|
before?: RevisionPageLayout;
|
|
2109
2117
|
after?: RevisionPageLayout;
|
|
2110
2118
|
}
|
|
2111
|
-
export
|
|
2119
|
+
export type CustomFieldValue = string | number | boolean | string[];
|
|
2112
2120
|
export interface ChangeAttributeCustomFields {
|
|
2113
2121
|
before?: Record<string, {
|
|
2114
2122
|
value: CustomFieldValue;
|
|
@@ -2204,7 +2212,7 @@ export interface RevisionSemanticChangeCustomFieldsEdited {
|
|
|
2204
2212
|
type: 'custom_fields_edited';
|
|
2205
2213
|
customFields: ChangeAttributeCustomFields;
|
|
2206
2214
|
}
|
|
2207
|
-
export
|
|
2215
|
+
export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited;
|
|
2208
2216
|
export interface RevisionSemanticChanges {
|
|
2209
2217
|
changes: RevisionSemanticChange[];
|
|
2210
2218
|
/** How many changes were omitted because above the result limit */
|
|
@@ -2233,7 +2241,7 @@ export interface UserContentPermission {
|
|
|
2233
2241
|
user: User;
|
|
2234
2242
|
}
|
|
2235
2243
|
/** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
|
|
2236
|
-
export
|
|
2244
|
+
export type Color = string;
|
|
2237
2245
|
export interface CustomizationThemedColor {
|
|
2238
2246
|
light: Color;
|
|
2239
2247
|
dark: Color;
|
|
@@ -2272,6 +2280,7 @@ export declare enum CustomizationLocale {
|
|
|
2272
2280
|
Ja = "ja",
|
|
2273
2281
|
De = "de",
|
|
2274
2282
|
Nl = "nl",
|
|
2283
|
+
No = "no",
|
|
2275
2284
|
PtBr = "pt-br"
|
|
2276
2285
|
}
|
|
2277
2286
|
export interface CustomizationThemedURL {
|
|
@@ -2290,7 +2299,8 @@ export interface CustomizationContentLink {
|
|
|
2290
2299
|
/** A relative reference to content in GitBook. */
|
|
2291
2300
|
to: ContentRef;
|
|
2292
2301
|
}
|
|
2293
|
-
export
|
|
2302
|
+
export type CustomizationHeaderLink = CustomizationContentLink & {
|
|
2303
|
+
style?: 'link' | 'button-primary' | 'button-secondary';
|
|
2294
2304
|
links?: CustomizationContentLink[];
|
|
2295
2305
|
};
|
|
2296
2306
|
export interface CustomizationFooterGroup {
|
|
@@ -2373,7 +2383,7 @@ export interface CustomizationSettings {
|
|
|
2373
2383
|
url?: URL;
|
|
2374
2384
|
};
|
|
2375
2385
|
}
|
|
2376
|
-
export
|
|
2386
|
+
export type SpaceIntegrationBlocks = {
|
|
2377
2387
|
/** Unique named identifier for the integration */
|
|
2378
2388
|
name: string;
|
|
2379
2389
|
blocks: IntegrationBlock[];
|
|
@@ -2391,11 +2401,11 @@ export interface SpaceIntegrationScript {
|
|
|
2391
2401
|
* @maxLength 50
|
|
2392
2402
|
* @pattern ^[a-z_\-0-9]+$
|
|
2393
2403
|
*/
|
|
2394
|
-
export
|
|
2404
|
+
export type CustomFieldName = string;
|
|
2395
2405
|
/** @maxLength 100 */
|
|
2396
|
-
export
|
|
2406
|
+
export type CustomFieldTitle = string;
|
|
2397
2407
|
/** @maxLength 200 */
|
|
2398
|
-
export
|
|
2408
|
+
export type CustomFieldDescription = string;
|
|
2399
2409
|
export declare enum CustomFieldType {
|
|
2400
2410
|
Text = "text",
|
|
2401
2411
|
Number = "number",
|
|
@@ -2405,12 +2415,12 @@ export declare enum CustomFieldType {
|
|
|
2405
2415
|
SelectSingle = "select:single"
|
|
2406
2416
|
}
|
|
2407
2417
|
/** @maxLength 100 */
|
|
2408
|
-
export
|
|
2418
|
+
export type CustomFieldPlaceholder = string;
|
|
2409
2419
|
/**
|
|
2410
2420
|
* @maxItems 50
|
|
2411
2421
|
* @minItems 1
|
|
2412
2422
|
*/
|
|
2413
|
-
export
|
|
2423
|
+
export type CustomFieldOptions = string[];
|
|
2414
2424
|
/** Custom field */
|
|
2415
2425
|
export interface CustomField {
|
|
2416
2426
|
id: string;
|
|
@@ -2431,7 +2441,7 @@ export interface CustomField {
|
|
|
2431
2441
|
location: string;
|
|
2432
2442
|
};
|
|
2433
2443
|
}
|
|
2434
|
-
export
|
|
2444
|
+
export type CustomFieldValues = {
|
|
2435
2445
|
/** Custom field */
|
|
2436
2446
|
customField: CustomField;
|
|
2437
2447
|
value?: CustomFieldValue;
|
|
@@ -2468,7 +2478,7 @@ export interface PageFeedback {
|
|
|
2468
2478
|
* @minLength 0
|
|
2469
2479
|
* @maxLength 50
|
|
2470
2480
|
*/
|
|
2471
|
-
export
|
|
2481
|
+
export type ShareLinkName = string;
|
|
2472
2482
|
export interface ShareLink {
|
|
2473
2483
|
/** Type of Object, always equals to "share-link" */
|
|
2474
2484
|
object: 'share-link';
|
|
@@ -2487,14 +2497,14 @@ export interface ShareLink {
|
|
|
2487
2497
|
published?: string;
|
|
2488
2498
|
};
|
|
2489
2499
|
}
|
|
2490
|
-
export
|
|
2500
|
+
export type CustomizationCollectionSettings = CustomizationSettings & {
|
|
2491
2501
|
collection: {
|
|
2492
2502
|
/** ID of the space used by default in the collection */
|
|
2493
2503
|
defaultSpace?: string;
|
|
2494
2504
|
};
|
|
2495
2505
|
};
|
|
2496
2506
|
/** Secrets stored on the integration and passed at runtime. */
|
|
2497
|
-
export
|
|
2507
|
+
export type IntegrationSecrets = Record<string, string>;
|
|
2498
2508
|
export interface PublishIntegration {
|
|
2499
2509
|
/**
|
|
2500
2510
|
* Base64 content of the icon
|
|
@@ -2549,16 +2559,16 @@ export declare enum IntegrationInstallationSiteSelection {
|
|
|
2549
2559
|
Selected = "selected"
|
|
2550
2560
|
}
|
|
2551
2561
|
/** Configuration of the integration at the account level */
|
|
2552
|
-
export
|
|
2562
|
+
export type IntegrationInstallationConfiguration = Record<string, any>;
|
|
2553
2563
|
/**
|
|
2554
2564
|
* External IDs assigned by the integration.
|
|
2555
2565
|
* @maxItems 5
|
|
2556
2566
|
*/
|
|
2557
|
-
export
|
|
2567
|
+
export type IntegrationInstallationExternalIds = string[];
|
|
2558
2568
|
export interface OrganizationTarget {
|
|
2559
2569
|
organization: string;
|
|
2560
2570
|
}
|
|
2561
|
-
export
|
|
2571
|
+
export type IntegrationInstallationTarget = OrganizationTarget;
|
|
2562
2572
|
/** Installation of an integration on an account */
|
|
2563
2573
|
export interface IntegrationInstallation {
|
|
2564
2574
|
id: string;
|
|
@@ -2604,12 +2614,12 @@ export interface BaseEvent {
|
|
|
2604
2614
|
type: string;
|
|
2605
2615
|
}
|
|
2606
2616
|
/** Common properties for all events related to an installation */
|
|
2607
|
-
export
|
|
2617
|
+
export type InstallationEvent = BaseEvent & {
|
|
2608
2618
|
/** ID of the integration installation */
|
|
2609
2619
|
installationId: string;
|
|
2610
2620
|
};
|
|
2611
2621
|
/** Event received when integration has been installed or updated. */
|
|
2612
|
-
export
|
|
2622
|
+
export type InstallationSetupEvent = InstallationEvent & {
|
|
2613
2623
|
type: 'installation_setup';
|
|
2614
2624
|
status: IntegrationInstallationStatus;
|
|
2615
2625
|
/** The state of the installation at the account level before it was updated. */
|
|
@@ -2620,12 +2630,12 @@ export declare type InstallationSetupEvent = InstallationEvent & {
|
|
|
2620
2630
|
};
|
|
2621
2631
|
};
|
|
2622
2632
|
/** Common properties for all events related to a specific space. */
|
|
2623
|
-
export
|
|
2633
|
+
export type SpaceEvent = InstallationEvent & {
|
|
2624
2634
|
/** ID of the space */
|
|
2625
2635
|
spaceId: string;
|
|
2626
2636
|
};
|
|
2627
2637
|
/** Event received when integration has been installed or updated on a space. */
|
|
2628
|
-
export
|
|
2638
|
+
export type SpaceInstallationSetupEvent = SpaceEvent & {
|
|
2629
2639
|
type: 'space_installation_setup';
|
|
2630
2640
|
status: IntegrationInstallationStatus;
|
|
2631
2641
|
/** The state of the Space installation before it was updated. */
|
|
@@ -2636,7 +2646,7 @@ export declare type SpaceInstallationSetupEvent = SpaceEvent & {
|
|
|
2636
2646
|
};
|
|
2637
2647
|
};
|
|
2638
2648
|
/** Event received when integration has been uninstalled from a space. */
|
|
2639
|
-
export
|
|
2649
|
+
export type SpaceInstallationDeletedEvent = SpaceEvent & {
|
|
2640
2650
|
type: 'space_installation_deleted';
|
|
2641
2651
|
/** The state of the Space installation before it was deleted. */
|
|
2642
2652
|
previous: {
|
|
@@ -2645,12 +2655,12 @@ export declare type SpaceInstallationDeletedEvent = SpaceEvent & {
|
|
|
2645
2655
|
};
|
|
2646
2656
|
};
|
|
2647
2657
|
/** Common properties for all events related to a specific site. */
|
|
2648
|
-
export
|
|
2658
|
+
export type SiteEvent = InstallationEvent & {
|
|
2649
2659
|
/** ID of the site */
|
|
2650
2660
|
siteId: string;
|
|
2651
2661
|
};
|
|
2652
2662
|
/** Event received when integration has been installed or updated on a site. */
|
|
2653
|
-
export
|
|
2663
|
+
export type SiteInstallationSetupEvent = SiteEvent & {
|
|
2654
2664
|
type: 'site_installation_setup';
|
|
2655
2665
|
status: IntegrationInstallationStatus;
|
|
2656
2666
|
/** The state of the site installation before it was updated. */
|
|
@@ -2661,7 +2671,7 @@ export declare type SiteInstallationSetupEvent = SiteEvent & {
|
|
|
2661
2671
|
};
|
|
2662
2672
|
};
|
|
2663
2673
|
/** Event received when integration has been uninstalled from a site. */
|
|
2664
|
-
export
|
|
2674
|
+
export type SiteInstallationDeletedEvent = SiteEvent & {
|
|
2665
2675
|
type: 'site_installation_deleted';
|
|
2666
2676
|
/** The state of the site installation before it was deleted. */
|
|
2667
2677
|
previous: {
|
|
@@ -2670,7 +2680,7 @@ export declare type SiteInstallationDeletedEvent = SiteEvent & {
|
|
|
2670
2680
|
};
|
|
2671
2681
|
};
|
|
2672
2682
|
/** Event received when a page has been visited. */
|
|
2673
|
-
export
|
|
2683
|
+
export type SpaceViewEvent = SpaceEvent & {
|
|
2674
2684
|
type: 'space_view';
|
|
2675
2685
|
/** Unique identifier of the visited page. */
|
|
2676
2686
|
pageId?: string;
|
|
@@ -2693,7 +2703,7 @@ export declare type SpaceViewEvent = SpaceEvent & {
|
|
|
2693
2703
|
referrer: string;
|
|
2694
2704
|
};
|
|
2695
2705
|
/** Event received when a page has been visited on a site. */
|
|
2696
|
-
export
|
|
2706
|
+
export type SiteViewEvent = SiteEvent & {
|
|
2697
2707
|
type: 'site_view';
|
|
2698
2708
|
/** Unique identifier of the visited space in the site. */
|
|
2699
2709
|
spaceId: string;
|
|
@@ -2718,13 +2728,13 @@ export declare type SiteViewEvent = SiteEvent & {
|
|
|
2718
2728
|
referrer: string;
|
|
2719
2729
|
};
|
|
2720
2730
|
/** Event when the primary content of a space has been updated. */
|
|
2721
|
-
export
|
|
2731
|
+
export type SpaceContentUpdatedEvent = SpaceEvent & {
|
|
2722
2732
|
type: 'space_content_updated';
|
|
2723
2733
|
/** Unique identifier of the new content revision */
|
|
2724
2734
|
revisionId: string;
|
|
2725
2735
|
};
|
|
2726
2736
|
/** Event when a GitSync operation has been completed. */
|
|
2727
|
-
export
|
|
2737
|
+
export type SpaceGitSyncCompletedEvent = SpaceEvent & {
|
|
2728
2738
|
type: 'space_gitsync_completed';
|
|
2729
2739
|
state: 'success' | 'failure';
|
|
2730
2740
|
/** Unique identifier of the new content revision */
|
|
@@ -2733,7 +2743,7 @@ export declare type SpaceGitSyncCompletedEvent = SpaceEvent & {
|
|
|
2733
2743
|
commitId: string;
|
|
2734
2744
|
};
|
|
2735
2745
|
/** Event when a GitSync operation has been started. */
|
|
2736
|
-
export
|
|
2746
|
+
export type SpaceGitSyncStartedEvent = SpaceEvent & {
|
|
2737
2747
|
type: 'space_gitsync_started';
|
|
2738
2748
|
/** Unique identifier of the new content revision */
|
|
2739
2749
|
revisionId: string;
|
|
@@ -2741,7 +2751,7 @@ export declare type SpaceGitSyncStartedEvent = SpaceEvent & {
|
|
|
2741
2751
|
commitId: string;
|
|
2742
2752
|
};
|
|
2743
2753
|
/** Event when the visibility of the space has been changed. */
|
|
2744
|
-
export
|
|
2754
|
+
export type SpaceVisibilityUpdatedEvent = SpaceEvent & {
|
|
2745
2755
|
type: 'space_visibility_updated';
|
|
2746
2756
|
/**
|
|
2747
2757
|
* * `public`: Anyone can access the content, and the content is indexed by search engines.
|
|
@@ -2770,7 +2780,7 @@ export interface FetchRequest {
|
|
|
2770
2780
|
headers: Record<string, string>;
|
|
2771
2781
|
}
|
|
2772
2782
|
/** Event representing an incoming HTTP request. */
|
|
2773
|
-
export
|
|
2783
|
+
export type FetchEvent = BaseEvent & {
|
|
2774
2784
|
/** The space ID, if requests are specific to a single space */
|
|
2775
2785
|
spaceId?: string;
|
|
2776
2786
|
/** The site ID, if requests are specific to a single site */
|
|
@@ -2785,11 +2795,11 @@ export declare type FetchEvent = BaseEvent & {
|
|
|
2785
2795
|
request: FetchRequest;
|
|
2786
2796
|
};
|
|
2787
2797
|
/** Common properties for all events related to fetching a published script from an installation */
|
|
2788
|
-
export
|
|
2798
|
+
export type FetchPublishedScriptEvent = (SpaceEvent | SiteEvent) & {
|
|
2789
2799
|
type: 'fetch_published_script';
|
|
2790
2800
|
};
|
|
2791
2801
|
/** Common properties for all events related to visitor authentication from an installation */
|
|
2792
|
-
export
|
|
2802
|
+
export type FetchVisitorAuthenticationEvent = (SpaceEvent | SiteEvent) & {
|
|
2793
2803
|
type: 'fetch_visitor_authentication';
|
|
2794
2804
|
location?: string;
|
|
2795
2805
|
};
|
|
@@ -2798,34 +2808,34 @@ export interface ContentKitContextBase {
|
|
|
2798
2808
|
theme: 'dark' | 'light';
|
|
2799
2809
|
}
|
|
2800
2810
|
/** Context while rendering in an account installation's configuration. */
|
|
2801
|
-
export
|
|
2811
|
+
export type ContentKitContextConfigurationAccount = ContentKitContextBase & {
|
|
2802
2812
|
type: 'configuration_account';
|
|
2803
2813
|
/** ID of the organization the account installation configuration is in. */
|
|
2804
2814
|
organizationId: string;
|
|
2805
2815
|
};
|
|
2806
2816
|
/** Context while rendering in a space-installation's configuration. */
|
|
2807
|
-
export
|
|
2817
|
+
export type ContentKitContextConfigurationSpace = ContentKitContextBase & {
|
|
2808
2818
|
type: 'configuration_space';
|
|
2809
2819
|
/** ID of the space the space-installation configuration is in. */
|
|
2810
2820
|
spaceId: string;
|
|
2811
2821
|
};
|
|
2812
2822
|
/** Context while rendering in a site-installation's configuration. */
|
|
2813
|
-
export
|
|
2823
|
+
export type ContentKitContextConfigurationSite = ContentKitContextBase & {
|
|
2814
2824
|
type: 'configuration_site';
|
|
2815
2825
|
/** ID of the site the site-installation configuration is in. */
|
|
2816
2826
|
siteId: string;
|
|
2817
2827
|
};
|
|
2818
2828
|
/** Context while rendering in a document. */
|
|
2819
|
-
export
|
|
2829
|
+
export type ContentKitContextDocument = ContentKitContextBase & {
|
|
2820
2830
|
type: 'document';
|
|
2821
2831
|
/** ID of the space content the document is in. */
|
|
2822
2832
|
spaceId: string;
|
|
2823
2833
|
editable: boolean;
|
|
2824
2834
|
};
|
|
2825
2835
|
/** Object representing the context in which a ContentKit component is rendered. */
|
|
2826
|
-
export
|
|
2836
|
+
export type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextConfigurationSite | ContentKitContextDocument;
|
|
2827
2837
|
/** Event generated when rendering a UI */
|
|
2828
|
-
export
|
|
2838
|
+
export type UIRenderEvent = (SpaceEvent | SiteEvent | InstallationEvent) & {
|
|
2829
2839
|
auth?: {
|
|
2830
2840
|
/** The user's ID. */
|
|
2831
2841
|
userId: string;
|
|
@@ -2841,7 +2851,7 @@ export declare type UIRenderEvent = (SpaceEvent | SiteEvent | InstallationEvent)
|
|
|
2841
2851
|
action?: object;
|
|
2842
2852
|
};
|
|
2843
2853
|
/** Any event that can be received from GitBook. */
|
|
2844
|
-
export
|
|
2854
|
+
export type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent;
|
|
2845
2855
|
export interface IntegrationEvent {
|
|
2846
2856
|
/** Unique ID of the event. */
|
|
2847
2857
|
id: string;
|
|
@@ -2957,7 +2967,7 @@ export interface ContentKitTextInput {
|
|
|
2957
2967
|
inputType?: 'text' | 'password';
|
|
2958
2968
|
}
|
|
2959
2969
|
/** Any element that can be used as children. */
|
|
2960
|
-
export
|
|
2970
|
+
export type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink | ContentKitStepperStep;
|
|
2961
2971
|
/** Horizontal stack of boxes. */
|
|
2962
2972
|
export interface ContentKitHStack {
|
|
2963
2973
|
type: 'hstack';
|
|
@@ -3064,7 +3074,7 @@ export interface ContentKitImage {
|
|
|
3064
3074
|
aspectRatio: number;
|
|
3065
3075
|
}
|
|
3066
3076
|
/** Any element that is inline. */
|
|
3067
|
-
export
|
|
3077
|
+
export type ContentKitInlineElement = ContentKitText | ContentKitImage | ContentKitLink;
|
|
3068
3078
|
export interface ContentKitCard {
|
|
3069
3079
|
type: 'card';
|
|
3070
3080
|
title?: string;
|
|
@@ -3149,6 +3159,23 @@ export interface ContentKitHint {
|
|
|
3149
3159
|
type: 'hint';
|
|
3150
3160
|
children: ContentKitInlineElement[];
|
|
3151
3161
|
}
|
|
3162
|
+
export interface ContentKitStepperStep {
|
|
3163
|
+
type: 'step';
|
|
3164
|
+
/** unique identifier for the step */
|
|
3165
|
+
id: string;
|
|
3166
|
+
/**
|
|
3167
|
+
* title of the step
|
|
3168
|
+
* @maxLength 50
|
|
3169
|
+
*/
|
|
3170
|
+
title?: string;
|
|
3171
|
+
/**
|
|
3172
|
+
* indicates if the user can progress to the next step based on some internal validation or condition
|
|
3173
|
+
* @default false
|
|
3174
|
+
*/
|
|
3175
|
+
next?: boolean;
|
|
3176
|
+
/** @minItems 1 */
|
|
3177
|
+
children: ContentKitDescendantElement[];
|
|
3178
|
+
}
|
|
3152
3179
|
/** Control menu item displayed for the block. */
|
|
3153
3180
|
export interface ContentKitBlockControl {
|
|
3154
3181
|
icon?: ContentKitIcon;
|
|
@@ -3176,8 +3203,24 @@ export interface ContentKitModal {
|
|
|
3176
3203
|
/** Pressable button triggering an action. */
|
|
3177
3204
|
submit?: ContentKitButton;
|
|
3178
3205
|
}
|
|
3206
|
+
export interface ContentKitStepper {
|
|
3207
|
+
type: 'stepper';
|
|
3208
|
+
/** id of the currently active step */
|
|
3209
|
+
activeStep: string;
|
|
3210
|
+
/** Custom action to re-render the block. */
|
|
3211
|
+
onStepChange: ContentKitAction;
|
|
3212
|
+
/** Custom action to re-render the block. */
|
|
3213
|
+
onComplete: ContentKitAction;
|
|
3214
|
+
/** @minItems 1 */
|
|
3215
|
+
children: ContentKitStepperStep[];
|
|
3216
|
+
}
|
|
3217
|
+
/** 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. */
|
|
3218
|
+
export interface ContentKitConfiguration {
|
|
3219
|
+
type: 'configuration';
|
|
3220
|
+
children: ContentKitStepper[] | ContentKitDescendantElement[];
|
|
3221
|
+
}
|
|
3179
3222
|
/** Element used as root */
|
|
3180
|
-
export
|
|
3223
|
+
export type ContentKitRootElement = ContentKitBlock | ContentKitModal | ContentKitConfiguration;
|
|
3181
3224
|
/** Output of the integration when rendering an UI. */
|
|
3182
3225
|
export interface ContentKitRenderOutput {
|
|
3183
3226
|
/** Element used as root */
|
|
@@ -3295,7 +3338,7 @@ export interface MemberContentPermission {
|
|
|
3295
3338
|
* @minLength 1
|
|
3296
3339
|
* @maxLength 64
|
|
3297
3340
|
*/
|
|
3298
|
-
export
|
|
3341
|
+
export type OrganizationTeamTitle = string;
|
|
3299
3342
|
export interface OrganizationTeam {
|
|
3300
3343
|
/** Type of Object, always equals to "team" */
|
|
3301
3344
|
object: 'team';
|
|
@@ -3365,7 +3408,7 @@ export interface CreateInviteToCollection {
|
|
|
3365
3408
|
/** The ID of collection the member has been invited to */
|
|
3366
3409
|
collection: string;
|
|
3367
3410
|
}
|
|
3368
|
-
export
|
|
3411
|
+
export type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
|
|
3369
3412
|
export interface InviteToOrganization {
|
|
3370
3413
|
/** The role of the member in the organization */
|
|
3371
3414
|
role: MemberRoleOrGuest;
|
|
@@ -3382,7 +3425,7 @@ export interface InviteToCollection {
|
|
|
3382
3425
|
/** The collection the member has been invited to */
|
|
3383
3426
|
collection: Collection;
|
|
3384
3427
|
}
|
|
3385
|
-
export
|
|
3428
|
+
export type OrganizationInvite = {
|
|
3386
3429
|
/** Type of Object, always equals to "invite" */
|
|
3387
3430
|
object: 'invite';
|
|
3388
3431
|
/** Unique identifier for the organization invite */
|
|
@@ -3419,9 +3462,10 @@ export interface UpgradeOrganizationBilling {
|
|
|
3419
3462
|
interval: BillingInterval;
|
|
3420
3463
|
/** Members to remove or sites to unpublish before upgrading */
|
|
3421
3464
|
exclude?: {
|
|
3422
|
-
members
|
|
3423
|
-
|
|
3424
|
-
|
|
3465
|
+
/** A list of member identifiers to be removed, `all` to remove all members but the current admin */
|
|
3466
|
+
members?: string[] | 'all';
|
|
3467
|
+
/** A list of site identifiers to be unpublished, 'all' to unpublish all sites */
|
|
3468
|
+
sites?: string[] | 'all';
|
|
3425
3469
|
};
|
|
3426
3470
|
/** Reason that triggered the billing upgrade */
|
|
3427
3471
|
reason?: string;
|
|
@@ -3445,7 +3489,7 @@ export interface BillingInvoicePreview {
|
|
|
3445
3489
|
periodEnd: Timestamp;
|
|
3446
3490
|
}[];
|
|
3447
3491
|
}
|
|
3448
|
-
export
|
|
3492
|
+
export type BillingUpgrade = {
|
|
3449
3493
|
result: 'checkout';
|
|
3450
3494
|
/** Stripe payment session ID */
|
|
3451
3495
|
sessionId: string;
|
|
@@ -3488,11 +3532,11 @@ export interface OrganizationExperimentalFeature {
|
|
|
3488
3532
|
* @minLength 1
|
|
3489
3533
|
* @maxLength 30
|
|
3490
3534
|
*/
|
|
3491
|
-
export
|
|
3535
|
+
export type SAMLProviderLabel = string;
|
|
3492
3536
|
/** @maxLength 1024 */
|
|
3493
|
-
export
|
|
3537
|
+
export type SAMLProviderEntityID = string;
|
|
3494
3538
|
/** @maxLength 10000 */
|
|
3495
|
-
export
|
|
3539
|
+
export type SAMLProviderCertificate = string;
|
|
3496
3540
|
export interface OrganizationSAMLProvider {
|
|
3497
3541
|
/** Type of Object, always equals to "saml-provider" */
|
|
3498
3542
|
object: 'saml-provider';
|
|
@@ -3541,18 +3585,23 @@ export interface OrganizationUsageCollections {
|
|
|
3541
3585
|
total: number;
|
|
3542
3586
|
}
|
|
3543
3587
|
/** Sites usage metrics of an organization */
|
|
3544
|
-
export
|
|
3588
|
+
export type OrganizationUsageSites = {
|
|
3545
3589
|
/** Count of all sites */
|
|
3546
3590
|
total: number;
|
|
3547
|
-
/** Count of all
|
|
3548
|
-
|
|
3549
|
-
/** Count of all
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3591
|
+
/** Count of all legacy basic sites */
|
|
3592
|
+
legacyBasic: number;
|
|
3593
|
+
/** Count of all legacy premium sites */
|
|
3594
|
+
legacyPremium: number;
|
|
3595
|
+
} | {
|
|
3596
|
+
/** Count of all sites */
|
|
3597
|
+
total: number;
|
|
3598
|
+
/** Count of all basic sites */
|
|
3599
|
+
basic: number;
|
|
3600
|
+
/** Count of all premium sites */
|
|
3601
|
+
premium: number;
|
|
3602
|
+
/** Count of all ultimate sites */
|
|
3603
|
+
ultimate: number;
|
|
3604
|
+
};
|
|
3556
3605
|
/** Team members usage metrics of an organization */
|
|
3557
3606
|
export interface OrganizationUsageTeams {
|
|
3558
3607
|
/** Count of all teams */
|
|
@@ -3607,8 +3656,8 @@ export interface OrganizationUsage {
|
|
|
3607
3656
|
* Optional title describing the capture
|
|
3608
3657
|
* @maxLength 100
|
|
3609
3658
|
*/
|
|
3610
|
-
export
|
|
3611
|
-
export
|
|
3659
|
+
export type CaptureTitle = string;
|
|
3660
|
+
export type CaptureContext = 'thread' | 'walkthrough' | 'document';
|
|
3612
3661
|
export interface Capture {
|
|
3613
3662
|
/** Unique identifier for the capture */
|
|
3614
3663
|
id: string;
|
|
@@ -3673,12 +3722,12 @@ export interface BaseCaptureEvent {
|
|
|
3673
3722
|
name: string;
|
|
3674
3723
|
};
|
|
3675
3724
|
}
|
|
3676
|
-
export
|
|
3725
|
+
export type CaptureTerminalCommandEvent = BaseCaptureEvent & {
|
|
3677
3726
|
type: 'terminal.command';
|
|
3678
3727
|
command: string;
|
|
3679
3728
|
stdout: string;
|
|
3680
3729
|
};
|
|
3681
|
-
export
|
|
3730
|
+
export type CaptureSpeechEvent = BaseCaptureEvent & {
|
|
3682
3731
|
type: 'speech';
|
|
3683
3732
|
} & ({
|
|
3684
3733
|
/** WAV audio file, encoded as base64 */
|
|
@@ -3687,27 +3736,27 @@ export declare type CaptureSpeechEvent = BaseCaptureEvent & {
|
|
|
3687
3736
|
/** Transcript of the speech */
|
|
3688
3737
|
transcript: string;
|
|
3689
3738
|
});
|
|
3690
|
-
export
|
|
3739
|
+
export type CaptureThreadMessageEvent = BaseCaptureEvent & {
|
|
3691
3740
|
type: 'thread.message';
|
|
3692
3741
|
isFirst?: boolean;
|
|
3693
3742
|
text: string;
|
|
3694
3743
|
};
|
|
3695
|
-
export
|
|
3744
|
+
export type CaptureFileAddedEvent = BaseCaptureEvent & {
|
|
3696
3745
|
type: 'file.added';
|
|
3697
3746
|
filename: string;
|
|
3698
3747
|
fileSnapshot: string;
|
|
3699
3748
|
};
|
|
3700
|
-
export
|
|
3749
|
+
export type CaptureFileChangedEvent = BaseCaptureEvent & {
|
|
3701
3750
|
type: 'file.changed';
|
|
3702
3751
|
filename: string;
|
|
3703
3752
|
fileDiff: string;
|
|
3704
3753
|
};
|
|
3705
|
-
export
|
|
3754
|
+
export type CaptureFileRemovedEvent = BaseCaptureEvent & {
|
|
3706
3755
|
type: 'file.removed';
|
|
3707
3756
|
filename: string;
|
|
3708
3757
|
fileSnapshot: string;
|
|
3709
3758
|
};
|
|
3710
|
-
export
|
|
3759
|
+
export type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
|
|
3711
3760
|
export interface UpdateSnippetSchema {
|
|
3712
3761
|
/** A new title for the snippet. */
|
|
3713
3762
|
title?: string;
|
|
@@ -3716,7 +3765,7 @@ export interface UpdateSnippetSchema {
|
|
|
3716
3765
|
export declare enum SiteType {
|
|
3717
3766
|
Basic = "basic",
|
|
3718
3767
|
Premium = "premium",
|
|
3719
|
-
|
|
3768
|
+
Ultimate = "ultimate",
|
|
3720
3769
|
LegacyBasic = "legacy-basic",
|
|
3721
3770
|
LegacyPremium = "legacy-premium"
|
|
3722
3771
|
}
|
|
@@ -3725,18 +3774,18 @@ export declare enum SiteType {
|
|
|
3725
3774
|
* @minLength 2
|
|
3726
3775
|
* @maxLength 128
|
|
3727
3776
|
*/
|
|
3728
|
-
export
|
|
3777
|
+
export type SiteTitle = string;
|
|
3729
3778
|
/**
|
|
3730
3779
|
* Custom hostname for the site, for e.g. docs.mycompany.com
|
|
3731
3780
|
* @pattern ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
|
|
3732
3781
|
*/
|
|
3733
|
-
export
|
|
3782
|
+
export type SiteHostname = string;
|
|
3734
3783
|
/**
|
|
3735
3784
|
* Basename for the site. For e.g. api
|
|
3736
3785
|
* @minLength 1
|
|
3737
3786
|
* @maxLength 100
|
|
3738
3787
|
*/
|
|
3739
|
-
export
|
|
3788
|
+
export type SiteBasename = string;
|
|
3740
3789
|
/**
|
|
3741
3790
|
* The visibility setting of the site determines the audience of the site.
|
|
3742
3791
|
* * `public`: Anyone can access the site, and the site is indexed by search engines.
|
|
@@ -3755,7 +3804,7 @@ export declare enum SiteAdsTopic {
|
|
|
3755
3804
|
Webdev = "webdev",
|
|
3756
3805
|
Crypto = "crypto"
|
|
3757
3806
|
}
|
|
3758
|
-
export
|
|
3807
|
+
export type SiteAds = {
|
|
3759
3808
|
status: 'pending';
|
|
3760
3809
|
/** True if the user can submit the site for review. */
|
|
3761
3810
|
submittable: boolean;
|
|
@@ -3818,7 +3867,7 @@ export interface Site {
|
|
|
3818
3867
|
};
|
|
3819
3868
|
}
|
|
3820
3869
|
/** 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. */
|
|
3821
|
-
export
|
|
3870
|
+
export type BillingOperationPreviewResponse = {
|
|
3822
3871
|
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
3823
3872
|
type: 'go-ahead';
|
|
3824
3873
|
} | {
|
|
@@ -3838,7 +3887,64 @@ export declare type BillingOperationPreviewResponse = {
|
|
|
3838
3887
|
plan: BillingProduct;
|
|
3839
3888
|
invoice?: BillingInvoicePreview;
|
|
3840
3889
|
};
|
|
3841
|
-
|
|
3890
|
+
/**
|
|
3891
|
+
* Path to the section on the site
|
|
3892
|
+
* @minLength 1
|
|
3893
|
+
* @maxLength 100
|
|
3894
|
+
*/
|
|
3895
|
+
export type SiteSectionPath = string;
|
|
3896
|
+
/**
|
|
3897
|
+
* Path to the space on the site
|
|
3898
|
+
* @minLength 1
|
|
3899
|
+
* @maxLength 100
|
|
3900
|
+
*/
|
|
3901
|
+
export type SiteSpacePath = string;
|
|
3902
|
+
export interface SiteSpace {
|
|
3903
|
+
/** The object type, which is always "site-space" */
|
|
3904
|
+
object?: 'site-space';
|
|
3905
|
+
/** Unique identifier of the site-space */
|
|
3906
|
+
id: string;
|
|
3907
|
+
/** Path to the space on the site */
|
|
3908
|
+
path: SiteSpacePath;
|
|
3909
|
+
/** ID of the section the space belongs to in the site */
|
|
3910
|
+
section?: string;
|
|
3911
|
+
space: Space;
|
|
3912
|
+
title: string;
|
|
3913
|
+
/** Whether this is the default space for the site */
|
|
3914
|
+
default?: boolean;
|
|
3915
|
+
/** Whether the space has advanced customization feature enabled */
|
|
3916
|
+
hasAdvancedCustomizationFeature?: boolean;
|
|
3917
|
+
/** URLs associated with the object */
|
|
3918
|
+
urls: {
|
|
3919
|
+
/**
|
|
3920
|
+
* URL of the published version of the site-space. Only defined when site is published.
|
|
3921
|
+
* @format uri
|
|
3922
|
+
*/
|
|
3923
|
+
published?: string;
|
|
3924
|
+
};
|
|
3925
|
+
}
|
|
3926
|
+
export interface SiteSection {
|
|
3927
|
+
/** The object type, which is always "site-section" */
|
|
3928
|
+
object?: 'site-section';
|
|
3929
|
+
/** Unique identifier of the site section */
|
|
3930
|
+
id: string;
|
|
3931
|
+
/** Title of the site section */
|
|
3932
|
+
title: string;
|
|
3933
|
+
/** Whether this is the default section for the site */
|
|
3934
|
+
default?: boolean;
|
|
3935
|
+
/** Path to the section on the site */
|
|
3936
|
+
path: SiteSectionPath;
|
|
3937
|
+
siteSpaces: SiteSpace[];
|
|
3938
|
+
/** URLs associated with the object */
|
|
3939
|
+
urls: {
|
|
3940
|
+
/**
|
|
3941
|
+
* URL of the published version of the site section. Only defined when site is published.
|
|
3942
|
+
* @format uri
|
|
3943
|
+
*/
|
|
3944
|
+
published?: string;
|
|
3945
|
+
};
|
|
3946
|
+
}
|
|
3947
|
+
export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
3842
3948
|
/** Type of Object, always equals to "publishing-auth" */
|
|
3843
3949
|
object: 'publishing-auth';
|
|
3844
3950
|
/** Private key used to sign JWT tokens. */
|
|
@@ -3854,7 +3960,7 @@ export declare type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuth
|
|
|
3854
3960
|
*/
|
|
3855
3961
|
integration?: string;
|
|
3856
3962
|
};
|
|
3857
|
-
export
|
|
3963
|
+
export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
|
|
3858
3964
|
/**
|
|
3859
3965
|
* A fallback URL that will be used if authentication fails.
|
|
3860
3966
|
* @format uri
|
|
@@ -3949,122 +4055,6 @@ export interface SiteIntegrationScript {
|
|
|
3949
4055
|
/** If true, the script will potentially load use cookies and visitors should be aware. */
|
|
3950
4056
|
cookies: boolean;
|
|
3951
4057
|
}
|
|
3952
|
-
/**
|
|
3953
|
-
* Path to the space on the site
|
|
3954
|
-
* @minLength 1
|
|
3955
|
-
* @maxLength 100
|
|
3956
|
-
*/
|
|
3957
|
-
export declare type SiteSpacePath = string;
|
|
3958
|
-
export interface SiteSpace {
|
|
3959
|
-
/** The object type, which is always "site-space" */
|
|
3960
|
-
object?: 'site-space';
|
|
3961
|
-
/** Unique identifier of the site-space */
|
|
3962
|
-
id: string;
|
|
3963
|
-
/** Path to the space on the site */
|
|
3964
|
-
path: SiteSpacePath;
|
|
3965
|
-
space: Space;
|
|
3966
|
-
title: string;
|
|
3967
|
-
/** Whether this is the default space for the site */
|
|
3968
|
-
default?: boolean;
|
|
3969
|
-
/** Whether the space has advanced customization feature enabled */
|
|
3970
|
-
hasAdvancedCustomizationFeature?: boolean;
|
|
3971
|
-
/** URLs associated with the object */
|
|
3972
|
-
urls: {
|
|
3973
|
-
/**
|
|
3974
|
-
* URL of the published version of the site-space. Only defined when site is published.
|
|
3975
|
-
* @format uri
|
|
3976
|
-
*/
|
|
3977
|
-
published?: string;
|
|
3978
|
-
};
|
|
3979
|
-
}
|
|
3980
|
-
export interface SiteSpaceCustomizationOverrides {
|
|
3981
|
-
/** Title to use for the published site variant. If not defined, it'll fallback to the content title. */
|
|
3982
|
-
title?: SiteTitle;
|
|
3983
|
-
styling?: {
|
|
3984
|
-
/** The primary color used for links and UI text. Set to null to reset the override. */
|
|
3985
|
-
primaryColor?: CustomizationThemedColor | null;
|
|
3986
|
-
/** The style of the corners to use. Set to null to reset the override. */
|
|
3987
|
-
corners?: CustomizationCorners | null;
|
|
3988
|
-
/** The font family to use for the content. Set to null to reset the override. */
|
|
3989
|
-
font?: CustomizationFont | null;
|
|
3990
|
-
/** The icons style to use for the content. Set to null to reset the override. */
|
|
3991
|
-
icons?: CustomizationIconsStyle | null;
|
|
3992
|
-
/** The style of background to use. Set to null to reset the override. */
|
|
3993
|
-
background?: CustomizationBackground | null;
|
|
3994
|
-
};
|
|
3995
|
-
internationalization?: {
|
|
3996
|
-
/** The locale to use for the non-custom elements of the UI. Set to null to reset the override. */
|
|
3997
|
-
locale: CustomizationLocale | null;
|
|
3998
|
-
};
|
|
3999
|
-
/** The favicon to use. Set to null to reset the override. */
|
|
4000
|
-
favicon?: {
|
|
4001
|
-
icon: CustomizationThemedURL;
|
|
4002
|
-
} | {
|
|
4003
|
-
/** Unicode codepoint or character of the emoji */
|
|
4004
|
-
emoji: Emoji;
|
|
4005
|
-
} | object | null;
|
|
4006
|
-
header?: {
|
|
4007
|
-
/** The theme preset to use. Set to null to reset the override. */
|
|
4008
|
-
preset?: CustomizationHeaderPreset | null;
|
|
4009
|
-
/** The header logo to use. Set to null to reset the override. */
|
|
4010
|
-
logo?: CustomizationThemedURL | null;
|
|
4011
|
-
/** The background color used in the header. Set to null to reset the override. */
|
|
4012
|
-
backgroundColor?: CustomizationThemedColor | null;
|
|
4013
|
-
/** The color used by the links in the header. Set to null to reset the override. */
|
|
4014
|
-
linkColor?: CustomizationThemedColor | null;
|
|
4015
|
-
/** The links that are displayed in the header. Set to null to reset the override. */
|
|
4016
|
-
links?: CustomizationHeaderLink[] | null;
|
|
4017
|
-
};
|
|
4018
|
-
footer?: {
|
|
4019
|
-
/** The logo displayed in the footer. Set to null to reset the override. */
|
|
4020
|
-
logo?: CustomizationThemedURL | null;
|
|
4021
|
-
/** The links groups that are displayed in the footer. Set to null to reset the override. */
|
|
4022
|
-
groups?: CustomizationFooterGroup[] | null;
|
|
4023
|
-
/**
|
|
4024
|
-
* The copyright text that is displayed in the footer. Set to null to reset the override.
|
|
4025
|
-
* @maxLength 300
|
|
4026
|
-
*/
|
|
4027
|
-
copyright?: string | null;
|
|
4028
|
-
};
|
|
4029
|
-
themes?: {
|
|
4030
|
-
/** The theme mode default value. Set to null to reset the override. */
|
|
4031
|
-
default?: CustomizationThemeMode | null;
|
|
4032
|
-
/** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
|
|
4033
|
-
toggeable?: boolean | null;
|
|
4034
|
-
};
|
|
4035
|
-
pdf?: {
|
|
4036
|
-
/** If true, PDF export is enabled for the published site. Set to null to reset the override. */
|
|
4037
|
-
enabled: boolean | null;
|
|
4038
|
-
};
|
|
4039
|
-
feedback?: {
|
|
4040
|
-
/** If true, feedback gathering is enabled. Set to null to reset the override. */
|
|
4041
|
-
enabled: boolean | null;
|
|
4042
|
-
};
|
|
4043
|
-
aiSearch?: {
|
|
4044
|
-
/** If true, AI search is enabled. Set to null to reset the override. */
|
|
4045
|
-
enabled: boolean | null;
|
|
4046
|
-
};
|
|
4047
|
-
git?: {
|
|
4048
|
-
/** 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. */
|
|
4049
|
-
showEditLink: boolean | null;
|
|
4050
|
-
};
|
|
4051
|
-
pagination?: {
|
|
4052
|
-
/** Whether the pagination navigation should be displayed on pages. Set to null to reset the override. */
|
|
4053
|
-
enabled: boolean | null;
|
|
4054
|
-
};
|
|
4055
|
-
trademark?: {
|
|
4056
|
-
/** Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override. */
|
|
4057
|
-
enabled: boolean | null;
|
|
4058
|
-
};
|
|
4059
|
-
privacyPolicy?: {
|
|
4060
|
-
/** The custom link to the privacy policy. Set to null to reset the override. */
|
|
4061
|
-
url?: URL | null;
|
|
4062
|
-
};
|
|
4063
|
-
socialPreview?: {
|
|
4064
|
-
/** The URL for the social preview image. Set to null to reset the override. */
|
|
4065
|
-
url?: URL | null;
|
|
4066
|
-
};
|
|
4067
|
-
}
|
|
4068
4058
|
export interface SiteSpacePointer {
|
|
4069
4059
|
type: 'site-space';
|
|
4070
4060
|
/** Unique identifier for the site space */
|
|
@@ -4149,7 +4139,7 @@ export declare enum CustomHostnameErrorStatus {
|
|
|
4149
4139
|
InvalidDomain = "invalid_domain",
|
|
4150
4140
|
InternalError = "internal_error"
|
|
4151
4141
|
}
|
|
4152
|
-
export
|
|
4142
|
+
export type CustomHostnameStatus = CustomHostnameDnsStatus | CustomHostnameSslStatus | CustomHostnameErrorStatus;
|
|
4153
4143
|
export interface CustomHostname {
|
|
4154
4144
|
object: 'custom-hostname';
|
|
4155
4145
|
/** Custom hostname for the site, for e.g. docs.mycompany.com */
|
|
@@ -4283,7 +4273,7 @@ export interface UserImpersonationInfo {
|
|
|
4283
4273
|
impersonatorId: string;
|
|
4284
4274
|
}
|
|
4285
4275
|
/** The info returned when impersonating a GitBook User. */
|
|
4286
|
-
export
|
|
4276
|
+
export type UserImpersonation = UserBackOfficeInfo & {
|
|
4287
4277
|
/** The GitBook User impersonation info. */
|
|
4288
4278
|
impersonation: UserImpersonationInfo;
|
|
4289
4279
|
};
|
|
@@ -4333,11 +4323,11 @@ export declare enum SpaceBlockReason {
|
|
|
4333
4323
|
SOCIAL_ENGINEERING = "SOCIAL_ENGINEERING",
|
|
4334
4324
|
UNWANTED_SOFTWARE = "UNWANTED_SOFTWARE"
|
|
4335
4325
|
}
|
|
4336
|
-
export
|
|
4326
|
+
export type BackOfficeSite = Site & {
|
|
4337
4327
|
/** ID of the organization owning this site */
|
|
4338
4328
|
organization: string;
|
|
4339
4329
|
};
|
|
4340
|
-
export
|
|
4330
|
+
export type PublishedSiteContentLookup = {
|
|
4341
4331
|
/** Type of target for the redirect */
|
|
4342
4332
|
target: 'application' | 'content' | 'external';
|
|
4343
4333
|
redirect: URL;
|
|
@@ -4362,6 +4352,8 @@ export declare type PublishedSiteContentLookup = {
|
|
|
4362
4352
|
organization: string;
|
|
4363
4353
|
/** Share link key of the site in case the site was published with share-links. */
|
|
4364
4354
|
shareKey?: string;
|
|
4355
|
+
/** 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. */
|
|
4356
|
+
complete: boolean;
|
|
4365
4357
|
};
|
|
4366
4358
|
export interface UpdateContentPublishingAuth {
|
|
4367
4359
|
/**
|
|
@@ -4390,7 +4382,7 @@ export interface ContentPublishingAuth {
|
|
|
4390
4382
|
*/
|
|
4391
4383
|
fallbackURL?: string;
|
|
4392
4384
|
}
|
|
4393
|
-
export
|
|
4385
|
+
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;
|
|
4394
4386
|
/** The type of semantic change. */
|
|
4395
4387
|
export declare enum RevisionSemanticChangeType {
|
|
4396
4388
|
PageCreated = "page_created",
|
|
@@ -4461,7 +4453,37 @@ export declare enum APIIntegrationScope {
|
|
|
4461
4453
|
IntegrationInstallationRead = "integration:installation:read",
|
|
4462
4454
|
IntegrationInstallationUpdate = "integration:installation:update"
|
|
4463
4455
|
}
|
|
4464
|
-
export
|
|
4456
|
+
export type APIScope = IntegrationScope | APIIntegrationScope;
|
|
4457
|
+
/** Common properties for all Content API tokens. */
|
|
4458
|
+
export interface ContentAPIBaseToken {
|
|
4459
|
+
/** ID of the organization that owns the content. A content token is always scoped to spaces from the same organization. */
|
|
4460
|
+
organization: string;
|
|
4461
|
+
/** List of spaces that the token is allowed to access. */
|
|
4462
|
+
spaces: string[];
|
|
4463
|
+
/** Multiplier for the rate limit applied to the token. */
|
|
4464
|
+
rateLimitMultiplier?: number;
|
|
4465
|
+
}
|
|
4466
|
+
export type SpaceAPIToken = ContentAPIBaseToken & {
|
|
4467
|
+
kind: 'space';
|
|
4468
|
+
/** ID of the space that the token is allowed to access. */
|
|
4469
|
+
space: string;
|
|
4470
|
+
};
|
|
4471
|
+
export type CollectionAPIToken = ContentAPIBaseToken & {
|
|
4472
|
+
kind: 'collection';
|
|
4473
|
+
/** ID of the collection that the token is allowed to access. */
|
|
4474
|
+
collection: string;
|
|
4475
|
+
};
|
|
4476
|
+
export type SiteAPIToken = ContentAPIBaseToken & {
|
|
4477
|
+
kind: 'site';
|
|
4478
|
+
/** ID of the site that the token is allowed to access. */
|
|
4479
|
+
site: string;
|
|
4480
|
+
/** ID of the site-space to be used when using this token for rendering published content. */
|
|
4481
|
+
siteSpace: string;
|
|
4482
|
+
/** ID of the space to be used when using this token for rendering published content. */
|
|
4483
|
+
space: string;
|
|
4484
|
+
};
|
|
4485
|
+
/** Content properties stored in a Content API token. */
|
|
4486
|
+
export type ContentAPITokenPayload = SpaceAPIToken | CollectionAPIToken | SiteAPIToken;
|
|
4465
4487
|
export interface SpaceInfoChannel {
|
|
4466
4488
|
channel: 'space';
|
|
4467
4489
|
space: string;
|
|
@@ -4711,12 +4733,22 @@ export interface SiteShareLinkChannel {
|
|
|
4711
4733
|
site: string;
|
|
4712
4734
|
siteShareLink: string;
|
|
4713
4735
|
}
|
|
4736
|
+
/** Subscription channel for changes in site sections in an organization. */
|
|
4737
|
+
export interface SiteSectionsChannel {
|
|
4738
|
+
channel: 'site-sections';
|
|
4739
|
+
site: string;
|
|
4740
|
+
}
|
|
4741
|
+
export interface SiteSectionChannel {
|
|
4742
|
+
channel: 'site-section';
|
|
4743
|
+
site: string;
|
|
4744
|
+
siteSection: string;
|
|
4745
|
+
}
|
|
4714
4746
|
export interface CustomHostnameChannel {
|
|
4715
4747
|
channel: 'custom-hostname';
|
|
4716
4748
|
customHostname: string;
|
|
4717
4749
|
}
|
|
4718
4750
|
/** Channel to subscribe to for API updates. */
|
|
4719
|
-
export
|
|
4751
|
+
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;
|
|
4720
4752
|
/** The status of ads on the site */
|
|
4721
4753
|
export declare enum SiteAdsStatus {
|
|
4722
4754
|
Pending = "pending",
|
|
@@ -4736,32 +4768,32 @@ export interface Seat {
|
|
|
4736
4768
|
/** @format date-time */
|
|
4737
4769
|
updatedAt: string;
|
|
4738
4770
|
}
|
|
4739
|
-
export
|
|
4740
|
-
export
|
|
4741
|
-
export
|
|
4742
|
-
export
|
|
4743
|
-
export
|
|
4744
|
-
export
|
|
4745
|
-
export
|
|
4746
|
-
export
|
|
4747
|
-
export
|
|
4748
|
-
export
|
|
4749
|
-
export
|
|
4750
|
-
export
|
|
4751
|
-
export
|
|
4752
|
-
export
|
|
4753
|
-
export
|
|
4754
|
-
export
|
|
4755
|
-
export
|
|
4756
|
-
export
|
|
4757
|
-
export
|
|
4758
|
-
export
|
|
4759
|
-
export
|
|
4760
|
-
export
|
|
4761
|
-
export
|
|
4771
|
+
export type RequestSpaceTrackPageView = SpaceTrackPageView;
|
|
4772
|
+
export type RequestSiteTrackPageView = SiteTrackPageView;
|
|
4773
|
+
export type RequestPublishIntegration = PublishIntegration;
|
|
4774
|
+
export type RequestUpdateIntegrationInstallation = UpdateIntegrationInstallation;
|
|
4775
|
+
export type RequestUpdateIntegrationSpaceInstallation = UpdateIntegrationSpaceInstallation;
|
|
4776
|
+
export type RequestUpdateIntegrationSiteInstallation = UpdateIntegrationSiteInstallation;
|
|
4777
|
+
export type RequestUpgradeOrganizationBilling = UpgradeOrganizationBilling;
|
|
4778
|
+
export type RequestInviteUsersToOrganization = InviteUsersToOrganization;
|
|
4779
|
+
export type RequestImportGitRepository = ImportGitRepository;
|
|
4780
|
+
export type RequestSyncGitRepository = SyncGitRepository;
|
|
4781
|
+
export type RequestExportToGitRepository = ExportToGitRepository;
|
|
4782
|
+
export type RequestImportContent = ImportContent;
|
|
4783
|
+
export type RequestCreateSpace = CreateSpace;
|
|
4784
|
+
export type RequestCreateChangeRequest = CreateChangeRequest;
|
|
4785
|
+
export type RequestRenderIntegrationUI = RenderIntegrationUI;
|
|
4786
|
+
export type RequestUpdateContentPublishingAuth = UpdateContentPublishingAuth;
|
|
4787
|
+
export type RequestCreateOrganization = CreateOrganization;
|
|
4788
|
+
export type RequestUpdateSpaceGitInfo = UpdateSpaceGitInfo;
|
|
4789
|
+
export type RequestPurgeCDNCacheContext = PurgeCDNCacheContext;
|
|
4790
|
+
export type SpaceVisitorAuth = VisitorAuth;
|
|
4791
|
+
export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
|
|
4792
|
+
export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
|
|
4793
|
+
export type UserPermissions = Index;
|
|
4762
4794
|
import { EventIterator } from 'event-iterator';
|
|
4763
|
-
export
|
|
4764
|
-
export
|
|
4795
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
4796
|
+
export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
4765
4797
|
export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
4766
4798
|
/** set parameter to `true` for call `securityWorker` for this request */
|
|
4767
4799
|
secure?: boolean;
|
|
@@ -4780,7 +4812,7 @@ export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
|
4780
4812
|
/** request cancellation token */
|
|
4781
4813
|
cancelToken?: CancelToken;
|
|
4782
4814
|
}
|
|
4783
|
-
export
|
|
4815
|
+
export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
|
|
4784
4816
|
export interface ApiConfig<SecurityDataType = unknown> {
|
|
4785
4817
|
baseUrl?: string;
|
|
4786
4818
|
baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
|
|
@@ -4791,7 +4823,7 @@ export interface HttpResponse<D extends unknown, E extends unknown = unknown> ex
|
|
|
4791
4823
|
data: D;
|
|
4792
4824
|
error: E;
|
|
4793
4825
|
}
|
|
4794
|
-
|
|
4826
|
+
type CancelToken = Symbol | string | number;
|
|
4795
4827
|
export declare enum ContentType {
|
|
4796
4828
|
Json = "application/json",
|
|
4797
4829
|
FormData = "multipart/form-data",
|
|
@@ -4817,7 +4849,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
4817
4849
|
protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
|
|
4818
4850
|
abortRequest: (cancelToken: CancelToken) => void;
|
|
4819
4851
|
request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
|
|
4820
|
-
streamRequest: <T, E>({ path, baseUrl, cancelToken, secure, ...params }: FullRequestParams) => EventIterator<T>;
|
|
4852
|
+
streamRequest: <T, E = any>({ path, baseUrl, cancelToken, secure, ...params }: FullRequestParams) => EventIterator<T>;
|
|
4821
4853
|
}
|
|
4822
4854
|
/**
|
|
4823
4855
|
* @title GitBook API
|
|
@@ -4874,7 +4906,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4874
4906
|
askQueryWithGet: (query: {
|
|
4875
4907
|
query: string;
|
|
4876
4908
|
/** Output format for the content. */
|
|
4877
|
-
format?:
|
|
4909
|
+
format?: "document" | "markdown";
|
|
4878
4910
|
/** Return query details in the result */
|
|
4879
4911
|
details?: boolean;
|
|
4880
4912
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -4891,7 +4923,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4891
4923
|
*/
|
|
4892
4924
|
askQuery: (data: SearchAIQuery, query?: {
|
|
4893
4925
|
/** Output format for the content. */
|
|
4894
|
-
format?:
|
|
4926
|
+
format?: "document" | "markdown";
|
|
4895
4927
|
/** Return query details in the result */
|
|
4896
4928
|
details?: boolean;
|
|
4897
4929
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -5122,7 +5154,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5122
5154
|
askQueryInSpaceWithGet: (spaceId: string, query: {
|
|
5123
5155
|
query: string;
|
|
5124
5156
|
/** Output format for the content. */
|
|
5125
|
-
format?:
|
|
5157
|
+
format?: "document" | "markdown";
|
|
5126
5158
|
/** Return query details in the result */
|
|
5127
5159
|
details?: boolean;
|
|
5128
5160
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -5139,7 +5171,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5139
5171
|
*/
|
|
5140
5172
|
askQueryInSpace: (spaceId: string, data: SearchAIQuery, query?: {
|
|
5141
5173
|
/** Output format for the content. */
|
|
5142
|
-
format?:
|
|
5174
|
+
format?: "document" | "markdown";
|
|
5143
5175
|
/** Return query details in the result */
|
|
5144
5176
|
details?: boolean;
|
|
5145
5177
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -5157,7 +5189,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5157
5189
|
streamAskInSpace: (spaceId: string, query: {
|
|
5158
5190
|
query: string;
|
|
5159
5191
|
/** Output format for the content. */
|
|
5160
|
-
format?:
|
|
5192
|
+
format?: "document" | "markdown";
|
|
5161
5193
|
/** Ensure that the response is never null */
|
|
5162
5194
|
details?: boolean;
|
|
5163
5195
|
}, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
|
|
@@ -5419,20 +5451,49 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5419
5451
|
*/
|
|
5420
5452
|
getPageById: (spaceId: string, pageId: string, query?: {
|
|
5421
5453
|
/** Output format for the content. */
|
|
5422
|
-
format?:
|
|
5454
|
+
format?: "document" | "markdown";
|
|
5423
5455
|
/**
|
|
5424
5456
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5425
5457
|
* @default true
|
|
5426
5458
|
*/
|
|
5427
5459
|
metadata?: boolean;
|
|
5428
5460
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
5461
|
+
/**
|
|
5462
|
+
* No description
|
|
5463
|
+
*
|
|
5464
|
+
* @tags spaces, links
|
|
5465
|
+
* @name ListPageLinksInSpace
|
|
5466
|
+
* @summary List all links in a page
|
|
5467
|
+
* @request GET:/spaces/{spaceId}/content/page/{pageId}/links
|
|
5468
|
+
* @secure
|
|
5469
|
+
*/
|
|
5470
|
+
listPageLinksInSpace: (spaceId: string, pageId: string, query?: {
|
|
5471
|
+
/** Identifier of the page results to fetch. */
|
|
5472
|
+
page?: string;
|
|
5473
|
+
/**
|
|
5474
|
+
* The number of results per page
|
|
5475
|
+
* @min 0
|
|
5476
|
+
* @max 1000
|
|
5477
|
+
*/
|
|
5478
|
+
limit?: number;
|
|
5479
|
+
/**
|
|
5480
|
+
* Text to display to represent the reference. Possible values include:
|
|
5481
|
+
* - `ok` - No problems detected for this content reference.
|
|
5482
|
+
* - `broken` - The target does not exist in the revision.
|
|
5483
|
+
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
5484
|
+
*/
|
|
5485
|
+
status?: ContentReferenceStatus;
|
|
5486
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5487
|
+
stats: ContentReferencesStats;
|
|
5488
|
+
items: ContentReferenceUsage[];
|
|
5489
|
+
}, Error>>;
|
|
5429
5490
|
/**
|
|
5430
5491
|
* No description
|
|
5431
5492
|
*
|
|
5432
5493
|
* @tags spaces
|
|
5433
5494
|
* @name ListSpacePageBacklinks
|
|
5434
5495
|
* @summary Get backlink locations for a page existing in a space.
|
|
5435
|
-
* @request GET:/spaces/{spaceId}/content/
|
|
5496
|
+
* @request GET:/spaces/{spaceId}/content/page/{pageId}/backlinks
|
|
5436
5497
|
* @secure
|
|
5437
5498
|
*/
|
|
5438
5499
|
listSpacePageBacklinks: (spaceId: string, pageId: string, query?: {
|
|
@@ -5466,7 +5527,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5466
5527
|
*/
|
|
5467
5528
|
getPageByPath: (spaceId: string, pagePath: string, query?: {
|
|
5468
5529
|
/** Output format for the content. */
|
|
5469
|
-
format?:
|
|
5530
|
+
format?: "document" | "markdown";
|
|
5470
5531
|
/**
|
|
5471
5532
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5472
5533
|
* @default true
|
|
@@ -5483,7 +5544,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5483
5544
|
*/
|
|
5484
5545
|
getDocumentById: (spaceId: string, documentId: string, query?: {
|
|
5485
5546
|
/** Version of the schema used for the document. */
|
|
5486
|
-
schema?:
|
|
5547
|
+
schema?: "current" | "next";
|
|
5487
5548
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, Error>>;
|
|
5488
5549
|
/**
|
|
5489
5550
|
* No description
|
|
@@ -5549,7 +5610,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5549
5610
|
updateChangeRequestById: (spaceId: string, changeRequestId: string, data: {
|
|
5550
5611
|
/** Subject of the change request */
|
|
5551
5612
|
subject?: ChangeRequestSubject;
|
|
5552
|
-
status?:
|
|
5613
|
+
status?: "draft" | "open" | "archived";
|
|
5553
5614
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
5554
5615
|
/**
|
|
5555
5616
|
* No description
|
|
@@ -5563,7 +5624,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5563
5624
|
mergeChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
5564
5625
|
/** ID of the resulting revision */
|
|
5565
5626
|
revision: string;
|
|
5566
|
-
result:
|
|
5627
|
+
result: "merge" | "conflicts";
|
|
5567
5628
|
}, Error>>;
|
|
5568
5629
|
/**
|
|
5569
5630
|
* No description
|
|
@@ -5577,7 +5638,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5577
5638
|
updateChangeRequest: (spaceId: string, changeRequestId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
5578
5639
|
/** ID of the resulting revision */
|
|
5579
5640
|
revision: string;
|
|
5580
|
-
result:
|
|
5641
|
+
result: "update" | "conflicts";
|
|
5581
5642
|
}, Error>>;
|
|
5582
5643
|
/**
|
|
5583
5644
|
* No description
|
|
@@ -5590,7 +5651,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5590
5651
|
*/
|
|
5591
5652
|
getReviewsByChangeRequestId: (spaceId: string, changeRequestId: string, query?: {
|
|
5592
5653
|
/** Output format for the content. */
|
|
5593
|
-
format?:
|
|
5654
|
+
format?: "document" | "markdown";
|
|
5594
5655
|
/** Identifier of the page results to fetch. */
|
|
5595
5656
|
page?: string;
|
|
5596
5657
|
/**
|
|
@@ -5687,7 +5748,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5687
5748
|
* - `in-app` - The target is a URL link pointing to an internal location in the app.
|
|
5688
5749
|
*/
|
|
5689
5750
|
status?: ContentReferenceStatus;
|
|
5690
|
-
brokenContext?:
|
|
5751
|
+
brokenContext?: "change-request" | "space";
|
|
5691
5752
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5692
5753
|
stats: ContentReferencesStats;
|
|
5693
5754
|
items: ContentReferenceUsage[];
|
|
@@ -5720,14 +5781,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5720
5781
|
* An order for the items in the list
|
|
5721
5782
|
* @default "desc"
|
|
5722
5783
|
*/
|
|
5723
|
-
order?:
|
|
5784
|
+
order?: "asc" | "desc";
|
|
5724
5785
|
/** Output format for the content. */
|
|
5725
|
-
format?:
|
|
5786
|
+
format?: "document" | "markdown";
|
|
5726
5787
|
/**
|
|
5727
5788
|
* When provided, only comments with the given status are returned. Defaults to "all".
|
|
5728
5789
|
* @default "all"
|
|
5729
5790
|
*/
|
|
5730
|
-
status?:
|
|
5791
|
+
status?: "all" | "open" | "resolved";
|
|
5731
5792
|
/** The target page of the comment */
|
|
5732
5793
|
targetPage?: string;
|
|
5733
5794
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -5754,7 +5815,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5754
5815
|
*/
|
|
5755
5816
|
getCommentInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, query?: {
|
|
5756
5817
|
/** Output format for the content. */
|
|
5757
|
-
format?:
|
|
5818
|
+
format?: "document" | "markdown";
|
|
5758
5819
|
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
5759
5820
|
/**
|
|
5760
5821
|
* No description
|
|
@@ -5795,7 +5856,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5795
5856
|
*/
|
|
5796
5857
|
limit?: number;
|
|
5797
5858
|
/** Output format for the content. */
|
|
5798
|
-
format?:
|
|
5859
|
+
format?: "document" | "markdown";
|
|
5799
5860
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
5800
5861
|
items: CommentReply[];
|
|
5801
5862
|
}, Error>>;
|
|
@@ -5810,7 +5871,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5810
5871
|
*/
|
|
5811
5872
|
postCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, data: PostCommentReplySchema, query?: {
|
|
5812
5873
|
/** Output format for the content. */
|
|
5813
|
-
format?:
|
|
5874
|
+
format?: "document" | "markdown";
|
|
5814
5875
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
5815
5876
|
/**
|
|
5816
5877
|
* No description
|
|
@@ -5823,7 +5884,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5823
5884
|
*/
|
|
5824
5885
|
getCommentReplyInChangeRequest: (spaceId: string, changeRequestId: string, commentId: string, commentReplyId: string, query?: {
|
|
5825
5886
|
/** Output format for the content. */
|
|
5826
|
-
format?:
|
|
5887
|
+
format?: "document" | "markdown";
|
|
5827
5888
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
5828
5889
|
/**
|
|
5829
5890
|
* No description
|
|
@@ -5975,13 +6036,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5975
6036
|
*/
|
|
5976
6037
|
getPageInChangeRequestById: (spaceId: string, changeRequestId: string, pageId: string, query?: {
|
|
5977
6038
|
/** Output format for the content. */
|
|
5978
|
-
format?:
|
|
6039
|
+
format?: "document" | "markdown";
|
|
5979
6040
|
/**
|
|
5980
6041
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
5981
6042
|
* @default true
|
|
5982
6043
|
*/
|
|
5983
6044
|
metadata?: boolean;
|
|
5984
6045
|
}, params?: RequestParams) => Promise<HttpResponse<RevisionPage, Error>>;
|
|
6046
|
+
/**
|
|
6047
|
+
* No description
|
|
6048
|
+
*
|
|
6049
|
+
* @tags spaces
|
|
6050
|
+
* @name ListPageLinksInChangeRequest
|
|
6051
|
+
* @summary List all links in a page inside a change request.
|
|
6052
|
+
* @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links
|
|
6053
|
+
* @secure
|
|
6054
|
+
*/
|
|
6055
|
+
listPageLinksInChangeRequest: (spaceId: string, changeRequestId: string, pageId: string, query?: {
|
|
6056
|
+
/** Identifier of the page results to fetch. */
|
|
6057
|
+
page?: string;
|
|
6058
|
+
/**
|
|
6059
|
+
* The number of results per page
|
|
6060
|
+
* @min 0
|
|
6061
|
+
* @max 1000
|
|
6062
|
+
*/
|
|
6063
|
+
limit?: number;
|
|
6064
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6065
|
+
stats: ContentReferencesStats;
|
|
6066
|
+
items: ContentReferenceUsage[];
|
|
6067
|
+
}, Error>>;
|
|
5985
6068
|
/**
|
|
5986
6069
|
* No description
|
|
5987
6070
|
*
|
|
@@ -6022,7 +6105,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6022
6105
|
*/
|
|
6023
6106
|
getPageInChangeRequestByPath: (spaceId: string, changeRequestId: string, pagePath: string, query?: {
|
|
6024
6107
|
/** Output format for the content. */
|
|
6025
|
-
format?:
|
|
6108
|
+
format?: "document" | "markdown";
|
|
6026
6109
|
/**
|
|
6027
6110
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
6028
6111
|
* @default true
|
|
@@ -6044,7 +6127,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6044
6127
|
/** The branch id of the touched content. */
|
|
6045
6128
|
branchId: string;
|
|
6046
6129
|
/** The relation of the touched content to the change request. */
|
|
6047
|
-
relation:
|
|
6130
|
+
relation: "synced-block";
|
|
6048
6131
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
6049
6132
|
/**
|
|
6050
6133
|
* No description
|
|
@@ -6166,7 +6249,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6166
6249
|
*/
|
|
6167
6250
|
getPageInRevisionById: (spaceId: string, revisionId: string, pageId: string, query?: {
|
|
6168
6251
|
/** Output format for the content. */
|
|
6169
|
-
format?:
|
|
6252
|
+
format?: "document" | "markdown";
|
|
6170
6253
|
/**
|
|
6171
6254
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
6172
6255
|
* @default true
|
|
@@ -6183,7 +6266,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6183
6266
|
*/
|
|
6184
6267
|
getPageInRevisionByPath: (spaceId: string, revisionId: string, pagePath: string, query?: {
|
|
6185
6268
|
/** Output format for the content. */
|
|
6186
|
-
format?:
|
|
6269
|
+
format?: "document" | "markdown";
|
|
6187
6270
|
/**
|
|
6188
6271
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
6189
6272
|
* @default true
|
|
@@ -6212,14 +6295,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6212
6295
|
* An order for the items in the list
|
|
6213
6296
|
* @default "desc"
|
|
6214
6297
|
*/
|
|
6215
|
-
order?:
|
|
6298
|
+
order?: "asc" | "desc";
|
|
6216
6299
|
/**
|
|
6217
6300
|
* When provided, only comments with the given status are returned. Defaults to "all".
|
|
6218
6301
|
* @default "all"
|
|
6219
6302
|
*/
|
|
6220
|
-
status?:
|
|
6303
|
+
status?: "all" | "open" | "resolved";
|
|
6221
6304
|
/** Output format for the content. */
|
|
6222
|
-
format?:
|
|
6305
|
+
format?: "document" | "markdown";
|
|
6223
6306
|
/** The target page of the comment */
|
|
6224
6307
|
targetPage?: string;
|
|
6225
6308
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -6246,7 +6329,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6246
6329
|
*/
|
|
6247
6330
|
getCommentInSpace: (spaceId: string, commentId: string, query?: {
|
|
6248
6331
|
/** Output format for the content. */
|
|
6249
|
-
format?:
|
|
6332
|
+
format?: "document" | "markdown";
|
|
6250
6333
|
}, params?: RequestParams) => Promise<HttpResponse<Comment, Error>>;
|
|
6251
6334
|
/**
|
|
6252
6335
|
* No description
|
|
@@ -6287,7 +6370,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6287
6370
|
*/
|
|
6288
6371
|
limit?: number;
|
|
6289
6372
|
/** Output format for the content. */
|
|
6290
|
-
format?:
|
|
6373
|
+
format?: "document" | "markdown";
|
|
6291
6374
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6292
6375
|
items: CommentReply[];
|
|
6293
6376
|
}, Error>>;
|
|
@@ -6312,7 +6395,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6312
6395
|
*/
|
|
6313
6396
|
getCommentReplyInSpace: (spaceId: string, commentId: string, commentReplyId: string, query?: {
|
|
6314
6397
|
/** Output format for the content. */
|
|
6315
|
-
format?:
|
|
6398
|
+
format?: "document" | "markdown";
|
|
6316
6399
|
}, params?: RequestParams) => Promise<HttpResponse<CommentReply, Error>>;
|
|
6317
6400
|
/**
|
|
6318
6401
|
* No description
|
|
@@ -6538,7 +6621,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6538
6621
|
*
|
|
6539
6622
|
* @tags spaces, links
|
|
6540
6623
|
* @name ListSpaceLinks
|
|
6541
|
-
* @summary Get all links in
|
|
6624
|
+
* @summary Get all links in a space including their status and location where they appear.
|
|
6542
6625
|
* @request GET:/spaces/{spaceId}/links
|
|
6543
6626
|
* @secure
|
|
6544
6627
|
*/
|
|
@@ -6824,6 +6907,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6824
6907
|
* @pattern ^[a-zA-Z0-9-_.]+$
|
|
6825
6908
|
*/
|
|
6826
6909
|
blockDomain?: string;
|
|
6910
|
+
/** If true, returns only integrations with blocks. If false, returns only integrations without blocks. */
|
|
6911
|
+
blocks?: boolean;
|
|
6827
6912
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
6828
6913
|
items: Integration[];
|
|
6829
6914
|
}, Error>>;
|
|
@@ -6975,18 +7060,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6975
7060
|
* No description
|
|
6976
7061
|
*
|
|
6977
7062
|
* @tags integrations
|
|
6978
|
-
* @name
|
|
6979
|
-
* @summary Update
|
|
6980
|
-
* @request PUT:/integrations/{integrationName}/
|
|
7063
|
+
* @name SetIntegrationDevelopmentMode
|
|
7064
|
+
* @summary Update an integration to be in development mode.
|
|
7065
|
+
* @request PUT:/integrations/{integrationName}/dev
|
|
6981
7066
|
* @secure
|
|
6982
7067
|
*/
|
|
6983
|
-
|
|
7068
|
+
setIntegrationDevelopmentMode: (integrationName: string, data: {
|
|
6984
7069
|
/**
|
|
6985
7070
|
* URL of the tunnel to dispatch integration events to
|
|
6986
7071
|
* @minLength 1
|
|
6987
7072
|
* @maxLength 256
|
|
6988
7073
|
*/
|
|
6989
7074
|
tunnelUrl: string;
|
|
7075
|
+
/**
|
|
7076
|
+
* If set to true, all requests will be forwarded to the tunnel, not just from the owning organization.
|
|
7077
|
+
* @default false
|
|
7078
|
+
*/
|
|
7079
|
+
all?: boolean;
|
|
6990
7080
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
6991
7081
|
error: {
|
|
6992
7082
|
/** @format int32 */
|
|
@@ -6998,18 +7088,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6998
7088
|
* No description
|
|
6999
7089
|
*
|
|
7000
7090
|
* @tags integrations
|
|
7001
|
-
* @name
|
|
7002
|
-
* @summary
|
|
7003
|
-
* @request DELETE:/integrations/{integrationName}/
|
|
7091
|
+
* @name DisableIntegrationDevelopmentMode
|
|
7092
|
+
* @summary Disable the development mode on an integration.
|
|
7093
|
+
* @request DELETE:/integrations/{integrationName}/dev
|
|
7004
7094
|
* @secure
|
|
7005
7095
|
*/
|
|
7006
|
-
|
|
7007
|
-
error: {
|
|
7008
|
-
/** @format int32 */
|
|
7009
|
-
code: 404;
|
|
7010
|
-
message: string;
|
|
7011
|
-
};
|
|
7012
|
-
}>>;
|
|
7096
|
+
disableIntegrationDevelopmentMode: (integrationName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
7013
7097
|
/**
|
|
7014
7098
|
* No description
|
|
7015
7099
|
*
|
|
@@ -7376,16 +7460,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7376
7460
|
* An order for the items in the list
|
|
7377
7461
|
* @default "desc"
|
|
7378
7462
|
*/
|
|
7379
|
-
order?:
|
|
7463
|
+
order?: "asc" | "desc";
|
|
7380
7464
|
/** The Role to filter the member list by */
|
|
7381
|
-
role?: MemberRole |
|
|
7465
|
+
role?: MemberRole | "guest";
|
|
7382
7466
|
/** A query to filter the member list (displayName and email) */
|
|
7383
7467
|
search?: string;
|
|
7384
7468
|
/**
|
|
7385
7469
|
* The property to sort the results by. When sorting by lastSeenAt, only active members will be listed.
|
|
7386
7470
|
* @default "joinedAt"
|
|
7387
7471
|
*/
|
|
7388
|
-
sort?:
|
|
7472
|
+
sort?: "joinedAt" | "lastSeenAt";
|
|
7389
7473
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
7390
7474
|
items: OrganizationMember[];
|
|
7391
7475
|
}, Error>>;
|
|
@@ -7696,7 +7780,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7696
7780
|
* @request POST:/orgs/{organizationId}/billing
|
|
7697
7781
|
* @secure
|
|
7698
7782
|
*/
|
|
7699
|
-
upgradeOrganizationPlan: (organizationId: string, data: UpgradeOrganizationBilling,
|
|
7783
|
+
upgradeOrganizationPlan: (organizationId: string, data: UpgradeOrganizationBilling, query?: {
|
|
7784
|
+
/** The app screen URL to bring the user back to after a successful checkout. */
|
|
7785
|
+
successReturnURL?: string;
|
|
7786
|
+
/** The app screen URL to bring the user back to after a canceled checkout. */
|
|
7787
|
+
cancelReturnURL?: string;
|
|
7788
|
+
}, params?: RequestParams) => Promise<HttpResponse<BillingUpgrade, Error>>;
|
|
7700
7789
|
/**
|
|
7701
7790
|
* No description
|
|
7702
7791
|
*
|
|
@@ -7725,8 +7814,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
7725
7814
|
members?: number;
|
|
7726
7815
|
/** The desired amount of published premium sites */
|
|
7727
7816
|
premiumSites?: number;
|
|
7728
|
-
/** The desired amount of published
|
|
7729
|
-
|
|
7817
|
+
/** The desired amount of published ultimate sites */
|
|
7818
|
+
ultimateSites?: number;
|
|
7730
7819
|
}, params?: RequestParams) => Promise<HttpResponse<BillingInvoicePreview, Error>>;
|
|
7731
7820
|
/**
|
|
7732
7821
|
* No description
|
|
@@ -8233,7 +8322,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8233
8322
|
*/
|
|
8234
8323
|
listCaptures: (organizationId: string, query?: {
|
|
8235
8324
|
/** Output format for the content. */
|
|
8236
|
-
format?:
|
|
8325
|
+
format?: "document" | "markdown";
|
|
8237
8326
|
/** Identifier of the page results to fetch. */
|
|
8238
8327
|
page?: string;
|
|
8239
8328
|
/**
|
|
@@ -8243,7 +8332,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8243
8332
|
*/
|
|
8244
8333
|
limit?: number;
|
|
8245
8334
|
/** The context in which the item was captured */
|
|
8246
|
-
context?:
|
|
8335
|
+
context?: "walkthrough" | "thread";
|
|
8247
8336
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8248
8337
|
items: Capture[];
|
|
8249
8338
|
}, Error>>;
|
|
@@ -8280,7 +8369,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8280
8369
|
*/
|
|
8281
8370
|
getCapture: (organizationId: string, captureId: string, query?: {
|
|
8282
8371
|
/** Output format for the content. */
|
|
8283
|
-
format?:
|
|
8372
|
+
format?: "document" | "markdown";
|
|
8284
8373
|
}, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
|
|
8285
8374
|
/**
|
|
8286
8375
|
* No description
|
|
@@ -8305,7 +8394,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8305
8394
|
*/
|
|
8306
8395
|
stopCapture: (organizationId: string, captureId: string, data: object, query?: {
|
|
8307
8396
|
/** Output format for the content. */
|
|
8308
|
-
format?:
|
|
8397
|
+
format?: "document" | "markdown";
|
|
8309
8398
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
8310
8399
|
capture: Capture;
|
|
8311
8400
|
/** Example questions that would be answered by the content of this capture. */
|
|
@@ -8450,6 +8539,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8450
8539
|
* @max 1000
|
|
8451
8540
|
*/
|
|
8452
8541
|
limit?: number;
|
|
8542
|
+
/** A list of IDs to filter the synced blocks. */
|
|
8543
|
+
ids?: string[];
|
|
8453
8544
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8454
8545
|
items: SyncedBlock[];
|
|
8455
8546
|
}, Error>>;
|
|
@@ -8465,7 +8556,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8465
8556
|
createSyncedBlock: (organizationId: string, data: {
|
|
8466
8557
|
/** Title of synced block */
|
|
8467
8558
|
title?: string;
|
|
8468
|
-
|
|
8559
|
+
/** The content of the synced block. For now, only JSON documents are supported. */
|
|
8560
|
+
content: Document;
|
|
8469
8561
|
}, params?: RequestParams) => Promise<HttpResponse<SyncedBlock, Error>>;
|
|
8470
8562
|
/**
|
|
8471
8563
|
* No description
|
|
@@ -8483,13 +8575,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8483
8575
|
* @tags organizations
|
|
8484
8576
|
* @name UpdateSyncedBlock
|
|
8485
8577
|
* @summary Update an existing synced block.
|
|
8486
|
-
* @request
|
|
8578
|
+
* @request PATCH:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
|
|
8487
8579
|
* @secure
|
|
8488
8580
|
*/
|
|
8489
8581
|
updateSyncedBlock: (organizationId: string, syncedBlockId: string, data: {
|
|
8490
8582
|
/** A new title for the Synced Block. */
|
|
8491
8583
|
title?: string;
|
|
8584
|
+
/** A new description for the Synced Block. */
|
|
8585
|
+
description?: string;
|
|
8492
8586
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8587
|
+
/**
|
|
8588
|
+
* No description
|
|
8589
|
+
*
|
|
8590
|
+
* @tags organizations
|
|
8591
|
+
* @name DeleteSyncedBlock
|
|
8592
|
+
* @summary Delete a synced block by its ID
|
|
8593
|
+
* @request DELETE:/orgs/{organizationId}/synced-blocks/{syncedBlockId}
|
|
8594
|
+
* @secure
|
|
8595
|
+
*/
|
|
8596
|
+
deleteSyncedBlock: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8493
8597
|
/**
|
|
8494
8598
|
* No description
|
|
8495
8599
|
*
|
|
@@ -8507,12 +8611,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8507
8611
|
* No description
|
|
8508
8612
|
*
|
|
8509
8613
|
* @tags organizations
|
|
8510
|
-
* @name
|
|
8614
|
+
* @name ListSyncedBlockBacklinks
|
|
8511
8615
|
* @summary Get a list of pages that reference this synced block.
|
|
8512
8616
|
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks
|
|
8513
8617
|
* @secure
|
|
8514
8618
|
*/
|
|
8515
|
-
|
|
8619
|
+
listSyncedBlockBacklinks: (organizationId: string, syncedBlockId: string, query?: {
|
|
8516
8620
|
/** Identifier of the page results to fetch. */
|
|
8517
8621
|
page?: string;
|
|
8518
8622
|
/**
|
|
@@ -8521,8 +8625,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8521
8625
|
* @max 1000
|
|
8522
8626
|
*/
|
|
8523
8627
|
limit?: number;
|
|
8628
|
+
/** Filter backlinks relative to a change request. */
|
|
8629
|
+
changeRequestId?: string;
|
|
8630
|
+
/** Filter backlinks relative to a space. */
|
|
8631
|
+
spaceId?: string;
|
|
8524
8632
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8525
|
-
items:
|
|
8633
|
+
items: ContentLocationPage[];
|
|
8526
8634
|
}, Error>>;
|
|
8527
8635
|
/**
|
|
8528
8636
|
* No description
|
|
@@ -8555,7 +8663,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8555
8663
|
*/
|
|
8556
8664
|
askInOrganization: (organizationId: string, data: SearchAIQuery, query?: {
|
|
8557
8665
|
/** Output format for the content. */
|
|
8558
|
-
format?:
|
|
8666
|
+
format?: "document" | "markdown";
|
|
8559
8667
|
/** Return query details in the result */
|
|
8560
8668
|
details?: boolean;
|
|
8561
8669
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -8591,7 +8699,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8591
8699
|
streamAskInOrganization: (organizationId: string, query: {
|
|
8592
8700
|
query: string;
|
|
8593
8701
|
/** Output format for the content. */
|
|
8594
|
-
format?:
|
|
8702
|
+
format?: "document" | "markdown";
|
|
8595
8703
|
/** Return query details in the result */
|
|
8596
8704
|
details?: boolean;
|
|
8597
8705
|
}, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
|
|
@@ -8619,6 +8727,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8619
8727
|
title?: string;
|
|
8620
8728
|
/** Filter sites by their published status */
|
|
8621
8729
|
published?: boolean;
|
|
8730
|
+
/** Filter by site type */
|
|
8731
|
+
type?: SiteType[];
|
|
8622
8732
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8623
8733
|
items: Site[];
|
|
8624
8734
|
}, Error>>;
|
|
@@ -8645,7 +8755,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8645
8755
|
*/
|
|
8646
8756
|
visibility?: SiteVisibility;
|
|
8647
8757
|
/** ID of spaces to be added to the site */
|
|
8648
|
-
spaces?: string[] |
|
|
8758
|
+
spaces?: string[] | "sample" | "empty";
|
|
8649
8759
|
}, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
|
|
8650
8760
|
/**
|
|
8651
8761
|
* No description
|
|
@@ -8721,7 +8831,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8721
8831
|
* @secure
|
|
8722
8832
|
*/
|
|
8723
8833
|
publishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site | {
|
|
8724
|
-
type:
|
|
8834
|
+
type: "checkout";
|
|
8725
8835
|
/** Stripe payment session ID */
|
|
8726
8836
|
sessionId: string;
|
|
8727
8837
|
}, Error>>;
|
|
@@ -8793,6 +8903,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8793
8903
|
* @secure
|
|
8794
8904
|
*/
|
|
8795
8905
|
deleteSiteShareLinkById: (organizationId: string, siteId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8906
|
+
/**
|
|
8907
|
+
* No description
|
|
8908
|
+
*
|
|
8909
|
+
* @tags sites
|
|
8910
|
+
* @name GetSiteStructure
|
|
8911
|
+
* @summary Get the structure of a site which includes site-sections and site-spaces
|
|
8912
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/structure
|
|
8913
|
+
* @secure
|
|
8914
|
+
*/
|
|
8915
|
+
getSiteStructure: (organizationId: string, siteId: string, query?: {
|
|
8916
|
+
/** For sites published via share-links, the share key is useful to resolve published URLs. */
|
|
8917
|
+
shareKey?: string;
|
|
8918
|
+
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
8919
|
+
type?: "sections";
|
|
8920
|
+
structure?: SiteSection[];
|
|
8921
|
+
} | {
|
|
8922
|
+
type?: "siteSpaces";
|
|
8923
|
+
structure?: SiteSpace[];
|
|
8924
|
+
}, Error | {
|
|
8925
|
+
error: {
|
|
8926
|
+
/** @format int32 */
|
|
8927
|
+
code: 404;
|
|
8928
|
+
message: string;
|
|
8929
|
+
};
|
|
8930
|
+
}>>;
|
|
8796
8931
|
/**
|
|
8797
8932
|
* No description
|
|
8798
8933
|
*
|
|
@@ -8808,23 +8943,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8808
8943
|
/** Desired interval for new subscriptions. Defaults to the existing billing interval. */
|
|
8809
8944
|
interval?: BillingInterval;
|
|
8810
8945
|
}, query?: {
|
|
8811
|
-
/** The app screen URL to bring the user back to after a
|
|
8946
|
+
/** The app screen URL to bring the user back to after a successful checkout. */
|
|
8812
8947
|
successReturnURL?: string;
|
|
8813
8948
|
/** The app screen URL to bring the user back to after a canceled checkout. */
|
|
8814
8949
|
cancelReturnURL?: string;
|
|
8815
8950
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
8816
8951
|
/** User must checkout to complete the update. */
|
|
8817
|
-
type:
|
|
8952
|
+
type: "checkout";
|
|
8818
8953
|
/** Stripe payment session ID */
|
|
8819
8954
|
sessionId: string;
|
|
8820
8955
|
} | {
|
|
8821
8956
|
/** User needs to go through the legacy update flow. */
|
|
8822
|
-
type:
|
|
8957
|
+
type: "legacy-checkout";
|
|
8823
8958
|
/** Stripe payment session ID */
|
|
8824
8959
|
sessionId: string;
|
|
8825
8960
|
} | {
|
|
8826
8961
|
/** The site plan was successfully updated. */
|
|
8827
|
-
type:
|
|
8962
|
+
type: "success";
|
|
8828
8963
|
}, Error>>;
|
|
8829
8964
|
/**
|
|
8830
8965
|
* No description
|
|
@@ -9012,6 +9147,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9012
9147
|
addSpaceToSite: (organizationId: string, siteId: string, data: {
|
|
9013
9148
|
/** ID of the space */
|
|
9014
9149
|
spaceId: string;
|
|
9150
|
+
/** 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. */
|
|
9151
|
+
sectionId?: string;
|
|
9015
9152
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, Error>>;
|
|
9016
9153
|
/**
|
|
9017
9154
|
* No description
|
|
@@ -9038,6 +9175,70 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9038
9175
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9039
9176
|
items: SiteSpace[];
|
|
9040
9177
|
}, Error>>;
|
|
9178
|
+
/**
|
|
9179
|
+
* No description
|
|
9180
|
+
*
|
|
9181
|
+
* @tags sites
|
|
9182
|
+
* @name AddSectionToSite
|
|
9183
|
+
* @summary Add a section to a site in an organization
|
|
9184
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/sections
|
|
9185
|
+
* @secure
|
|
9186
|
+
*/
|
|
9187
|
+
addSectionToSite: (organizationId: string, siteId: string, data: {
|
|
9188
|
+
/** ID of the space to be added to the section as a site space variant */
|
|
9189
|
+
spaceId: string;
|
|
9190
|
+
/**
|
|
9191
|
+
* Title of the section
|
|
9192
|
+
* @maxLength 64
|
|
9193
|
+
*/
|
|
9194
|
+
title?: string;
|
|
9195
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error>>;
|
|
9196
|
+
/**
|
|
9197
|
+
* No description
|
|
9198
|
+
*
|
|
9199
|
+
* @tags sites
|
|
9200
|
+
* @name ListSiteSections
|
|
9201
|
+
* @summary List all the site sections under a site in an organization
|
|
9202
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/sections
|
|
9203
|
+
* @secure
|
|
9204
|
+
*/
|
|
9205
|
+
listSiteSections: (organizationId: string, siteId: string, query?: {
|
|
9206
|
+
/** For sites published via share-links, the share key is useful to resolve published URLs. */
|
|
9207
|
+
shareKey?: string;
|
|
9208
|
+
/** Identifier of the page results to fetch. */
|
|
9209
|
+
page?: string;
|
|
9210
|
+
/**
|
|
9211
|
+
* The number of results per page
|
|
9212
|
+
* @min 0
|
|
9213
|
+
* @max 1000
|
|
9214
|
+
*/
|
|
9215
|
+
limit?: number;
|
|
9216
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9217
|
+
items: SiteSection[];
|
|
9218
|
+
}, Error>>;
|
|
9219
|
+
/**
|
|
9220
|
+
* No description
|
|
9221
|
+
*
|
|
9222
|
+
* @tags sites
|
|
9223
|
+
* @name UpdateSiteSectionById
|
|
9224
|
+
* @summary Update a section on a site in an organization
|
|
9225
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}
|
|
9226
|
+
* @secure
|
|
9227
|
+
*/
|
|
9228
|
+
updateSiteSectionById: (organizationId: string, siteId: string, siteSectionId: string, data: {
|
|
9229
|
+
/** Path to the section on the site */
|
|
9230
|
+
path?: SiteSectionPath;
|
|
9231
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, Error>>;
|
|
9232
|
+
/**
|
|
9233
|
+
* No description
|
|
9234
|
+
*
|
|
9235
|
+
* @tags sites
|
|
9236
|
+
* @name DeleteSiteSectionById
|
|
9237
|
+
* @summary Delete a section on a site in an organization
|
|
9238
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}
|
|
9239
|
+
* @secure
|
|
9240
|
+
*/
|
|
9241
|
+
deleteSiteSectionById: (organizationId: string, siteId: string, siteSectionId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9041
9242
|
/**
|
|
9042
9243
|
* No description
|
|
9043
9244
|
*
|
|
@@ -9117,7 +9318,94 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9117
9318
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization
|
|
9118
9319
|
* @secure
|
|
9119
9320
|
*/
|
|
9120
|
-
overrideSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, data:
|
|
9321
|
+
overrideSiteSpaceCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, data: {
|
|
9322
|
+
/** 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. */
|
|
9323
|
+
title?: SiteTitle | null;
|
|
9324
|
+
styling?: {
|
|
9325
|
+
/** The primary color used for links and UI text. Set to null to reset the override. */
|
|
9326
|
+
primaryColor?: CustomizationThemedColor | null;
|
|
9327
|
+
/** The style of the corners to use. Set to null to reset the override. */
|
|
9328
|
+
corners?: CustomizationCorners | null;
|
|
9329
|
+
/** The font family to use for the content. Set to null to reset the override. */
|
|
9330
|
+
font?: CustomizationFont | null;
|
|
9331
|
+
/** The icons style to use for the content. Set to null to reset the override. */
|
|
9332
|
+
icons?: CustomizationIconsStyle | null;
|
|
9333
|
+
/** The style of background to use. Set to null to reset the override. */
|
|
9334
|
+
background?: CustomizationBackground | null;
|
|
9335
|
+
};
|
|
9336
|
+
internationalization?: {
|
|
9337
|
+
/** The locale to use for the non-custom elements of the UI. Set to null to reset the override. */
|
|
9338
|
+
locale: CustomizationLocale | null;
|
|
9339
|
+
};
|
|
9340
|
+
/** The favicon to use. Set to null to reset the override. */
|
|
9341
|
+
favicon?: {
|
|
9342
|
+
icon: CustomizationThemedURL;
|
|
9343
|
+
} | {
|
|
9344
|
+
/** Unicode codepoint or character of the emoji */
|
|
9345
|
+
emoji: Emoji;
|
|
9346
|
+
} | object | null;
|
|
9347
|
+
header?: {
|
|
9348
|
+
/** The theme preset to use. Set to null to reset the override. */
|
|
9349
|
+
preset?: CustomizationHeaderPreset | null;
|
|
9350
|
+
/** The header logo to use. Set to null to reset the override. */
|
|
9351
|
+
logo?: CustomizationThemedURL | null;
|
|
9352
|
+
/** The background color used in the header. Set to null to reset the override. */
|
|
9353
|
+
backgroundColor?: CustomizationThemedColor | null;
|
|
9354
|
+
/** The color used by the links in the header. Set to null to reset the override. */
|
|
9355
|
+
linkColor?: CustomizationThemedColor | null;
|
|
9356
|
+
/** The links that are displayed in the header. Set to null to reset the override. */
|
|
9357
|
+
links?: CustomizationHeaderLink[] | null;
|
|
9358
|
+
};
|
|
9359
|
+
footer?: {
|
|
9360
|
+
/** The logo displayed in the footer. Set to null to reset the override. */
|
|
9361
|
+
logo?: CustomizationThemedURL | null;
|
|
9362
|
+
/** The links groups that are displayed in the footer. Set to null to reset the override. */
|
|
9363
|
+
groups?: CustomizationFooterGroup[] | null;
|
|
9364
|
+
/**
|
|
9365
|
+
* The copyright text that is displayed in the footer. Set to null to reset the override.
|
|
9366
|
+
* @maxLength 300
|
|
9367
|
+
*/
|
|
9368
|
+
copyright?: string | null;
|
|
9369
|
+
};
|
|
9370
|
+
themes?: {
|
|
9371
|
+
/** The theme mode default value. Set to null to reset the override. */
|
|
9372
|
+
default?: CustomizationThemeMode | null;
|
|
9373
|
+
/** Should the reader be able to switch between dark and light mode. Set to null to reset the override. */
|
|
9374
|
+
toggeable?: boolean | null;
|
|
9375
|
+
};
|
|
9376
|
+
pdf?: {
|
|
9377
|
+
/** If true, PDF export is enabled for the published site. Set to null to reset the override. */
|
|
9378
|
+
enabled: boolean | null;
|
|
9379
|
+
};
|
|
9380
|
+
feedback?: {
|
|
9381
|
+
/** If true, feedback gathering is enabled. Set to null to reset the override. */
|
|
9382
|
+
enabled: boolean | null;
|
|
9383
|
+
};
|
|
9384
|
+
aiSearch?: {
|
|
9385
|
+
/** If true, AI search is enabled. Set to null to reset the override. */
|
|
9386
|
+
enabled: boolean | null;
|
|
9387
|
+
};
|
|
9388
|
+
git?: {
|
|
9389
|
+
/** 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. */
|
|
9390
|
+
showEditLink: boolean | null;
|
|
9391
|
+
};
|
|
9392
|
+
pagination?: {
|
|
9393
|
+
/** Whether the pagination navigation should be displayed on pages. Set to null to reset the override. */
|
|
9394
|
+
enabled: boolean | null;
|
|
9395
|
+
};
|
|
9396
|
+
trademark?: {
|
|
9397
|
+
/** Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override. */
|
|
9398
|
+
enabled: boolean | null;
|
|
9399
|
+
};
|
|
9400
|
+
privacyPolicy?: {
|
|
9401
|
+
/** The custom link to the privacy policy. Set to null to reset the override. */
|
|
9402
|
+
url?: URL | null;
|
|
9403
|
+
};
|
|
9404
|
+
socialPreview?: {
|
|
9405
|
+
/** The URL for the social preview image. Set to null to reset the override. */
|
|
9406
|
+
url?: URL | null;
|
|
9407
|
+
};
|
|
9408
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
|
|
9121
9409
|
error: {
|
|
9122
9410
|
/** @format int32 */
|
|
9123
9411
|
code: 400;
|
|
@@ -9152,7 +9440,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9152
9440
|
* @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content
|
|
9153
9441
|
* @secure
|
|
9154
9442
|
*/
|
|
9155
|
-
getContentAnalyticsForSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string,
|
|
9443
|
+
getContentAnalyticsForSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, query?: {
|
|
9444
|
+
period?: AnalyticsSearchPeriod;
|
|
9445
|
+
}, params?: RequestParams) => Promise<HttpResponse<AnalyticsContentPages, Error>>;
|
|
9156
9446
|
/**
|
|
9157
9447
|
* No description
|
|
9158
9448
|
*
|
|
@@ -9221,6 +9511,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9221
9511
|
* @secure
|
|
9222
9512
|
*/
|
|
9223
9513
|
trackViewInSiteById: (organizationId: string, siteId: string, data: SiteTrackPageView, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9514
|
+
/**
|
|
9515
|
+
* No description
|
|
9516
|
+
*
|
|
9517
|
+
* @tags analytics, sites
|
|
9518
|
+
* @name GetSearchAnalyticsForSiteById
|
|
9519
|
+
* @summary Get an overview of the top search queries in a site.
|
|
9520
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/insights/search
|
|
9521
|
+
* @secure
|
|
9522
|
+
*/
|
|
9523
|
+
getSearchAnalyticsForSiteById: (organizationId: string, siteId: string, query?: {
|
|
9524
|
+
period?: AnalyticsSearchPeriod;
|
|
9525
|
+
/** The site spaces to filter the search on */
|
|
9526
|
+
siteSpaceIds?: string[];
|
|
9527
|
+
}, params?: RequestParams) => Promise<HttpResponse<AnalyticsTopSearches, Error>>;
|
|
9224
9528
|
/**
|
|
9225
9529
|
* No description
|
|
9226
9530
|
*
|
|
@@ -9231,7 +9535,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9231
9535
|
* @secure
|
|
9232
9536
|
*/
|
|
9233
9537
|
updateSiteAdsById: (organizationId: string, siteId: string, data?: {
|
|
9234
|
-
status?:
|
|
9538
|
+
status?: "in-review" | "disabled";
|
|
9235
9539
|
/** Topic of the content */
|
|
9236
9540
|
topic?: SiteAdsTopic;
|
|
9237
9541
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
@@ -9364,15 +9668,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9364
9668
|
* @secure
|
|
9365
9669
|
*/
|
|
9366
9670
|
adsUpdateSite: (siteId: string, data: {
|
|
9367
|
-
status:
|
|
9671
|
+
status: "live";
|
|
9368
9672
|
/** ID of the zone */
|
|
9369
9673
|
zoneId: string;
|
|
9370
9674
|
/** ID to fetch reporting data */
|
|
9371
9675
|
reportingId: string;
|
|
9372
9676
|
} | {
|
|
9373
|
-
status:
|
|
9677
|
+
status: "rejected";
|
|
9374
9678
|
} | {
|
|
9375
|
-
status:
|
|
9679
|
+
status: "pending";
|
|
9376
9680
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9377
9681
|
};
|
|
9378
9682
|
internal: {
|