@gitbook/api 0.195.0 → 0.197.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +946 -142
- package/dist/constants.d.ts +9 -2
- package/dist/index.cjs +179 -3
- package/dist/index.js +165 -3
- package/package.json +1 -1
- package/spec/openapi.json +3157 -988
- package/spec/openapi.yaml +1665 -219
package/dist/client.d.ts
CHANGED
|
@@ -127,6 +127,15 @@ export declare enum SiteMcpServerTransport {
|
|
|
127
127
|
Sse = "sse",
|
|
128
128
|
Http = "http"
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* The field to sort site redirects by. `createdAt` returns the most recently created redirects first. `updatedAt` returns the most recently updated redirects first (falling back to the creation date for redirects never updated). `source` returns redirects sorted alphabetically by source path. Defaults to 'createdAt'.
|
|
132
|
+
* @default "createdAt"
|
|
133
|
+
*/
|
|
134
|
+
export declare enum SiteRedirectOrderBy {
|
|
135
|
+
CreatedAt = "createdAt",
|
|
136
|
+
UpdatedAt = "updatedAt",
|
|
137
|
+
Source = "source"
|
|
138
|
+
}
|
|
130
139
|
export declare enum SiteInsightsQueryRangePreset {
|
|
131
140
|
LastYear = "lastYear",
|
|
132
141
|
Last3Months = "last3Months",
|
|
@@ -142,6 +151,10 @@ export declare enum SiteInsightsQueryOperator {
|
|
|
142
151
|
LessThan = "lessThan",
|
|
143
152
|
LessThanOrEqual = "lessThanOrEqual"
|
|
144
153
|
}
|
|
154
|
+
/** Why a site URL returned a 404. `conditional` means the URL targets content gated by an adaptive-content condition, so the visitor lacked access to a page that exists. Computed by GitBook when the event is ingested; 404s recorded before this existed, and those on genuinely missing pages, carry no value. */
|
|
155
|
+
export declare enum SiteInsightsPageNotFoundType {
|
|
156
|
+
Conditional = "conditional"
|
|
157
|
+
}
|
|
145
158
|
export declare enum SiteInsightsVisitorBot {
|
|
146
159
|
Unknown = "unknown",
|
|
147
160
|
Googlebot = "googlebot",
|
|
@@ -167,7 +180,17 @@ export declare enum SiteInsightsVisitorBot {
|
|
|
167
180
|
Vscode = "vscode",
|
|
168
181
|
ClaudeCode = "claude-code",
|
|
169
182
|
Codex = "codex",
|
|
170
|
-
Opencode = "opencode"
|
|
183
|
+
Opencode = "opencode",
|
|
184
|
+
Gptbot = "gptbot",
|
|
185
|
+
Claudebot = "claudebot",
|
|
186
|
+
MetaFetcher = "meta-fetcher",
|
|
187
|
+
Grok = "grok",
|
|
188
|
+
GithubCopilot = "github-copilot",
|
|
189
|
+
MetaWebindexer = "meta-webindexer",
|
|
190
|
+
MetaAds = "meta-ads",
|
|
191
|
+
Duckassist = "duckassist",
|
|
192
|
+
AmznSearchbot = "amzn-searchbot",
|
|
193
|
+
AmznUser = "amzn-user"
|
|
171
194
|
}
|
|
172
195
|
export declare enum SiteInsightsVisitorOS {
|
|
173
196
|
Windows = "windows",
|
|
@@ -309,6 +332,14 @@ export declare enum ContextSearchBoost {
|
|
|
309
332
|
X10 = "x1.0",
|
|
310
333
|
X12 = "x1.2"
|
|
311
334
|
}
|
|
335
|
+
/** Why a synchronization failed, indicating who can resolve it. `authentication` and `misconfigured` need the connection to be reconfigured; `rate_limited` and `upstream_unavailable` are the source's own limits or downtime and are retried; `unknown` could not be attributed to the source's response. */
|
|
336
|
+
export declare enum ContextConnectionFailureReason {
|
|
337
|
+
Authentication = "authentication",
|
|
338
|
+
Misconfigured = "misconfigured",
|
|
339
|
+
RateLimited = "rate_limited",
|
|
340
|
+
UpstreamUnavailable = "upstream_unavailable",
|
|
341
|
+
Unknown = "unknown"
|
|
342
|
+
}
|
|
312
343
|
export declare enum ContextConnectionStatus {
|
|
313
344
|
Pending = "pending",
|
|
314
345
|
Syncing = "syncing",
|
|
@@ -348,6 +379,7 @@ export declare enum SiteFindingSeverity {
|
|
|
348
379
|
* - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
|
|
349
380
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
350
381
|
* - Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.
|
|
382
|
+
* - Outbound link error: An external URL used by the site's content fails to resolve, and can be fixed by replacing or removing the link.
|
|
351
383
|
* - Other: Any other type of finding not covered by the above categories.
|
|
352
384
|
*/
|
|
353
385
|
export declare enum SiteFindingType {
|
|
@@ -355,6 +387,7 @@ export declare enum SiteFindingType {
|
|
|
355
387
|
ContentIncorrect = "content-incorrect",
|
|
356
388
|
ContentGap = "content-gap",
|
|
357
389
|
BrokenLink = "broken-link",
|
|
390
|
+
OutboundLinkError = "outbound-link-error",
|
|
358
391
|
Other = "other"
|
|
359
392
|
}
|
|
360
393
|
/**
|
|
@@ -381,6 +414,11 @@ export declare enum ContextRecordType {
|
|
|
381
414
|
Ticket = "ticket",
|
|
382
415
|
Document = "document"
|
|
383
416
|
}
|
|
417
|
+
/** The surface the agent was running on when it submitted the feedback: the MCP server exposed by the site, or the site assistant. */
|
|
418
|
+
export declare enum AgentFeedbackSource {
|
|
419
|
+
Mcp = "mcp",
|
|
420
|
+
Assistant = "assistant"
|
|
421
|
+
}
|
|
384
422
|
/** The platform of the social handle. */
|
|
385
423
|
export declare enum SiteSocialAccountPlatform {
|
|
386
424
|
Twitter = "twitter",
|
|
@@ -636,7 +674,8 @@ export declare enum GitSyncInstallationPriority {
|
|
|
636
674
|
}
|
|
637
675
|
export declare enum StorageUploadKind {
|
|
638
676
|
CustomizationFont = "customization_font",
|
|
639
|
-
ImportFile = "import_file"
|
|
677
|
+
ImportFile = "import_file",
|
|
678
|
+
OrganizationFile = "organization_file"
|
|
640
679
|
}
|
|
641
680
|
export declare enum TranslationStatus {
|
|
642
681
|
Pending = "pending",
|
|
@@ -686,6 +725,25 @@ export declare enum TeamMemberRole {
|
|
|
686
725
|
Owner = "owner",
|
|
687
726
|
Member = "member"
|
|
688
727
|
}
|
|
728
|
+
/** Something the user is interested in doing with the site. */
|
|
729
|
+
export declare enum SiteOnboardingInterest {
|
|
730
|
+
AdaptiveContent = "adaptive-content",
|
|
731
|
+
ApiDocs = "api-docs",
|
|
732
|
+
ProactiveAgent = "proactive-agent"
|
|
733
|
+
}
|
|
734
|
+
/** Who the user wants to be able to access their site. */
|
|
735
|
+
export declare enum SiteOnboardingAudience {
|
|
736
|
+
Public = "public",
|
|
737
|
+
Mixed = "mixed",
|
|
738
|
+
Protected = "protected",
|
|
739
|
+
Internal = "internal"
|
|
740
|
+
}
|
|
741
|
+
/** Where the user's docs are coming from today. */
|
|
742
|
+
export declare enum SiteOnboardingSource {
|
|
743
|
+
MarkdownInGit = "markdown-in-git",
|
|
744
|
+
Import = "import",
|
|
745
|
+
Template = "template"
|
|
746
|
+
}
|
|
689
747
|
export declare enum ContentKitIcon {
|
|
690
748
|
Close = "close",
|
|
691
749
|
Edit = "edit",
|
|
@@ -1351,9 +1409,75 @@ export interface GitSyncState {
|
|
|
1351
1409
|
/** An action the user can take to resolve a failed Git Sync operation. */
|
|
1352
1410
|
errorAction?: GitSyncOperationErrorAction;
|
|
1353
1411
|
};
|
|
1412
|
+
/** How long an operation is allowed to run before it is terminated (in milliseconds). */
|
|
1413
|
+
operationTimeout?: number;
|
|
1354
1414
|
/** When the Git provider details were last updated */
|
|
1355
1415
|
updatedAt?: Timestamp;
|
|
1356
1416
|
}
|
|
1417
|
+
export type ContentImportSource = {
|
|
1418
|
+
type: "website";
|
|
1419
|
+
url: URL;
|
|
1420
|
+
} | {
|
|
1421
|
+
type: "file";
|
|
1422
|
+
/**
|
|
1423
|
+
* Files to import
|
|
1424
|
+
* @maxItems 50
|
|
1425
|
+
*/
|
|
1426
|
+
files: string[];
|
|
1427
|
+
};
|
|
1428
|
+
export interface ContentImportTarget {
|
|
1429
|
+
/** ID of the space to import in */
|
|
1430
|
+
space: string;
|
|
1431
|
+
/** ID of the change request to import in */
|
|
1432
|
+
changeRequest?: string;
|
|
1433
|
+
/** ID of the page to import in */
|
|
1434
|
+
page?: string;
|
|
1435
|
+
}
|
|
1436
|
+
export interface ContentImportRun {
|
|
1437
|
+
/** Type of Object, always equals to "import-run" */
|
|
1438
|
+
object?: "import-run";
|
|
1439
|
+
/** Unique ID of the import */
|
|
1440
|
+
id: string;
|
|
1441
|
+
/** Date when the import has started */
|
|
1442
|
+
startedAt?: Timestamp;
|
|
1443
|
+
/** Filled when the imported is in status "completed" */
|
|
1444
|
+
completedAt?: Timestamp;
|
|
1445
|
+
/** Date when the import was requested */
|
|
1446
|
+
createdAt?: Timestamp;
|
|
1447
|
+
/** Date when the import was last updated */
|
|
1448
|
+
updatedAt?: Timestamp;
|
|
1449
|
+
/** Status of the import */
|
|
1450
|
+
status: "pending" | "in-progress" | "completed" | "failed" | "cancelled";
|
|
1451
|
+
/** Reason for the import failure when `status` is `failed`. */
|
|
1452
|
+
reason?: string;
|
|
1453
|
+
/** Where the content is imported from. */
|
|
1454
|
+
source?: ContentImportSource;
|
|
1455
|
+
/** Where the content is imported into. */
|
|
1456
|
+
target?: ContentImportTarget;
|
|
1457
|
+
/** ID of the site the target space belongs to, when it belongs to exactly one. */
|
|
1458
|
+
site?: string;
|
|
1459
|
+
/** ID of the user who started the import. */
|
|
1460
|
+
createdBy?: string;
|
|
1461
|
+
/** URLs associated with the object */
|
|
1462
|
+
urls?: {
|
|
1463
|
+
/**
|
|
1464
|
+
* URL of the import run in the API
|
|
1465
|
+
* @format uri
|
|
1466
|
+
*/
|
|
1467
|
+
location: string;
|
|
1468
|
+
};
|
|
1469
|
+
/** Pages included in the import */
|
|
1470
|
+
pages?: {
|
|
1471
|
+
/** ID of page */
|
|
1472
|
+
id: string;
|
|
1473
|
+
/** Source URL where the page has been imported from */
|
|
1474
|
+
sourceURL?: string;
|
|
1475
|
+
/** Type of page */
|
|
1476
|
+
type: "page" | "folder";
|
|
1477
|
+
/** Status of the page */
|
|
1478
|
+
status: "complete" | "pending";
|
|
1479
|
+
}[];
|
|
1480
|
+
}
|
|
1357
1481
|
/** Custom backend for authenticated access */
|
|
1358
1482
|
export interface VisitorAuthCustomBackend {
|
|
1359
1483
|
/** Custom backend for authenticated access */
|
|
@@ -1400,7 +1524,7 @@ export interface Space {
|
|
|
1400
1524
|
* * `locked`: All edits are locked for this space.
|
|
1401
1525
|
*/
|
|
1402
1526
|
editMode?: SpaceEditMode;
|
|
1403
|
-
/** Kind of space. Only set to `styleguide` for spaces holding a team's writing
|
|
1527
|
+
/** Kind of space. Only set to `styleguide` for spaces holding a team's writing style guide; omitted for regular spaces. */
|
|
1404
1528
|
type?: "styleguide";
|
|
1405
1529
|
mergeRules: MergeRulesSpaceConfiguration;
|
|
1406
1530
|
/** URLs associated with the object */
|
|
@@ -1434,6 +1558,8 @@ export interface Space {
|
|
|
1434
1558
|
parent?: string;
|
|
1435
1559
|
language?: TranslationLanguage;
|
|
1436
1560
|
gitSync?: GitSyncState;
|
|
1561
|
+
/** Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space. */
|
|
1562
|
+
imports?: ContentImportRun[];
|
|
1437
1563
|
visitorAuth?: VisitorAuth;
|
|
1438
1564
|
/** ID of the active revision in the space. */
|
|
1439
1565
|
revision: string;
|
|
@@ -1562,9 +1688,16 @@ export interface SearchSectionResult {
|
|
|
1562
1688
|
export interface SearchPageResult {
|
|
1563
1689
|
id: string;
|
|
1564
1690
|
title: string;
|
|
1691
|
+
/** Description of the page, suitable for presenting a page-root search destination. */
|
|
1692
|
+
description: string;
|
|
1565
1693
|
path: string;
|
|
1566
1694
|
/** Relevance score for a search result. Higher is better and the score is unbounded. */
|
|
1567
1695
|
score: SearchResultScore;
|
|
1696
|
+
/**
|
|
1697
|
+
* One-based position in the globally ranked result set, preserved when results are paginated and grouped by space.
|
|
1698
|
+
* @min 1
|
|
1699
|
+
*/
|
|
1700
|
+
rank: number;
|
|
1568
1701
|
/** Whether the page matched on its own fields (title, description) or on the content of one of its sections. */
|
|
1569
1702
|
resultType?: "page" | "section";
|
|
1570
1703
|
sections?: SearchSectionResult[];
|
|
@@ -3000,6 +3133,8 @@ export type ChangeRequestSubject = string;
|
|
|
3000
3133
|
export type ChangeRequestLinkTitle = string;
|
|
3001
3134
|
/** External link associated with a change request. */
|
|
3002
3135
|
export interface ChangeRequestLinkInput {
|
|
3136
|
+
/** The ID of an existing link, as served on the change request. Pass it back to update that link; omit it to add a new one. Links created before links were stored individually have no ID and are matched on their URL instead. */
|
|
3137
|
+
id?: string;
|
|
3003
3138
|
ref: ContentRefURL;
|
|
3004
3139
|
/** Optional title to display for the link. */
|
|
3005
3140
|
title?: ChangeRequestLinkTitle;
|
|
@@ -3028,6 +3163,8 @@ export type ChangeRequestLinkExpanded = {
|
|
|
3028
3163
|
state: "error";
|
|
3029
3164
|
};
|
|
3030
3165
|
export type ChangeRequestLink = ChangeRequestLinkInput & {
|
|
3166
|
+
/** The ID of the link. Absent on links not yet stored relationally. */
|
|
3167
|
+
id?: string;
|
|
3031
3168
|
/** External ticket data resolved for this link by a configured connector. */
|
|
3032
3169
|
expanded?: ChangeRequestLinkExpanded;
|
|
3033
3170
|
};
|
|
@@ -3077,6 +3214,8 @@ export interface ChangeRequest {
|
|
|
3077
3214
|
};
|
|
3078
3215
|
/** If true, the change request is not up-to-date with latest changes in the main content. */
|
|
3079
3216
|
outdated: boolean;
|
|
3217
|
+
/** Import runs targeting this change request, still running or ended recently, most recent first. Only returned when fetching a single change request. */
|
|
3218
|
+
imports?: ContentImportRun[];
|
|
3080
3219
|
/** External links associated with the change request. */
|
|
3081
3220
|
links?: ChangeRequestLinks;
|
|
3082
3221
|
/** URLs associated with the object */
|
|
@@ -3364,7 +3503,7 @@ export interface RevisionPageUpdate {
|
|
|
3364
3503
|
condition?: string;
|
|
3365
3504
|
}
|
|
3366
3505
|
/**
|
|
3367
|
-
* Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed
|
|
3506
|
+
* Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed, and it can be moved to a new parent and/or position with `into`/`at`.
|
|
3368
3507
|
* @example {"operation":"update_page","page":"page_id","document":{"markdown":"# Hello World\n\nThis is a markdown document linking to [another page](/pages/page_id).\n"}}
|
|
3369
3508
|
*/
|
|
3370
3509
|
export type ChangeRequestContentChangeUpdatePage = RevisionPageUpdate & {
|
|
@@ -3373,6 +3512,13 @@ export type ChangeRequestContentChangeUpdatePage = RevisionPageUpdate & {
|
|
|
3373
3512
|
page: string;
|
|
3374
3513
|
/** New document for the page. When provided as markdown, its frontmatter is read to update the page metadata. Omit to update only the metadata fields. */
|
|
3375
3514
|
document?: Document;
|
|
3515
|
+
/** Move the page to be a child of this page ID. Set to `null` to move it to the root of the page tree. Omit to leave the page's parent unchanged. The target cannot be the page itself or one of its own descendants. */
|
|
3516
|
+
into?: string | null;
|
|
3517
|
+
/**
|
|
3518
|
+
* Zero-based index to move the page to among its new siblings (those of `into`, or the root pages when `into` is omitted or `null`). Omit to leave the page's position unchanged when its parent isn't changing, or to append it at the end when its parent is changing.
|
|
3519
|
+
* @min 0
|
|
3520
|
+
*/
|
|
3521
|
+
at?: number;
|
|
3376
3522
|
};
|
|
3377
3523
|
/**
|
|
3378
3524
|
* Insert a new page into the change request. The title is taken from `title`, or, when the document is markdown, from the document's frontmatter or leading heading (which take precedence, matching Git Sync). When no title can be resolved, the page falls back to a default title.
|
|
@@ -3907,6 +4053,8 @@ export interface Organization {
|
|
|
3907
4053
|
ai?: boolean;
|
|
3908
4054
|
/** If true, invite links are enabled for this organization. */
|
|
3909
4055
|
inviteLinks: boolean;
|
|
4056
|
+
/** Whether audit logs can currently be accessed for this organization. */
|
|
4057
|
+
auditLogs?: boolean;
|
|
3910
4058
|
/** Name of the product */
|
|
3911
4059
|
plan: BillingProduct;
|
|
3912
4060
|
/** Billing details, only available for org members. */
|
|
@@ -4730,7 +4878,11 @@ export interface Site {
|
|
|
4730
4878
|
view: boolean;
|
|
4731
4879
|
/** Can the user access the site in the application. */
|
|
4732
4880
|
access: boolean;
|
|
4733
|
-
/** Can the user edit
|
|
4881
|
+
/** Can the user edit content and create draft content in the site. */
|
|
4882
|
+
edit: boolean;
|
|
4883
|
+
/** Can the user create draft content, publish content, and manage the site's content structure. */
|
|
4884
|
+
create: boolean;
|
|
4885
|
+
/** Can the user manage the site content, settings and publish the site. */
|
|
4734
4886
|
admin: boolean;
|
|
4735
4887
|
/** Can the user install integrations on the site. */
|
|
4736
4888
|
installIntegration: boolean;
|
|
@@ -4754,8 +4906,8 @@ export interface Site {
|
|
|
4754
4906
|
adaptiveContent?: SiteAdaptiveContent;
|
|
4755
4907
|
ads?: SiteAds;
|
|
4756
4908
|
/**
|
|
4757
|
-
* Reference to a GitBook space holding the team's writing
|
|
4758
|
-
* When present on a site, the editing agent receives the
|
|
4909
|
+
* Reference to a GitBook space holding the team's writing style guide.
|
|
4910
|
+
* When present on a site, the editing agent receives the style guide
|
|
4759
4911
|
* table of contents in its system prompt and can fetch sections on
|
|
4760
4912
|
* demand to check edits against the rules.
|
|
4761
4913
|
*/
|
|
@@ -5151,12 +5303,18 @@ export interface UpdateIntegrationSiteInstallation {
|
|
|
5151
5303
|
/** Configuration of the integration at the account level */
|
|
5152
5304
|
configuration?: IntegrationInstallationConfiguration;
|
|
5153
5305
|
}
|
|
5306
|
+
/** Preferences collected from the user during site onboarding, used to tailor recommendations and to apply their initial setup choices. */
|
|
5307
|
+
export interface SiteOnboardingPreferences {
|
|
5308
|
+
source: SiteOnboardingSource | null;
|
|
5309
|
+
audience: SiteOnboardingAudience | null;
|
|
5310
|
+
interests: SiteOnboardingInterest[];
|
|
5311
|
+
}
|
|
5154
5312
|
export interface CreateOrganization {
|
|
5155
5313
|
/** Name of the organization */
|
|
5156
5314
|
title: OrganizationTitle;
|
|
5157
5315
|
emailDomains?: OrganizationEmailDomains;
|
|
5158
|
-
|
|
5159
|
-
|
|
5316
|
+
/** Preferences collected from the user during onboarding, to apply to the organization's default site. Only used when `withDefaultSite` is true. */
|
|
5317
|
+
onboardingPreferences?: SiteOnboardingPreferences;
|
|
5160
5318
|
}
|
|
5161
5319
|
/**
|
|
5162
5320
|
* Title of the site section
|
|
@@ -5279,14 +5437,38 @@ export interface SiteSectionGroup {
|
|
|
5279
5437
|
sectionGroup?: string;
|
|
5280
5438
|
/** Whether the site section group is draft and not live. */
|
|
5281
5439
|
draft: boolean;
|
|
5282
|
-
/** List of all child sections and
|
|
5283
|
-
children: (SiteSection | SiteSectionGroup)[];
|
|
5440
|
+
/** List of all child sections, groups, and external links nested under this group */
|
|
5441
|
+
children: (SiteSection | SiteSectionGroup | SiteExternalLink)[];
|
|
5442
|
+
/** Name of the icon */
|
|
5443
|
+
icon?: Icon;
|
|
5444
|
+
}
|
|
5445
|
+
export interface SiteExternalLink {
|
|
5446
|
+
/** The object type, which is always "site-external-link" */
|
|
5447
|
+
object: "site-external-link";
|
|
5448
|
+
/** Unique identifier of the external link */
|
|
5449
|
+
id: string;
|
|
5450
|
+
/** Title of the site section */
|
|
5451
|
+
title: SiteSectionTitle;
|
|
5452
|
+
/** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
|
|
5453
|
+
localizedTitle?: LocalizedString128;
|
|
5454
|
+
/** Description of the site section */
|
|
5455
|
+
description?: SiteSectionDescription;
|
|
5456
|
+
/** Localized string value with a 256 character limit, keyed by locale. Contains overrides for non-default languages only. */
|
|
5457
|
+
localizedDescription?: LocalizedString256;
|
|
5284
5458
|
/** Name of the icon */
|
|
5285
5459
|
icon?: Icon;
|
|
5460
|
+
/** Absolute HTTP or HTTPS URL opened by the external link */
|
|
5461
|
+
url: URL;
|
|
5462
|
+
/** ID of the section group the external link belongs to. Omitted for a root link. */
|
|
5463
|
+
sectionGroup?: string;
|
|
5464
|
+
/** Whether the external link is draft and not live */
|
|
5465
|
+
draft: boolean;
|
|
5466
|
+
/** Conditional expression used to evaluate whether the external link should be shown to the site's visitor */
|
|
5467
|
+
condition?: Expression;
|
|
5286
5468
|
}
|
|
5287
5469
|
export type SiteStructure = {
|
|
5288
5470
|
type: "sections";
|
|
5289
|
-
structure: (SiteSection | SiteSectionGroup)[];
|
|
5471
|
+
structure: (SiteSection | SiteSectionGroup | SiteExternalLink)[];
|
|
5290
5472
|
} | {
|
|
5291
5473
|
type: "siteSpaces";
|
|
5292
5474
|
structure: SiteSpace[];
|
|
@@ -5308,18 +5490,81 @@ export interface OrganizationAllContent {
|
|
|
5308
5490
|
/** List of soft-deleted spaces. */
|
|
5309
5491
|
deletedSpaces: OrganizationAllSpace[];
|
|
5310
5492
|
}
|
|
5311
|
-
|
|
5493
|
+
export interface AuditEventAction {
|
|
5494
|
+
object: "audit-event-action";
|
|
5495
|
+
/** Stable action identifier stored on audit events. */
|
|
5496
|
+
id: string;
|
|
5497
|
+
/** Human-readable label for the action. */
|
|
5498
|
+
label: string;
|
|
5499
|
+
}
|
|
5500
|
+
export interface AuditEventActor {
|
|
5501
|
+
/** Kind of actor that initiated the change. */
|
|
5502
|
+
type: "user" | "integration" | "installation" | "system" | "support";
|
|
5503
|
+
/** Stable identifier of the actor. */
|
|
5504
|
+
id: string;
|
|
5505
|
+
/** Display label captured when the event was recorded. */
|
|
5506
|
+
label?: string;
|
|
5507
|
+
}
|
|
5508
|
+
export interface AuditEventTarget {
|
|
5509
|
+
/** Kind of resource affected by the change. */
|
|
5510
|
+
type: string;
|
|
5511
|
+
/** Stable identifier of the affected resource. */
|
|
5512
|
+
id: string;
|
|
5513
|
+
/** Display label captured when the event was recorded. */
|
|
5514
|
+
label?: string;
|
|
5515
|
+
}
|
|
5516
|
+
export interface AuditEvent {
|
|
5517
|
+
object: "audit-event";
|
|
5518
|
+
/**
|
|
5519
|
+
* Unique identifier of the audit event.
|
|
5520
|
+
* @format uuid
|
|
5521
|
+
*/
|
|
5522
|
+
id: string;
|
|
5523
|
+
occurredAt: Timestamp;
|
|
5524
|
+
/** Stable action name describing the recorded change. */
|
|
5525
|
+
action: string;
|
|
5526
|
+
actor: AuditEventActor;
|
|
5527
|
+
/** Entry point that initiated the change. */
|
|
5528
|
+
source: "ui" | "api" | "integration" | "webhook" | "workflow" | "script" | "support";
|
|
5529
|
+
target: AuditEventTarget;
|
|
5530
|
+
urls: {
|
|
5531
|
+
/**
|
|
5532
|
+
* URL of the audit event in the API.
|
|
5533
|
+
* @format uri
|
|
5534
|
+
*/
|
|
5535
|
+
location: string;
|
|
5536
|
+
};
|
|
5537
|
+
}
|
|
5538
|
+
export type AuditEventDetails = AuditEvent & {
|
|
5539
|
+
/** Identifier of the operation that recorded the event. */
|
|
5540
|
+
executionId?: string;
|
|
5541
|
+
/** Identifier shared by events produced by the same user action. */
|
|
5542
|
+
correlationId?: string;
|
|
5543
|
+
/**
|
|
5544
|
+
* Audit event that caused this later system effect.
|
|
5545
|
+
* @format uuid
|
|
5546
|
+
*/
|
|
5547
|
+
causedByEventId?: string;
|
|
5548
|
+
/**
|
|
5549
|
+
* Version of the action payload schema.
|
|
5550
|
+
* @min 1
|
|
5551
|
+
*/
|
|
5552
|
+
schemaVersion: number;
|
|
5553
|
+
/** Allowlisted details specific to the action. */
|
|
5554
|
+
payload: Record<string, any>;
|
|
5555
|
+
};
|
|
5556
|
+
/** A style guide space and all the sites referencing it. */
|
|
5312
5557
|
export interface OrganizationStyleguide {
|
|
5313
5558
|
space: Space;
|
|
5314
|
-
/** Sites in the organization that reference this
|
|
5559
|
+
/** Sites in the organization that reference this style guide. */
|
|
5315
5560
|
sites: Site[];
|
|
5316
5561
|
}
|
|
5317
5562
|
export interface OrganizationStyleguides {
|
|
5318
5563
|
styleguides: OrganizationStyleguide[];
|
|
5319
5564
|
}
|
|
5320
|
-
/** A built-in
|
|
5565
|
+
/** A built-in style guide starter template used to seed and preview a style guide. */
|
|
5321
5566
|
export interface StyleguideTemplate {
|
|
5322
|
-
/** Identifier of the template, passed to createSiteStyleguideById to seed a
|
|
5567
|
+
/** Identifier of the template, passed to createSiteStyleguideById to seed a style guide from it. */
|
|
5323
5568
|
id: string;
|
|
5324
5569
|
/** Human-readable name of the template. */
|
|
5325
5570
|
title: string;
|
|
@@ -6211,48 +6456,6 @@ export type CustomizationFontDefinition = CustomizationFontDefinitionInput & {
|
|
|
6211
6456
|
* @maxLength 512
|
|
6212
6457
|
*/
|
|
6213
6458
|
export type StorageFileKey = string;
|
|
6214
|
-
export type ContentImportSource = {
|
|
6215
|
-
type: "website";
|
|
6216
|
-
url: URL;
|
|
6217
|
-
} | {
|
|
6218
|
-
type: "file";
|
|
6219
|
-
/**
|
|
6220
|
-
* Files to import
|
|
6221
|
-
* @maxItems 50
|
|
6222
|
-
*/
|
|
6223
|
-
files: string[];
|
|
6224
|
-
};
|
|
6225
|
-
export interface ContentImportTarget {
|
|
6226
|
-
/** ID of the space to import in */
|
|
6227
|
-
space: string;
|
|
6228
|
-
/** ID of the change request to import in */
|
|
6229
|
-
changeRequest?: string;
|
|
6230
|
-
/** ID of the page to import in */
|
|
6231
|
-
page?: string;
|
|
6232
|
-
}
|
|
6233
|
-
export interface ContentImportRun {
|
|
6234
|
-
/** Unique ID of the import */
|
|
6235
|
-
id: string;
|
|
6236
|
-
/** Date when the import has started */
|
|
6237
|
-
startedAt?: Timestamp;
|
|
6238
|
-
/** Filled when the imported is in status "completed" */
|
|
6239
|
-
completedAt?: Timestamp;
|
|
6240
|
-
/** Status of the import */
|
|
6241
|
-
status: "pending" | "in-progress" | "completed" | "failed" | "cancelled";
|
|
6242
|
-
/** Reason for the import failure when `status` is `failed`. */
|
|
6243
|
-
reason?: string;
|
|
6244
|
-
/** Pages included in the import */
|
|
6245
|
-
pages?: {
|
|
6246
|
-
/** ID of page */
|
|
6247
|
-
id: string;
|
|
6248
|
-
/** Source URL where the page has been imported from */
|
|
6249
|
-
sourceURL?: string;
|
|
6250
|
-
/** Type of page */
|
|
6251
|
-
type: "page" | "folder";
|
|
6252
|
-
/** Status of the page */
|
|
6253
|
-
status: "complete" | "pending";
|
|
6254
|
-
}[];
|
|
6255
|
-
}
|
|
6256
6459
|
/** A response to a request to preview the publishing of a site. It indicates whether the operation can proceed immediately, requires checkout, if a trial is available or if a trial extension is available. */
|
|
6257
6460
|
export type SitePublishOperationPreviewResponse = {
|
|
6258
6461
|
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
@@ -6460,6 +6663,8 @@ export interface CustomizationTint {
|
|
|
6460
6663
|
color: CustomizationThemedColor;
|
|
6461
6664
|
}
|
|
6462
6665
|
export type CustomizationFont = CustomizationDefaultFont | CustomizationFontDefinitionInput;
|
|
6666
|
+
/** Font used for headings. `null` means headings use the main font (`styling.font`). */
|
|
6667
|
+
export type CustomizationHeadingFont = CustomizationDefaultFont | CustomizationFontDefinitionInput | null;
|
|
6463
6668
|
export type CustomizationMonospaceFont = CustomizationDefaultMonospaceFont | CustomizationFontDefinitionInput;
|
|
6464
6669
|
export interface CustomizationThemedCodeTheme {
|
|
6465
6670
|
light: CustomizationCodeTheme;
|
|
@@ -6589,6 +6794,8 @@ export interface SiteCustomizationSettingsBase {
|
|
|
6589
6794
|
*/
|
|
6590
6795
|
links: CustomizationLinksStyle;
|
|
6591
6796
|
font: CustomizationFont;
|
|
6797
|
+
/** Font used for headings. `null` means headings use the main font (`styling.font`). */
|
|
6798
|
+
headingFont?: CustomizationHeadingFont;
|
|
6592
6799
|
monospaceFont: CustomizationMonospaceFont;
|
|
6593
6800
|
/**
|
|
6594
6801
|
* The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
|
|
@@ -6768,21 +6975,21 @@ export interface ShareLink {
|
|
|
6768
6975
|
};
|
|
6769
6976
|
}
|
|
6770
6977
|
export interface SiteStructureItemPointer {
|
|
6771
|
-
type: "site-space" | "site-section" | "site-section-group";
|
|
6772
|
-
/** Unique identifier for the site structure item (site space, site section
|
|
6978
|
+
type: "site-space" | "site-section" | "site-section-group" | "site-external-link";
|
|
6979
|
+
/** Unique identifier for the site structure item (site space, site section, site section group, or external link). */
|
|
6773
6980
|
id: string;
|
|
6774
6981
|
}
|
|
6775
|
-
/** Position at which to move the site structure item
|
|
6982
|
+
/** Position at which to move the site structure item relative to any sibling of the same structure level. */
|
|
6776
6983
|
export interface SiteStructureItemMovePosition {
|
|
6777
6984
|
before?: SiteStructureItemPointer;
|
|
6778
6985
|
after?: SiteStructureItemPointer;
|
|
6779
6986
|
}
|
|
6780
6987
|
/**
|
|
6781
6988
|
* Site Structure Item
|
|
6782
|
-
* A site structure item can be a site space, a site section
|
|
6989
|
+
* A site structure item can be a site space, a site section, a site section group, or an external link.
|
|
6783
6990
|
* It is used to represent the structure of a site.
|
|
6784
6991
|
*/
|
|
6785
|
-
export type SiteStructureItem = SiteSpace | SiteSection | SiteSectionGroup;
|
|
6992
|
+
export type SiteStructureItem = SiteSpace | SiteSection | SiteSectionGroup | SiteExternalLink;
|
|
6786
6993
|
/** 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. */
|
|
6787
6994
|
export type BillingOperationPreviewResponse = {
|
|
6788
6995
|
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
@@ -6998,28 +7205,6 @@ export type SiteFindingTitle = string;
|
|
|
6998
7205
|
* @pattern ^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$
|
|
6999
7206
|
*/
|
|
7000
7207
|
export type SiteRedirectSourcePath = string;
|
|
7001
|
-
export interface SiteRedirectDestinationSiteSection {
|
|
7002
|
-
kind: "site-section";
|
|
7003
|
-
/** Unique identifier for the site section to redirect to */
|
|
7004
|
-
siteSectionId: string;
|
|
7005
|
-
}
|
|
7006
|
-
export interface SiteRedirectDestinationSiteSpace {
|
|
7007
|
-
kind: "site-space";
|
|
7008
|
-
/** Unique identifier for the site space to redirect to */
|
|
7009
|
-
siteSpaceId: string;
|
|
7010
|
-
}
|
|
7011
|
-
export interface SiteRedirectDestinationPage {
|
|
7012
|
-
kind: "site-page";
|
|
7013
|
-
/** Unique identifier for the site space of the page */
|
|
7014
|
-
siteSpaceId: string;
|
|
7015
|
-
/** Unique identifier for the page within the site space to redirect to */
|
|
7016
|
-
pageId: string;
|
|
7017
|
-
}
|
|
7018
|
-
export interface SiteRedirectDestinationExternal {
|
|
7019
|
-
kind: "external";
|
|
7020
|
-
url: URL;
|
|
7021
|
-
}
|
|
7022
|
-
export type SiteRedirectDestination = SiteRedirectDestinationSiteSection | SiteRedirectDestinationSiteSpace | SiteRedirectDestinationPage | SiteRedirectDestinationExternal;
|
|
7023
7208
|
export interface SiteRedirectInputDestinationPath {
|
|
7024
7209
|
kind: "path";
|
|
7025
7210
|
/** Unique identifier for the space containing the page referenced by the path. */
|
|
@@ -7027,14 +7212,29 @@ export interface SiteRedirectInputDestinationPath {
|
|
|
7027
7212
|
/** Path to the page within the space revision to resolve. */
|
|
7028
7213
|
path: string;
|
|
7029
7214
|
}
|
|
7030
|
-
export type SiteRedirectInputDestination = SiteRedirectDestination | SiteRedirectInputDestinationPath;
|
|
7031
7215
|
/** Suggested fix for a broken-link finding, shaped as the input for `createSiteRedirect` so it can be applied directly. Absent when the finding has no directly applicable redirect (for example, a suggestion to create a new page). */
|
|
7032
7216
|
export interface SiteFindingBrokenLinkAction {
|
|
7033
7217
|
/** The source path to redirect from. */
|
|
7034
7218
|
source: SiteRedirectSourcePath;
|
|
7035
7219
|
/** Whether the redirect appends the wildcard-matched suffix of the source path to the destination. */
|
|
7036
7220
|
captureWildcard?: boolean;
|
|
7037
|
-
destination:
|
|
7221
|
+
destination: SiteRedirectInputDestinationPath;
|
|
7222
|
+
}
|
|
7223
|
+
/** Details of an `outbound-link-error` finding: the failing external URL and the observed failure, sourced from the site's outbound link checks. Absent on findings of any other type. */
|
|
7224
|
+
export interface SiteFindingOutboundLink {
|
|
7225
|
+
/**
|
|
7226
|
+
* The external URL that fails to resolve.
|
|
7227
|
+
* @format uri
|
|
7228
|
+
*/
|
|
7229
|
+
url: string;
|
|
7230
|
+
/** Current health status of the URL for this site. */
|
|
7231
|
+
status: "pending" | "healthy" | "suspect" | "failed" | "recovering" | "canceled";
|
|
7232
|
+
/** Classification of the confirmed failure. */
|
|
7233
|
+
failureKind?: "client-error" | "server-error" | "redirect" | "dns" | "tls" | "connection" | "timeout";
|
|
7234
|
+
/** HTTP status code of the last observation, when one was received. */
|
|
7235
|
+
httpStatus?: number;
|
|
7236
|
+
/** When the URL was last observed over HTTP. */
|
|
7237
|
+
checkedAt?: Timestamp;
|
|
7038
7238
|
}
|
|
7039
7239
|
export interface SiteFinding {
|
|
7040
7240
|
object: "site-finding";
|
|
@@ -7068,6 +7268,7 @@ export interface SiteFinding {
|
|
|
7068
7268
|
* - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
|
|
7069
7269
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
7070
7270
|
* - Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.
|
|
7271
|
+
* - Outbound link error: An external URL used by the site's content fails to resolve, and can be fixed by replacing or removing the link.
|
|
7071
7272
|
* - Other: Any other type of finding not covered by the above categories.
|
|
7072
7273
|
*/
|
|
7073
7274
|
type: SiteFindingType;
|
|
@@ -7078,6 +7279,8 @@ export interface SiteFinding {
|
|
|
7078
7279
|
autoFixable: boolean;
|
|
7079
7280
|
/** Suggested fix for a broken-link finding, shaped as the input for `createSiteRedirect` so it can be applied directly. Absent when the finding has no directly applicable redirect (for example, a suggestion to create a new page). */
|
|
7080
7281
|
brokenLinkAction?: SiteFindingBrokenLinkAction;
|
|
7282
|
+
/** Details of an `outbound-link-error` finding: the failing external URL and the observed failure, sourced from the site's outbound link checks. Absent on findings of any other type. */
|
|
7283
|
+
outboundLink?: SiteFindingOutboundLink;
|
|
7081
7284
|
createdAt: Timestamp;
|
|
7082
7285
|
updatedAt: Timestamp;
|
|
7083
7286
|
/** URLs associated with the finding */
|
|
@@ -7394,6 +7597,8 @@ export type ContextConnection = {
|
|
|
7394
7597
|
records: number;
|
|
7395
7598
|
/** Failure message when synchronization fails */
|
|
7396
7599
|
failureMessage?: string;
|
|
7600
|
+
/** Why a synchronization failed, indicating who can resolve it. `authentication` and `misconfigured` need the connection to be reconfigured; `rate_limited` and `upstream_unavailable` are the source's own limits or downtime and are retried; `unknown` could not be attributed to the source's response. */
|
|
7601
|
+
failureReason?: ContextConnectionFailureReason;
|
|
7397
7602
|
/** Parameters associated with the connection when it is an email connection */
|
|
7398
7603
|
email?: {
|
|
7399
7604
|
/**
|
|
@@ -7834,6 +8039,30 @@ export interface AIToolCallSubmitChangeRequestReview {
|
|
|
7834
8039
|
/** Identifier of the comment that was created as part of the review. */
|
|
7835
8040
|
commentId: string;
|
|
7836
8041
|
}
|
|
8042
|
+
export interface AIToolCallStartContentImport {
|
|
8043
|
+
tool: "startContentImport";
|
|
8044
|
+
/** The ID of the space the content is imported into. */
|
|
8045
|
+
spaceId: string;
|
|
8046
|
+
/** The ID of the change request the content is imported into. */
|
|
8047
|
+
changeRequestId: string;
|
|
8048
|
+
/** The ID of the import run. */
|
|
8049
|
+
runId: string;
|
|
8050
|
+
/** The URL the content is imported from, when importing a website. */
|
|
8051
|
+
url?: string;
|
|
8052
|
+
/** Names of the attached files the content is imported from, when importing files. */
|
|
8053
|
+
files?: string[];
|
|
8054
|
+
}
|
|
8055
|
+
export interface AIToolCallCheckContentImport {
|
|
8056
|
+
tool: "checkContentImport";
|
|
8057
|
+
/** The ID of the import run. */
|
|
8058
|
+
runId: string;
|
|
8059
|
+
/** Status of the import when it was checked. */
|
|
8060
|
+
status: "pending" | "in-progress" | "completed" | "failed" | "cancelled";
|
|
8061
|
+
/** Number of pages imported when the import was checked. */
|
|
8062
|
+
importedPages: number;
|
|
8063
|
+
/** Number of pages the import has discovered so far. */
|
|
8064
|
+
totalPages: number;
|
|
8065
|
+
}
|
|
7837
8066
|
/** Tool called from an MCP server */
|
|
7838
8067
|
export interface AIToolCallMCP {
|
|
7839
8068
|
tool: "mcp";
|
|
@@ -7857,7 +8086,7 @@ export interface AIToolCallOther {
|
|
|
7857
8086
|
/** Summary of a generic tool call. */
|
|
7858
8087
|
summary: AIToolCallOtherSummary;
|
|
7859
8088
|
}
|
|
7860
|
-
export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetRecordContent | AIToolCallGetPages | AIToolCallGetReusableContents | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallGetVariables | AIToolCallUpdateVariables | AIToolCallGetTags | AIToolCallUpdateTags | AIToolCallCreateChangeRequest | AIToolCallGetChangeRequestDetails | AIToolCallSetChangeRequestDetails | AIToolCallArchiveChangeRequest | AIToolCallComment | AIToolCallReplyToComment | AIToolCallGetComments | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
|
|
8089
|
+
export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetRecordContent | AIToolCallGetPages | AIToolCallGetReusableContents | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallGetVariables | AIToolCallUpdateVariables | AIToolCallGetTags | AIToolCallUpdateTags | AIToolCallCreateChangeRequest | AIToolCallGetChangeRequestDetails | AIToolCallSetChangeRequestDetails | AIToolCallArchiveChangeRequest | AIToolCallComment | AIToolCallReplyToComment | AIToolCallGetComments | AIToolCallSubmitChangeRequestReview | AIToolCallStartContentImport | AIToolCallCheckContentImport | AIToolCallMCP | AIToolCallOther;
|
|
7861
8090
|
export interface Timerange {
|
|
7862
8091
|
start: Timestamp;
|
|
7863
8092
|
end: Timestamp;
|
|
@@ -7876,7 +8105,16 @@ export interface AIAttachmentFile {
|
|
|
7876
8105
|
/** MIME type of the file. Must be a file type supported by the underlying model (see the OpenAI file-inputs documentation). */
|
|
7877
8106
|
contentType: string;
|
|
7878
8107
|
}
|
|
7879
|
-
|
|
8108
|
+
/** A file attached for the sole purpose of being imported. Its content is never given to the model — the type is one the importer accepts but the model cannot read, such as a ZIP archive — so the model only learns that the file is attached and can import it. */
|
|
8109
|
+
export interface AIAttachmentImportFile {
|
|
8110
|
+
type: "import-file";
|
|
8111
|
+
url: URL;
|
|
8112
|
+
/** Name of the file. */
|
|
8113
|
+
filename: string;
|
|
8114
|
+
/** MIME type of the file. Must be a file type supported by the content import. */
|
|
8115
|
+
contentType: string;
|
|
8116
|
+
}
|
|
8117
|
+
export type AIAttachment = AIAttachmentImage | AIAttachmentFile | AIAttachmentImportFile;
|
|
7880
8118
|
/** Context about the current user sending a message. */
|
|
7881
8119
|
export interface AIMessageContext {
|
|
7882
8120
|
location?: {
|
|
@@ -8449,6 +8687,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
8449
8687
|
column: "eventAPIOperationMethod";
|
|
8450
8688
|
} | {
|
|
8451
8689
|
column: "eventLLMSVariant";
|
|
8690
|
+
} | {
|
|
8691
|
+
column: "eventPageNotFoundType";
|
|
8452
8692
|
} | {
|
|
8453
8693
|
column: "eventSearchQuery";
|
|
8454
8694
|
} | {
|
|
@@ -8477,6 +8717,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
8477
8717
|
column: "utmTerm";
|
|
8478
8718
|
} | {
|
|
8479
8719
|
column: "utmContent";
|
|
8720
|
+
} | {
|
|
8721
|
+
column: "visitorAuthenticated";
|
|
8480
8722
|
} | {
|
|
8481
8723
|
column: "visitorClaimProperty";
|
|
8482
8724
|
} | {
|
|
@@ -8520,6 +8762,9 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
8520
8762
|
column: "visitorClaim";
|
|
8521
8763
|
claim: string;
|
|
8522
8764
|
values: string[];
|
|
8765
|
+
} | {
|
|
8766
|
+
column: "visitorAuthenticated";
|
|
8767
|
+
values: (boolean | null)[];
|
|
8523
8768
|
} | {
|
|
8524
8769
|
column: "visitorClaimProperty";
|
|
8525
8770
|
values: string[];
|
|
@@ -8550,6 +8795,9 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
8550
8795
|
} | {
|
|
8551
8796
|
column: "eventLLMSVariant";
|
|
8552
8797
|
values: (null | SiteInsightsLLMSVariant)[];
|
|
8798
|
+
} | {
|
|
8799
|
+
column: "eventPageNotFoundType";
|
|
8800
|
+
values: (null | SiteInsightsPageNotFoundType)[];
|
|
8553
8801
|
} | {
|
|
8554
8802
|
column: "siteSpace";
|
|
8555
8803
|
values: (string | null)[];
|
|
@@ -8691,6 +8939,28 @@ export interface SiteAdsStats {
|
|
|
8691
8939
|
clicks: number;
|
|
8692
8940
|
revenue: string;
|
|
8693
8941
|
}
|
|
8942
|
+
export interface SiteRedirectDestinationSiteSection {
|
|
8943
|
+
kind: "site-section";
|
|
8944
|
+
/** Unique identifier for the site section to redirect to */
|
|
8945
|
+
siteSectionId: string;
|
|
8946
|
+
}
|
|
8947
|
+
export interface SiteRedirectDestinationSiteSpace {
|
|
8948
|
+
kind: "site-space";
|
|
8949
|
+
/** Unique identifier for the site space to redirect to */
|
|
8950
|
+
siteSpaceId: string;
|
|
8951
|
+
}
|
|
8952
|
+
export interface SiteRedirectDestinationPage {
|
|
8953
|
+
kind: "site-page";
|
|
8954
|
+
/** Unique identifier for the site space of the page */
|
|
8955
|
+
siteSpaceId: string;
|
|
8956
|
+
/** Unique identifier for the page within the site space to redirect to */
|
|
8957
|
+
pageId: string;
|
|
8958
|
+
}
|
|
8959
|
+
export interface SiteRedirectDestinationExternal {
|
|
8960
|
+
kind: "external";
|
|
8961
|
+
url: URL;
|
|
8962
|
+
}
|
|
8963
|
+
export type SiteRedirectDestination = SiteRedirectDestinationSiteSection | SiteRedirectDestinationSiteSpace | SiteRedirectDestinationPage | SiteRedirectDestinationExternal;
|
|
8694
8964
|
export interface SiteRedirect {
|
|
8695
8965
|
object: "site-redirect";
|
|
8696
8966
|
/** The unique identifier for the redirect. */
|
|
@@ -8702,7 +8972,18 @@ export interface SiteRedirect {
|
|
|
8702
8972
|
/** Capture and append the wildcard-matched suffix to the destination URL. */
|
|
8703
8973
|
captureWildcard: boolean;
|
|
8704
8974
|
destination: SiteRedirectDestination;
|
|
8975
|
+
/**
|
|
8976
|
+
* When the redirect was created.
|
|
8977
|
+
* @format date-time
|
|
8978
|
+
*/
|
|
8979
|
+
createdAt: string;
|
|
8980
|
+
/**
|
|
8981
|
+
* When the redirect was last updated. Absent if never updated since creation.
|
|
8982
|
+
* @format date-time
|
|
8983
|
+
*/
|
|
8984
|
+
updatedAt?: string;
|
|
8705
8985
|
}
|
|
8986
|
+
export type SiteRedirectInputDestination = SiteRedirectDestination | SiteRedirectInputDestinationPath;
|
|
8706
8987
|
/**
|
|
8707
8988
|
* Name of the MCP server
|
|
8708
8989
|
* @minLength 1
|
|
@@ -9054,6 +9335,13 @@ export interface GitSyncBranch {
|
|
|
9054
9335
|
name: string;
|
|
9055
9336
|
ref: string;
|
|
9056
9337
|
}
|
|
9338
|
+
/** A file found in a Git Sync repository at a specific ref. */
|
|
9339
|
+
export interface GitSyncRepositoryFile {
|
|
9340
|
+
name: string;
|
|
9341
|
+
path: string;
|
|
9342
|
+
sha: string;
|
|
9343
|
+
size: number;
|
|
9344
|
+
}
|
|
9057
9345
|
/** GitLab project that can be selected for Git Sync. */
|
|
9058
9346
|
export interface GitSyncGitLabProject {
|
|
9059
9347
|
id: number;
|
|
@@ -9373,6 +9661,7 @@ export interface GitSyncSiteStructureSectionGroup {
|
|
|
9373
9661
|
* Stable identifier for this section group, used as the Git Sync key.
|
|
9374
9662
|
* Must be unique amongst all other section groups of the site. For
|
|
9375
9663
|
* example: `section-group-product` or `section-group-1`.
|
|
9664
|
+
* You can nest section groups only one level deep. For example, `section-group-1` can have a child section group `section-group-1-1`, but `section-group-1-1` cannot have a child section group.
|
|
9376
9665
|
* @minLength 1
|
|
9377
9666
|
*/
|
|
9378
9667
|
key: string;
|
|
@@ -9396,6 +9685,9 @@ export interface GitSyncSiteStructureSectionGroup {
|
|
|
9396
9685
|
* when `content.directory` is `null`. Hierarchy comes from where the space
|
|
9397
9686
|
* appears in the YAML (under a section, a section group, or at the root), not
|
|
9398
9687
|
* from an explicit parent reference.
|
|
9688
|
+
*
|
|
9689
|
+
* The directory is read as one book — the Markdown files it holds become the
|
|
9690
|
+
* pages of the space.
|
|
9399
9691
|
*/
|
|
9400
9692
|
export interface GitSyncSiteStructureSpace {
|
|
9401
9693
|
/** Discriminator for a space node. */
|
|
@@ -9413,7 +9705,11 @@ export interface GitSyncSiteStructureSpace {
|
|
|
9413
9705
|
localizedTitle?: LocalizedString128;
|
|
9414
9706
|
/** Path to the space on the site */
|
|
9415
9707
|
path: SiteSpacePath;
|
|
9416
|
-
/**
|
|
9708
|
+
/**
|
|
9709
|
+
* Whether this is the default space of its parent — the one opened when the
|
|
9710
|
+
* site or the section is visited without a space path. Exactly one space
|
|
9711
|
+
* among each set of siblings carries it.
|
|
9712
|
+
*/
|
|
9417
9713
|
default?: boolean;
|
|
9418
9714
|
/** Whether the space is hidden from the site's navigation. */
|
|
9419
9715
|
hidden?: boolean;
|
|
@@ -9423,7 +9719,13 @@ export interface GitSyncSiteStructureSpace {
|
|
|
9423
9719
|
condition?: Expression;
|
|
9424
9720
|
/** Where the space's content is managed. */
|
|
9425
9721
|
content: {
|
|
9426
|
-
/**
|
|
9722
|
+
/**
|
|
9723
|
+
* Directory holding this space's content, resolved from the site's
|
|
9724
|
+
* project directory — `./guides` under a site rooted at `docs/`
|
|
9725
|
+
* reads `docs/guides`. A leading slash escapes to the repository
|
|
9726
|
+
* root instead, so `/guides` always reads `guides`. Parent-directory
|
|
9727
|
+
* segments (`..`) are rejected.
|
|
9728
|
+
*/
|
|
9427
9729
|
directory: string | null;
|
|
9428
9730
|
language?: TranslationLanguage;
|
|
9429
9731
|
};
|
|
@@ -9432,8 +9734,10 @@ export interface GitSyncSiteStructureSpace {
|
|
|
9432
9734
|
* A section — a group of spaces sharing a top-level navigation entry.
|
|
9433
9735
|
* Discriminated by `type: section`.
|
|
9434
9736
|
*
|
|
9435
|
-
* Spaces inside a section are listed inline under `children
|
|
9436
|
-
*
|
|
9737
|
+
* Spaces inside a section are listed inline under `children`; a section holds
|
|
9738
|
+
* nothing else — nest sections under a section group instead. A site with
|
|
9739
|
+
* sections must mark exactly one section with `default: true`, and cannot also
|
|
9740
|
+
* list spaces at the top level of its structure.
|
|
9437
9741
|
*/
|
|
9438
9742
|
export interface GitSyncSiteStructureSection {
|
|
9439
9743
|
/** Discriminator for a section node. */
|
|
@@ -9472,13 +9776,94 @@ export type GitSyncSiteStructureNode = GitSyncSiteStructureSectionGroup | GitSyn
|
|
|
9472
9776
|
/**
|
|
9473
9777
|
* Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
|
|
9474
9778
|
* three node types: a section group, a section, or a space.
|
|
9779
|
+
*
|
|
9780
|
+
* A **space** is a leaf holding content, pointed at a repository directory. A
|
|
9781
|
+
* **section** gathers spaces behind one top-level navigation entry. A
|
|
9782
|
+
* **section group** gathers sections. A site either uses sections or lists its
|
|
9783
|
+
* spaces at the top level, never both.
|
|
9784
|
+
*
|
|
9785
|
+
* ```yaml
|
|
9786
|
+
* structure:
|
|
9787
|
+
* - type: space
|
|
9788
|
+
* key: space-guides
|
|
9789
|
+
* title: Guides
|
|
9790
|
+
* path: guides
|
|
9791
|
+
* default: true
|
|
9792
|
+
* content:
|
|
9793
|
+
* directory: ./guides
|
|
9794
|
+
* - type: space
|
|
9795
|
+
* key: space-api
|
|
9796
|
+
* title: API reference
|
|
9797
|
+
* path: api
|
|
9798
|
+
* content:
|
|
9799
|
+
* directory: ./api
|
|
9800
|
+
* ```
|
|
9801
|
+
*
|
|
9802
|
+
* The same two spaces behind top-level navigation entries:
|
|
9803
|
+
*
|
|
9804
|
+
* ```yaml
|
|
9805
|
+
* structure:
|
|
9806
|
+
* - type: section
|
|
9807
|
+
* key: section-product
|
|
9808
|
+
* title: Product
|
|
9809
|
+
* path: product
|
|
9810
|
+
* default: true
|
|
9811
|
+
* children:
|
|
9812
|
+
* - type: space
|
|
9813
|
+
* key: space-guides
|
|
9814
|
+
* title: Guides
|
|
9815
|
+
* path: guides
|
|
9816
|
+
* default: true
|
|
9817
|
+
* content:
|
|
9818
|
+
* directory: ./guides
|
|
9819
|
+
* - type: section
|
|
9820
|
+
* key: section-reference
|
|
9821
|
+
* title: Reference
|
|
9822
|
+
* path: reference
|
|
9823
|
+
* children:
|
|
9824
|
+
* - type: space
|
|
9825
|
+
* key: space-api
|
|
9826
|
+
* title: API reference
|
|
9827
|
+
* path: api
|
|
9828
|
+
* default: true
|
|
9829
|
+
* content:
|
|
9830
|
+
* directory: ./api
|
|
9831
|
+
* ```
|
|
9832
|
+
*
|
|
9833
|
+
* Rules checked on import — a violation fails the sync, naming the offending
|
|
9834
|
+
* node:
|
|
9835
|
+
*
|
|
9836
|
+
* - Every `key` is unique across the file, whatever the node type. Git Sync
|
|
9837
|
+
* recognises a node from one sync to the next by its key, so a reused key
|
|
9838
|
+
* leaves two nodes indistinguishable.
|
|
9839
|
+
* - Each section marks exactly one of its spaces `default: true`, and a site
|
|
9840
|
+
* without sections marks one among its top-level spaces. The default is the
|
|
9841
|
+
* space that opens when the site or the section is visited without a space
|
|
9842
|
+
* path of its own.
|
|
9843
|
+
* - A site declaring any section marks exactly one of those sections
|
|
9844
|
+
* `default: true`, and lists no space at the top level: once a section
|
|
9845
|
+
* exists, every space belongs inside one.
|
|
9846
|
+
* - Sections hold only spaces. Section groups hold only sections, or one
|
|
9847
|
+
* further level of section groups — nothing nests deeper than that.
|
|
9848
|
+
* - Spaces pointed at the same `content.directory` declare the same
|
|
9849
|
+
* `content.language`. One directory is read once, so it cannot produce two
|
|
9850
|
+
* languages at the same time.
|
|
9475
9851
|
*/
|
|
9476
9852
|
export type GitSyncSiteStructure = GitSyncSiteStructureNode[];
|
|
9477
9853
|
/**
|
|
9478
|
-
* Schema for a site `docs.yaml` file — the canonical contract for what
|
|
9479
|
-
* can be authored in Git Sync to drive a site's
|
|
9854
|
+
* Schema for a site `gitbook-docs.yaml` file — the canonical contract for what
|
|
9855
|
+
* can be authored in Git Sync to drive a site's structure.
|
|
9856
|
+
*
|
|
9857
|
+
* The file lives at the root of the site's project directory in the synced
|
|
9858
|
+
* repository. It names the site and maps the repository's content directories
|
|
9859
|
+
* onto the site's navigation.
|
|
9480
9860
|
*/
|
|
9481
9861
|
export interface GitSyncSiteConfig {
|
|
9862
|
+
/**
|
|
9863
|
+
* URL of the schema used by editors to validate the site configuration.
|
|
9864
|
+
* @format uri
|
|
9865
|
+
*/
|
|
9866
|
+
$schema?: string;
|
|
9482
9867
|
/**
|
|
9483
9868
|
* Reserved for future use. When a breaking schema change ships, this
|
|
9484
9869
|
* field lets the parser branch on the version; absence means v1.
|
|
@@ -9494,6 +9879,78 @@ export interface GitSyncSiteConfig {
|
|
|
9494
9879
|
/**
|
|
9495
9880
|
* Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
|
|
9496
9881
|
* three node types: a section group, a section, or a space.
|
|
9882
|
+
*
|
|
9883
|
+
* A **space** is a leaf holding content, pointed at a repository directory. A
|
|
9884
|
+
* **section** gathers spaces behind one top-level navigation entry. A
|
|
9885
|
+
* **section group** gathers sections. A site either uses sections or lists its
|
|
9886
|
+
* spaces at the top level, never both.
|
|
9887
|
+
*
|
|
9888
|
+
* ```yaml
|
|
9889
|
+
* structure:
|
|
9890
|
+
* - type: space
|
|
9891
|
+
* key: space-guides
|
|
9892
|
+
* title: Guides
|
|
9893
|
+
* path: guides
|
|
9894
|
+
* default: true
|
|
9895
|
+
* content:
|
|
9896
|
+
* directory: ./guides
|
|
9897
|
+
* - type: space
|
|
9898
|
+
* key: space-api
|
|
9899
|
+
* title: API reference
|
|
9900
|
+
* path: api
|
|
9901
|
+
* content:
|
|
9902
|
+
* directory: ./api
|
|
9903
|
+
* ```
|
|
9904
|
+
*
|
|
9905
|
+
* The same two spaces behind top-level navigation entries:
|
|
9906
|
+
*
|
|
9907
|
+
* ```yaml
|
|
9908
|
+
* structure:
|
|
9909
|
+
* - type: section
|
|
9910
|
+
* key: section-product
|
|
9911
|
+
* title: Product
|
|
9912
|
+
* path: product
|
|
9913
|
+
* default: true
|
|
9914
|
+
* children:
|
|
9915
|
+
* - type: space
|
|
9916
|
+
* key: space-guides
|
|
9917
|
+
* title: Guides
|
|
9918
|
+
* path: guides
|
|
9919
|
+
* default: true
|
|
9920
|
+
* content:
|
|
9921
|
+
* directory: ./guides
|
|
9922
|
+
* - type: section
|
|
9923
|
+
* key: section-reference
|
|
9924
|
+
* title: Reference
|
|
9925
|
+
* path: reference
|
|
9926
|
+
* children:
|
|
9927
|
+
* - type: space
|
|
9928
|
+
* key: space-api
|
|
9929
|
+
* title: API reference
|
|
9930
|
+
* path: api
|
|
9931
|
+
* default: true
|
|
9932
|
+
* content:
|
|
9933
|
+
* directory: ./api
|
|
9934
|
+
* ```
|
|
9935
|
+
*
|
|
9936
|
+
* Rules checked on import — a violation fails the sync, naming the offending
|
|
9937
|
+
* node:
|
|
9938
|
+
*
|
|
9939
|
+
* - Every `key` is unique across the file, whatever the node type. Git Sync
|
|
9940
|
+
* recognises a node from one sync to the next by its key, so a reused key
|
|
9941
|
+
* leaves two nodes indistinguishable.
|
|
9942
|
+
* - Each section marks exactly one of its spaces `default: true`, and a site
|
|
9943
|
+
* without sections marks one among its top-level spaces. The default is the
|
|
9944
|
+
* space that opens when the site or the section is visited without a space
|
|
9945
|
+
* path of its own.
|
|
9946
|
+
* - A site declaring any section marks exactly one of those sections
|
|
9947
|
+
* `default: true`, and lists no space at the top level: once a section
|
|
9948
|
+
* exists, every space belongs inside one.
|
|
9949
|
+
* - Sections hold only spaces. Section groups hold only sections, or one
|
|
9950
|
+
* further level of section groups — nothing nests deeper than that.
|
|
9951
|
+
* - Spaces pointed at the same `content.directory` declare the same
|
|
9952
|
+
* `content.language`. One directory is read once, so it cannot produce two
|
|
9953
|
+
* languages at the same time.
|
|
9497
9954
|
*/
|
|
9498
9955
|
structure: GitSyncSiteStructure;
|
|
9499
9956
|
};
|
|
@@ -11289,7 +11746,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11289
11746
|
computed?: boolean;
|
|
11290
11747
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
11291
11748
|
/**
|
|
11292
|
-
* @description Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request. To put an image or attachment in a page, upload it with an `insert_files` change. Give the file a `ref` and a page inserted in the same batch can reference it as `` or `[File](./<ref>)`, which resolves to the file's ID at apply time regardless of operation order. Uploaded files are also listed as `insertedFiles` when `compat=false`, and a file already in the change request can be referenced directly as `/files/<fileId>`. Inline `data:` URIs in markdown are not ingested and large image blocks are dropped, so upload the bytes with `insert_files` instead. When page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by: - Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`). - Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>` for a nested page (e.g. `/pages/guides/getting-started`). - Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page, or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is `/pages/README.md`. - Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`, `../other.md`, or `../README.md` (the parent page). Folder-style links without an extension (e.g. `./section`) resolve to that folder's page. External URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail. GitBook normalizes submitted content, so the stored page may differ from what was sent. To help callers reconcile local state with the stored result, the response can list each created and modified page with its resolved ID and a `urls.location` to fetch the page's persisted content. **Response shape (`compat`)** — this endpoint is changing what it returns: - `compat=true` (current default) returns the updated change request, matching the endpoint's original behavior. - `compat=false` returns the updated change request **and** the list of affected pages (see the response schema). The default is `true` for now to preserve backwards compatibility, but **will switch to `false` in a future release**, at which point the affected-page list is always included. You should pass `compat=false` if you want the new behavior today and avoid unexpected errors when the default flips in the future.
|
|
11749
|
+
* @description Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, rename, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request. **Renaming a page** — `update_page` can change a page's `title` and/or its `slug` (the path segment used to build its URL within its current parent). Both fields are independent: to rename only the title without changing the URL, set `title` and omit `slug`; to change the URL without changing the title, set `slug` and omit `title`. **Moving a page** — `update_page` can also change a page's parent and/or its position among siblings with `into`/`at`. Set `into` to the new parent's page ID, or `null` to move the page to the root of the tree; omit `into` to leave the parent unchanged. Set `at` to place the page at a specific zero-based index among its new siblings; omit it to leave the position unchanged (when the parent isn't changing) or append at the end (when it is). A page cannot be moved under itself or one of its own descendants. `insert_page`'s `into`/`at` remain the way to place a **new** page at creation time. To put an image or attachment in a page, upload it with an `insert_files` change. Give the file a `ref` and a page inserted in the same batch can reference it as `` or `[File](./<ref>)`, which resolves to the file's ID at apply time regardless of operation order. Uploaded files are also listed as `insertedFiles` when `compat=false`, and a file already in the change request can be referenced directly as `/files/<fileId>`. Inline `data:` URIs in markdown are not ingested and large image blocks are dropped, so upload the bytes with `insert_files` instead. When page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by: - Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`). - Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>` for a nested page (e.g. `/pages/guides/getting-started`). - Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page, or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is `/pages/README.md`. - Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`, `../other.md`, or `../README.md` (the parent page). Folder-style links without an extension (e.g. `./section`) resolve to that folder's page. External URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail. GitBook normalizes submitted content, so the stored page may differ from what was sent. To help callers reconcile local state with the stored result, the response can list each created and modified page with its resolved ID and a `urls.location` to fetch the page's persisted content. **Response shape (`compat`)** — this endpoint is changing what it returns: - `compat=true` (current default) returns the updated change request, matching the endpoint's original behavior. - `compat=false` returns the updated change request **and** the list of affected pages (see the response schema). The default is `true` for now to preserve backwards compatibility, but **will switch to `false` in a future release**, at which point the affected-page list is always included. You should pass `compat=false` if you want the new behavior today and avoid unexpected errors when the default flips in the future.
|
|
11293
11750
|
*
|
|
11294
11751
|
* @tags change-request-content
|
|
11295
11752
|
* @name UpdateChangeRequestContent
|
|
@@ -12395,7 +12852,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12395
12852
|
};
|
|
12396
12853
|
integrations: {
|
|
12397
12854
|
/**
|
|
12398
|
-
*
|
|
12855
|
+
* @description Returns a paginated list of the integrations published in the GitBook marketplace. Use this to discover an integration by name, category, or the blocks and content sources it provides, before installing it on an organization, space or site.
|
|
12399
12856
|
*
|
|
12400
12857
|
* @tags integrations
|
|
12401
12858
|
* @name ListIntegrations
|
|
@@ -12436,7 +12893,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12436
12893
|
items: Integration[];
|
|
12437
12894
|
}, any>>;
|
|
12438
12895
|
/**
|
|
12439
|
-
*
|
|
12896
|
+
* @description Returns a single integration by its unique name, including the configuration it expects, the targets it can be installed on, and the permissions it requests. Private integrations are only readable by the organization that owns them.
|
|
12440
12897
|
*
|
|
12441
12898
|
* @tags integrations
|
|
12442
12899
|
* @name GetIntegrationByName
|
|
@@ -12501,7 +12958,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12501
12958
|
items: IntegrationInstallation[];
|
|
12502
12959
|
}, any>>;
|
|
12503
12960
|
/**
|
|
12504
|
-
*
|
|
12961
|
+
* @description Installs an integration on an organization, creating the account-level installation that space and site installations hang off. Configure it with the update operation, then enable it on individual spaces or sites.
|
|
12505
12962
|
*
|
|
12506
12963
|
* @tags integrations
|
|
12507
12964
|
* @name InstallIntegration
|
|
@@ -12699,7 +13156,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12699
13156
|
};
|
|
12700
13157
|
}>>;
|
|
12701
13158
|
/**
|
|
12702
|
-
*
|
|
13159
|
+
* @description Returns the organization-level installation of an integration, including its account configuration and how many spaces it manages. The configuration can contain credentials the integration stored for third-party services.
|
|
12703
13160
|
*
|
|
12704
13161
|
* @tags integrations
|
|
12705
13162
|
* @name GetIntegrationInstallationById
|
|
@@ -12715,7 +13172,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12715
13172
|
};
|
|
12716
13173
|
}>>;
|
|
12717
13174
|
/**
|
|
12718
|
-
*
|
|
13175
|
+
* @description Updates the account-level configuration of an installation, and which spaces or sites it applies to.
|
|
12719
13176
|
*
|
|
12720
13177
|
* @tags integrations
|
|
12721
13178
|
* @name UpdateIntegrationInstallation
|
|
@@ -12751,7 +13208,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12751
13208
|
};
|
|
12752
13209
|
}>>;
|
|
12753
13210
|
/**
|
|
12754
|
-
*
|
|
13211
|
+
* @description Returns a paginated list of the spaces an installation is enabled on, with the configuration of the integration for each of them. Pass extended to get the full space object instead of its ID.
|
|
12755
13212
|
*
|
|
12756
13213
|
* @tags integrations
|
|
12757
13214
|
* @name ListIntegrationInstallationSpaces
|
|
@@ -12777,7 +13234,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12777
13234
|
items: IntegrationSpaceInstallation[];
|
|
12778
13235
|
}, any>>;
|
|
12779
13236
|
/**
|
|
12780
|
-
*
|
|
13237
|
+
* @description Enables an existing organization-level installation on one space. The organization must already have the integration installed.
|
|
12781
13238
|
*
|
|
12782
13239
|
* @name InstallIntegrationOnSpace
|
|
12783
13240
|
* @summary Install an integration on a space
|
|
@@ -12801,7 +13258,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12801
13258
|
};
|
|
12802
13259
|
}>>;
|
|
12803
13260
|
/**
|
|
12804
|
-
*
|
|
13261
|
+
* @description Returns the installation of an integration on one space, including the configuration of the integration for that space.
|
|
12805
13262
|
*
|
|
12806
13263
|
* @tags integrations
|
|
12807
13264
|
* @name GetIntegrationSpaceInstallation
|
|
@@ -12823,7 +13280,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12823
13280
|
};
|
|
12824
13281
|
}>>;
|
|
12825
13282
|
/**
|
|
12826
|
-
*
|
|
13283
|
+
* @description Updates the configuration of an integration for one space.
|
|
12827
13284
|
*
|
|
12828
13285
|
* @tags integrations
|
|
12829
13286
|
* @name UpdateIntegrationSpaceInstallation
|
|
@@ -12849,7 +13306,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12849
13306
|
*/
|
|
12850
13307
|
uninstallIntegrationFromSpace: (integrationName: string, installationId: string, spaceId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
12851
13308
|
/**
|
|
12852
|
-
*
|
|
13309
|
+
* @description Returns a paginated list of the sites an installation is enabled on, with the configuration of the integration for each of them. Pass extended to get the full site object instead of its ID.
|
|
12853
13310
|
*
|
|
12854
13311
|
* @tags integrations
|
|
12855
13312
|
* @name ListIntegrationInstallationSites
|
|
@@ -12875,7 +13332,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12875
13332
|
items: IntegrationSiteInstallation[];
|
|
12876
13333
|
}, any>>;
|
|
12877
13334
|
/**
|
|
12878
|
-
*
|
|
13335
|
+
* @description Enables an existing organization-level installation on one site. The organization must already have the integration installed.
|
|
12879
13336
|
*
|
|
12880
13337
|
* @tags integrations
|
|
12881
13338
|
* @name InstallIntegrationOnSite
|
|
@@ -12900,7 +13357,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12900
13357
|
};
|
|
12901
13358
|
}>>;
|
|
12902
13359
|
/**
|
|
12903
|
-
*
|
|
13360
|
+
* @description Returns the installation of an integration on one site, including the configuration of the integration for that site.
|
|
12904
13361
|
*
|
|
12905
13362
|
* @tags integrations
|
|
12906
13363
|
* @name GetIntegrationSiteInstallation
|
|
@@ -12922,7 +13379,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12922
13379
|
};
|
|
12923
13380
|
}>>;
|
|
12924
13381
|
/**
|
|
12925
|
-
*
|
|
13382
|
+
* @description Updates the configuration of an integration for one site.
|
|
12926
13383
|
*
|
|
12927
13384
|
* @tags integrations
|
|
12928
13385
|
* @name UpdateIntegrationSiteInstallation
|
|
@@ -12970,6 +13427,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12970
13427
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12971
13428
|
items: Organization[];
|
|
12972
13429
|
}, any>>;
|
|
13430
|
+
/**
|
|
13431
|
+
* No description
|
|
13432
|
+
*
|
|
13433
|
+
* @tags organizations
|
|
13434
|
+
* @name CreateOrganization
|
|
13435
|
+
* @summary Create an organization
|
|
13436
|
+
* @request POST:/orgs
|
|
13437
|
+
* @secure
|
|
13438
|
+
*/
|
|
13439
|
+
createOrganization: (data: CreateOrganization, query?: {
|
|
13440
|
+
/** If true, also creates a default documentation site for the organization. */
|
|
13441
|
+
withDefaultSite?: boolean;
|
|
13442
|
+
/** URL of an OpenAPI/Swagger specification to import and attach to the default site as a reference. Only used when `withDefaultSite` is true. */
|
|
13443
|
+
openapiUrl?: string;
|
|
13444
|
+
}, params?: RequestParams) => Promise<HttpResponse<Organization, any>>;
|
|
12973
13445
|
/**
|
|
12974
13446
|
* No description
|
|
12975
13447
|
*
|
|
@@ -13017,21 +13489,141 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13017
13489
|
};
|
|
13018
13490
|
}>>;
|
|
13019
13491
|
/**
|
|
13020
|
-
* @description Lists
|
|
13492
|
+
* @description Lists the supported audit event action identifiers and their display labels. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.
|
|
13493
|
+
*
|
|
13494
|
+
* @tags organizations
|
|
13495
|
+
* @name ListOrganizationAuditEventActions
|
|
13496
|
+
* @summary List organization audit event actions
|
|
13497
|
+
* @request GET:/orgs/{organizationId}/audit-event-actions
|
|
13498
|
+
* @secure
|
|
13499
|
+
*/
|
|
13500
|
+
listOrganizationAuditEventActions: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<{
|
|
13501
|
+
items: AuditEventAction[];
|
|
13502
|
+
}, {
|
|
13503
|
+
error: {
|
|
13504
|
+
/** @format int32 */
|
|
13505
|
+
code: 401;
|
|
13506
|
+
message: string;
|
|
13507
|
+
};
|
|
13508
|
+
} | {
|
|
13509
|
+
error: {
|
|
13510
|
+
/** @format int32 */
|
|
13511
|
+
code: 403;
|
|
13512
|
+
message: string;
|
|
13513
|
+
};
|
|
13514
|
+
} | {
|
|
13515
|
+
error: {
|
|
13516
|
+
/** @format int32 */
|
|
13517
|
+
code: 404;
|
|
13518
|
+
message: string;
|
|
13519
|
+
};
|
|
13520
|
+
}>>;
|
|
13521
|
+
/**
|
|
13522
|
+
* @description Lists recorded changes for an activated organization. Access is restricted to organization administrators and GitBook staff, and results are ordered by occurrence time, newest first. An active Enterprise plan is required except for GitBook's own organization.
|
|
13523
|
+
*
|
|
13524
|
+
* @tags organizations
|
|
13525
|
+
* @name ListOrganizationAuditEvents
|
|
13526
|
+
* @summary List organization audit events
|
|
13527
|
+
* @request GET:/orgs/{organizationId}/audit-events
|
|
13528
|
+
* @secure
|
|
13529
|
+
*/
|
|
13530
|
+
listOrganizationAuditEvents: (organizationId: EntityId, query?: {
|
|
13531
|
+
/** Identifier of the page results to fetch. */
|
|
13532
|
+
page?: string;
|
|
13533
|
+
/**
|
|
13534
|
+
* Number of events to return, up to 100.
|
|
13535
|
+
* @min 1
|
|
13536
|
+
* @max 100
|
|
13537
|
+
* @default 20
|
|
13538
|
+
*/
|
|
13539
|
+
limit?: number;
|
|
13540
|
+
/**
|
|
13541
|
+
* Include events occurring at or after this time.
|
|
13542
|
+
* @format date-time
|
|
13543
|
+
*/
|
|
13544
|
+
from?: string;
|
|
13545
|
+
/**
|
|
13546
|
+
* Include events occurring at or before this time.
|
|
13547
|
+
* @format date-time
|
|
13548
|
+
*/
|
|
13549
|
+
to?: string;
|
|
13550
|
+
/** Filter by an exact audit action name. */
|
|
13551
|
+
action?: string;
|
|
13552
|
+
/** Filter by an exact stable actor identifier. */
|
|
13553
|
+
actor?: string;
|
|
13554
|
+
/** Filter by an exact stable target identifier. */
|
|
13555
|
+
target?: string;
|
|
13556
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13557
|
+
items: AuditEvent[];
|
|
13558
|
+
}, {
|
|
13559
|
+
error: {
|
|
13560
|
+
/** @format int32 */
|
|
13561
|
+
code: 400;
|
|
13562
|
+
message: string;
|
|
13563
|
+
};
|
|
13564
|
+
} | {
|
|
13565
|
+
error: {
|
|
13566
|
+
/** @format int32 */
|
|
13567
|
+
code: 401;
|
|
13568
|
+
message: string;
|
|
13569
|
+
};
|
|
13570
|
+
} | {
|
|
13571
|
+
error: {
|
|
13572
|
+
/** @format int32 */
|
|
13573
|
+
code: 403;
|
|
13574
|
+
message: string;
|
|
13575
|
+
};
|
|
13576
|
+
} | {
|
|
13577
|
+
error: {
|
|
13578
|
+
/** @format int32 */
|
|
13579
|
+
code: 404;
|
|
13580
|
+
message: string;
|
|
13581
|
+
};
|
|
13582
|
+
}>>;
|
|
13583
|
+
/**
|
|
13584
|
+
* @description Returns the full allowlisted payload for one recorded organization change. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.
|
|
13585
|
+
*
|
|
13586
|
+
* @tags organizations
|
|
13587
|
+
* @name GetOrganizationAuditEvent
|
|
13588
|
+
* @summary Get an organization audit event
|
|
13589
|
+
* @request GET:/orgs/{organizationId}/audit-events/{auditEventId}
|
|
13590
|
+
* @secure
|
|
13591
|
+
*/
|
|
13592
|
+
getOrganizationAuditEvent: (organizationId: EntityId, auditEventId: string, params?: RequestParams) => Promise<HttpResponse<AuditEventDetails, {
|
|
13593
|
+
error: {
|
|
13594
|
+
/** @format int32 */
|
|
13595
|
+
code: 401;
|
|
13596
|
+
message: string;
|
|
13597
|
+
};
|
|
13598
|
+
} | {
|
|
13599
|
+
error: {
|
|
13600
|
+
/** @format int32 */
|
|
13601
|
+
code: 403;
|
|
13602
|
+
message: string;
|
|
13603
|
+
};
|
|
13604
|
+
} | {
|
|
13605
|
+
error: {
|
|
13606
|
+
/** @format int32 */
|
|
13607
|
+
code: 404;
|
|
13608
|
+
message: string;
|
|
13609
|
+
};
|
|
13610
|
+
}>>;
|
|
13611
|
+
/**
|
|
13612
|
+
* @description Lists every style guide (a space holding a team's writing style guide) in the organization, along with every site that references each one. Style guides that are not referenced by any site are still returned with an empty `sites` list.
|
|
13021
13613
|
*
|
|
13022
13614
|
* @tags organizations
|
|
13023
13615
|
* @name ListOrganizationStyleguides
|
|
13024
|
-
* @summary List all
|
|
13616
|
+
* @summary List all style guides in an organization
|
|
13025
13617
|
* @request GET:/orgs/{organizationId}/styleguides
|
|
13026
13618
|
* @secure
|
|
13027
13619
|
*/
|
|
13028
13620
|
listOrganizationStyleguides: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<OrganizationStyleguides, any>>;
|
|
13029
13621
|
/**
|
|
13030
|
-
* @description Lists the built-in
|
|
13622
|
+
* @description Lists the built-in style guide starter templates that can seed a new styleguide, including the markdown content used to render each template's preview.
|
|
13031
13623
|
*
|
|
13032
13624
|
* @tags organizations
|
|
13033
13625
|
* @name ListStyleguideTemplates
|
|
13034
|
-
* @summary List all built-in
|
|
13626
|
+
* @summary List all built-in style guide templates
|
|
13035
13627
|
* @request GET:/orgs/{organizationId}/styleguide-templates
|
|
13036
13628
|
* @secure
|
|
13037
13629
|
*/
|
|
@@ -13568,7 +14160,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13568
14160
|
parent?: string;
|
|
13569
14161
|
}, params?: RequestParams) => Promise<HttpResponse<Collection, any>>;
|
|
13570
14162
|
/**
|
|
13571
|
-
*
|
|
14163
|
+
* @description Returns a paginated list of the integrations available to the organization: every publicly published integration plus the private ones the organization owns or is trusted with. Prefer this over the public listing when acting inside an organization.
|
|
13572
14164
|
*
|
|
13573
14165
|
* @tags integrations
|
|
13574
14166
|
* @name ListOrganizationIntegrations
|
|
@@ -13609,7 +14201,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13609
14201
|
items: Integration[];
|
|
13610
14202
|
}, any>>;
|
|
13611
14203
|
/**
|
|
13612
|
-
*
|
|
14204
|
+
* @description Returns whether an integration is installed for the organization and the status of that installation. Use this for a single integration instead of listing every status.
|
|
13613
14205
|
*
|
|
13614
14206
|
* @tags integrations
|
|
13615
14207
|
* @name GetOrganizationIntegrationStatus
|
|
@@ -13654,7 +14246,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13654
14246
|
}[];
|
|
13655
14247
|
}, any>>;
|
|
13656
14248
|
/**
|
|
13657
|
-
* @description Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource.
|
|
14249
|
+
* @description Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource. The target of each installation says whether it is installed on the organization, a space or a site.
|
|
13658
14250
|
*
|
|
13659
14251
|
* @tags integrations, critical
|
|
13660
14252
|
* @name ListOrganizationIntegrationsStatus
|
|
@@ -14474,7 +15066,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14474
15066
|
* Use `null` to remove the proxy.
|
|
14475
15067
|
*/
|
|
14476
15068
|
proxy?: SiteProxyOrigin | null;
|
|
14477
|
-
/** Attach an existing
|
|
15069
|
+
/** Attach an existing style guide to the site by the ID of the style guide space, or `null` to detach the current one. The space must be a style guide owned by the same organization. */
|
|
14478
15070
|
styleguide?: string | null;
|
|
14479
15071
|
}, params?: RequestParams) => Promise<HttpResponse<Site, any>>;
|
|
14480
15072
|
/**
|
|
@@ -14687,16 +15279,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14687
15279
|
};
|
|
14688
15280
|
}>>;
|
|
14689
15281
|
/**
|
|
14690
|
-
* @description Reorders
|
|
15282
|
+
* @description Reorders a site space, section, section group, or external link relative to any sibling at the same structure level. Sorting changes sibling order only; move an item between the root and a group through that item's update operation first.
|
|
14691
15283
|
*
|
|
14692
15284
|
* @tags sites
|
|
14693
15285
|
* @name SortSiteStructure
|
|
14694
|
-
* @summary Move a site
|
|
15286
|
+
* @summary Move a site structure item to a new position
|
|
14695
15287
|
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/structure/sort
|
|
14696
15288
|
* @secure
|
|
14697
15289
|
*/
|
|
14698
15290
|
sortSiteStructure: (organizationId: EntityId, siteId: string, data: {
|
|
14699
|
-
/**
|
|
15291
|
+
/** Pointer to the site space, section, section group, or external link being moved. */
|
|
14700
15292
|
item: SiteStructureItemPointer;
|
|
14701
15293
|
/** The position to move the item to. When not provided the item is moved to the end of the site structure. */
|
|
14702
15294
|
position: SiteStructureItemMovePosition;
|
|
@@ -14862,7 +15454,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14862
15454
|
items: Integration[];
|
|
14863
15455
|
}, any>>;
|
|
14864
15456
|
/**
|
|
14865
|
-
* @description
|
|
15457
|
+
* @description Pass an existing space ID to link it, or pass `null` to create and link a new space. New spaces are blank unless a template is provided.
|
|
14866
15458
|
*
|
|
14867
15459
|
* @tags site-spaces
|
|
14868
15460
|
* @name AddSpaceToSite
|
|
@@ -14871,17 +15463,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14871
15463
|
* @secure
|
|
14872
15464
|
*/
|
|
14873
15465
|
addSpaceToSite: (organizationId: EntityId, siteId: string, data: {
|
|
14874
|
-
/** ID of
|
|
14875
|
-
spaceId: string;
|
|
15466
|
+
/** Pass the ID of an existing space or `null` to create a new space. */
|
|
15467
|
+
spaceId: string | null;
|
|
15468
|
+
/** Template for the new space when `spaceId` is `null`. Templates that provision organization-level resources, such as OpenAPI specifications, are not supported by this site-scoped operation. */
|
|
15469
|
+
template?: ApplySpaceTemplate;
|
|
14876
15470
|
/** 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. */
|
|
14877
15471
|
sectionId?: string;
|
|
14878
15472
|
/**
|
|
14879
|
-
* Whether the site space should be created as draft. Defaults to false.
|
|
15473
|
+
* Whether the site space should be created as draft. Defaults to false. Editors can set this to true to create draft content on a non-empty site. Creating live content and adding the first content require Creator permission.
|
|
14880
15474
|
* @default false
|
|
14881
15475
|
*/
|
|
14882
15476
|
draft?: boolean;
|
|
14883
|
-
/** Custom home page within
|
|
15477
|
+
/** Custom home page within an existing space, rendered at the site space's path root instead of the space's default landing page. Providing it when `spaceId` is `null` returns a 400 error. */
|
|
14884
15478
|
pageId?: string | null;
|
|
15479
|
+
/** Site-specific title override for the variant. Also used as the space title when `spaceId` is `null` and no template is provided. */
|
|
15480
|
+
title?: SiteTitle;
|
|
14885
15481
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, any>>;
|
|
14886
15482
|
/**
|
|
14887
15483
|
* @description Returns a paginated list of site spaces — the links between a site and its content source spaces. Each site space can be a language variant or content version within a section. Use the default filter to retrieve only the primary site space, or omit it to get all linked spaces including drafts.
|
|
@@ -14978,7 +15574,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14978
15574
|
*/
|
|
14979
15575
|
deleteSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
14980
15576
|
/**
|
|
14981
|
-
* @description Creates a new top-level navigation section in the site
|
|
15577
|
+
* @description Creates a new top-level navigation section in the site. The section appears as a tab or sidebar entry in the site navigation. Pass an existing space ID to link it as the section's primary content source, or pass `null` to create and link a new space. New spaces are blank unless a template is provided.
|
|
14982
15578
|
*
|
|
14983
15579
|
* @tags site-sections
|
|
14984
15580
|
* @name AddSectionToSite
|
|
@@ -14987,12 +15583,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14987
15583
|
* @secure
|
|
14988
15584
|
*/
|
|
14989
15585
|
addSectionToSite: (organizationId: EntityId, siteId: string, data: {
|
|
14990
|
-
/** ID of
|
|
14991
|
-
spaceId: string;
|
|
15586
|
+
/** Pass the ID of an existing space or pass `null` to create a new space. The space will be added to the section as a site space variant. */
|
|
15587
|
+
spaceId: string | null;
|
|
15588
|
+
/** Template for the new space when `spaceId` is `null`. Templates that provision organization-level resources, such as OpenAPI specifications, are not supported by this site-scoped operation. */
|
|
15589
|
+
template?: ApplySpaceTemplate;
|
|
15590
|
+
/** Section title. Also used as the space title when `spaceId` is `null` and no template is provided. */
|
|
14992
15591
|
title?: SiteSectionTitle | null;
|
|
14993
15592
|
icon?: Icon | null;
|
|
14994
|
-
/**
|
|
15593
|
+
/**
|
|
15594
|
+
* Whether the section should be created in draft mode. Defaults to false. Editors can set this to true to create draft content after sections are enabled. Creating live content requires Creator permission; enabling sections requires Admin permission.
|
|
15595
|
+
* @default false
|
|
15596
|
+
*/
|
|
14995
15597
|
draft?: boolean;
|
|
15598
|
+
/** Custom home page within an existing space, rendered at the section's path root instead of the space's default landing page. Providing it when `spaceId` is `null` returns a 400 error. */
|
|
15599
|
+
pageId?: string;
|
|
14996
15600
|
/** ID of the section group to create the section in */
|
|
14997
15601
|
siteSectionGroupId?: string;
|
|
14998
15602
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
|
|
@@ -15058,6 +15662,91 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15058
15662
|
* @secure
|
|
15059
15663
|
*/
|
|
15060
15664
|
deleteSiteSectionById: (organizationId: EntityId, siteId: string, siteSectionId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
15665
|
+
/**
|
|
15666
|
+
* @description Creates an external navigation link at the site root or in a section group. External links require a section-based site structure and cannot be placed inside a section. The destination must be an absolute HTTP or HTTPS URL. Draft links and links whose adaptive condition does not match are omitted from published structure responses. Use the generic structure sort operation after creation to change sibling order.
|
|
15667
|
+
*
|
|
15668
|
+
* @tags site-external-links
|
|
15669
|
+
* @name AddExternalLinkToSite
|
|
15670
|
+
* @summary Add an external link to a site's navigation
|
|
15671
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/external-links
|
|
15672
|
+
* @secure
|
|
15673
|
+
*/
|
|
15674
|
+
addExternalLinkToSite: (organizationId: EntityId, siteId: string, data: {
|
|
15675
|
+
/** Title of the site section */
|
|
15676
|
+
title: SiteSectionTitle;
|
|
15677
|
+
/** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
|
|
15678
|
+
localizedTitle?: LocalizedString128;
|
|
15679
|
+
description?: SiteSectionDescription | null;
|
|
15680
|
+
localizedDescription?: LocalizedString256 | null;
|
|
15681
|
+
icon?: Icon | null;
|
|
15682
|
+
/** Absolute HTTP or HTTPS destination URL */
|
|
15683
|
+
url: URL;
|
|
15684
|
+
/** ID of the section group to create the link in. Omit to place it at the site root. */
|
|
15685
|
+
parent?: string;
|
|
15686
|
+
/** Whether the external link should be created in draft mode */
|
|
15687
|
+
draft?: boolean;
|
|
15688
|
+
/** Adaptive condition controlling whether visitors see the link */
|
|
15689
|
+
condition?: Expression | null;
|
|
15690
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteExternalLink, Error | {
|
|
15691
|
+
error: {
|
|
15692
|
+
/** @format int32 */
|
|
15693
|
+
code: 400;
|
|
15694
|
+
message: string;
|
|
15695
|
+
};
|
|
15696
|
+
}>>;
|
|
15697
|
+
/**
|
|
15698
|
+
* @description Updates an external navigation link. Set parent to a section group ID to move the link into that group, or null to move it to the site root; links cannot be placed inside a section. A changed destination must remain an absolute HTTP or HTTPS URL. Draft and adaptive-condition fields control visibility. Use the generic structure sort operation after changing the parent to adjust the link's sibling order.
|
|
15699
|
+
*
|
|
15700
|
+
* @tags site-external-links
|
|
15701
|
+
* @name UpdateSiteExternalLinkById
|
|
15702
|
+
* @summary Update an external link in a site's navigation
|
|
15703
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/external-links/{siteExternalLinkId}
|
|
15704
|
+
* @secure
|
|
15705
|
+
*/
|
|
15706
|
+
updateSiteExternalLinkById: (organizationId: EntityId, siteId: string, siteExternalLinkId: string, data: {
|
|
15707
|
+
/** Title of the site section */
|
|
15708
|
+
title?: SiteSectionTitle;
|
|
15709
|
+
localizedTitle?: LocalizedString128 | null;
|
|
15710
|
+
description?: SiteSectionDescription | null;
|
|
15711
|
+
localizedDescription?: LocalizedString256 | null;
|
|
15712
|
+
icon?: Icon | null;
|
|
15713
|
+
/** Absolute HTTP or HTTPS destination URL */
|
|
15714
|
+
url?: URL;
|
|
15715
|
+
/** ID of the section group to move the link into. Set to null to move it to the site root. */
|
|
15716
|
+
parent?: string | null;
|
|
15717
|
+
/** Whether the external link should be kept in draft mode */
|
|
15718
|
+
draft?: boolean;
|
|
15719
|
+
/** Adaptive condition controlling whether visitors see the link */
|
|
15720
|
+
condition?: Expression | null;
|
|
15721
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteExternalLink, Error | {
|
|
15722
|
+
error: {
|
|
15723
|
+
/** @format int32 */
|
|
15724
|
+
code: 400;
|
|
15725
|
+
message: string;
|
|
15726
|
+
};
|
|
15727
|
+
} | {
|
|
15728
|
+
error: {
|
|
15729
|
+
/** @format int32 */
|
|
15730
|
+
code: 404;
|
|
15731
|
+
message: string;
|
|
15732
|
+
};
|
|
15733
|
+
}>>;
|
|
15734
|
+
/**
|
|
15735
|
+
* @description Deletes an external link. This operation is intentionally unavailable to MCP clients.
|
|
15736
|
+
*
|
|
15737
|
+
* @tags site-external-links
|
|
15738
|
+
* @name DeleteSiteExternalLinkById
|
|
15739
|
+
* @summary Delete an external link from a site's navigation
|
|
15740
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/external-links/{siteExternalLinkId}
|
|
15741
|
+
* @secure
|
|
15742
|
+
*/
|
|
15743
|
+
deleteSiteExternalLinkById: (organizationId: EntityId, siteId: string, siteExternalLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
15744
|
+
error: {
|
|
15745
|
+
/** @format int32 */
|
|
15746
|
+
code: 404;
|
|
15747
|
+
message: string;
|
|
15748
|
+
};
|
|
15749
|
+
}>>;
|
|
15061
15750
|
/**
|
|
15062
15751
|
* @description Performs a full-text search across all published spaces in the site and returns matching pages with relevant excerpts. Use the scope parameter to restrict the search to specific site spaces or sections. Prefer this over the space-level search when you need to search across a multi-section site in one call.
|
|
15063
15752
|
*
|
|
@@ -15130,6 +15819,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15130
15819
|
spaceId: string;
|
|
15131
15820
|
/** ID of the page the feedback is about. */
|
|
15132
15821
|
pageId: string;
|
|
15822
|
+
/** Surface the feedback was submitted from. When omitted, the feedback is recorded with an unknown source. */
|
|
15823
|
+
source?: AgentFeedbackSource;
|
|
15133
15824
|
}, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
15134
15825
|
/**
|
|
15135
15826
|
* @description The response is streamed.
|
|
@@ -15278,6 +15969,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15278
15969
|
limit?: number;
|
|
15279
15970
|
/** Filter findings by associated site topic ID. */
|
|
15280
15971
|
topic?: string;
|
|
15972
|
+
/** Filter findings that reference the given site question ID as evidence. */
|
|
15973
|
+
question?: string;
|
|
15281
15974
|
/** Filter findings by status. */
|
|
15282
15975
|
status?: SiteFindingStatus;
|
|
15283
15976
|
/** Filter findings by type. When multiple types are given, findings matching any of them are returned. */
|
|
@@ -15564,7 +16257,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15564
16257
|
items: SiteTopic[];
|
|
15565
16258
|
}, any>>;
|
|
15566
16259
|
/**
|
|
15567
|
-
*
|
|
16260
|
+
* @description Retrieves a single topic of a site by its ID, including its label, its parent topic when it is a subtopic, its summary and usage settings, and its page, record, finding and Ask AI question counts. Use this when you have a topic ID and need the topic's label or its stats.
|
|
15568
16261
|
*
|
|
15569
16262
|
* @tags site-context
|
|
15570
16263
|
* @name GetSiteTopicById
|
|
@@ -16334,16 +17027,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16334
17027
|
};
|
|
16335
17028
|
}>>;
|
|
16336
17029
|
/**
|
|
16337
|
-
* @description Ensures the site has a dedicated
|
|
17030
|
+
* @description Ensures the site has a dedicated style guide space and returns it. The style guide defines writing style and tone guidelines that the AI editor agent references when generating or refining content for the site. If a style guide already exists, this is idempotent and returns the existing space.
|
|
16338
17031
|
*
|
|
16339
17032
|
* @tags sites
|
|
16340
17033
|
* @name CreateSiteStyleguideById
|
|
16341
|
-
* @summary Create or retrieve the
|
|
17034
|
+
* @summary Create or retrieve the style guide space for a site
|
|
16342
17035
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/styleguide
|
|
16343
17036
|
* @secure
|
|
16344
17037
|
*/
|
|
16345
17038
|
createSiteStyleguideById: (organizationId: EntityId, siteId: string, data?: {
|
|
16346
|
-
/** Built-in template id to seed the
|
|
17039
|
+
/** Built-in template id to seed the style guide content with. Omit (or send no body) to create a blank style guide. */
|
|
16347
17040
|
template?: string;
|
|
16348
17041
|
}, params?: RequestParams) => Promise<HttpResponse<Space, {
|
|
16349
17042
|
error: {
|
|
@@ -16401,7 +17094,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16401
17094
|
topic?: SiteAdsTopic;
|
|
16402
17095
|
}, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16403
17096
|
/**
|
|
16404
|
-
* @description Creates a new redirect rule mapping a source path to a destination URL or content reference. Use the bulk upsert endpoint instead when creating many redirects at once.
|
|
17097
|
+
* @description Creates a new redirect rule mapping a source path to a destination URL or content reference. Creating a live redirect also resolves open broken-link findings for the same source path. Use the bulk upsert endpoint instead when creating many redirects at once.
|
|
16405
17098
|
*
|
|
16406
17099
|
* @tags site-redirects
|
|
16407
17100
|
* @name CreateSiteRedirect
|
|
@@ -16532,6 +17225,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16532
17225
|
* @default false
|
|
16533
17226
|
*/
|
|
16534
17227
|
draft?: boolean;
|
|
17228
|
+
/** Sort redirects by the given field. */
|
|
17229
|
+
orderBy?: SiteRedirectOrderBy;
|
|
16535
17230
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
16536
17231
|
items: SiteRedirect[];
|
|
16537
17232
|
}, any>>;
|
|
@@ -16740,6 +17435,41 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16740
17435
|
deleteSiteChannelById: (organizationId: EntityId, siteId: string, siteChannelId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16741
17436
|
};
|
|
16742
17437
|
org: {
|
|
17438
|
+
/**
|
|
17439
|
+
* @description Returns the import runs of the organization, most recent first. Runs left behind by an import that never reported back are returned as failed.
|
|
17440
|
+
*
|
|
17441
|
+
* @tags imports
|
|
17442
|
+
* @name ListImportRuns
|
|
17443
|
+
* @summary List the import runs of an organization
|
|
17444
|
+
* @request GET:/org/{organizationId}/imports
|
|
17445
|
+
* @secure
|
|
17446
|
+
*/
|
|
17447
|
+
listImportRuns: (organizationId: EntityId, query?: {
|
|
17448
|
+
/** Only return the import runs targeting this space. */
|
|
17449
|
+
space?: string;
|
|
17450
|
+
/** Only return the import runs targeting this change request. */
|
|
17451
|
+
changeRequest?: string;
|
|
17452
|
+
/** Only return the import runs targeting a space of this site. */
|
|
17453
|
+
site?: string;
|
|
17454
|
+
/** Only return the import runs in this status. `active` covers both `pending` and `in-progress`. */
|
|
17455
|
+
status?: "active" | "pending" | "in-progress" | "completed" | "failed" | "cancelled";
|
|
17456
|
+
/** Identifier of the page results to fetch. */
|
|
17457
|
+
page?: string;
|
|
17458
|
+
/**
|
|
17459
|
+
* The number of results per page
|
|
17460
|
+
* @min 0
|
|
17461
|
+
* @max 1000
|
|
17462
|
+
*/
|
|
17463
|
+
limit?: number;
|
|
17464
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
17465
|
+
items: ContentImportRun[];
|
|
17466
|
+
}, {
|
|
17467
|
+
error: {
|
|
17468
|
+
/** @format int32 */
|
|
17469
|
+
code: 404;
|
|
17470
|
+
message: string;
|
|
17471
|
+
};
|
|
17472
|
+
}>>;
|
|
16743
17473
|
/**
|
|
16744
17474
|
* No description
|
|
16745
17475
|
*
|
|
@@ -16752,6 +17482,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16752
17482
|
startImportRun: (organizationId: EntityId, data: {
|
|
16753
17483
|
source: ContentImportSource;
|
|
16754
17484
|
target: ContentImportTarget;
|
|
17485
|
+
/** ID of the site the import is for, to list it among that site's imports. Only needed when the target space does not belong to the site yet — a site being set up, whose space is attached once the import has started. Otherwise the site is resolved from the space. */
|
|
17486
|
+
site?: string;
|
|
16755
17487
|
/**
|
|
16756
17488
|
* Enhance the imported content with AI
|
|
16757
17489
|
* @default true
|
|
@@ -16770,6 +17502,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16770
17502
|
message: string;
|
|
16771
17503
|
};
|
|
16772
17504
|
}>>;
|
|
17505
|
+
/**
|
|
17506
|
+
* @description Returns the import run. A run left behind by an import that never reported back is returned as failed.
|
|
17507
|
+
*
|
|
17508
|
+
* @tags imports
|
|
17509
|
+
* @name GetImportRun
|
|
17510
|
+
* @summary Get an import run
|
|
17511
|
+
* @request GET:/org/{organizationId}/imports/{importRunId}
|
|
17512
|
+
* @secure
|
|
17513
|
+
*/
|
|
17514
|
+
getImportRun: (organizationId: EntityId, importRunId: string, params?: RequestParams) => Promise<HttpResponse<ContentImportRun, {
|
|
17515
|
+
error: {
|
|
17516
|
+
/** @format int32 */
|
|
17517
|
+
code: 404;
|
|
17518
|
+
message: string;
|
|
17519
|
+
};
|
|
17520
|
+
}>>;
|
|
16773
17521
|
/**
|
|
16774
17522
|
* No description
|
|
16775
17523
|
*
|
|
@@ -17064,7 +17812,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
17064
17812
|
};
|
|
17065
17813
|
}>>;
|
|
17066
17814
|
/**
|
|
17067
|
-
*
|
|
17815
|
+
* @description Updates the installation configuration, then queues a sync operation using the new settings. A `git` priority queues an import from the selected repository and branch into GitBook; a `gitbook` priority queues an export from GitBook to the repository. Site imports require a `gitbook-docs.yaml` file at the configured project directory and return a conflict without saving or queuing the sync when the file is missing.
|
|
17068
17816
|
*
|
|
17069
17817
|
* @tags git
|
|
17070
17818
|
* @name UpdateGitSyncInstallationById
|
|
@@ -17075,22 +17823,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
17075
17823
|
updateGitSyncInstallationById: (installationId: string, data: GitSyncInstallationSetup & {
|
|
17076
17824
|
/** Project directories keyed by child installation ID for a site installation. */
|
|
17077
17825
|
childInstallationProjectDirectories?: Record<string, string>;
|
|
17078
|
-
}, params?: RequestParams) => Promise<HttpResponse<GitSyncInstallation, {
|
|
17826
|
+
}, params?: RequestParams) => Promise<HttpResponse<GitSyncInstallation, (Error & {
|
|
17079
17827
|
error: {
|
|
17080
|
-
|
|
17081
|
-
|
|
17082
|
-
|
|
17828
|
+
type: "missing_site_git_sync_config";
|
|
17829
|
+
details: {
|
|
17830
|
+
/** Repository-relative path where `gitbook-docs.yaml` is required. */
|
|
17831
|
+
path: string;
|
|
17832
|
+
/** Repository branch where `gitbook-docs.yaml` is required. */
|
|
17833
|
+
branch: string;
|
|
17834
|
+
/** Prompt for a coding agent to create and commit the missing file. */
|
|
17835
|
+
prompt: string;
|
|
17836
|
+
};
|
|
17083
17837
|
};
|
|
17084
|
-
} | {
|
|
17838
|
+
}) | {
|
|
17085
17839
|
error: {
|
|
17086
17840
|
/** @format int32 */
|
|
17087
|
-
code:
|
|
17841
|
+
code: 401;
|
|
17088
17842
|
message: string;
|
|
17089
17843
|
};
|
|
17090
17844
|
} | {
|
|
17091
17845
|
error: {
|
|
17092
17846
|
/** @format int32 */
|
|
17093
|
-
code:
|
|
17847
|
+
code: 404;
|
|
17094
17848
|
message: string;
|
|
17095
17849
|
};
|
|
17096
17850
|
}>>;
|
|
@@ -17158,6 +17912,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
17158
17912
|
message: string;
|
|
17159
17913
|
};
|
|
17160
17914
|
}>>;
|
|
17915
|
+
/**
|
|
17916
|
+
* No description
|
|
17917
|
+
*
|
|
17918
|
+
* @tags git
|
|
17919
|
+
* @name GetGitHubRepoFileForGitSyncInstallation
|
|
17920
|
+
* @summary Get a file from a GitHub repository for a Git Sync installation
|
|
17921
|
+
* @request GET:/git/installations/{installationId}/github/repos/{accountName}/{repositoryName}/file
|
|
17922
|
+
* @secure
|
|
17923
|
+
*/
|
|
17924
|
+
getGitHubRepoFileForGitSyncInstallation: (installationId: string, accountName: string, repositoryName: string, query: {
|
|
17925
|
+
path: string;
|
|
17926
|
+
ref: string;
|
|
17927
|
+
}, params?: RequestParams) => Promise<HttpResponse<GitSyncRepositoryFile, {
|
|
17928
|
+
error: {
|
|
17929
|
+
/** @format int32 */
|
|
17930
|
+
code: 401;
|
|
17931
|
+
message: string;
|
|
17932
|
+
};
|
|
17933
|
+
} | {
|
|
17934
|
+
error: {
|
|
17935
|
+
/** @format int32 */
|
|
17936
|
+
code: 404;
|
|
17937
|
+
message: string;
|
|
17938
|
+
};
|
|
17939
|
+
}>>;
|
|
17161
17940
|
/**
|
|
17162
17941
|
* No description
|
|
17163
17942
|
*
|
|
@@ -17206,6 +17985,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
17206
17985
|
message: string;
|
|
17207
17986
|
};
|
|
17208
17987
|
}>>;
|
|
17988
|
+
/**
|
|
17989
|
+
* No description
|
|
17990
|
+
*
|
|
17991
|
+
* @tags git
|
|
17992
|
+
* @name GetGitLabProjectFileForGitSyncInstallation
|
|
17993
|
+
* @summary Get a file from a GitLab project for a Git Sync installation
|
|
17994
|
+
* @request GET:/git/installations/{installationId}/gitlab/projects/{projectId}/file
|
|
17995
|
+
* @secure
|
|
17996
|
+
*/
|
|
17997
|
+
getGitLabProjectFileForGitSyncInstallation: (installationId: string, projectId: number, query: {
|
|
17998
|
+
path: string;
|
|
17999
|
+
ref: string;
|
|
18000
|
+
}, params?: RequestParams) => Promise<HttpResponse<GitSyncRepositoryFile, {
|
|
18001
|
+
error: {
|
|
18002
|
+
/** @format int32 */
|
|
18003
|
+
code: 401;
|
|
18004
|
+
message: string;
|
|
18005
|
+
};
|
|
18006
|
+
} | {
|
|
18007
|
+
error: {
|
|
18008
|
+
/** @format int32 */
|
|
18009
|
+
code: 404;
|
|
18010
|
+
message: string;
|
|
18011
|
+
};
|
|
18012
|
+
}>>;
|
|
17209
18013
|
};
|
|
17210
18014
|
}
|
|
17211
18015
|
export {};
|