@gitbook/api 0.194.0 → 0.196.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 +803 -116
- package/dist/constants.d.ts +9 -5
- package/dist/index.cjs +109 -7
- package/dist/index.js +102 -7
- package/package.json +1 -1
- package/spec/openapi.json +1932 -316
- package/spec/openapi.yaml +1394 -246
package/dist/client.d.ts
CHANGED
|
@@ -142,6 +142,10 @@ export declare enum SiteInsightsQueryOperator {
|
|
|
142
142
|
LessThan = "lessThan",
|
|
143
143
|
LessThanOrEqual = "lessThanOrEqual"
|
|
144
144
|
}
|
|
145
|
+
/** 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. */
|
|
146
|
+
export declare enum SiteInsightsPageNotFoundType {
|
|
147
|
+
Conditional = "conditional"
|
|
148
|
+
}
|
|
145
149
|
export declare enum SiteInsightsVisitorBot {
|
|
146
150
|
Unknown = "unknown",
|
|
147
151
|
Googlebot = "googlebot",
|
|
@@ -309,6 +313,14 @@ export declare enum ContextSearchBoost {
|
|
|
309
313
|
X10 = "x1.0",
|
|
310
314
|
X12 = "x1.2"
|
|
311
315
|
}
|
|
316
|
+
/** 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. */
|
|
317
|
+
export declare enum ContextConnectionFailureReason {
|
|
318
|
+
Authentication = "authentication",
|
|
319
|
+
Misconfigured = "misconfigured",
|
|
320
|
+
RateLimited = "rate_limited",
|
|
321
|
+
UpstreamUnavailable = "upstream_unavailable",
|
|
322
|
+
Unknown = "unknown"
|
|
323
|
+
}
|
|
312
324
|
export declare enum ContextConnectionStatus {
|
|
313
325
|
Pending = "pending",
|
|
314
326
|
Syncing = "syncing",
|
|
@@ -347,12 +359,14 @@ export declare enum SiteFindingSeverity {
|
|
|
347
359
|
* - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.
|
|
348
360
|
* - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
|
|
349
361
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
362
|
+
* - Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.
|
|
350
363
|
* - Other: Any other type of finding not covered by the above categories.
|
|
351
364
|
*/
|
|
352
365
|
export declare enum SiteFindingType {
|
|
353
366
|
ContentOutdated = "content-outdated",
|
|
354
367
|
ContentIncorrect = "content-incorrect",
|
|
355
368
|
ContentGap = "content-gap",
|
|
369
|
+
BrokenLink = "broken-link",
|
|
356
370
|
Other = "other"
|
|
357
371
|
}
|
|
358
372
|
/**
|
|
@@ -379,6 +393,11 @@ export declare enum ContextRecordType {
|
|
|
379
393
|
Ticket = "ticket",
|
|
380
394
|
Document = "document"
|
|
381
395
|
}
|
|
396
|
+
/** The surface the agent was running on when it submitted the feedback: the MCP server exposed by the site, or the site assistant. */
|
|
397
|
+
export declare enum AgentFeedbackSource {
|
|
398
|
+
Mcp = "mcp",
|
|
399
|
+
Assistant = "assistant"
|
|
400
|
+
}
|
|
382
401
|
/** The platform of the social handle. */
|
|
383
402
|
export declare enum SiteSocialAccountPlatform {
|
|
384
403
|
Twitter = "twitter",
|
|
@@ -634,7 +653,8 @@ export declare enum GitSyncInstallationPriority {
|
|
|
634
653
|
}
|
|
635
654
|
export declare enum StorageUploadKind {
|
|
636
655
|
CustomizationFont = "customization_font",
|
|
637
|
-
ImportFile = "import_file"
|
|
656
|
+
ImportFile = "import_file",
|
|
657
|
+
OrganizationFile = "organization_file"
|
|
638
658
|
}
|
|
639
659
|
export declare enum TranslationStatus {
|
|
640
660
|
Pending = "pending",
|
|
@@ -725,12 +745,14 @@ export declare enum SiteFeatureKey {
|
|
|
725
745
|
SitesAiSearch = "sites-ai-search",
|
|
726
746
|
SitesAiAssistant = "sites-ai-assistant",
|
|
727
747
|
SitesAiInsights = "sites-ai-insights",
|
|
748
|
+
SitesFixBrokenLinks = "sites-fix-broken-links",
|
|
728
749
|
SitesConnections = "sites-connections",
|
|
729
750
|
SitesContentGaps = "sites-content-gaps",
|
|
730
751
|
SitesChannels = "sites-channels",
|
|
731
752
|
SitesEmbed = "sites-embed",
|
|
732
753
|
SitesApiPlayground = "sites-api-playground",
|
|
733
754
|
SitesBasicCustomization = "sites-basic-customization",
|
|
755
|
+
SitesBrokenLinks = "sites-broken-links",
|
|
734
756
|
SitesCustomDomain = "sites-custom-domain",
|
|
735
757
|
SitesCustomFonts = "sites-custom-fonts",
|
|
736
758
|
SitesCustomSubdirectory = "sites-custom-subdirectory",
|
|
@@ -819,7 +841,7 @@ export declare enum BillingCreditsBundle {
|
|
|
819
841
|
Value135001500 = "13500_1500",
|
|
820
842
|
Value240006000 = "24000_6000",
|
|
821
843
|
Value4200018000 = "42000_18000",
|
|
822
|
-
|
|
844
|
+
Value6000040000 = "60000_40000"
|
|
823
845
|
}
|
|
824
846
|
/** Interval for a billing subscription */
|
|
825
847
|
export declare enum BillingInterval {
|
|
@@ -1303,6 +1325,16 @@ export interface MergeRulesConfigurationNone {
|
|
|
1303
1325
|
}
|
|
1304
1326
|
export type MergeRulesStandaloneConfiguration = MergeRulesConfigurationRules | MergeRulesConfigurationNone;
|
|
1305
1327
|
export type MergeRulesSpaceConfiguration = MergeRulesConfigurationInherit | MergeRulesStandaloneConfiguration;
|
|
1328
|
+
/** An action the user can take to resolve a failed Git Sync operation. */
|
|
1329
|
+
export interface GitSyncOperationErrorAction {
|
|
1330
|
+
/** Label for the action. */
|
|
1331
|
+
label: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* URL where the user can resolve the failure.
|
|
1334
|
+
* @format uri
|
|
1335
|
+
*/
|
|
1336
|
+
url: string;
|
|
1337
|
+
}
|
|
1306
1338
|
export interface GitSyncState {
|
|
1307
1339
|
/** Repository name. */
|
|
1308
1340
|
repoName?: string;
|
|
@@ -1334,10 +1366,76 @@ export interface GitSyncState {
|
|
|
1334
1366
|
endedAt?: Timestamp;
|
|
1335
1367
|
/** Why the operation failed, when it did. */
|
|
1336
1368
|
error?: string;
|
|
1369
|
+
/** An action the user can take to resolve a failed Git Sync operation. */
|
|
1370
|
+
errorAction?: GitSyncOperationErrorAction;
|
|
1337
1371
|
};
|
|
1338
1372
|
/** When the Git provider details were last updated */
|
|
1339
1373
|
updatedAt?: Timestamp;
|
|
1340
1374
|
}
|
|
1375
|
+
export type ContentImportSource = {
|
|
1376
|
+
type: "website";
|
|
1377
|
+
url: URL;
|
|
1378
|
+
} | {
|
|
1379
|
+
type: "file";
|
|
1380
|
+
/**
|
|
1381
|
+
* Files to import
|
|
1382
|
+
* @maxItems 50
|
|
1383
|
+
*/
|
|
1384
|
+
files: string[];
|
|
1385
|
+
};
|
|
1386
|
+
export interface ContentImportTarget {
|
|
1387
|
+
/** ID of the space to import in */
|
|
1388
|
+
space: string;
|
|
1389
|
+
/** ID of the change request to import in */
|
|
1390
|
+
changeRequest?: string;
|
|
1391
|
+
/** ID of the page to import in */
|
|
1392
|
+
page?: string;
|
|
1393
|
+
}
|
|
1394
|
+
export interface ContentImportRun {
|
|
1395
|
+
/** Type of Object, always equals to "import-run" */
|
|
1396
|
+
object?: "import-run";
|
|
1397
|
+
/** Unique ID of the import */
|
|
1398
|
+
id: string;
|
|
1399
|
+
/** Date when the import has started */
|
|
1400
|
+
startedAt?: Timestamp;
|
|
1401
|
+
/** Filled when the imported is in status "completed" */
|
|
1402
|
+
completedAt?: Timestamp;
|
|
1403
|
+
/** Date when the import was requested */
|
|
1404
|
+
createdAt?: Timestamp;
|
|
1405
|
+
/** Date when the import was last updated */
|
|
1406
|
+
updatedAt?: Timestamp;
|
|
1407
|
+
/** Status of the import */
|
|
1408
|
+
status: "pending" | "in-progress" | "completed" | "failed" | "cancelled";
|
|
1409
|
+
/** Reason for the import failure when `status` is `failed`. */
|
|
1410
|
+
reason?: string;
|
|
1411
|
+
/** Where the content is imported from. */
|
|
1412
|
+
source?: ContentImportSource;
|
|
1413
|
+
/** Where the content is imported into. */
|
|
1414
|
+
target?: ContentImportTarget;
|
|
1415
|
+
/** ID of the site the target space belongs to, when it belongs to exactly one. */
|
|
1416
|
+
site?: string;
|
|
1417
|
+
/** ID of the user who started the import. */
|
|
1418
|
+
createdBy?: string;
|
|
1419
|
+
/** URLs associated with the object */
|
|
1420
|
+
urls?: {
|
|
1421
|
+
/**
|
|
1422
|
+
* URL of the import run in the API
|
|
1423
|
+
* @format uri
|
|
1424
|
+
*/
|
|
1425
|
+
location: string;
|
|
1426
|
+
};
|
|
1427
|
+
/** Pages included in the import */
|
|
1428
|
+
pages?: {
|
|
1429
|
+
/** ID of page */
|
|
1430
|
+
id: string;
|
|
1431
|
+
/** Source URL where the page has been imported from */
|
|
1432
|
+
sourceURL?: string;
|
|
1433
|
+
/** Type of page */
|
|
1434
|
+
type: "page" | "folder";
|
|
1435
|
+
/** Status of the page */
|
|
1436
|
+
status: "complete" | "pending";
|
|
1437
|
+
}[];
|
|
1438
|
+
}
|
|
1341
1439
|
/** Custom backend for authenticated access */
|
|
1342
1440
|
export interface VisitorAuthCustomBackend {
|
|
1343
1441
|
/** Custom backend for authenticated access */
|
|
@@ -1384,7 +1482,7 @@ export interface Space {
|
|
|
1384
1482
|
* * `locked`: All edits are locked for this space.
|
|
1385
1483
|
*/
|
|
1386
1484
|
editMode?: SpaceEditMode;
|
|
1387
|
-
/** Kind of space. Only set to `styleguide` for spaces holding a team's writing
|
|
1485
|
+
/** Kind of space. Only set to `styleguide` for spaces holding a team's writing style guide; omitted for regular spaces. */
|
|
1388
1486
|
type?: "styleguide";
|
|
1389
1487
|
mergeRules: MergeRulesSpaceConfiguration;
|
|
1390
1488
|
/** URLs associated with the object */
|
|
@@ -1418,6 +1516,8 @@ export interface Space {
|
|
|
1418
1516
|
parent?: string;
|
|
1419
1517
|
language?: TranslationLanguage;
|
|
1420
1518
|
gitSync?: GitSyncState;
|
|
1519
|
+
/** Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space. */
|
|
1520
|
+
imports?: ContentImportRun[];
|
|
1421
1521
|
visitorAuth?: VisitorAuth;
|
|
1422
1522
|
/** ID of the active revision in the space. */
|
|
1423
1523
|
revision: string;
|
|
@@ -1546,9 +1646,16 @@ export interface SearchSectionResult {
|
|
|
1546
1646
|
export interface SearchPageResult {
|
|
1547
1647
|
id: string;
|
|
1548
1648
|
title: string;
|
|
1649
|
+
/** Description of the page, suitable for presenting a page-root search destination. */
|
|
1650
|
+
description: string;
|
|
1549
1651
|
path: string;
|
|
1550
1652
|
/** Relevance score for a search result. Higher is better and the score is unbounded. */
|
|
1551
1653
|
score: SearchResultScore;
|
|
1654
|
+
/**
|
|
1655
|
+
* One-based position in the globally ranked result set, preserved when results are paginated and grouped by space.
|
|
1656
|
+
* @min 1
|
|
1657
|
+
*/
|
|
1658
|
+
rank: number;
|
|
1552
1659
|
/** Whether the page matched on its own fields (title, description) or on the content of one of its sections. */
|
|
1553
1660
|
resultType?: "page" | "section";
|
|
1554
1661
|
sections?: SearchSectionResult[];
|
|
@@ -2984,6 +3091,8 @@ export type ChangeRequestSubject = string;
|
|
|
2984
3091
|
export type ChangeRequestLinkTitle = string;
|
|
2985
3092
|
/** External link associated with a change request. */
|
|
2986
3093
|
export interface ChangeRequestLinkInput {
|
|
3094
|
+
/** 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. */
|
|
3095
|
+
id?: string;
|
|
2987
3096
|
ref: ContentRefURL;
|
|
2988
3097
|
/** Optional title to display for the link. */
|
|
2989
3098
|
title?: ChangeRequestLinkTitle;
|
|
@@ -3012,6 +3121,8 @@ export type ChangeRequestLinkExpanded = {
|
|
|
3012
3121
|
state: "error";
|
|
3013
3122
|
};
|
|
3014
3123
|
export type ChangeRequestLink = ChangeRequestLinkInput & {
|
|
3124
|
+
/** The ID of the link. Absent on links not yet stored relationally. */
|
|
3125
|
+
id?: string;
|
|
3015
3126
|
/** External ticket data resolved for this link by a configured connector. */
|
|
3016
3127
|
expanded?: ChangeRequestLinkExpanded;
|
|
3017
3128
|
};
|
|
@@ -3061,6 +3172,8 @@ export interface ChangeRequest {
|
|
|
3061
3172
|
};
|
|
3062
3173
|
/** If true, the change request is not up-to-date with latest changes in the main content. */
|
|
3063
3174
|
outdated: boolean;
|
|
3175
|
+
/** Import runs targeting this change request, still running or ended recently, most recent first. Only returned when fetching a single change request. */
|
|
3176
|
+
imports?: ContentImportRun[];
|
|
3064
3177
|
/** External links associated with the change request. */
|
|
3065
3178
|
links?: ChangeRequestLinks;
|
|
3066
3179
|
/** URLs associated with the object */
|
|
@@ -3858,6 +3971,8 @@ export interface OrganizationBilling {
|
|
|
3858
3971
|
canUseSAML: boolean;
|
|
3859
3972
|
/** The AI credit bundle the organization tops up every month, or null when the organization is not billed for AI usage. `none` means pay as you go. */
|
|
3860
3973
|
creditsBundle: BillingCreditsBundle | null;
|
|
3974
|
+
/** Percentage of total AI credits remaining at which to send a low-balance alert, or null when the alert is disabled. */
|
|
3975
|
+
aiCreditAlertThreshold: number | null;
|
|
3861
3976
|
}
|
|
3862
3977
|
/**
|
|
3863
3978
|
* A short description giving context on the reason for the block.
|
|
@@ -3889,6 +4004,8 @@ export interface Organization {
|
|
|
3889
4004
|
ai?: boolean;
|
|
3890
4005
|
/** If true, invite links are enabled for this organization. */
|
|
3891
4006
|
inviteLinks: boolean;
|
|
4007
|
+
/** Whether audit logs can currently be accessed for this organization. */
|
|
4008
|
+
auditLogs?: boolean;
|
|
3892
4009
|
/** Name of the product */
|
|
3893
4010
|
plan: BillingProduct;
|
|
3894
4011
|
/** Billing details, only available for org members. */
|
|
@@ -4712,6 +4829,10 @@ export interface Site {
|
|
|
4712
4829
|
view: boolean;
|
|
4713
4830
|
/** Can the user access the site in the application. */
|
|
4714
4831
|
access: boolean;
|
|
4832
|
+
/** Can the user edit content associated with the site. */
|
|
4833
|
+
edit: boolean;
|
|
4834
|
+
/** Can the user create content in the site. */
|
|
4835
|
+
create: boolean;
|
|
4715
4836
|
/** Can the user edit the site and manage its settings. */
|
|
4716
4837
|
admin: boolean;
|
|
4717
4838
|
/** Can the user install integrations on the site. */
|
|
@@ -4736,8 +4857,8 @@ export interface Site {
|
|
|
4736
4857
|
adaptiveContent?: SiteAdaptiveContent;
|
|
4737
4858
|
ads?: SiteAds;
|
|
4738
4859
|
/**
|
|
4739
|
-
* Reference to a GitBook space holding the team's writing
|
|
4740
|
-
* When present on a site, the editing agent receives the
|
|
4860
|
+
* Reference to a GitBook space holding the team's writing style guide.
|
|
4861
|
+
* When present on a site, the editing agent receives the style guide
|
|
4741
4862
|
* table of contents in its system prompt and can fetch sections on
|
|
4742
4863
|
* demand to check edits against the rules.
|
|
4743
4864
|
*/
|
|
@@ -5290,18 +5411,81 @@ export interface OrganizationAllContent {
|
|
|
5290
5411
|
/** List of soft-deleted spaces. */
|
|
5291
5412
|
deletedSpaces: OrganizationAllSpace[];
|
|
5292
5413
|
}
|
|
5293
|
-
|
|
5414
|
+
export interface AuditEventAction {
|
|
5415
|
+
object: "audit-event-action";
|
|
5416
|
+
/** Stable action identifier stored on audit events. */
|
|
5417
|
+
id: string;
|
|
5418
|
+
/** Human-readable label for the action. */
|
|
5419
|
+
label: string;
|
|
5420
|
+
}
|
|
5421
|
+
export interface AuditEventActor {
|
|
5422
|
+
/** Kind of actor that initiated the change. */
|
|
5423
|
+
type: "user" | "integration" | "installation" | "system" | "support";
|
|
5424
|
+
/** Stable identifier of the actor. */
|
|
5425
|
+
id: string;
|
|
5426
|
+
/** Display label captured when the event was recorded. */
|
|
5427
|
+
label?: string;
|
|
5428
|
+
}
|
|
5429
|
+
export interface AuditEventTarget {
|
|
5430
|
+
/** Kind of resource affected by the change. */
|
|
5431
|
+
type: string;
|
|
5432
|
+
/** Stable identifier of the affected resource. */
|
|
5433
|
+
id: string;
|
|
5434
|
+
/** Display label captured when the event was recorded. */
|
|
5435
|
+
label?: string;
|
|
5436
|
+
}
|
|
5437
|
+
export interface AuditEvent {
|
|
5438
|
+
object: "audit-event";
|
|
5439
|
+
/**
|
|
5440
|
+
* Unique identifier of the audit event.
|
|
5441
|
+
* @format uuid
|
|
5442
|
+
*/
|
|
5443
|
+
id: string;
|
|
5444
|
+
occurredAt: Timestamp;
|
|
5445
|
+
/** Stable action name describing the recorded change. */
|
|
5446
|
+
action: string;
|
|
5447
|
+
actor: AuditEventActor;
|
|
5448
|
+
/** Entry point that initiated the change. */
|
|
5449
|
+
source: "ui" | "api" | "integration" | "webhook" | "workflow" | "script" | "support";
|
|
5450
|
+
target: AuditEventTarget;
|
|
5451
|
+
urls: {
|
|
5452
|
+
/**
|
|
5453
|
+
* URL of the audit event in the API.
|
|
5454
|
+
* @format uri
|
|
5455
|
+
*/
|
|
5456
|
+
location: string;
|
|
5457
|
+
};
|
|
5458
|
+
}
|
|
5459
|
+
export type AuditEventDetails = AuditEvent & {
|
|
5460
|
+
/** Identifier of the operation that recorded the event. */
|
|
5461
|
+
executionId?: string;
|
|
5462
|
+
/** Identifier shared by events produced by the same user action. */
|
|
5463
|
+
correlationId?: string;
|
|
5464
|
+
/**
|
|
5465
|
+
* Audit event that caused this later system effect.
|
|
5466
|
+
* @format uuid
|
|
5467
|
+
*/
|
|
5468
|
+
causedByEventId?: string;
|
|
5469
|
+
/**
|
|
5470
|
+
* Version of the action payload schema.
|
|
5471
|
+
* @min 1
|
|
5472
|
+
*/
|
|
5473
|
+
schemaVersion: number;
|
|
5474
|
+
/** Allowlisted details specific to the action. */
|
|
5475
|
+
payload: Record<string, any>;
|
|
5476
|
+
};
|
|
5477
|
+
/** A style guide space and all the sites referencing it. */
|
|
5294
5478
|
export interface OrganizationStyleguide {
|
|
5295
5479
|
space: Space;
|
|
5296
|
-
/** Sites in the organization that reference this
|
|
5480
|
+
/** Sites in the organization that reference this style guide. */
|
|
5297
5481
|
sites: Site[];
|
|
5298
5482
|
}
|
|
5299
5483
|
export interface OrganizationStyleguides {
|
|
5300
5484
|
styleguides: OrganizationStyleguide[];
|
|
5301
5485
|
}
|
|
5302
|
-
/** A built-in
|
|
5486
|
+
/** A built-in style guide starter template used to seed and preview a style guide. */
|
|
5303
5487
|
export interface StyleguideTemplate {
|
|
5304
|
-
/** Identifier of the template, passed to createSiteStyleguideById to seed a
|
|
5488
|
+
/** Identifier of the template, passed to createSiteStyleguideById to seed a style guide from it. */
|
|
5305
5489
|
id: string;
|
|
5306
5490
|
/** Human-readable name of the template. */
|
|
5307
5491
|
title: string;
|
|
@@ -5687,10 +5871,23 @@ export type CreateSpace = {
|
|
|
5687
5871
|
} | {
|
|
5688
5872
|
empty: true;
|
|
5689
5873
|
}));
|
|
5690
|
-
/**
|
|
5874
|
+
/** The resource on which an integration is installed. */
|
|
5875
|
+
export type InstalledIntegrationTarget = {
|
|
5876
|
+
type: "organization";
|
|
5877
|
+
organizationId: string;
|
|
5878
|
+
} | {
|
|
5879
|
+
type: "site";
|
|
5880
|
+
siteId: string;
|
|
5881
|
+
} | {
|
|
5882
|
+
type: "space";
|
|
5883
|
+
spaceId: string;
|
|
5884
|
+
};
|
|
5885
|
+
/** An integration installation, its current status, and the resource it targets. */
|
|
5691
5886
|
export interface InstalledIntegration {
|
|
5692
5887
|
status: IntegrationInstallationStatus;
|
|
5693
5888
|
integration: Integration;
|
|
5889
|
+
/** The resource on which an integration is installed. */
|
|
5890
|
+
target: InstalledIntegrationTarget;
|
|
5694
5891
|
}
|
|
5695
5892
|
/**
|
|
5696
5893
|
* @minLength 1
|
|
@@ -6180,48 +6377,6 @@ export type CustomizationFontDefinition = CustomizationFontDefinitionInput & {
|
|
|
6180
6377
|
* @maxLength 512
|
|
6181
6378
|
*/
|
|
6182
6379
|
export type StorageFileKey = string;
|
|
6183
|
-
export type ContentImportSource = {
|
|
6184
|
-
type: "website";
|
|
6185
|
-
url: URL;
|
|
6186
|
-
} | {
|
|
6187
|
-
type: "file";
|
|
6188
|
-
/**
|
|
6189
|
-
* Files to import
|
|
6190
|
-
* @maxItems 50
|
|
6191
|
-
*/
|
|
6192
|
-
files: string[];
|
|
6193
|
-
};
|
|
6194
|
-
export interface ContentImportTarget {
|
|
6195
|
-
/** ID of the space to import in */
|
|
6196
|
-
space: string;
|
|
6197
|
-
/** ID of the change request to import in */
|
|
6198
|
-
changeRequest?: string;
|
|
6199
|
-
/** ID of the page to import in */
|
|
6200
|
-
page?: string;
|
|
6201
|
-
}
|
|
6202
|
-
export interface ContentImportRun {
|
|
6203
|
-
/** Unique ID of the import */
|
|
6204
|
-
id: string;
|
|
6205
|
-
/** Date when the import has started */
|
|
6206
|
-
startedAt?: Timestamp;
|
|
6207
|
-
/** Filled when the imported is in status "completed" */
|
|
6208
|
-
completedAt?: Timestamp;
|
|
6209
|
-
/** Status of the import */
|
|
6210
|
-
status: "pending" | "in-progress" | "completed" | "failed" | "cancelled";
|
|
6211
|
-
/** Reason for the import failure when `status` is `failed`. */
|
|
6212
|
-
reason?: string;
|
|
6213
|
-
/** Pages included in the import */
|
|
6214
|
-
pages?: {
|
|
6215
|
-
/** ID of page */
|
|
6216
|
-
id: string;
|
|
6217
|
-
/** Source URL where the page has been imported from */
|
|
6218
|
-
sourceURL?: string;
|
|
6219
|
-
/** Type of page */
|
|
6220
|
-
type: "page" | "folder";
|
|
6221
|
-
/** Status of the page */
|
|
6222
|
-
status: "complete" | "pending";
|
|
6223
|
-
}[];
|
|
6224
|
-
}
|
|
6225
6380
|
/** 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. */
|
|
6226
6381
|
export type SitePublishOperationPreviewResponse = {
|
|
6227
6382
|
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
@@ -6429,6 +6584,8 @@ export interface CustomizationTint {
|
|
|
6429
6584
|
color: CustomizationThemedColor;
|
|
6430
6585
|
}
|
|
6431
6586
|
export type CustomizationFont = CustomizationDefaultFont | CustomizationFontDefinitionInput;
|
|
6587
|
+
/** Font used for headings. `null` means headings use the main font (`styling.font`). */
|
|
6588
|
+
export type CustomizationHeadingFont = CustomizationDefaultFont | CustomizationFontDefinitionInput | null;
|
|
6432
6589
|
export type CustomizationMonospaceFont = CustomizationDefaultMonospaceFont | CustomizationFontDefinitionInput;
|
|
6433
6590
|
export interface CustomizationThemedCodeTheme {
|
|
6434
6591
|
light: CustomizationCodeTheme;
|
|
@@ -6481,6 +6638,11 @@ export interface CustomizationAnnouncement {
|
|
|
6481
6638
|
/** The style of the announcement. Used to style the banner with the right semantic color and enable/disable features like hiding the banner. */
|
|
6482
6639
|
style: "info" | "warning" | "danger" | "success";
|
|
6483
6640
|
}
|
|
6641
|
+
/**
|
|
6642
|
+
* Initial greeting displayed by the AI Assistant when a visitor starts a conversation.
|
|
6643
|
+
* @maxLength 256
|
|
6644
|
+
*/
|
|
6645
|
+
export type CustomizationAIGreeting = string;
|
|
6484
6646
|
/**
|
|
6485
6647
|
* @minLength 3
|
|
6486
6648
|
* @maxLength 64
|
|
@@ -6553,6 +6715,8 @@ export interface SiteCustomizationSettingsBase {
|
|
|
6553
6715
|
*/
|
|
6554
6716
|
links: CustomizationLinksStyle;
|
|
6555
6717
|
font: CustomizationFont;
|
|
6718
|
+
/** Font used for headings. `null` means headings use the main font (`styling.font`). */
|
|
6719
|
+
headingFont?: CustomizationHeadingFont;
|
|
6556
6720
|
monospaceFont: CustomizationMonospaceFont;
|
|
6557
6721
|
/**
|
|
6558
6722
|
* The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
|
|
@@ -6627,6 +6791,10 @@ export interface SiteCustomizationSettingsBase {
|
|
|
6627
6791
|
};
|
|
6628
6792
|
ai: {
|
|
6629
6793
|
mode: CustomizationAIMode;
|
|
6794
|
+
/** Initial greeting displayed by the AI Assistant when a visitor starts a conversation. */
|
|
6795
|
+
greeting?: CustomizationAIGreeting;
|
|
6796
|
+
/** Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only. */
|
|
6797
|
+
localizedGreeting?: LocalizedString128;
|
|
6630
6798
|
/** Suggested questions to display at the start of the chosen AI mode. */
|
|
6631
6799
|
suggestions?: CustomizationSuggestedQuestions;
|
|
6632
6800
|
/** Additional instructions for the AI Assistant, injected after the base system prompt. Use them to adjust tone of voice and contribute site-specific knowledge. These instructions refine, but never override, the assistant's built-in guardrails. Only available to site admins and never exposed on the published site. */
|
|
@@ -6952,6 +7120,50 @@ export type SiteTriageFilterConnections = string;
|
|
|
6952
7120
|
* @maxLength 256
|
|
6953
7121
|
*/
|
|
6954
7122
|
export type SiteFindingTitle = string;
|
|
7123
|
+
/**
|
|
7124
|
+
* The source path to redirect from.
|
|
7125
|
+
* @maxLength 512
|
|
7126
|
+
* @pattern ^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$
|
|
7127
|
+
*/
|
|
7128
|
+
export type SiteRedirectSourcePath = string;
|
|
7129
|
+
export interface SiteRedirectDestinationSiteSection {
|
|
7130
|
+
kind: "site-section";
|
|
7131
|
+
/** Unique identifier for the site section to redirect to */
|
|
7132
|
+
siteSectionId: string;
|
|
7133
|
+
}
|
|
7134
|
+
export interface SiteRedirectDestinationSiteSpace {
|
|
7135
|
+
kind: "site-space";
|
|
7136
|
+
/** Unique identifier for the site space to redirect to */
|
|
7137
|
+
siteSpaceId: string;
|
|
7138
|
+
}
|
|
7139
|
+
export interface SiteRedirectDestinationPage {
|
|
7140
|
+
kind: "site-page";
|
|
7141
|
+
/** Unique identifier for the site space of the page */
|
|
7142
|
+
siteSpaceId: string;
|
|
7143
|
+
/** Unique identifier for the page within the site space to redirect to */
|
|
7144
|
+
pageId: string;
|
|
7145
|
+
}
|
|
7146
|
+
export interface SiteRedirectDestinationExternal {
|
|
7147
|
+
kind: "external";
|
|
7148
|
+
url: URL;
|
|
7149
|
+
}
|
|
7150
|
+
export type SiteRedirectDestination = SiteRedirectDestinationSiteSection | SiteRedirectDestinationSiteSpace | SiteRedirectDestinationPage | SiteRedirectDestinationExternal;
|
|
7151
|
+
export interface SiteRedirectInputDestinationPath {
|
|
7152
|
+
kind: "path";
|
|
7153
|
+
/** Unique identifier for the space containing the page referenced by the path. */
|
|
7154
|
+
spaceId: string;
|
|
7155
|
+
/** Path to the page within the space revision to resolve. */
|
|
7156
|
+
path: string;
|
|
7157
|
+
}
|
|
7158
|
+
export type SiteRedirectInputDestination = SiteRedirectDestination | SiteRedirectInputDestinationPath;
|
|
7159
|
+
/** 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). */
|
|
7160
|
+
export interface SiteFindingBrokenLinkAction {
|
|
7161
|
+
/** The source path to redirect from. */
|
|
7162
|
+
source: SiteRedirectSourcePath;
|
|
7163
|
+
/** Whether the redirect appends the wildcard-matched suffix of the source path to the destination. */
|
|
7164
|
+
captureWildcard?: boolean;
|
|
7165
|
+
destination: SiteRedirectInputDestination;
|
|
7166
|
+
}
|
|
6955
7167
|
export interface SiteFinding {
|
|
6956
7168
|
object: "site-finding";
|
|
6957
7169
|
/** The ID of the finding */
|
|
@@ -6983,6 +7195,7 @@ export interface SiteFinding {
|
|
|
6983
7195
|
* - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.
|
|
6984
7196
|
* - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
|
|
6985
7197
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
7198
|
+
* - Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.
|
|
6986
7199
|
* - Other: Any other type of finding not covered by the above categories.
|
|
6987
7200
|
*/
|
|
6988
7201
|
type: SiteFindingType;
|
|
@@ -6991,6 +7204,8 @@ export interface SiteFinding {
|
|
|
6991
7204
|
description: JSONDocument;
|
|
6992
7205
|
/** Whether an AI agent should be able to fix this finding directly */
|
|
6993
7206
|
autoFixable: boolean;
|
|
7207
|
+
/** 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). */
|
|
7208
|
+
brokenLinkAction?: SiteFindingBrokenLinkAction;
|
|
6994
7209
|
createdAt: Timestamp;
|
|
6995
7210
|
updatedAt: Timestamp;
|
|
6996
7211
|
/** URLs associated with the finding */
|
|
@@ -7307,6 +7522,8 @@ export type ContextConnection = {
|
|
|
7307
7522
|
records: number;
|
|
7308
7523
|
/** Failure message when synchronization fails */
|
|
7309
7524
|
failureMessage?: string;
|
|
7525
|
+
/** 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. */
|
|
7526
|
+
failureReason?: ContextConnectionFailureReason;
|
|
7310
7527
|
/** Parameters associated with the connection when it is an email connection */
|
|
7311
7528
|
email?: {
|
|
7312
7529
|
/**
|
|
@@ -7696,6 +7913,15 @@ export interface AIToolCallSetChangeRequestDetails {
|
|
|
7696
7913
|
/** The ID of the change request. */
|
|
7697
7914
|
changeRequestId: string;
|
|
7698
7915
|
}
|
|
7916
|
+
export interface AIToolCallArchiveChangeRequest {
|
|
7917
|
+
tool: "archiveChangeRequest";
|
|
7918
|
+
/** The ID of the space the change request belongs to. */
|
|
7919
|
+
spaceId: string;
|
|
7920
|
+
/** The ID of the change request. */
|
|
7921
|
+
changeRequestId: string;
|
|
7922
|
+
/** Why the agent gave up on implementing the change request. */
|
|
7923
|
+
reason: string;
|
|
7924
|
+
}
|
|
7699
7925
|
export interface AIToolCallComment {
|
|
7700
7926
|
tool: "comment";
|
|
7701
7927
|
/** The ID of the space being commented. */
|
|
@@ -7738,6 +7964,30 @@ export interface AIToolCallSubmitChangeRequestReview {
|
|
|
7738
7964
|
/** Identifier of the comment that was created as part of the review. */
|
|
7739
7965
|
commentId: string;
|
|
7740
7966
|
}
|
|
7967
|
+
export interface AIToolCallStartContentImport {
|
|
7968
|
+
tool: "startContentImport";
|
|
7969
|
+
/** The ID of the space the content is imported into. */
|
|
7970
|
+
spaceId: string;
|
|
7971
|
+
/** The ID of the change request the content is imported into. */
|
|
7972
|
+
changeRequestId: string;
|
|
7973
|
+
/** The ID of the import run. */
|
|
7974
|
+
runId: string;
|
|
7975
|
+
/** The URL the content is imported from, when importing a website. */
|
|
7976
|
+
url?: string;
|
|
7977
|
+
/** Names of the attached files the content is imported from, when importing files. */
|
|
7978
|
+
files?: string[];
|
|
7979
|
+
}
|
|
7980
|
+
export interface AIToolCallCheckContentImport {
|
|
7981
|
+
tool: "checkContentImport";
|
|
7982
|
+
/** The ID of the import run. */
|
|
7983
|
+
runId: string;
|
|
7984
|
+
/** Status of the import when it was checked. */
|
|
7985
|
+
status: "pending" | "in-progress" | "completed" | "failed" | "cancelled";
|
|
7986
|
+
/** Number of pages imported when the import was checked. */
|
|
7987
|
+
importedPages: number;
|
|
7988
|
+
/** Number of pages the import has discovered so far. */
|
|
7989
|
+
totalPages: number;
|
|
7990
|
+
}
|
|
7741
7991
|
/** Tool called from an MCP server */
|
|
7742
7992
|
export interface AIToolCallMCP {
|
|
7743
7993
|
tool: "mcp";
|
|
@@ -7761,7 +8011,7 @@ export interface AIToolCallOther {
|
|
|
7761
8011
|
/** Summary of a generic tool call. */
|
|
7762
8012
|
summary: AIToolCallOtherSummary;
|
|
7763
8013
|
}
|
|
7764
|
-
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 | AIToolCallComment | AIToolCallReplyToComment | AIToolCallGetComments | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
|
|
8014
|
+
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;
|
|
7765
8015
|
export interface Timerange {
|
|
7766
8016
|
start: Timestamp;
|
|
7767
8017
|
end: Timestamp;
|
|
@@ -7780,7 +8030,16 @@ export interface AIAttachmentFile {
|
|
|
7780
8030
|
/** MIME type of the file. Must be a file type supported by the underlying model (see the OpenAI file-inputs documentation). */
|
|
7781
8031
|
contentType: string;
|
|
7782
8032
|
}
|
|
7783
|
-
|
|
8033
|
+
/** 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. */
|
|
8034
|
+
export interface AIAttachmentImportFile {
|
|
8035
|
+
type: "import-file";
|
|
8036
|
+
url: URL;
|
|
8037
|
+
/** Name of the file. */
|
|
8038
|
+
filename: string;
|
|
8039
|
+
/** MIME type of the file. Must be a file type supported by the content import. */
|
|
8040
|
+
contentType: string;
|
|
8041
|
+
}
|
|
8042
|
+
export type AIAttachment = AIAttachmentImage | AIAttachmentFile | AIAttachmentImportFile;
|
|
7784
8043
|
/** Context about the current user sending a message. */
|
|
7785
8044
|
export interface AIMessageContext {
|
|
7786
8045
|
location?: {
|
|
@@ -8293,7 +8552,12 @@ export interface SiteInsightsQueryDateTimeColumn {
|
|
|
8293
8552
|
column: "datetime";
|
|
8294
8553
|
interval?: "hour" | "day" | "week" | "month";
|
|
8295
8554
|
}
|
|
8555
|
+
/** Day of the week the event happened, in UTC, from 1 (Monday) to 7 (Sunday). Group by it alongside `hourOfDay` to fold any range into a weekly activity profile. */
|
|
8296
8556
|
export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
8557
|
+
column: "dayOfWeek";
|
|
8558
|
+
} | {
|
|
8559
|
+
column: "hourOfDay";
|
|
8560
|
+
} | {
|
|
8297
8561
|
column: "url";
|
|
8298
8562
|
} | {
|
|
8299
8563
|
column: "urlPath";
|
|
@@ -8348,6 +8612,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
8348
8612
|
column: "eventAPIOperationMethod";
|
|
8349
8613
|
} | {
|
|
8350
8614
|
column: "eventLLMSVariant";
|
|
8615
|
+
} | {
|
|
8616
|
+
column: "eventPageNotFoundType";
|
|
8351
8617
|
} | {
|
|
8352
8618
|
column: "eventSearchQuery";
|
|
8353
8619
|
} | {
|
|
@@ -8376,6 +8642,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
8376
8642
|
column: "utmTerm";
|
|
8377
8643
|
} | {
|
|
8378
8644
|
column: "utmContent";
|
|
8645
|
+
} | {
|
|
8646
|
+
column: "visitorAuthenticated";
|
|
8379
8647
|
} | {
|
|
8380
8648
|
column: "visitorClaimProperty";
|
|
8381
8649
|
} | {
|
|
@@ -8391,6 +8659,12 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
8391
8659
|
export type SiteInsightsQueryEventsValues = {
|
|
8392
8660
|
column: "datetime";
|
|
8393
8661
|
values: Timestamp[];
|
|
8662
|
+
} | {
|
|
8663
|
+
column: "dayOfWeek";
|
|
8664
|
+
values: number[];
|
|
8665
|
+
} | {
|
|
8666
|
+
column: "hourOfDay";
|
|
8667
|
+
values: number[];
|
|
8394
8668
|
} | {
|
|
8395
8669
|
column: "url";
|
|
8396
8670
|
values: URL[];
|
|
@@ -8413,6 +8687,9 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
8413
8687
|
column: "visitorClaim";
|
|
8414
8688
|
claim: string;
|
|
8415
8689
|
values: string[];
|
|
8690
|
+
} | {
|
|
8691
|
+
column: "visitorAuthenticated";
|
|
8692
|
+
values: (boolean | null)[];
|
|
8416
8693
|
} | {
|
|
8417
8694
|
column: "visitorClaimProperty";
|
|
8418
8695
|
values: string[];
|
|
@@ -8443,6 +8720,9 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
8443
8720
|
} | {
|
|
8444
8721
|
column: "eventLLMSVariant";
|
|
8445
8722
|
values: (null | SiteInsightsLLMSVariant)[];
|
|
8723
|
+
} | {
|
|
8724
|
+
column: "eventPageNotFoundType";
|
|
8725
|
+
values: (null | SiteInsightsPageNotFoundType)[];
|
|
8446
8726
|
} | {
|
|
8447
8727
|
column: "siteSpace";
|
|
8448
8728
|
values: (string | null)[];
|
|
@@ -8552,6 +8832,7 @@ export interface SiteInsightsQueryEventsAggregation {
|
|
|
8552
8832
|
where?: SiteInsightsQueryEventsFilter[];
|
|
8553
8833
|
groupBy?: SiteInsightsQueryEventsColumn[];
|
|
8554
8834
|
order?: {
|
|
8835
|
+
/** Day of the week the event happened, in UTC, from 1 (Monday) to 7 (Sunday). Group by it alongside `hourOfDay` to fold any range into a weekly activity profile. */
|
|
8555
8836
|
by: SiteInsightsQueryEventsColumn;
|
|
8556
8837
|
direction: "asc" | "desc";
|
|
8557
8838
|
};
|
|
@@ -8583,34 +8864,6 @@ export interface SiteAdsStats {
|
|
|
8583
8864
|
clicks: number;
|
|
8584
8865
|
revenue: string;
|
|
8585
8866
|
}
|
|
8586
|
-
/**
|
|
8587
|
-
* The source path to redirect from.
|
|
8588
|
-
* @maxLength 512
|
|
8589
|
-
* @pattern ^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$
|
|
8590
|
-
*/
|
|
8591
|
-
export type SiteRedirectSourcePath = string;
|
|
8592
|
-
export interface SiteRedirectDestinationSiteSection {
|
|
8593
|
-
kind: "site-section";
|
|
8594
|
-
/** Unique identifier for the site section to redirect to */
|
|
8595
|
-
siteSectionId: string;
|
|
8596
|
-
}
|
|
8597
|
-
export interface SiteRedirectDestinationSiteSpace {
|
|
8598
|
-
kind: "site-space";
|
|
8599
|
-
/** Unique identifier for the site space to redirect to */
|
|
8600
|
-
siteSpaceId: string;
|
|
8601
|
-
}
|
|
8602
|
-
export interface SiteRedirectDestinationPage {
|
|
8603
|
-
kind: "site-page";
|
|
8604
|
-
/** Unique identifier for the site space of the page */
|
|
8605
|
-
siteSpaceId: string;
|
|
8606
|
-
/** Unique identifier for the page within the site space to redirect to */
|
|
8607
|
-
pageId: string;
|
|
8608
|
-
}
|
|
8609
|
-
export interface SiteRedirectDestinationExternal {
|
|
8610
|
-
kind: "external";
|
|
8611
|
-
url: URL;
|
|
8612
|
-
}
|
|
8613
|
-
export type SiteRedirectDestination = SiteRedirectDestinationSiteSection | SiteRedirectDestinationSiteSpace | SiteRedirectDestinationPage | SiteRedirectDestinationExternal;
|
|
8614
8867
|
export interface SiteRedirect {
|
|
8615
8868
|
object: "site-redirect";
|
|
8616
8869
|
/** The unique identifier for the redirect. */
|
|
@@ -8623,14 +8876,6 @@ export interface SiteRedirect {
|
|
|
8623
8876
|
captureWildcard: boolean;
|
|
8624
8877
|
destination: SiteRedirectDestination;
|
|
8625
8878
|
}
|
|
8626
|
-
export interface SiteRedirectInputDestinationPath {
|
|
8627
|
-
kind: "path";
|
|
8628
|
-
/** Unique identifier for the space containing the page referenced by the path. */
|
|
8629
|
-
spaceId: string;
|
|
8630
|
-
/** Path to the page within the space revision to resolve. */
|
|
8631
|
-
path: string;
|
|
8632
|
-
}
|
|
8633
|
-
export type SiteRedirectInputDestination = SiteRedirectDestination | SiteRedirectInputDestinationPath;
|
|
8634
8879
|
/**
|
|
8635
8880
|
* Name of the MCP server
|
|
8636
8881
|
* @minLength 1
|
|
@@ -8905,6 +9150,8 @@ export interface OrganizationBillingOverrides {
|
|
|
8905
9150
|
aiCreditAllowance?: OrganizationBillingNumericOverride;
|
|
8906
9151
|
/** Percentage of remaining paid AI credits carried into the next billing period. Paid self-serve organizations default to 50% when unset. */
|
|
8907
9152
|
aiCreditRollover?: OrganizationBillingPercentageOverride;
|
|
9153
|
+
/** Percentage of total AI credits remaining at which to send a low-balance alert. */
|
|
9154
|
+
aiCreditAlertThreshold?: OrganizationBillingPercentageOverride;
|
|
8908
9155
|
/** Current minimum users override, when set. */
|
|
8909
9156
|
minUsers?: OrganizationBillingNumericOverride;
|
|
8910
9157
|
/** Current maximum users override, when set. */
|
|
@@ -8961,6 +9208,8 @@ export interface PublishedSiteContent {
|
|
|
8961
9208
|
export type PublishedSiteContentLookup = PublishedContentRedirect | PublishedSiteContent;
|
|
8962
9209
|
/** An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims. */
|
|
8963
9210
|
export interface SiteVisitorPayload {
|
|
9211
|
+
/** Whether the visitor is a human or an AI agent. Defaults to human when omitted. */
|
|
9212
|
+
type?: "human" | "agent";
|
|
8964
9213
|
/** JWT token generated for a authenticated access session. */
|
|
8965
9214
|
jwtToken?: string;
|
|
8966
9215
|
unsignedClaims?: PlainObject;
|
|
@@ -8978,6 +9227,13 @@ export interface GitSyncBranch {
|
|
|
8978
9227
|
name: string;
|
|
8979
9228
|
ref: string;
|
|
8980
9229
|
}
|
|
9230
|
+
/** A file found in a Git Sync repository at a specific ref. */
|
|
9231
|
+
export interface GitSyncRepositoryFile {
|
|
9232
|
+
name: string;
|
|
9233
|
+
path: string;
|
|
9234
|
+
sha: string;
|
|
9235
|
+
size: number;
|
|
9236
|
+
}
|
|
8981
9237
|
/** GitLab project that can be selected for Git Sync. */
|
|
8982
9238
|
export interface GitSyncGitLabProject {
|
|
8983
9239
|
id: number;
|
|
@@ -9246,6 +9502,8 @@ export interface GitSyncSpaceOperation {
|
|
|
9246
9502
|
completedAt?: Timestamp;
|
|
9247
9503
|
/** Error details, defined if state is `failure`. */
|
|
9248
9504
|
error?: string;
|
|
9505
|
+
/** An action the user can take to resolve a failed Git Sync operation. */
|
|
9506
|
+
errorAction?: GitSyncOperationErrorAction;
|
|
9249
9507
|
}
|
|
9250
9508
|
/**
|
|
9251
9509
|
* Deprecated. Use `GitSyncSpaceOperation` instead.
|
|
@@ -9279,6 +9537,8 @@ export interface GitSyncSiteOperation {
|
|
|
9279
9537
|
completedAt?: Timestamp;
|
|
9280
9538
|
/** Error details, defined if state is `failure`. */
|
|
9281
9539
|
error?: string;
|
|
9540
|
+
/** An action the user can take to resolve a failed Git Sync operation. */
|
|
9541
|
+
errorAction?: GitSyncOperationErrorAction;
|
|
9282
9542
|
spaces: Record<string, GitSyncSpaceOperation>;
|
|
9283
9543
|
}
|
|
9284
9544
|
/**
|
|
@@ -9293,6 +9553,7 @@ export interface GitSyncSiteStructureSectionGroup {
|
|
|
9293
9553
|
* Stable identifier for this section group, used as the Git Sync key.
|
|
9294
9554
|
* Must be unique amongst all other section groups of the site. For
|
|
9295
9555
|
* example: `section-group-product` or `section-group-1`.
|
|
9556
|
+
* 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.
|
|
9296
9557
|
* @minLength 1
|
|
9297
9558
|
*/
|
|
9298
9559
|
key: string;
|
|
@@ -9316,6 +9577,9 @@ export interface GitSyncSiteStructureSectionGroup {
|
|
|
9316
9577
|
* when `content.directory` is `null`. Hierarchy comes from where the space
|
|
9317
9578
|
* appears in the YAML (under a section, a section group, or at the root), not
|
|
9318
9579
|
* from an explicit parent reference.
|
|
9580
|
+
*
|
|
9581
|
+
* The directory is read as one book — the Markdown files it holds become the
|
|
9582
|
+
* pages of the space.
|
|
9319
9583
|
*/
|
|
9320
9584
|
export interface GitSyncSiteStructureSpace {
|
|
9321
9585
|
/** Discriminator for a space node. */
|
|
@@ -9333,7 +9597,11 @@ export interface GitSyncSiteStructureSpace {
|
|
|
9333
9597
|
localizedTitle?: LocalizedString128;
|
|
9334
9598
|
/** Path to the space on the site */
|
|
9335
9599
|
path: SiteSpacePath;
|
|
9336
|
-
/**
|
|
9600
|
+
/**
|
|
9601
|
+
* Whether this is the default space of its parent — the one opened when the
|
|
9602
|
+
* site or the section is visited without a space path. Exactly one space
|
|
9603
|
+
* among each set of siblings carries it.
|
|
9604
|
+
*/
|
|
9337
9605
|
default?: boolean;
|
|
9338
9606
|
/** Whether the space is hidden from the site's navigation. */
|
|
9339
9607
|
hidden?: boolean;
|
|
@@ -9343,7 +9611,13 @@ export interface GitSyncSiteStructureSpace {
|
|
|
9343
9611
|
condition?: Expression;
|
|
9344
9612
|
/** Where the space's content is managed. */
|
|
9345
9613
|
content: {
|
|
9346
|
-
/**
|
|
9614
|
+
/**
|
|
9615
|
+
* Directory holding this space's content, resolved from the site's
|
|
9616
|
+
* project directory — `./guides` under a site rooted at `docs/`
|
|
9617
|
+
* reads `docs/guides`. A leading slash escapes to the repository
|
|
9618
|
+
* root instead, so `/guides` always reads `guides`. Parent-directory
|
|
9619
|
+
* segments (`..`) are rejected.
|
|
9620
|
+
*/
|
|
9347
9621
|
directory: string | null;
|
|
9348
9622
|
language?: TranslationLanguage;
|
|
9349
9623
|
};
|
|
@@ -9352,8 +9626,10 @@ export interface GitSyncSiteStructureSpace {
|
|
|
9352
9626
|
* A section — a group of spaces sharing a top-level navigation entry.
|
|
9353
9627
|
* Discriminated by `type: section`.
|
|
9354
9628
|
*
|
|
9355
|
-
* Spaces inside a section are listed inline under `children
|
|
9356
|
-
*
|
|
9629
|
+
* Spaces inside a section are listed inline under `children`; a section holds
|
|
9630
|
+
* nothing else — nest sections under a section group instead. A site with
|
|
9631
|
+
* sections must mark exactly one section with `default: true`, and cannot also
|
|
9632
|
+
* list spaces at the top level of its structure.
|
|
9357
9633
|
*/
|
|
9358
9634
|
export interface GitSyncSiteStructureSection {
|
|
9359
9635
|
/** Discriminator for a section node. */
|
|
@@ -9392,13 +9668,94 @@ export type GitSyncSiteStructureNode = GitSyncSiteStructureSectionGroup | GitSyn
|
|
|
9392
9668
|
/**
|
|
9393
9669
|
* Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
|
|
9394
9670
|
* three node types: a section group, a section, or a space.
|
|
9671
|
+
*
|
|
9672
|
+
* A **space** is a leaf holding content, pointed at a repository directory. A
|
|
9673
|
+
* **section** gathers spaces behind one top-level navigation entry. A
|
|
9674
|
+
* **section group** gathers sections. A site either uses sections or lists its
|
|
9675
|
+
* spaces at the top level, never both.
|
|
9676
|
+
*
|
|
9677
|
+
* ```yaml
|
|
9678
|
+
* structure:
|
|
9679
|
+
* - type: space
|
|
9680
|
+
* key: space-guides
|
|
9681
|
+
* title: Guides
|
|
9682
|
+
* path: guides
|
|
9683
|
+
* default: true
|
|
9684
|
+
* content:
|
|
9685
|
+
* directory: ./guides
|
|
9686
|
+
* - type: space
|
|
9687
|
+
* key: space-api
|
|
9688
|
+
* title: API reference
|
|
9689
|
+
* path: api
|
|
9690
|
+
* content:
|
|
9691
|
+
* directory: ./api
|
|
9692
|
+
* ```
|
|
9693
|
+
*
|
|
9694
|
+
* The same two spaces behind top-level navigation entries:
|
|
9695
|
+
*
|
|
9696
|
+
* ```yaml
|
|
9697
|
+
* structure:
|
|
9698
|
+
* - type: section
|
|
9699
|
+
* key: section-product
|
|
9700
|
+
* title: Product
|
|
9701
|
+
* path: product
|
|
9702
|
+
* default: true
|
|
9703
|
+
* children:
|
|
9704
|
+
* - type: space
|
|
9705
|
+
* key: space-guides
|
|
9706
|
+
* title: Guides
|
|
9707
|
+
* path: guides
|
|
9708
|
+
* default: true
|
|
9709
|
+
* content:
|
|
9710
|
+
* directory: ./guides
|
|
9711
|
+
* - type: section
|
|
9712
|
+
* key: section-reference
|
|
9713
|
+
* title: Reference
|
|
9714
|
+
* path: reference
|
|
9715
|
+
* children:
|
|
9716
|
+
* - type: space
|
|
9717
|
+
* key: space-api
|
|
9718
|
+
* title: API reference
|
|
9719
|
+
* path: api
|
|
9720
|
+
* default: true
|
|
9721
|
+
* content:
|
|
9722
|
+
* directory: ./api
|
|
9723
|
+
* ```
|
|
9724
|
+
*
|
|
9725
|
+
* Rules checked on import — a violation fails the sync, naming the offending
|
|
9726
|
+
* node:
|
|
9727
|
+
*
|
|
9728
|
+
* - Every `key` is unique across the file, whatever the node type. Git Sync
|
|
9729
|
+
* recognises a node from one sync to the next by its key, so a reused key
|
|
9730
|
+
* leaves two nodes indistinguishable.
|
|
9731
|
+
* - Each section marks exactly one of its spaces `default: true`, and a site
|
|
9732
|
+
* without sections marks one among its top-level spaces. The default is the
|
|
9733
|
+
* space that opens when the site or the section is visited without a space
|
|
9734
|
+
* path of its own.
|
|
9735
|
+
* - A site declaring any section marks exactly one of those sections
|
|
9736
|
+
* `default: true`, and lists no space at the top level: once a section
|
|
9737
|
+
* exists, every space belongs inside one.
|
|
9738
|
+
* - Sections hold only spaces. Section groups hold only sections, or one
|
|
9739
|
+
* further level of section groups — nothing nests deeper than that.
|
|
9740
|
+
* - Spaces pointed at the same `content.directory` declare the same
|
|
9741
|
+
* `content.language`. One directory is read once, so it cannot produce two
|
|
9742
|
+
* languages at the same time.
|
|
9395
9743
|
*/
|
|
9396
9744
|
export type GitSyncSiteStructure = GitSyncSiteStructureNode[];
|
|
9397
9745
|
/**
|
|
9398
9746
|
* Schema for a site `docs.yaml` file — the canonical contract for what
|
|
9399
|
-
* can be authored in Git Sync to drive a site's
|
|
9747
|
+
* can be authored in Git Sync to drive a site's structure.
|
|
9748
|
+
*
|
|
9749
|
+
* The file lives at the root of the site's project directory in the synced
|
|
9750
|
+
* repository. It names the site and maps the repository's content directories
|
|
9751
|
+
* onto the site's navigation.
|
|
9400
9752
|
*/
|
|
9401
9753
|
export interface GitSyncSiteConfig {
|
|
9754
|
+
/**
|
|
9755
|
+
* URL of the schema used by editors to validate the site configuration.
|
|
9756
|
+
* @format uri
|
|
9757
|
+
*/
|
|
9758
|
+
$schema?: string;
|
|
9402
9759
|
/**
|
|
9403
9760
|
* Reserved for future use. When a breaking schema change ships, this
|
|
9404
9761
|
* field lets the parser branch on the version; absence means v1.
|
|
@@ -9414,6 +9771,78 @@ export interface GitSyncSiteConfig {
|
|
|
9414
9771
|
/**
|
|
9415
9772
|
* Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
|
|
9416
9773
|
* three node types: a section group, a section, or a space.
|
|
9774
|
+
*
|
|
9775
|
+
* A **space** is a leaf holding content, pointed at a repository directory. A
|
|
9776
|
+
* **section** gathers spaces behind one top-level navigation entry. A
|
|
9777
|
+
* **section group** gathers sections. A site either uses sections or lists its
|
|
9778
|
+
* spaces at the top level, never both.
|
|
9779
|
+
*
|
|
9780
|
+
* ```yaml
|
|
9781
|
+
* structure:
|
|
9782
|
+
* - type: space
|
|
9783
|
+
* key: space-guides
|
|
9784
|
+
* title: Guides
|
|
9785
|
+
* path: guides
|
|
9786
|
+
* default: true
|
|
9787
|
+
* content:
|
|
9788
|
+
* directory: ./guides
|
|
9789
|
+
* - type: space
|
|
9790
|
+
* key: space-api
|
|
9791
|
+
* title: API reference
|
|
9792
|
+
* path: api
|
|
9793
|
+
* content:
|
|
9794
|
+
* directory: ./api
|
|
9795
|
+
* ```
|
|
9796
|
+
*
|
|
9797
|
+
* The same two spaces behind top-level navigation entries:
|
|
9798
|
+
*
|
|
9799
|
+
* ```yaml
|
|
9800
|
+
* structure:
|
|
9801
|
+
* - type: section
|
|
9802
|
+
* key: section-product
|
|
9803
|
+
* title: Product
|
|
9804
|
+
* path: product
|
|
9805
|
+
* default: true
|
|
9806
|
+
* children:
|
|
9807
|
+
* - type: space
|
|
9808
|
+
* key: space-guides
|
|
9809
|
+
* title: Guides
|
|
9810
|
+
* path: guides
|
|
9811
|
+
* default: true
|
|
9812
|
+
* content:
|
|
9813
|
+
* directory: ./guides
|
|
9814
|
+
* - type: section
|
|
9815
|
+
* key: section-reference
|
|
9816
|
+
* title: Reference
|
|
9817
|
+
* path: reference
|
|
9818
|
+
* children:
|
|
9819
|
+
* - type: space
|
|
9820
|
+
* key: space-api
|
|
9821
|
+
* title: API reference
|
|
9822
|
+
* path: api
|
|
9823
|
+
* default: true
|
|
9824
|
+
* content:
|
|
9825
|
+
* directory: ./api
|
|
9826
|
+
* ```
|
|
9827
|
+
*
|
|
9828
|
+
* Rules checked on import — a violation fails the sync, naming the offending
|
|
9829
|
+
* node:
|
|
9830
|
+
*
|
|
9831
|
+
* - Every `key` is unique across the file, whatever the node type. Git Sync
|
|
9832
|
+
* recognises a node from one sync to the next by its key, so a reused key
|
|
9833
|
+
* leaves two nodes indistinguishable.
|
|
9834
|
+
* - Each section marks exactly one of its spaces `default: true`, and a site
|
|
9835
|
+
* without sections marks one among its top-level spaces. The default is the
|
|
9836
|
+
* space that opens when the site or the section is visited without a space
|
|
9837
|
+
* path of its own.
|
|
9838
|
+
* - A site declaring any section marks exactly one of those sections
|
|
9839
|
+
* `default: true`, and lists no space at the top level: once a section
|
|
9840
|
+
* exists, every space belongs inside one.
|
|
9841
|
+
* - Sections hold only spaces. Section groups hold only sections, or one
|
|
9842
|
+
* further level of section groups — nothing nests deeper than that.
|
|
9843
|
+
* - Spaces pointed at the same `content.directory` declare the same
|
|
9844
|
+
* `content.language`. One directory is read once, so it cannot produce two
|
|
9845
|
+
* languages at the same time.
|
|
9417
9846
|
*/
|
|
9418
9847
|
structure: GitSyncSiteStructure;
|
|
9419
9848
|
};
|
|
@@ -9490,6 +9919,8 @@ export interface ContentAPIBaseToken {
|
|
|
9490
9919
|
organization: string;
|
|
9491
9920
|
/** List of spaces that the token is allowed to access. */
|
|
9492
9921
|
spaces: string[];
|
|
9922
|
+
/** Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted. */
|
|
9923
|
+
visitorType?: "human" | "agent";
|
|
9493
9924
|
/** Attributes or assertions that provide specific details about the visitor for which the token was generated. */
|
|
9494
9925
|
claims?: Record<string, any>;
|
|
9495
9926
|
/** Multiplier for the rate limit applied to the token. */
|
|
@@ -12888,6 +13319,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12888
13319
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12889
13320
|
items: Organization[];
|
|
12890
13321
|
}, any>>;
|
|
13322
|
+
/**
|
|
13323
|
+
* No description
|
|
13324
|
+
*
|
|
13325
|
+
* @tags organizations
|
|
13326
|
+
* @name CreateOrganization
|
|
13327
|
+
* @summary Create an organization
|
|
13328
|
+
* @request POST:/orgs
|
|
13329
|
+
* @secure
|
|
13330
|
+
*/
|
|
13331
|
+
createOrganization: (data: CreateOrganization, query?: {
|
|
13332
|
+
/** If true, also creates a default documentation site for the organization. */
|
|
13333
|
+
withDefaultSite?: boolean;
|
|
13334
|
+
/** URL of an OpenAPI/Swagger specification to import and attach to the default site as a reference. Only used when `withDefaultSite` is true. */
|
|
13335
|
+
openapiUrl?: string;
|
|
13336
|
+
}, params?: RequestParams) => Promise<HttpResponse<Organization, any>>;
|
|
12891
13337
|
/**
|
|
12892
13338
|
* No description
|
|
12893
13339
|
*
|
|
@@ -12935,21 +13381,141 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12935
13381
|
};
|
|
12936
13382
|
}>>;
|
|
12937
13383
|
/**
|
|
12938
|
-
* @description Lists
|
|
13384
|
+
* @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.
|
|
13385
|
+
*
|
|
13386
|
+
* @tags organizations
|
|
13387
|
+
* @name ListOrganizationAuditEventActions
|
|
13388
|
+
* @summary List organization audit event actions
|
|
13389
|
+
* @request GET:/orgs/{organizationId}/audit-event-actions
|
|
13390
|
+
* @secure
|
|
13391
|
+
*/
|
|
13392
|
+
listOrganizationAuditEventActions: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<{
|
|
13393
|
+
items: AuditEventAction[];
|
|
13394
|
+
}, {
|
|
13395
|
+
error: {
|
|
13396
|
+
/** @format int32 */
|
|
13397
|
+
code: 401;
|
|
13398
|
+
message: string;
|
|
13399
|
+
};
|
|
13400
|
+
} | {
|
|
13401
|
+
error: {
|
|
13402
|
+
/** @format int32 */
|
|
13403
|
+
code: 403;
|
|
13404
|
+
message: string;
|
|
13405
|
+
};
|
|
13406
|
+
} | {
|
|
13407
|
+
error: {
|
|
13408
|
+
/** @format int32 */
|
|
13409
|
+
code: 404;
|
|
13410
|
+
message: string;
|
|
13411
|
+
};
|
|
13412
|
+
}>>;
|
|
13413
|
+
/**
|
|
13414
|
+
* @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.
|
|
13415
|
+
*
|
|
13416
|
+
* @tags organizations
|
|
13417
|
+
* @name ListOrganizationAuditEvents
|
|
13418
|
+
* @summary List organization audit events
|
|
13419
|
+
* @request GET:/orgs/{organizationId}/audit-events
|
|
13420
|
+
* @secure
|
|
13421
|
+
*/
|
|
13422
|
+
listOrganizationAuditEvents: (organizationId: EntityId, query?: {
|
|
13423
|
+
/** Identifier of the page results to fetch. */
|
|
13424
|
+
page?: string;
|
|
13425
|
+
/**
|
|
13426
|
+
* Number of events to return, up to 100.
|
|
13427
|
+
* @min 1
|
|
13428
|
+
* @max 100
|
|
13429
|
+
* @default 20
|
|
13430
|
+
*/
|
|
13431
|
+
limit?: number;
|
|
13432
|
+
/**
|
|
13433
|
+
* Include events occurring at or after this time.
|
|
13434
|
+
* @format date-time
|
|
13435
|
+
*/
|
|
13436
|
+
from?: string;
|
|
13437
|
+
/**
|
|
13438
|
+
* Include events occurring at or before this time.
|
|
13439
|
+
* @format date-time
|
|
13440
|
+
*/
|
|
13441
|
+
to?: string;
|
|
13442
|
+
/** Filter by an exact audit action name. */
|
|
13443
|
+
action?: string;
|
|
13444
|
+
/** Filter by an exact stable actor identifier. */
|
|
13445
|
+
actor?: string;
|
|
13446
|
+
/** Filter by an exact stable target identifier. */
|
|
13447
|
+
target?: string;
|
|
13448
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13449
|
+
items: AuditEvent[];
|
|
13450
|
+
}, {
|
|
13451
|
+
error: {
|
|
13452
|
+
/** @format int32 */
|
|
13453
|
+
code: 400;
|
|
13454
|
+
message: string;
|
|
13455
|
+
};
|
|
13456
|
+
} | {
|
|
13457
|
+
error: {
|
|
13458
|
+
/** @format int32 */
|
|
13459
|
+
code: 401;
|
|
13460
|
+
message: string;
|
|
13461
|
+
};
|
|
13462
|
+
} | {
|
|
13463
|
+
error: {
|
|
13464
|
+
/** @format int32 */
|
|
13465
|
+
code: 403;
|
|
13466
|
+
message: string;
|
|
13467
|
+
};
|
|
13468
|
+
} | {
|
|
13469
|
+
error: {
|
|
13470
|
+
/** @format int32 */
|
|
13471
|
+
code: 404;
|
|
13472
|
+
message: string;
|
|
13473
|
+
};
|
|
13474
|
+
}>>;
|
|
13475
|
+
/**
|
|
13476
|
+
* @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.
|
|
13477
|
+
*
|
|
13478
|
+
* @tags organizations
|
|
13479
|
+
* @name GetOrganizationAuditEvent
|
|
13480
|
+
* @summary Get an organization audit event
|
|
13481
|
+
* @request GET:/orgs/{organizationId}/audit-events/{auditEventId}
|
|
13482
|
+
* @secure
|
|
13483
|
+
*/
|
|
13484
|
+
getOrganizationAuditEvent: (organizationId: EntityId, auditEventId: string, params?: RequestParams) => Promise<HttpResponse<AuditEventDetails, {
|
|
13485
|
+
error: {
|
|
13486
|
+
/** @format int32 */
|
|
13487
|
+
code: 401;
|
|
13488
|
+
message: string;
|
|
13489
|
+
};
|
|
13490
|
+
} | {
|
|
13491
|
+
error: {
|
|
13492
|
+
/** @format int32 */
|
|
13493
|
+
code: 403;
|
|
13494
|
+
message: string;
|
|
13495
|
+
};
|
|
13496
|
+
} | {
|
|
13497
|
+
error: {
|
|
13498
|
+
/** @format int32 */
|
|
13499
|
+
code: 404;
|
|
13500
|
+
message: string;
|
|
13501
|
+
};
|
|
13502
|
+
}>>;
|
|
13503
|
+
/**
|
|
13504
|
+
* @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.
|
|
12939
13505
|
*
|
|
12940
13506
|
* @tags organizations
|
|
12941
13507
|
* @name ListOrganizationStyleguides
|
|
12942
|
-
* @summary List all
|
|
13508
|
+
* @summary List all style guides in an organization
|
|
12943
13509
|
* @request GET:/orgs/{organizationId}/styleguides
|
|
12944
13510
|
* @secure
|
|
12945
13511
|
*/
|
|
12946
13512
|
listOrganizationStyleguides: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<OrganizationStyleguides, any>>;
|
|
12947
13513
|
/**
|
|
12948
|
-
* @description Lists the built-in
|
|
13514
|
+
* @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.
|
|
12949
13515
|
*
|
|
12950
13516
|
* @tags organizations
|
|
12951
13517
|
* @name ListStyleguideTemplates
|
|
12952
|
-
* @summary List all built-in
|
|
13518
|
+
* @summary List all built-in style guide templates
|
|
12953
13519
|
* @request GET:/orgs/{organizationId}/styleguide-templates
|
|
12954
13520
|
* @secure
|
|
12955
13521
|
*/
|
|
@@ -13572,7 +14138,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13572
14138
|
}[];
|
|
13573
14139
|
}, any>>;
|
|
13574
14140
|
/**
|
|
13575
|
-
*
|
|
14141
|
+
* @description Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource.
|
|
13576
14142
|
*
|
|
13577
14143
|
* @tags integrations, critical
|
|
13578
14144
|
* @name ListOrganizationIntegrationsStatus
|
|
@@ -13594,6 +14160,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13594
14160
|
* @default "organization"
|
|
13595
14161
|
*/
|
|
13596
14162
|
target?: "organization" | "space" | "site";
|
|
14163
|
+
/** Return installations for this site. Only valid when target is site. */
|
|
14164
|
+
site?: string;
|
|
14165
|
+
/** Return installations for this space. Only valid when target is space. */
|
|
14166
|
+
space?: string;
|
|
13597
14167
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13598
14168
|
items: InstalledIntegration[];
|
|
13599
14169
|
}, any>>;
|
|
@@ -14388,7 +14958,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14388
14958
|
* Use `null` to remove the proxy.
|
|
14389
14959
|
*/
|
|
14390
14960
|
proxy?: SiteProxyOrigin | null;
|
|
14391
|
-
/** Attach an existing
|
|
14961
|
+
/** 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. */
|
|
14392
14962
|
styleguide?: string | null;
|
|
14393
14963
|
}, params?: RequestParams) => Promise<HttpResponse<Site, any>>;
|
|
14394
14964
|
/**
|
|
@@ -14796,6 +15366,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14796
15366
|
draft?: boolean;
|
|
14797
15367
|
/** Custom home page within the space, rendered at the site space's path root instead of the space's default landing page. */
|
|
14798
15368
|
pageId?: string | null;
|
|
15369
|
+
/** Title of the site */
|
|
15370
|
+
title?: SiteTitle;
|
|
14799
15371
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, any>>;
|
|
14800
15372
|
/**
|
|
14801
15373
|
* @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.
|
|
@@ -14907,6 +15479,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14907
15479
|
icon?: Icon | null;
|
|
14908
15480
|
/** Whether the section should be created in draft mode. */
|
|
14909
15481
|
draft?: boolean;
|
|
15482
|
+
/** Custom home page within the space, rendered at the section's path root instead of the space's default landing page. */
|
|
15483
|
+
pageId?: string;
|
|
14910
15484
|
/** ID of the section group to create the section in */
|
|
14911
15485
|
siteSectionGroupId?: string;
|
|
14912
15486
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
|
|
@@ -15044,6 +15618,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15044
15618
|
spaceId: string;
|
|
15045
15619
|
/** ID of the page the feedback is about. */
|
|
15046
15620
|
pageId: string;
|
|
15621
|
+
/** Surface the feedback was submitted from. When omitted, the feedback is recorded with an unknown source. */
|
|
15622
|
+
source?: AgentFeedbackSource;
|
|
15047
15623
|
}, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
15048
15624
|
/**
|
|
15049
15625
|
* @description The response is streamed.
|
|
@@ -15192,10 +15768,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15192
15768
|
limit?: number;
|
|
15193
15769
|
/** Filter findings by associated site topic ID. */
|
|
15194
15770
|
topic?: string;
|
|
15771
|
+
/** Filter findings that reference the given site question ID as evidence. */
|
|
15772
|
+
question?: string;
|
|
15195
15773
|
/** Filter findings by status. */
|
|
15196
15774
|
status?: SiteFindingStatus;
|
|
15197
|
-
/** Filter findings by type. */
|
|
15198
|
-
type?: SiteFindingType;
|
|
15775
|
+
/** Filter findings by type. When multiple types are given, findings matching any of them are returned. */
|
|
15776
|
+
type?: SiteFindingType[];
|
|
15199
15777
|
/** Filter findings by estimated severity. */
|
|
15200
15778
|
severity?: SiteFindingSeverity;
|
|
15201
15779
|
/** Filter findings that have at least one associated change request. */
|
|
@@ -15354,8 +15932,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15354
15932
|
topic?: string;
|
|
15355
15933
|
/** Filter findings by status. */
|
|
15356
15934
|
status?: SiteFindingStatus;
|
|
15357
|
-
/** Filter findings by type. */
|
|
15358
|
-
type?: SiteFindingType;
|
|
15935
|
+
/** Filter findings by type. When multiple types are given, findings matching any of them are returned. */
|
|
15936
|
+
type?: SiteFindingType[];
|
|
15359
15937
|
/** Filter findings by estimated severity. */
|
|
15360
15938
|
severity?: SiteFindingSeverity;
|
|
15361
15939
|
/** Filter findings that have at least one associated change request. */
|
|
@@ -16248,16 +16826,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16248
16826
|
};
|
|
16249
16827
|
}>>;
|
|
16250
16828
|
/**
|
|
16251
|
-
* @description Ensures the site has a dedicated
|
|
16829
|
+
* @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.
|
|
16252
16830
|
*
|
|
16253
16831
|
* @tags sites
|
|
16254
16832
|
* @name CreateSiteStyleguideById
|
|
16255
|
-
* @summary Create or retrieve the
|
|
16833
|
+
* @summary Create or retrieve the style guide space for a site
|
|
16256
16834
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/styleguide
|
|
16257
16835
|
* @secure
|
|
16258
16836
|
*/
|
|
16259
16837
|
createSiteStyleguideById: (organizationId: EntityId, siteId: string, data?: {
|
|
16260
|
-
/** Built-in template id to seed the
|
|
16838
|
+
/** Built-in template id to seed the style guide content with. Omit (or send no body) to create a blank style guide. */
|
|
16261
16839
|
template?: string;
|
|
16262
16840
|
}, params?: RequestParams) => Promise<HttpResponse<Space, {
|
|
16263
16841
|
error: {
|
|
@@ -16654,6 +17232,41 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16654
17232
|
deleteSiteChannelById: (organizationId: EntityId, siteId: string, siteChannelId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16655
17233
|
};
|
|
16656
17234
|
org: {
|
|
17235
|
+
/**
|
|
17236
|
+
* @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.
|
|
17237
|
+
*
|
|
17238
|
+
* @tags imports
|
|
17239
|
+
* @name ListImportRuns
|
|
17240
|
+
* @summary List the import runs of an organization
|
|
17241
|
+
* @request GET:/org/{organizationId}/imports
|
|
17242
|
+
* @secure
|
|
17243
|
+
*/
|
|
17244
|
+
listImportRuns: (organizationId: EntityId, query?: {
|
|
17245
|
+
/** Only return the import runs targeting this space. */
|
|
17246
|
+
space?: string;
|
|
17247
|
+
/** Only return the import runs targeting this change request. */
|
|
17248
|
+
changeRequest?: string;
|
|
17249
|
+
/** Only return the import runs targeting a space of this site. */
|
|
17250
|
+
site?: string;
|
|
17251
|
+
/** Only return the import runs in this status. `active` covers both `pending` and `in-progress`. */
|
|
17252
|
+
status?: "active" | "pending" | "in-progress" | "completed" | "failed" | "cancelled";
|
|
17253
|
+
/** Identifier of the page results to fetch. */
|
|
17254
|
+
page?: string;
|
|
17255
|
+
/**
|
|
17256
|
+
* The number of results per page
|
|
17257
|
+
* @min 0
|
|
17258
|
+
* @max 1000
|
|
17259
|
+
*/
|
|
17260
|
+
limit?: number;
|
|
17261
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
17262
|
+
items: ContentImportRun[];
|
|
17263
|
+
}, {
|
|
17264
|
+
error: {
|
|
17265
|
+
/** @format int32 */
|
|
17266
|
+
code: 404;
|
|
17267
|
+
message: string;
|
|
17268
|
+
};
|
|
17269
|
+
}>>;
|
|
16657
17270
|
/**
|
|
16658
17271
|
* No description
|
|
16659
17272
|
*
|
|
@@ -16666,6 +17279,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16666
17279
|
startImportRun: (organizationId: EntityId, data: {
|
|
16667
17280
|
source: ContentImportSource;
|
|
16668
17281
|
target: ContentImportTarget;
|
|
17282
|
+
/** 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. */
|
|
17283
|
+
site?: string;
|
|
16669
17284
|
/**
|
|
16670
17285
|
* Enhance the imported content with AI
|
|
16671
17286
|
* @default true
|
|
@@ -16684,6 +17299,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16684
17299
|
message: string;
|
|
16685
17300
|
};
|
|
16686
17301
|
}>>;
|
|
17302
|
+
/**
|
|
17303
|
+
* @description Returns the import run. A run left behind by an import that never reported back is returned as failed.
|
|
17304
|
+
*
|
|
17305
|
+
* @tags imports
|
|
17306
|
+
* @name GetImportRun
|
|
17307
|
+
* @summary Get an import run
|
|
17308
|
+
* @request GET:/org/{organizationId}/imports/{importRunId}
|
|
17309
|
+
* @secure
|
|
17310
|
+
*/
|
|
17311
|
+
getImportRun: (organizationId: EntityId, importRunId: string, params?: RequestParams) => Promise<HttpResponse<ContentImportRun, {
|
|
17312
|
+
error: {
|
|
17313
|
+
/** @format int32 */
|
|
17314
|
+
code: 404;
|
|
17315
|
+
message: string;
|
|
17316
|
+
};
|
|
17317
|
+
}>>;
|
|
16687
17318
|
/**
|
|
16688
17319
|
* No description
|
|
16689
17320
|
*
|
|
@@ -16978,7 +17609,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16978
17609
|
};
|
|
16979
17610
|
}>>;
|
|
16980
17611
|
/**
|
|
16981
|
-
*
|
|
17612
|
+
* @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 `docs.yaml` file at the configured project directory and return a conflict without saving or queuing the sync when the file is missing.
|
|
16982
17613
|
*
|
|
16983
17614
|
* @tags git
|
|
16984
17615
|
* @name UpdateGitSyncInstallationById
|
|
@@ -16989,22 +17620,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16989
17620
|
updateGitSyncInstallationById: (installationId: string, data: GitSyncInstallationSetup & {
|
|
16990
17621
|
/** Project directories keyed by child installation ID for a site installation. */
|
|
16991
17622
|
childInstallationProjectDirectories?: Record<string, string>;
|
|
16992
|
-
}, params?: RequestParams) => Promise<HttpResponse<GitSyncInstallation, {
|
|
17623
|
+
}, params?: RequestParams) => Promise<HttpResponse<GitSyncInstallation, (Error & {
|
|
16993
17624
|
error: {
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
17625
|
+
type: "missing_site_git_sync_config";
|
|
17626
|
+
details: {
|
|
17627
|
+
/** Repository-relative path where `docs.yaml` is required. */
|
|
17628
|
+
path: string;
|
|
17629
|
+
/** Repository branch where `docs.yaml` is required. */
|
|
17630
|
+
branch: string;
|
|
17631
|
+
/** Prompt for a coding agent to create and commit the missing file. */
|
|
17632
|
+
prompt: string;
|
|
17633
|
+
};
|
|
16997
17634
|
};
|
|
16998
|
-
} | {
|
|
17635
|
+
}) | {
|
|
16999
17636
|
error: {
|
|
17000
17637
|
/** @format int32 */
|
|
17001
|
-
code:
|
|
17638
|
+
code: 401;
|
|
17002
17639
|
message: string;
|
|
17003
17640
|
};
|
|
17004
17641
|
} | {
|
|
17005
17642
|
error: {
|
|
17006
17643
|
/** @format int32 */
|
|
17007
|
-
code:
|
|
17644
|
+
code: 404;
|
|
17008
17645
|
message: string;
|
|
17009
17646
|
};
|
|
17010
17647
|
}>>;
|
|
@@ -17072,6 +17709,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
17072
17709
|
message: string;
|
|
17073
17710
|
};
|
|
17074
17711
|
}>>;
|
|
17712
|
+
/**
|
|
17713
|
+
* No description
|
|
17714
|
+
*
|
|
17715
|
+
* @tags git
|
|
17716
|
+
* @name GetGitHubRepoFileForGitSyncInstallation
|
|
17717
|
+
* @summary Get a file from a GitHub repository for a Git Sync installation
|
|
17718
|
+
* @request GET:/git/installations/{installationId}/github/repos/{accountName}/{repositoryName}/file
|
|
17719
|
+
* @secure
|
|
17720
|
+
*/
|
|
17721
|
+
getGitHubRepoFileForGitSyncInstallation: (installationId: string, accountName: string, repositoryName: string, query: {
|
|
17722
|
+
path: string;
|
|
17723
|
+
ref: string;
|
|
17724
|
+
}, params?: RequestParams) => Promise<HttpResponse<GitSyncRepositoryFile, {
|
|
17725
|
+
error: {
|
|
17726
|
+
/** @format int32 */
|
|
17727
|
+
code: 401;
|
|
17728
|
+
message: string;
|
|
17729
|
+
};
|
|
17730
|
+
} | {
|
|
17731
|
+
error: {
|
|
17732
|
+
/** @format int32 */
|
|
17733
|
+
code: 404;
|
|
17734
|
+
message: string;
|
|
17735
|
+
};
|
|
17736
|
+
}>>;
|
|
17075
17737
|
/**
|
|
17076
17738
|
* No description
|
|
17077
17739
|
*
|
|
@@ -17120,6 +17782,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
17120
17782
|
message: string;
|
|
17121
17783
|
};
|
|
17122
17784
|
}>>;
|
|
17785
|
+
/**
|
|
17786
|
+
* No description
|
|
17787
|
+
*
|
|
17788
|
+
* @tags git
|
|
17789
|
+
* @name GetGitLabProjectFileForGitSyncInstallation
|
|
17790
|
+
* @summary Get a file from a GitLab project for a Git Sync installation
|
|
17791
|
+
* @request GET:/git/installations/{installationId}/gitlab/projects/{projectId}/file
|
|
17792
|
+
* @secure
|
|
17793
|
+
*/
|
|
17794
|
+
getGitLabProjectFileForGitSyncInstallation: (installationId: string, projectId: number, query: {
|
|
17795
|
+
path: string;
|
|
17796
|
+
ref: string;
|
|
17797
|
+
}, params?: RequestParams) => Promise<HttpResponse<GitSyncRepositoryFile, {
|
|
17798
|
+
error: {
|
|
17799
|
+
/** @format int32 */
|
|
17800
|
+
code: 401;
|
|
17801
|
+
message: string;
|
|
17802
|
+
};
|
|
17803
|
+
} | {
|
|
17804
|
+
error: {
|
|
17805
|
+
/** @format int32 */
|
|
17806
|
+
code: 404;
|
|
17807
|
+
message: string;
|
|
17808
|
+
};
|
|
17809
|
+
}>>;
|
|
17123
17810
|
};
|
|
17124
17811
|
}
|
|
17125
17812
|
export {};
|