@gitbook/api 0.205.0 → 0.206.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 +281 -136
- package/dist/constants.d.ts +2 -1
- package/dist/index.cjs +16 -2
- package/dist/index.js +14 -2
- package/package.json +1 -1
- package/spec/openapi.json +842 -390
- package/spec/openapi.yaml +574 -267
package/dist/client.d.ts
CHANGED
|
@@ -335,6 +335,18 @@ export declare enum SiteSettingsScanTopics {
|
|
|
335
335
|
Auto = "auto",
|
|
336
336
|
Never = "never"
|
|
337
337
|
}
|
|
338
|
+
/**
|
|
339
|
+
* How much GitBook may do on its own when it resolves broken links automatically. GitBook never
|
|
340
|
+
* applies a fix it isn't sure about, at any level.
|
|
341
|
+
* - `suggest-fixes` drafts fixes for approval and applies none.
|
|
342
|
+
* - `fix-clear-matches` applies the clearest fixes and drafts the less certain ones for approval.
|
|
343
|
+
* - `fix-close-matches` applies the clear and the close fixes.
|
|
344
|
+
*/
|
|
345
|
+
export declare enum SiteSettingsBrokenLinksAutonomyLevel {
|
|
346
|
+
SuggestFixes = "suggest-fixes",
|
|
347
|
+
FixClearMatches = "fix-clear-matches",
|
|
348
|
+
FixCloseMatches = "fix-close-matches"
|
|
349
|
+
}
|
|
338
350
|
export declare enum AIModel {
|
|
339
351
|
Fast = "fast",
|
|
340
352
|
ReasoningLow = "reasoning-low",
|
|
@@ -1256,7 +1268,10 @@ export declare enum TranslationLanguage {
|
|
|
1256
1268
|
Lt = "lt",
|
|
1257
1269
|
Lv = "lv",
|
|
1258
1270
|
Et = "et",
|
|
1259
|
-
Sl = "sl"
|
|
1271
|
+
Sl = "sl",
|
|
1272
|
+
FrCa = "fr-ca",
|
|
1273
|
+
EsMx = "es-mx",
|
|
1274
|
+
Es419 = "es-419"
|
|
1260
1275
|
}
|
|
1261
1276
|
/**
|
|
1262
1277
|
* Determines how a Space can be edited.
|
|
@@ -1288,6 +1303,30 @@ export declare enum ContentVisibility {
|
|
|
1288
1303
|
export type APIChannelData = APIChannelGitSyncOperationData | APIChannelGitSyncSiteOperationData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
|
|
1289
1304
|
/** Channel to subscribe to for realtime updates. */
|
|
1290
1305
|
export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelGitSyncSiteOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
|
|
1306
|
+
/** The plan upgrade that would make a feature available. */
|
|
1307
|
+
export type FeatureUpgradeRequirement = {
|
|
1308
|
+
type: "organization";
|
|
1309
|
+
/** An organization feature used for plan access and upgrade prompts. */
|
|
1310
|
+
feature: OrganizationFeature;
|
|
1311
|
+
/** The minimum organization plan that includes the feature. */
|
|
1312
|
+
requiredPlan: BillingProduct;
|
|
1313
|
+
/**
|
|
1314
|
+
* Where an admin may upgrade the organization's plan.
|
|
1315
|
+
* @format uri
|
|
1316
|
+
*/
|
|
1317
|
+
url: string;
|
|
1318
|
+
} | {
|
|
1319
|
+
type: "site";
|
|
1320
|
+
/** The site feature identifier */
|
|
1321
|
+
feature: SiteFeatureKey;
|
|
1322
|
+
/** The minimum site plan that includes the feature. */
|
|
1323
|
+
requiredPlan: SiteType;
|
|
1324
|
+
/**
|
|
1325
|
+
* Where an admin may upgrade the site's plan.
|
|
1326
|
+
* @format uri
|
|
1327
|
+
*/
|
|
1328
|
+
url: string;
|
|
1329
|
+
};
|
|
1291
1330
|
/** An absolute reference to content in GitBook. */
|
|
1292
1331
|
export type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationReusableContent | ContentLocationOpenAPI;
|
|
1293
1332
|
export type PublishedContentRedirect = {
|
|
@@ -1347,7 +1386,9 @@ export type ChangeRequestContentChange = ({
|
|
|
1347
1386
|
operation: "revert_page";
|
|
1348
1387
|
} & ChangeRequestContentChangeRevertPage) | ({
|
|
1349
1388
|
operation: "insert_files";
|
|
1350
|
-
} & ChangeRequestContentChangeInsertFiles)
|
|
1389
|
+
} & ChangeRequestContentChangeInsertFiles) | ({
|
|
1390
|
+
operation: "insert_computed_page";
|
|
1391
|
+
} & ChangeRequestContentChangeInsertComputedPage);
|
|
1351
1392
|
export type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate | RevisionTypeComputed;
|
|
1352
1393
|
export type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink | RevisionPageComputed;
|
|
1353
1394
|
export interface ApiInformation {
|
|
@@ -2253,6 +2294,13 @@ export interface DocumentBlockCode {
|
|
|
2253
2294
|
nodes: DocumentBlockCodeLine[];
|
|
2254
2295
|
isVoid?: false;
|
|
2255
2296
|
}
|
|
2297
|
+
export interface DocumentFragment {
|
|
2298
|
+
object: "fragment";
|
|
2299
|
+
key?: string;
|
|
2300
|
+
fragment?: string;
|
|
2301
|
+
type?: string;
|
|
2302
|
+
nodes: DocumentBlock[];
|
|
2303
|
+
}
|
|
2256
2304
|
export interface DocumentBlockEmbed {
|
|
2257
2305
|
object: "block";
|
|
2258
2306
|
type: "embed";
|
|
@@ -2261,6 +2309,10 @@ export interface DocumentBlockEmbed {
|
|
|
2261
2309
|
url: string;
|
|
2262
2310
|
fullWidth?: boolean;
|
|
2263
2311
|
};
|
|
2312
|
+
fragments?: (DocumentFragment & {
|
|
2313
|
+
fragment: "caption";
|
|
2314
|
+
nodes: DocumentBlockParagraph[];
|
|
2315
|
+
})[];
|
|
2264
2316
|
isVoid: true;
|
|
2265
2317
|
}
|
|
2266
2318
|
export type PlainObject = any;
|
|
@@ -2436,13 +2488,6 @@ export interface DocumentTableCellMerge {
|
|
|
2436
2488
|
/** Number of rows or columns covered by a table cell merge */
|
|
2437
2489
|
colSpan: DocumentTableCellSpan;
|
|
2438
2490
|
}
|
|
2439
|
-
export interface DocumentFragment {
|
|
2440
|
-
object: "fragment";
|
|
2441
|
-
key?: string;
|
|
2442
|
-
fragment?: string;
|
|
2443
|
-
type?: string;
|
|
2444
|
-
nodes: DocumentBlock[];
|
|
2445
|
-
}
|
|
2446
2491
|
export interface DocumentBlockTable {
|
|
2447
2492
|
object: "block";
|
|
2448
2493
|
type: "table";
|
|
@@ -2461,33 +2506,38 @@ export interface DocumentBlockTable {
|
|
|
2461
2506
|
};
|
|
2462
2507
|
fragments: DocumentFragment[];
|
|
2463
2508
|
}
|
|
2464
|
-
export interface DocumentBlockHint {
|
|
2465
|
-
object: "block";
|
|
2466
|
-
type: "hint";
|
|
2467
|
-
key?: string;
|
|
2468
|
-
data: {
|
|
2469
|
-
style: "info" | "warning" | "danger" | "success";
|
|
2470
|
-
/** Name of the icon */
|
|
2471
|
-
icon?: Icon;
|
|
2472
|
-
};
|
|
2473
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockEmbed | DocumentBlockIntegration | DocumentBlockTable)[];
|
|
2474
|
-
isVoid?: false;
|
|
2475
|
-
}
|
|
2476
2509
|
export interface DocumentBlockQuote {
|
|
2477
2510
|
object: "block";
|
|
2478
2511
|
type: "blockquote";
|
|
2479
2512
|
key?: string;
|
|
2480
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockQuote)[];
|
|
2513
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockCode | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockExpandable | DocumentBlockFile | DocumentBlockHint | DocumentBlockIf | DocumentBlockMath | DocumentBlockPrompt | DocumentBlockStepper | DocumentBlockTabs)[];
|
|
2481
2514
|
isVoid?: false;
|
|
2482
2515
|
data?: object;
|
|
2483
2516
|
}
|
|
2484
|
-
export interface
|
|
2517
|
+
export interface DocumentBlockDrawing {
|
|
2485
2518
|
object: "block";
|
|
2486
|
-
type: "
|
|
2519
|
+
type: "drawing";
|
|
2487
2520
|
key?: string;
|
|
2488
2521
|
data: {
|
|
2489
|
-
|
|
2522
|
+
ref?: ContentRefFile;
|
|
2490
2523
|
};
|
|
2524
|
+
fragments?: (DocumentFragment & {
|
|
2525
|
+
fragment: "caption";
|
|
2526
|
+
nodes: DocumentBlockParagraph[];
|
|
2527
|
+
})[];
|
|
2528
|
+
isVoid: true;
|
|
2529
|
+
}
|
|
2530
|
+
export interface DocumentBlockFile {
|
|
2531
|
+
object: "block";
|
|
2532
|
+
type: "file";
|
|
2533
|
+
key?: string;
|
|
2534
|
+
data: {
|
|
2535
|
+
ref: ContentRefFile;
|
|
2536
|
+
};
|
|
2537
|
+
fragments?: (DocumentFragment & {
|
|
2538
|
+
fragment: "caption";
|
|
2539
|
+
nodes: DocumentBlockParagraph[];
|
|
2540
|
+
})[];
|
|
2491
2541
|
isVoid: true;
|
|
2492
2542
|
}
|
|
2493
2543
|
export type Length = number | {
|
|
@@ -2523,49 +2573,17 @@ export interface DocumentBlockImages {
|
|
|
2523
2573
|
nodes: DocumentBlockImage[];
|
|
2524
2574
|
isVoid: false;
|
|
2525
2575
|
}
|
|
2526
|
-
export interface
|
|
2527
|
-
object: "block";
|
|
2528
|
-
type: "list-item";
|
|
2529
|
-
key?: string;
|
|
2530
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockCode | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockTable | DocumentBlockImages)[];
|
|
2531
|
-
isVoid?: false;
|
|
2532
|
-
data?: {
|
|
2533
|
-
checked?: boolean;
|
|
2534
|
-
};
|
|
2535
|
-
}
|
|
2536
|
-
export interface DocumentBlockListOrdered {
|
|
2576
|
+
export interface DocumentBlockHint {
|
|
2537
2577
|
object: "block";
|
|
2538
|
-
type: "
|
|
2578
|
+
type: "hint";
|
|
2539
2579
|
key?: string;
|
|
2540
2580
|
data: {
|
|
2541
|
-
|
|
2542
|
-
|
|
2581
|
+
style: "info" | "warning" | "danger" | "success";
|
|
2582
|
+
/** Name of the icon */
|
|
2583
|
+
icon?: Icon;
|
|
2543
2584
|
};
|
|
2544
|
-
nodes:
|
|
2545
|
-
isVoid?: false;
|
|
2546
|
-
}
|
|
2547
|
-
export interface DocumentBlockListUnordered {
|
|
2548
|
-
object: "block";
|
|
2549
|
-
type: "list-unordered";
|
|
2550
|
-
key?: string;
|
|
2551
|
-
nodes: DocumentBlockListItem[];
|
|
2552
|
-
data?: object;
|
|
2553
|
-
isVoid?: false;
|
|
2554
|
-
}
|
|
2555
|
-
export interface DocumentBlockListTasks {
|
|
2556
|
-
object: "block";
|
|
2557
|
-
type: "list-tasks";
|
|
2558
|
-
key?: string;
|
|
2559
|
-
nodes: DocumentBlockListItem[];
|
|
2585
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockEmbed | DocumentBlockIntegration | DocumentBlockTable | DocumentBlockQuote | DocumentBlockCode | DocumentBlockDrawing | DocumentBlockExpandable | DocumentBlockFile | DocumentBlockHint | DocumentBlockIf | DocumentBlockMath | DocumentBlockPrompt | DocumentBlockStepper | DocumentBlockTabs)[];
|
|
2560
2586
|
isVoid?: false;
|
|
2561
|
-
data?: object;
|
|
2562
|
-
}
|
|
2563
|
-
export interface DocumentBlockDivider {
|
|
2564
|
-
object: "block";
|
|
2565
|
-
type: "divider";
|
|
2566
|
-
key?: string;
|
|
2567
|
-
isVoid: true;
|
|
2568
|
-
data: object;
|
|
2569
2587
|
}
|
|
2570
2588
|
export interface DocumentBlockPrompt {
|
|
2571
2589
|
object: "block";
|
|
@@ -2600,24 +2618,6 @@ export interface DocumentBlockIf {
|
|
|
2600
2618
|
expression: string;
|
|
2601
2619
|
};
|
|
2602
2620
|
}
|
|
2603
|
-
export interface DocumentBlockFile {
|
|
2604
|
-
object: "block";
|
|
2605
|
-
type: "file";
|
|
2606
|
-
key?: string;
|
|
2607
|
-
data: {
|
|
2608
|
-
ref: ContentRefFile;
|
|
2609
|
-
};
|
|
2610
|
-
isVoid: true;
|
|
2611
|
-
}
|
|
2612
|
-
export interface DocumentBlockDrawing {
|
|
2613
|
-
object: "block";
|
|
2614
|
-
type: "drawing";
|
|
2615
|
-
key?: string;
|
|
2616
|
-
data: {
|
|
2617
|
-
ref?: ContentRefFile;
|
|
2618
|
-
};
|
|
2619
|
-
isVoid: true;
|
|
2620
|
-
}
|
|
2621
2621
|
export interface DocumentBlockReusableContent {
|
|
2622
2622
|
object: "block";
|
|
2623
2623
|
type: "reusable-content";
|
|
@@ -2641,6 +2641,15 @@ export interface DocumentBlockContentRef {
|
|
|
2641
2641
|
};
|
|
2642
2642
|
isVoid: true;
|
|
2643
2643
|
}
|
|
2644
|
+
export interface DocumentBlockMath {
|
|
2645
|
+
object: "block";
|
|
2646
|
+
type: "math";
|
|
2647
|
+
key?: string;
|
|
2648
|
+
data: {
|
|
2649
|
+
formula: string;
|
|
2650
|
+
};
|
|
2651
|
+
isVoid: true;
|
|
2652
|
+
}
|
|
2644
2653
|
export interface DocumentBlockExpandable {
|
|
2645
2654
|
object: "block";
|
|
2646
2655
|
type: "expandable";
|
|
@@ -2676,11 +2685,21 @@ export interface DocumentBlockStepper {
|
|
|
2676
2685
|
isVoid?: false;
|
|
2677
2686
|
data?: object;
|
|
2678
2687
|
}
|
|
2688
|
+
export interface DocumentBlockTabs {
|
|
2689
|
+
object: "block";
|
|
2690
|
+
type: "tabs";
|
|
2691
|
+
key?: string;
|
|
2692
|
+
nodes: DocumentBlockTabsItem[];
|
|
2693
|
+
isVoid?: false;
|
|
2694
|
+
data?: {
|
|
2695
|
+
fullWidth?: boolean;
|
|
2696
|
+
};
|
|
2697
|
+
}
|
|
2679
2698
|
export interface DocumentBlockTabsItem {
|
|
2680
2699
|
object: "block";
|
|
2681
2700
|
type: "tabs-item";
|
|
2682
2701
|
key?: string;
|
|
2683
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTable | DocumentBlockExpandable | DocumentBlockIf | DocumentBlockReusableContent | DocumentBlockStepper)[];
|
|
2702
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTable | DocumentBlockExpandable | DocumentBlockIf | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockTabs)[];
|
|
2684
2703
|
data: {
|
|
2685
2704
|
title?: string;
|
|
2686
2705
|
/** Name of the icon */
|
|
@@ -2694,25 +2713,59 @@ export interface DocumentBlockTabsItem {
|
|
|
2694
2713
|
};
|
|
2695
2714
|
isVoid?: false;
|
|
2696
2715
|
}
|
|
2697
|
-
export interface
|
|
2716
|
+
export interface DocumentBlockStepperStep {
|
|
2698
2717
|
object: "block";
|
|
2699
|
-
type: "
|
|
2718
|
+
type: "stepper-step";
|
|
2700
2719
|
key?: string;
|
|
2701
|
-
nodes:
|
|
2720
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockExpandable | DocumentBlockTable | DocumentBlockTabs | DocumentBlockIf | DocumentBlockReusableContent | DocumentBlockStepper)[];
|
|
2721
|
+
data: {
|
|
2722
|
+
icon?: string;
|
|
2723
|
+
};
|
|
2724
|
+
isVoid?: false;
|
|
2725
|
+
}
|
|
2726
|
+
export interface DocumentBlockListItem {
|
|
2727
|
+
object: "block";
|
|
2728
|
+
type: "list-item";
|
|
2729
|
+
key?: string;
|
|
2730
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockCode | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockTable | DocumentBlockImages)[];
|
|
2702
2731
|
isVoid?: false;
|
|
2703
2732
|
data?: {
|
|
2704
|
-
|
|
2733
|
+
checked?: boolean;
|
|
2705
2734
|
};
|
|
2706
2735
|
}
|
|
2707
|
-
export interface
|
|
2736
|
+
export interface DocumentBlockListOrdered {
|
|
2708
2737
|
object: "block";
|
|
2709
|
-
type: "
|
|
2738
|
+
type: "list-ordered";
|
|
2710
2739
|
key?: string;
|
|
2711
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockExpandable | DocumentBlockTable | DocumentBlockTabs | DocumentBlockIf | DocumentBlockReusableContent | DocumentBlockStepper)[];
|
|
2712
2740
|
data: {
|
|
2713
|
-
|
|
2741
|
+
/** An integer to start counting from for the list items. */
|
|
2742
|
+
start?: number;
|
|
2714
2743
|
};
|
|
2744
|
+
nodes: DocumentBlockListItem[];
|
|
2745
|
+
isVoid?: false;
|
|
2746
|
+
}
|
|
2747
|
+
export interface DocumentBlockListUnordered {
|
|
2748
|
+
object: "block";
|
|
2749
|
+
type: "list-unordered";
|
|
2750
|
+
key?: string;
|
|
2751
|
+
nodes: DocumentBlockListItem[];
|
|
2752
|
+
data?: object;
|
|
2753
|
+
isVoid?: false;
|
|
2754
|
+
}
|
|
2755
|
+
export interface DocumentBlockListTasks {
|
|
2756
|
+
object: "block";
|
|
2757
|
+
type: "list-tasks";
|
|
2758
|
+
key?: string;
|
|
2759
|
+
nodes: DocumentBlockListItem[];
|
|
2715
2760
|
isVoid?: false;
|
|
2761
|
+
data?: object;
|
|
2762
|
+
}
|
|
2763
|
+
export interface DocumentBlockDivider {
|
|
2764
|
+
object: "block";
|
|
2765
|
+
type: "divider";
|
|
2766
|
+
key?: string;
|
|
2767
|
+
isVoid: true;
|
|
2768
|
+
data: object;
|
|
2716
2769
|
}
|
|
2717
2770
|
/** Pointer to an operation in the OpenAPI spec. */
|
|
2718
2771
|
export interface OpenAPIOperationPointer {
|
|
@@ -2826,7 +2879,8 @@ export interface DocumentBlockUpdate {
|
|
|
2826
2879
|
key?: string;
|
|
2827
2880
|
nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockPrompt | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration | DocumentBlockTabs | DocumentBlockExpandable | DocumentBlockTable | DocumentBlockIf | DocumentBlockStepper)[];
|
|
2828
2881
|
data: {
|
|
2829
|
-
date
|
|
2882
|
+
/** Date of the update. Accepts a YYYY-MM-DD date or a timestamp. Timestamps are normalized to their UTC calendar date; responses use YYYY-MM-DD. */
|
|
2883
|
+
date: string | Timestamp;
|
|
2830
2884
|
/** Array of tags. Each tag is id'ed by its slug. */
|
|
2831
2885
|
tags?: ContentRefTag[];
|
|
2832
2886
|
};
|
|
@@ -3397,18 +3451,28 @@ export interface ChangeRequest {
|
|
|
3397
3451
|
/** ID of the site topic associated with the change request. */
|
|
3398
3452
|
topic: string;
|
|
3399
3453
|
/**
|
|
3400
|
-
* ID of the site finding the change request fixes. Use `
|
|
3454
|
+
* ID of the site finding the change request fixes. Use `siteFindings` instead: a change request can fix a finding without belonging to a topic, and this field is absent in that case.
|
|
3401
3455
|
* @deprecated
|
|
3402
3456
|
*/
|
|
3403
3457
|
finding?: string;
|
|
3404
3458
|
};
|
|
3405
|
-
/**
|
|
3459
|
+
/**
|
|
3460
|
+
* First linked site finding. Use `siteFindings` to read all linked findings.
|
|
3461
|
+
* @deprecated
|
|
3462
|
+
*/
|
|
3406
3463
|
siteFinding?: {
|
|
3407
3464
|
/** ID of the site the finding belongs to. */
|
|
3408
3465
|
site: string;
|
|
3409
3466
|
/** ID of the site finding the change request fixes. */
|
|
3410
3467
|
finding: string;
|
|
3411
3468
|
};
|
|
3469
|
+
/** Site findings linked to the change request, in link order. Absent when none are linked. Merging resolves findings once every linked change request is merged, except outbound broken links, which are resolved by the outbound checker. */
|
|
3470
|
+
siteFindings?: {
|
|
3471
|
+
/** ID of the site the finding belongs to. */
|
|
3472
|
+
site: string;
|
|
3473
|
+
/** ID of the site finding the change request fixes. */
|
|
3474
|
+
finding: string;
|
|
3475
|
+
}[];
|
|
3412
3476
|
/** Style guide check that opened the change request, when it came from one. A check can be run again on the change request already open on a space, rather than opening a second one, so several checks can share a change request. */
|
|
3413
3477
|
styleguide?: {
|
|
3414
3478
|
/** ID of the site the style guide belongs to. */
|
|
@@ -3815,13 +3879,34 @@ export interface ChangeRequestContentChangeInsertFiles {
|
|
|
3815
3879
|
contentType?: string;
|
|
3816
3880
|
})[];
|
|
3817
3881
|
}
|
|
3882
|
+
/**
|
|
3883
|
+
* Insert a page whose content GitBook generates from a source instead of a document: an OpenAPI spec of the organization, rendered as an API reference. GitBook replaces the page, at its position, with the pages it generates and regenerates them whenever the source changes.
|
|
3884
|
+
* @example {"operation":"insert_computed_page","title":"API reference","computed":{"type":"builtin:openapi","props":{"models":true},"dependencies":{"spec":{"ref":{"kind":"openapi","spec":"my-api"}}}}}
|
|
3885
|
+
*/
|
|
3886
|
+
export interface ChangeRequestContentChangeInsertComputedPage {
|
|
3887
|
+
operation: "insert_computed_page";
|
|
3888
|
+
/** Parameters for an OpenAPI computed revision */
|
|
3889
|
+
computed: ComputedContentSourceRevisionOpenAPI;
|
|
3890
|
+
/**
|
|
3891
|
+
* Title of the page, only shown in the editor since the generated pages take its place. Defaults to "OpenAPI".
|
|
3892
|
+
* @minLength 1
|
|
3893
|
+
*/
|
|
3894
|
+
title?: string;
|
|
3895
|
+
/** ID of the parent page to insert the page into, so the generated pages are nested under it. If omitted, the page is inserted at the root. */
|
|
3896
|
+
into?: string;
|
|
3897
|
+
/**
|
|
3898
|
+
* Zero-based index to insert the page at among its siblings. If omitted, the page is appended at the end.
|
|
3899
|
+
* @min 0
|
|
3900
|
+
*/
|
|
3901
|
+
at?: number;
|
|
3902
|
+
}
|
|
3818
3903
|
export interface ChangeRequestContentUpdatePageRef {
|
|
3819
3904
|
/** Type of Object, always equals to "page". */
|
|
3820
3905
|
object: "page";
|
|
3821
3906
|
/** Unique identifier of the page. */
|
|
3822
3907
|
id: string;
|
|
3823
3908
|
urls: {
|
|
3824
|
-
/** API URL to fetch the page's full, normalized content. */
|
|
3909
|
+
/** API URL to fetch the page's full, normalized content. For a computed page, it reads the page as stored (`computed=false`), since the computed content replaces the page with the pages it generates. */
|
|
3825
3910
|
location: URL;
|
|
3826
3911
|
};
|
|
3827
3912
|
}
|
|
@@ -9222,6 +9307,19 @@ export interface AIStreamResponseCompaction {
|
|
|
9222
9307
|
stepIndex: number;
|
|
9223
9308
|
}
|
|
9224
9309
|
export type AIStreamResponse = AIStreamResponseStart | AIStreamResponseStepStart | AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion | AIStreamResponseAttachment | AIStreamResponseCompaction;
|
|
9310
|
+
/** Settings for how GitBook resolves the broken links it finds on a site. */
|
|
9311
|
+
export interface SiteSettingsBrokenLinks {
|
|
9312
|
+
/** Whether GitBook resolves broken links automatically. */
|
|
9313
|
+
autoResolve: boolean;
|
|
9314
|
+
/**
|
|
9315
|
+
* How much GitBook may do on its own when it resolves broken links automatically. GitBook never
|
|
9316
|
+
* applies a fix it isn't sure about, at any level.
|
|
9317
|
+
* - `suggest-fixes` drafts fixes for approval and applies none.
|
|
9318
|
+
* - `fix-clear-matches` applies the clearest fixes and drafts the less certain ones for approval.
|
|
9319
|
+
* - `fix-close-matches` applies the clear and the close fixes.
|
|
9320
|
+
*/
|
|
9321
|
+
autonomyLevel: SiteSettingsBrokenLinksAutonomyLevel;
|
|
9322
|
+
}
|
|
9225
9323
|
export interface SiteAgentSettingsInput {
|
|
9226
9324
|
/** Settings related to scanning for a site. */
|
|
9227
9325
|
scans: {
|
|
@@ -9237,9 +9335,13 @@ export interface SiteAgentSettingsInput {
|
|
|
9237
9335
|
editing: {
|
|
9238
9336
|
customInstructions: JSONDocument;
|
|
9239
9337
|
};
|
|
9338
|
+
/** Settings for how GitBook resolves the broken links it finds on a site. */
|
|
9339
|
+
brokenLinks?: SiteSettingsBrokenLinks;
|
|
9240
9340
|
}
|
|
9241
9341
|
export type SiteAgentSettings = {
|
|
9242
9342
|
object: "site-agent-settings";
|
|
9343
|
+
/** Settings for how GitBook resolves the broken links it finds on a site. */
|
|
9344
|
+
brokenLinks: SiteSettingsBrokenLinks;
|
|
9243
9345
|
updatedAt?: Timestamp;
|
|
9244
9346
|
/** Identifier of the member who last updated the settings. */
|
|
9245
9347
|
updatedBy?: string;
|
|
@@ -10966,6 +11068,8 @@ export interface ContentAPIBaseToken {
|
|
|
10966
11068
|
spaces: string[];
|
|
10967
11069
|
/** Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted. */
|
|
10968
11070
|
visitorType?: "human" | "agent";
|
|
11071
|
+
/** Whether the visitor is authenticated. Only set for sites with adaptive content enabled when token verification succeeded. */
|
|
11072
|
+
visitorIsAuthenticated?: boolean;
|
|
10969
11073
|
/** The region containing the country of the visitor for whom the token was generated. Omitted if the country isn't in any region. */
|
|
10970
11074
|
visitorRegion?: string;
|
|
10971
11075
|
/** Attributes or assertions that provide specific details about the visitor for which the token was generated. */
|
|
@@ -12153,10 +12257,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12153
12257
|
*/
|
|
12154
12258
|
evaluated?: boolean | "deterministic-only";
|
|
12155
12259
|
/**
|
|
12156
|
-
* Controls whether
|
|
12157
|
-
* - When set to `
|
|
12158
|
-
* - When set to `
|
|
12159
|
-
*
|
|
12260
|
+
* Controls whether references to other content are resolved and expanded.
|
|
12261
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
12262
|
+
* - When set to `true`, all supported content references are expanded.
|
|
12263
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
12264
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
12160
12265
|
*/
|
|
12161
12266
|
dereferenced?: boolean | "reusable-contents";
|
|
12162
12267
|
/**
|
|
@@ -12209,10 +12314,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12209
12314
|
*/
|
|
12210
12315
|
evaluated?: boolean | "deterministic-only";
|
|
12211
12316
|
/**
|
|
12212
|
-
* Controls whether
|
|
12213
|
-
* - When set to `
|
|
12214
|
-
* - When set to `
|
|
12215
|
-
*
|
|
12317
|
+
* Controls whether references to other content are resolved and expanded.
|
|
12318
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
12319
|
+
* - When set to `true`, all supported content references are expanded.
|
|
12320
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
12321
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
12216
12322
|
*/
|
|
12217
12323
|
dereferenced?: boolean | "reusable-contents";
|
|
12218
12324
|
/**
|
|
@@ -12301,7 +12407,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12301
12407
|
schema?: "current" | "next";
|
|
12302
12408
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
12303
12409
|
/**
|
|
12304
|
-
* @description Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready.
|
|
12410
|
+
* @description Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready. Pass `siteFindingIds` to link the documentation findings this change request fixes. Outbound broken links are resolved by the outbound checker, rather than by merging.
|
|
12305
12411
|
*
|
|
12306
12412
|
* @tags change-requests
|
|
12307
12413
|
* @name CreateChangeRequest
|
|
@@ -12316,8 +12422,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12316
12422
|
template?: ApplySpaceTemplate;
|
|
12317
12423
|
/** Description of the change request, explaining what it changes and why, for whoever reviews it. Only paragraphs and lists are kept; other blocks are stripped along with their text. */
|
|
12318
12424
|
description?: JSONDocument;
|
|
12319
|
-
/**
|
|
12425
|
+
/**
|
|
12426
|
+
* The site finding this change request fixes. Use `siteFindingIds` instead. The finding's site must contain this space.
|
|
12427
|
+
* @deprecated
|
|
12428
|
+
*/
|
|
12320
12429
|
siteFindingId?: string;
|
|
12430
|
+
/**
|
|
12431
|
+
* Site findings this change request fixes. Each finding's site must contain this space, and the caller must have edit permission on each site. Takes precedence over `siteFindingId` when both are supplied.
|
|
12432
|
+
* @maxItems 25
|
|
12433
|
+
*/
|
|
12434
|
+
siteFindingIds?: string[];
|
|
12321
12435
|
[key: string]: any;
|
|
12322
12436
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
|
|
12323
12437
|
/**
|
|
@@ -12373,7 +12487,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12373
12487
|
};
|
|
12374
12488
|
}>>;
|
|
12375
12489
|
/**
|
|
12376
|
-
* @description Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead. Set `
|
|
12490
|
+
* @description Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead. Set `siteFindingIds` to replace the documentation findings linked to the change request. Outbound broken links are resolved by the outbound checker, rather than by merging.
|
|
12377
12491
|
*
|
|
12378
12492
|
* @tags change-requests
|
|
12379
12493
|
* @name UpdateChangeRequestById
|
|
@@ -12391,8 +12505,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12391
12505
|
*/
|
|
12392
12506
|
links?: ChangeRequestLinkInput[];
|
|
12393
12507
|
status?: "draft" | "open" | "archived";
|
|
12394
|
-
/**
|
|
12508
|
+
/**
|
|
12509
|
+
* The site finding this change request fixes. Use `siteFindingIds` instead. The finding's site must contain this space. Replaces the whole set of linked findings with this finding. Pass null to unlink all findings.
|
|
12510
|
+
* @deprecated
|
|
12511
|
+
*/
|
|
12395
12512
|
siteFindingId?: string | null;
|
|
12513
|
+
/**
|
|
12514
|
+
* Replaces the linked site findings. Each finding's site must contain this space, and the caller must have edit permission on each site. Pass null or an empty list to unlink all findings. Omit to keep the current links. Takes precedence over `siteFindingId` when both are supplied.
|
|
12515
|
+
* @maxItems 25
|
|
12516
|
+
*/
|
|
12517
|
+
siteFindingIds?: any[] | null;
|
|
12396
12518
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, any>>;
|
|
12397
12519
|
/**
|
|
12398
12520
|
* @description Merges the change request's draft content into the space's primary (published) content, making all changes live. If the result is "conflicts", the merge was still applied but the space may need manual conflict resolution. Consider running updateChangeRequest first to sync with the latest live content and reduce conflicts.
|
|
@@ -12790,7 +12912,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12790
12912
|
computed?: boolean;
|
|
12791
12913
|
}, params?: RequestParams) => Promise<HttpResponse<Revision, any>>;
|
|
12792
12914
|
/**
|
|
12793
|
-
* @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.
|
|
12915
|
+
* @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. **Publishing an OpenAPI spec** — an OpenAPI spec belongs to the organization (see `createOpenAPISpec`) and appears in a space only through a page that renders it. Insert that page with an `insert_computed_page` change: `{ "operation": "insert_computed_page", "title": "API reference", "computed": { "type": "builtin:openapi", "props": { "models": true }, "dependencies": { "spec": { "ref": { "kind": "openapi", "spec": "<spec slug>" } } } } }`. GitBook replaces that page, at its position, with the API reference: one page per tag (or per operation with `"grouping": "by-operation"` in `props`), plus a models page when `models` is true, regenerated whenever the spec changes. Use `into` to nest the reference under an existing page. Do not recreate a spec with `insert_page`: `openapi-operation` blocks in a document only render the operations they name. 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.
|
|
12794
12916
|
*
|
|
12795
12917
|
* @tags change-request-content
|
|
12796
12918
|
* @name UpdateChangeRequestContent
|
|
@@ -12921,10 +13043,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12921
13043
|
*/
|
|
12922
13044
|
evaluated?: boolean | "deterministic-only";
|
|
12923
13045
|
/**
|
|
12924
|
-
* Controls whether
|
|
12925
|
-
* - When set to `
|
|
12926
|
-
* - When set to `
|
|
12927
|
-
*
|
|
13046
|
+
* Controls whether references to other content are resolved and expanded.
|
|
13047
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
13048
|
+
* - When set to `true`, all supported content references are expanded.
|
|
13049
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
13050
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
12928
13051
|
*/
|
|
12929
13052
|
dereferenced?: boolean | "reusable-contents";
|
|
12930
13053
|
/**
|
|
@@ -13160,10 +13283,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13160
13283
|
*/
|
|
13161
13284
|
evaluated?: boolean | "deterministic-only";
|
|
13162
13285
|
/**
|
|
13163
|
-
* Controls whether
|
|
13164
|
-
* - When set to `
|
|
13165
|
-
* - When set to `
|
|
13166
|
-
*
|
|
13286
|
+
* Controls whether references to other content are resolved and expanded.
|
|
13287
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
13288
|
+
* - When set to `true`, all supported content references are expanded.
|
|
13289
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
13290
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
13167
13291
|
*/
|
|
13168
13292
|
dereferenced?: boolean | "reusable-contents";
|
|
13169
13293
|
/**
|
|
@@ -13196,10 +13320,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13196
13320
|
*/
|
|
13197
13321
|
evaluated?: boolean | "deterministic-only";
|
|
13198
13322
|
/**
|
|
13199
|
-
* Controls whether
|
|
13200
|
-
* - When set to `
|
|
13201
|
-
* - When set to `
|
|
13202
|
-
*
|
|
13323
|
+
* Controls whether references to other content are resolved and expanded.
|
|
13324
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
13325
|
+
* - When set to `true`, all supported content references are expanded.
|
|
13326
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
13327
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
13203
13328
|
*/
|
|
13204
13329
|
dereferenced?: boolean | "reusable-contents";
|
|
13205
13330
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
@@ -13232,10 +13357,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13232
13357
|
*/
|
|
13233
13358
|
evaluated?: boolean | "deterministic-only";
|
|
13234
13359
|
/**
|
|
13235
|
-
* Controls whether
|
|
13236
|
-
* - When set to `
|
|
13237
|
-
* - When set to `
|
|
13238
|
-
*
|
|
13360
|
+
* Controls whether references to other content are resolved and expanded.
|
|
13361
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
13362
|
+
* - When set to `true`, all supported content references are expanded.
|
|
13363
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
13364
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
13239
13365
|
*/
|
|
13240
13366
|
dereferenced?: boolean | "reusable-contents";
|
|
13241
13367
|
/**
|
|
@@ -13293,10 +13419,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13293
13419
|
*/
|
|
13294
13420
|
evaluated?: boolean | "deterministic-only";
|
|
13295
13421
|
/**
|
|
13296
|
-
* Controls whether
|
|
13297
|
-
* - When set to `
|
|
13298
|
-
* - When set to `
|
|
13299
|
-
*
|
|
13422
|
+
* Controls whether references to other content are resolved and expanded.
|
|
13423
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
13424
|
+
* - When set to `true`, all supported content references are expanded.
|
|
13425
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
13426
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
13300
13427
|
*/
|
|
13301
13428
|
dereferenced?: boolean | "reusable-contents";
|
|
13302
13429
|
/**
|
|
@@ -13355,10 +13482,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13355
13482
|
*/
|
|
13356
13483
|
evaluated?: boolean | "deterministic-only";
|
|
13357
13484
|
/**
|
|
13358
|
-
* Controls whether
|
|
13359
|
-
* - When set to `
|
|
13360
|
-
* - When set to `
|
|
13361
|
-
*
|
|
13485
|
+
* Controls whether references to other content are resolved and expanded.
|
|
13486
|
+
* - When set to `false`, references are preserved, including reusable content includes in Markdown.
|
|
13487
|
+
* - When set to `true`, all supported content references are expanded.
|
|
13488
|
+
* - When set to `reusable-contents`, only reusable content references are expanded.
|
|
13489
|
+
* When omitted, Markdown responses expand all supported content references, while document responses preserve them.
|
|
13362
13490
|
*/
|
|
13363
13491
|
dereferenced?: boolean | "reusable-contents";
|
|
13364
13492
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
@@ -15547,7 +15675,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15547
15675
|
items: OpenAPISpec[];
|
|
15548
15676
|
}, any>>;
|
|
15549
15677
|
/**
|
|
15550
|
-
*
|
|
15678
|
+
* @description Adds an OpenAPI spec to the organization, from a URL or from its text. The spec is processed asynchronously and no page is created: to publish its API reference in a space, insert a page that renders it with an `insert_computed_page` change, through the `updateChangeRequestContent` operation. That reference fills in once processing completes and is regenerated each time the spec is updated.
|
|
15551
15679
|
*
|
|
15552
15680
|
* @tags openapi
|
|
15553
15681
|
* @name CreateOpenApiSpec
|
|
@@ -15584,7 +15712,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15584
15712
|
};
|
|
15585
15713
|
}>>;
|
|
15586
15714
|
/**
|
|
15587
|
-
*
|
|
15715
|
+
* @description Creates the organization's OpenAPI spec with this slug, or replaces its source with a new version. The spec is processed asynchronously, and pages that already render it are regenerated once it is. Creating a spec adds no page: to publish its API reference in a space, insert a page that renders it with an `insert_computed_page` change, through the `updateChangeRequestContent` operation.
|
|
15588
15716
|
*
|
|
15589
15717
|
* @tags openapi
|
|
15590
15718
|
* @name CreateOrUpdateOpenApiSpecBySlug
|
|
@@ -16645,6 +16773,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16645
16773
|
claims?: string;
|
|
16646
16774
|
/** ISO 3166-1 alpha-2 code of the country of the visitor for which we want to preview the site. It is matched against the `regions` of the site adaptive schema to resolve `visitor.region`. */
|
|
16647
16775
|
country?: string;
|
|
16776
|
+
/** Whether the visitor for which we want to preview the site is signed in, as `visitor.isAuthenticated` reports it. Claims outside `unsigned` already imply a signed-in visitor; set this to preview one that is signed in while carrying no claim. */
|
|
16777
|
+
visitorAuthenticated?: boolean;
|
|
16648
16778
|
/**
|
|
16649
16779
|
* Whether to include draft content in the preview. Defaults to true
|
|
16650
16780
|
* @default true
|
|
@@ -16738,7 +16868,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16738
16868
|
items: Integration[];
|
|
16739
16869
|
}, any>>;
|
|
16740
16870
|
/**
|
|
16741
|
-
* @description Pass an existing space ID to link it, or pass `null` to create and link a new space. New spaces
|
|
16871
|
+
* @description Pass an existing space ID to link it, or pass `null` to create and link a new space. New spaces start with a blank page unless a template is provided or `empty` is `true`, which creates the space with no page at all (use it when you are about to add the pages yourself).
|
|
16742
16872
|
*
|
|
16743
16873
|
* @tags site-spaces
|
|
16744
16874
|
* @name AddSpaceToSite
|
|
@@ -16760,6 +16890,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16760
16890
|
draft?: boolean;
|
|
16761
16891
|
/** 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. */
|
|
16762
16892
|
pageId?: string | null;
|
|
16893
|
+
/**
|
|
16894
|
+
* Create the new space without any content, not even a blank page. Useful when the content is about to be populated, for example by an import. Only valid when `spaceId` is `null` and no template is provided.
|
|
16895
|
+
* @default false
|
|
16896
|
+
*/
|
|
16897
|
+
empty?: boolean;
|
|
16763
16898
|
/** Site-specific title override for the variant. Also used as the space title when `spaceId` is `null` and no template is provided. */
|
|
16764
16899
|
title?: SiteTitle;
|
|
16765
16900
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSpace, any>>;
|
|
@@ -16863,7 +16998,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16863
16998
|
*/
|
|
16864
16999
|
deleteSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16865
17000
|
/**
|
|
16866
|
-
* @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
|
|
17001
|
+
* @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 start with a blank page unless a template is provided or `empty` is `true`, which creates the space with no page at all (use it when you are about to add the pages yourself).
|
|
16867
17002
|
*
|
|
16868
17003
|
* @tags site-sections
|
|
16869
17004
|
* @name AddSectionToSite
|
|
@@ -16876,6 +17011,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16876
17011
|
spaceId: string | null;
|
|
16877
17012
|
/** 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. */
|
|
16878
17013
|
template?: ApplySpaceTemplate;
|
|
17014
|
+
/**
|
|
17015
|
+
* Create the new space without any content, not even a blank page. Useful when the content is about to be populated, for example by an import. Only valid when `spaceId` is `null` and no template is provided.
|
|
17016
|
+
* @default false
|
|
17017
|
+
*/
|
|
17018
|
+
empty?: boolean;
|
|
16879
17019
|
/** Section title. Also used as the space title when `spaceId` is `null` and no template is provided. */
|
|
16880
17020
|
title?: SiteSectionTitle | null;
|
|
16881
17021
|
icon?: Icon | null;
|
|
@@ -18182,6 +18322,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
18182
18322
|
/** Team identifier. Filter the list to members of a specific team. */
|
|
18183
18323
|
team?: string;
|
|
18184
18324
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
18325
|
+
/**
|
|
18326
|
+
* Number of users with a role in the site, guests excluded. It ignores the filters and the pagination of the request.
|
|
18327
|
+
* @min 0
|
|
18328
|
+
*/
|
|
18329
|
+
membersCount: number;
|
|
18185
18330
|
items: UserSitePermission[];
|
|
18186
18331
|
}, any>>;
|
|
18187
18332
|
/**
|
|
@@ -18365,7 +18510,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
18365
18510
|
};
|
|
18366
18511
|
}>>;
|
|
18367
18512
|
/**
|
|
18368
|
-
* @description Replaces the configuration for the AI built into the GitBook editor that helps authors draft, review, and refine content changes. Use this to customize how the AI behaves when assisting authors working on content for this site.
|
|
18513
|
+
* @description Replaces the configuration for the AI built into the GitBook editor that helps authors draft, review, and refine content changes. Use this to customize how the AI behaves when assisting authors working on content for this site. When `brokenLinks` is omitted, the current broken links settings are kept.
|
|
18369
18514
|
*
|
|
18370
18515
|
* @tags site-agent-settings
|
|
18371
18516
|
* @name UpdateSiteAgentSettingsById
|