@gitbook/api 0.188.0 → 0.190.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 +225 -44
- package/dist/constants.d.ts +6 -3
- package/dist/index.cjs +49 -17
- package/dist/index.js +44 -17
- package/package.json +1 -1
- package/spec/openapi.json +578 -89
- package/spec/openapi.yaml +420 -67
package/spec/openapi.yaml
CHANGED
|
@@ -949,21 +949,6 @@ paths:
|
|
|
949
949
|
"404":
|
|
950
950
|
description: No Git provider currently set up on the space
|
|
951
951
|
$ref: "#/components/responses/NotFoundError"
|
|
952
|
-
/spaces/{spaceId}/git/legacy-installation:
|
|
953
|
-
delete:
|
|
954
|
-
operationId: deleteLegacyGitInstallation
|
|
955
|
-
summary: Remove the legacy Git Sync installation from the space to be able to upgrade it to use the new Git integrations
|
|
956
|
-
tags:
|
|
957
|
-
- space-git
|
|
958
|
-
security:
|
|
959
|
-
- user-internal: []
|
|
960
|
-
parameters:
|
|
961
|
-
- $ref: "#/components/parameters/spaceId"
|
|
962
|
-
responses:
|
|
963
|
-
"204":
|
|
964
|
-
description: The legacy Git installation was already removed
|
|
965
|
-
"205":
|
|
966
|
-
description: The legacy Git installation was successfully removed
|
|
967
952
|
/spaces/{spaceId}/permissions:
|
|
968
953
|
post:
|
|
969
954
|
operationId: inviteToSpace
|
|
@@ -1678,7 +1663,11 @@ paths:
|
|
|
1678
1663
|
description:
|
|
1679
1664
|
$ref: "#/components/schemas/JSONDocument"
|
|
1680
1665
|
links:
|
|
1681
|
-
|
|
1666
|
+
type: array
|
|
1667
|
+
description: External links associated with the change request.
|
|
1668
|
+
items:
|
|
1669
|
+
$ref: "#/components/schemas/ChangeRequestLinkInput"
|
|
1670
|
+
maxItems: 10
|
|
1682
1671
|
status:
|
|
1683
1672
|
type: string
|
|
1684
1673
|
enum:
|
|
@@ -2384,7 +2373,23 @@ paths:
|
|
|
2384
2373
|
post:
|
|
2385
2374
|
operationId: updateChangeRequestContent
|
|
2386
2375
|
summary: Apply a batch of content changes to a change request
|
|
2387
|
-
description:
|
|
2376
|
+
description: |-
|
|
2377
|
+
Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.
|
|
2378
|
+
|
|
2379
|
+
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:
|
|
2380
|
+
- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).
|
|
2381
|
+
- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`
|
|
2382
|
+
for a nested page (e.g. `/pages/guides/getting-started`).
|
|
2383
|
+
|
|
2384
|
+
- Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page,
|
|
2385
|
+
or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is
|
|
2386
|
+
`/pages/README.md`.
|
|
2387
|
+
|
|
2388
|
+
- Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`,
|
|
2389
|
+
`../other.md`, or `../README.md` (the parent page). Folder-style links without an
|
|
2390
|
+
extension (e.g. `./section`) resolve to that folder's page.
|
|
2391
|
+
|
|
2392
|
+
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.
|
|
2388
2393
|
x-gitbook-mcp: true
|
|
2389
2394
|
tags:
|
|
2390
2395
|
- change-request-content
|
|
@@ -4726,6 +4731,50 @@ paths:
|
|
|
4726
4731
|
"400":
|
|
4727
4732
|
description: Invalid default content space or collection provided
|
|
4728
4733
|
$ref: "#/components/responses/BadRequestError"
|
|
4734
|
+
/orgs/{organizationId}/styleguides:
|
|
4735
|
+
get:
|
|
4736
|
+
operationId: listOrganizationStyleguides
|
|
4737
|
+
summary: List all styleguides in an organization
|
|
4738
|
+
description: |
|
|
4739
|
+
Lists every styleguide (a space holding a team's writing styleguide) in the organization, along with every site that references each one. Styleguides that are not referenced by any site are still returned with an empty `sites` list.
|
|
4740
|
+
x-gitbook-mcp: true
|
|
4741
|
+
tags:
|
|
4742
|
+
- organizations
|
|
4743
|
+
security:
|
|
4744
|
+
- user: []
|
|
4745
|
+
- oauth:
|
|
4746
|
+
- site:read
|
|
4747
|
+
parameters:
|
|
4748
|
+
- $ref: "#/components/parameters/organizationId"
|
|
4749
|
+
responses:
|
|
4750
|
+
"200":
|
|
4751
|
+
description: OK
|
|
4752
|
+
content:
|
|
4753
|
+
application/json:
|
|
4754
|
+
schema:
|
|
4755
|
+
$ref: "#/components/schemas/OrganizationStyleguides"
|
|
4756
|
+
/orgs/{organizationId}/styleguide-templates:
|
|
4757
|
+
get:
|
|
4758
|
+
operationId: listStyleguideTemplates
|
|
4759
|
+
summary: List all built-in styleguide templates
|
|
4760
|
+
description: |
|
|
4761
|
+
Lists the built-in styleguide starter templates that can seed a new styleguide, including the markdown content used to render each template's preview.
|
|
4762
|
+
x-gitbook-mcp: true
|
|
4763
|
+
tags:
|
|
4764
|
+
- organizations
|
|
4765
|
+
security:
|
|
4766
|
+
- user: []
|
|
4767
|
+
- oauth:
|
|
4768
|
+
- site:read
|
|
4769
|
+
parameters:
|
|
4770
|
+
- $ref: "#/components/parameters/organizationId"
|
|
4771
|
+
responses:
|
|
4772
|
+
"200":
|
|
4773
|
+
description: OK
|
|
4774
|
+
content:
|
|
4775
|
+
application/json:
|
|
4776
|
+
schema:
|
|
4777
|
+
$ref: "#/components/schemas/StyleguideTemplates"
|
|
4729
4778
|
/orgs/{organizationId}/members:
|
|
4730
4779
|
get:
|
|
4731
4780
|
operationId: listMembersInOrganizationById
|
|
@@ -4811,7 +4860,7 @@ paths:
|
|
|
4811
4860
|
$ref: "#/components/schemas/MemberRoleOrGuest"
|
|
4812
4861
|
delete:
|
|
4813
4862
|
operationId: removeMemberFromOrganizationById
|
|
4814
|
-
summary:
|
|
4863
|
+
summary: Remove an organization member or request an organization admin to do it
|
|
4815
4864
|
tags:
|
|
4816
4865
|
- organization-members
|
|
4817
4866
|
security:
|
|
@@ -4822,6 +4871,8 @@ paths:
|
|
|
4822
4871
|
- $ref: "#/components/parameters/organizationId"
|
|
4823
4872
|
- $ref: "#/components/parameters/userId"
|
|
4824
4873
|
responses:
|
|
4874
|
+
"202":
|
|
4875
|
+
description: The removal request was sent to the organization administrators.
|
|
4825
4876
|
"204":
|
|
4826
4877
|
description: Member did not exist in the organization.
|
|
4827
4878
|
"205":
|
|
@@ -8314,10 +8365,9 @@ paths:
|
|
|
8314
8365
|
siteSpaceId:
|
|
8315
8366
|
type: string
|
|
8316
8367
|
goal:
|
|
8317
|
-
type: string
|
|
8318
|
-
maxLength: 1024
|
|
8319
8368
|
description: |
|
|
8320
8369
|
The end goal the agent is trying to accomplish on behalf of the user. Unlike the question, which is the immediate query, the goal describes the broader task or outcome the agent is working towards. GitBook uses this to steer the answer towards what is ultimately useful for that goal.
|
|
8370
|
+
$ref: "#/components/schemas/AgentGoal"
|
|
8321
8371
|
scope:
|
|
8322
8372
|
$ref: "#/components/schemas/SiteSearchScope"
|
|
8323
8373
|
session:
|
|
@@ -12747,6 +12797,18 @@ components:
|
|
|
12747
12797
|
- github
|
|
12748
12798
|
- gitlab
|
|
12749
12799
|
- github-legacy
|
|
12800
|
+
GitSyncOperationState:
|
|
12801
|
+
type: string
|
|
12802
|
+
description: |
|
|
12803
|
+
* `running`: The operation is still running
|
|
12804
|
+
* `failure`: The operation failed
|
|
12805
|
+
* `success`: The operation was successful
|
|
12806
|
+
* `timeout`: The operation timed out
|
|
12807
|
+
enum:
|
|
12808
|
+
- running
|
|
12809
|
+
- failure
|
|
12810
|
+
- success
|
|
12811
|
+
- timeout
|
|
12750
12812
|
GitSyncState:
|
|
12751
12813
|
type: object
|
|
12752
12814
|
properties:
|
|
@@ -12767,6 +12829,14 @@ components:
|
|
|
12767
12829
|
url:
|
|
12768
12830
|
type: string
|
|
12769
12831
|
description: The URL to the repository tree, used when rendering public content.
|
|
12832
|
+
operation:
|
|
12833
|
+
type: object
|
|
12834
|
+
description: The latest operation on the Git Sync installation.
|
|
12835
|
+
properties:
|
|
12836
|
+
state:
|
|
12837
|
+
$ref: "#/components/schemas/GitSyncOperationState"
|
|
12838
|
+
required:
|
|
12839
|
+
- state
|
|
12770
12840
|
updatedAt:
|
|
12771
12841
|
description: When the Git provider details were last updated
|
|
12772
12842
|
$ref: "#/components/schemas/Timestamp"
|
|
@@ -13246,6 +13316,7 @@ components:
|
|
|
13246
13316
|
description: If true, the import will generate a revision without updating the space primary content.
|
|
13247
13317
|
gitInfo:
|
|
13248
13318
|
description: Optional metadata to store on the space about the Git provider
|
|
13319
|
+
deprecated: true
|
|
13249
13320
|
$ref: "#/components/schemas/UpdateSpaceGitInfo"
|
|
13250
13321
|
required:
|
|
13251
13322
|
- url
|
|
@@ -13281,8 +13352,13 @@ components:
|
|
|
13281
13352
|
$ref: "#/components/schemas/Timestamp"
|
|
13282
13353
|
force:
|
|
13283
13354
|
type: boolean
|
|
13355
|
+
standalone:
|
|
13356
|
+
type: boolean
|
|
13357
|
+
description: |
|
|
13358
|
+
If true, the export will be done in a standalone mode, meaning that the exported content will not be linked to the Git repository. This is useful for creating a snapshot of the space's content.
|
|
13284
13359
|
gitInfo:
|
|
13285
13360
|
description: Optional metadata to store on the space about the Git provider
|
|
13361
|
+
deprecated: true
|
|
13286
13362
|
$ref: "#/components/schemas/UpdateSpaceGitInfo"
|
|
13287
13363
|
required:
|
|
13288
13364
|
- url
|
|
@@ -13409,6 +13485,10 @@ components:
|
|
|
13409
13485
|
updatedAt:
|
|
13410
13486
|
description: When the page was last edited. Only present if page has been edited at least once.
|
|
13411
13487
|
$ref: "#/components/schemas/Timestamp"
|
|
13488
|
+
condition:
|
|
13489
|
+
description: Adaptive-content condition controlling whether the page is shown to a visitor. Only present when the page has a condition set, and only returned when the API is called with a user, user-internal or OAuth token (never with a site/content token).
|
|
13490
|
+
type: string
|
|
13491
|
+
minLength: 1
|
|
13412
13492
|
required:
|
|
13413
13493
|
- id
|
|
13414
13494
|
- title
|
|
@@ -14375,6 +14455,9 @@ components:
|
|
|
14375
14455
|
hideColumnTitle:
|
|
14376
14456
|
type: boolean
|
|
14377
14457
|
description: Should we display the column title or not
|
|
14458
|
+
wrap:
|
|
14459
|
+
type: boolean
|
|
14460
|
+
description: Whether the cards wrap onto multiple rows (true, the default) or are laid out in a single horizontally-scrolling carousel row (false).
|
|
14378
14461
|
required:
|
|
14379
14462
|
- type
|
|
14380
14463
|
- columns
|
|
@@ -14837,6 +14920,14 @@ components:
|
|
|
14837
14920
|
$ref: "#/components/schemas/Icon"
|
|
14838
14921
|
openInAIProviders:
|
|
14839
14922
|
type: boolean
|
|
14923
|
+
defaultExpanded:
|
|
14924
|
+
type: string
|
|
14925
|
+
default: hidden
|
|
14926
|
+
description: Controls how much of the prompt content is visible by default.
|
|
14927
|
+
enum:
|
|
14928
|
+
- hidden
|
|
14929
|
+
- partial
|
|
14930
|
+
- full
|
|
14840
14931
|
required:
|
|
14841
14932
|
- description
|
|
14842
14933
|
additionalProperties: false
|
|
@@ -16570,6 +16661,13 @@ components:
|
|
|
16570
16661
|
enum:
|
|
16571
16662
|
- hero
|
|
16572
16663
|
- full
|
|
16664
|
+
- background
|
|
16665
|
+
RevisionPageLayoutOptionsCoverMask:
|
|
16666
|
+
type: string
|
|
16667
|
+
description: Mask applied to the cover image.
|
|
16668
|
+
enum:
|
|
16669
|
+
- none
|
|
16670
|
+
- radial
|
|
16573
16671
|
RevisionPageLayoutOptions:
|
|
16574
16672
|
type: object
|
|
16575
16673
|
properties:
|
|
@@ -16580,6 +16678,8 @@ components:
|
|
|
16580
16678
|
description: Should the cover be visible?
|
|
16581
16679
|
coverSize:
|
|
16582
16680
|
$ref: "#/components/schemas/RevisionPageLayoutOptionsCoverSize"
|
|
16681
|
+
coverMask:
|
|
16682
|
+
$ref: "#/components/schemas/RevisionPageLayoutOptionsCoverMask"
|
|
16583
16683
|
title:
|
|
16584
16684
|
type: boolean
|
|
16585
16685
|
description: Should the title be visible?
|
|
@@ -16608,6 +16708,7 @@ components:
|
|
|
16608
16708
|
- width
|
|
16609
16709
|
- cover
|
|
16610
16710
|
- coverSize
|
|
16711
|
+
- coverMask
|
|
16611
16712
|
- title
|
|
16612
16713
|
- description
|
|
16613
16714
|
- tableOfContents
|
|
@@ -16616,6 +16717,11 @@ components:
|
|
|
16616
16717
|
- metadata
|
|
16617
16718
|
- tags
|
|
16618
16719
|
- actions
|
|
16720
|
+
RevisionPageDocumentCoverTextColor:
|
|
16721
|
+
type: string
|
|
16722
|
+
enum:
|
|
16723
|
+
- black
|
|
16724
|
+
- white
|
|
16619
16725
|
RevisionPageDocumentCover:
|
|
16620
16726
|
type: object
|
|
16621
16727
|
properties:
|
|
@@ -16629,6 +16735,12 @@ components:
|
|
|
16629
16735
|
oneOf:
|
|
16630
16736
|
- $ref: "#/components/schemas/ContentRefFile"
|
|
16631
16737
|
- $ref: "#/components/schemas/ContentRefURL"
|
|
16738
|
+
textColor:
|
|
16739
|
+
description: Text color to use on top of the cover image when in background mode.
|
|
16740
|
+
$ref: "#/components/schemas/RevisionPageDocumentCoverTextColor"
|
|
16741
|
+
textColorDark:
|
|
16742
|
+
description: Text color to use on top of the dark mode cover image when in background mode.
|
|
16743
|
+
$ref: "#/components/schemas/RevisionPageDocumentCoverTextColor"
|
|
16632
16744
|
yPos:
|
|
16633
16745
|
description: Vertical position of the cover image.
|
|
16634
16746
|
type: number
|
|
@@ -17048,8 +17160,9 @@ components:
|
|
|
17048
17160
|
type: string
|
|
17049
17161
|
description: Optional title to display for the link.
|
|
17050
17162
|
maxLength: 128
|
|
17051
|
-
|
|
17163
|
+
ChangeRequestLinkInput:
|
|
17052
17164
|
type: object
|
|
17165
|
+
description: External link associated with a change request.
|
|
17053
17166
|
properties:
|
|
17054
17167
|
ref:
|
|
17055
17168
|
$ref: "#/components/schemas/ContentRefURL"
|
|
@@ -17057,6 +17170,79 @@ components:
|
|
|
17057
17170
|
$ref: "#/components/schemas/ChangeRequestLinkTitle"
|
|
17058
17171
|
required:
|
|
17059
17172
|
- ref
|
|
17173
|
+
ChangeRequestLinkExpanded:
|
|
17174
|
+
description: External ticket data resolved for this link by a configured connector.
|
|
17175
|
+
oneOf:
|
|
17176
|
+
- type: object
|
|
17177
|
+
description: An external ticket linked to the change request.
|
|
17178
|
+
properties:
|
|
17179
|
+
kind:
|
|
17180
|
+
type: string
|
|
17181
|
+
enum:
|
|
17182
|
+
- external-ticket
|
|
17183
|
+
provider:
|
|
17184
|
+
type: string
|
|
17185
|
+
enum:
|
|
17186
|
+
- jira
|
|
17187
|
+
state:
|
|
17188
|
+
type: string
|
|
17189
|
+
enum:
|
|
17190
|
+
- connected
|
|
17191
|
+
key:
|
|
17192
|
+
type: string
|
|
17193
|
+
description: The ticket's provider-specific key.
|
|
17194
|
+
url:
|
|
17195
|
+
type: string
|
|
17196
|
+
format: uri
|
|
17197
|
+
description: URL to open the ticket.
|
|
17198
|
+
status:
|
|
17199
|
+
type: object
|
|
17200
|
+
properties:
|
|
17201
|
+
id:
|
|
17202
|
+
type: string
|
|
17203
|
+
name:
|
|
17204
|
+
type: string
|
|
17205
|
+
required:
|
|
17206
|
+
- id
|
|
17207
|
+
- name
|
|
17208
|
+
summary:
|
|
17209
|
+
type: string
|
|
17210
|
+
description: The ticket's summary.
|
|
17211
|
+
required:
|
|
17212
|
+
- kind
|
|
17213
|
+
- provider
|
|
17214
|
+
- state
|
|
17215
|
+
- key
|
|
17216
|
+
- url
|
|
17217
|
+
- status
|
|
17218
|
+
- summary
|
|
17219
|
+
- type: object
|
|
17220
|
+
description: An external ticket whose current data could not be loaded.
|
|
17221
|
+
properties:
|
|
17222
|
+
kind:
|
|
17223
|
+
type: string
|
|
17224
|
+
enum:
|
|
17225
|
+
- external-ticket
|
|
17226
|
+
provider:
|
|
17227
|
+
type: string
|
|
17228
|
+
enum:
|
|
17229
|
+
- jira
|
|
17230
|
+
state:
|
|
17231
|
+
type: string
|
|
17232
|
+
enum:
|
|
17233
|
+
- error
|
|
17234
|
+
required:
|
|
17235
|
+
- kind
|
|
17236
|
+
- provider
|
|
17237
|
+
- state
|
|
17238
|
+
ChangeRequestLink:
|
|
17239
|
+
allOf:
|
|
17240
|
+
- $ref: "#/components/schemas/ChangeRequestLinkInput"
|
|
17241
|
+
- type: object
|
|
17242
|
+
properties:
|
|
17243
|
+
expanded:
|
|
17244
|
+
$ref: "#/components/schemas/ChangeRequestLinkExpanded"
|
|
17245
|
+
readOnly: true
|
|
17060
17246
|
ChangeRequestLinks:
|
|
17061
17247
|
type: array
|
|
17062
17248
|
description: External links associated with the change request.
|
|
@@ -17721,23 +17907,54 @@ components:
|
|
|
17721
17907
|
- comment
|
|
17722
17908
|
required:
|
|
17723
17909
|
- actionType
|
|
17724
|
-
|
|
17910
|
+
RevisionPageUpdate:
|
|
17725
17911
|
type: object
|
|
17726
|
-
description:
|
|
17727
|
-
required:
|
|
17728
|
-
- operation
|
|
17729
|
-
- page
|
|
17730
|
-
- document
|
|
17912
|
+
description: Page metadata that can be set when inserting or updating a page through a change request. When a markdown document is provided on the same operation, the values read from its frontmatter take precedence over these fields.
|
|
17731
17913
|
properties:
|
|
17732
|
-
|
|
17914
|
+
title:
|
|
17733
17915
|
type: string
|
|
17734
|
-
|
|
17735
|
-
|
|
17736
|
-
|
|
17916
|
+
minLength: 1
|
|
17917
|
+
description: Title of the page.
|
|
17918
|
+
emoji:
|
|
17919
|
+
description: Emoji of the page. Set to an empty string to remove it.
|
|
17920
|
+
$ref: "#/components/schemas/Emoji"
|
|
17921
|
+
icon:
|
|
17922
|
+
description: Icon of the page. Set to an empty string to remove it.
|
|
17923
|
+
$ref: "#/components/schemas/Icon"
|
|
17924
|
+
description:
|
|
17737
17925
|
type: string
|
|
17738
|
-
description:
|
|
17739
|
-
|
|
17740
|
-
|
|
17926
|
+
description: Description of the page.
|
|
17927
|
+
hidden:
|
|
17928
|
+
type: boolean
|
|
17929
|
+
description: If true, the page is not displayed in the navigation, while still being accessible.
|
|
17930
|
+
noIndex:
|
|
17931
|
+
type: boolean
|
|
17932
|
+
description: If true, the page is not indexable in the search and ask features.
|
|
17933
|
+
noRobotsIndex:
|
|
17934
|
+
type: boolean
|
|
17935
|
+
description: If true, the page is not indexable by search engine robots.
|
|
17936
|
+
condition:
|
|
17937
|
+
type: string
|
|
17938
|
+
description: Adaptive-content condition controlling whether the page is shown to a visitor. Set to an empty string to remove the condition.
|
|
17939
|
+
ChangeRequestContentChangeUpdatePage:
|
|
17940
|
+
description: Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed.
|
|
17941
|
+
allOf:
|
|
17942
|
+
- $ref: "#/components/schemas/RevisionPageUpdate"
|
|
17943
|
+
- type: object
|
|
17944
|
+
required:
|
|
17945
|
+
- operation
|
|
17946
|
+
- page
|
|
17947
|
+
properties:
|
|
17948
|
+
operation:
|
|
17949
|
+
type: string
|
|
17950
|
+
enum:
|
|
17951
|
+
- update_page
|
|
17952
|
+
page:
|
|
17953
|
+
type: string
|
|
17954
|
+
description: ID of the page to update.
|
|
17955
|
+
document:
|
|
17956
|
+
description: New document for the page. When provided as markdown, its frontmatter is read to update the page metadata. Omit to update only the metadata fields.
|
|
17957
|
+
$ref: "#/components/schemas/Document"
|
|
17741
17958
|
example:
|
|
17742
17959
|
operation: update_page
|
|
17743
17960
|
page: page_id
|
|
@@ -17747,29 +17964,29 @@ components:
|
|
|
17747
17964
|
|
|
17748
17965
|
This is a markdown document linking to [another page](/pages/page_id).
|
|
17749
17966
|
ChangeRequestContentChangeInsertPage:
|
|
17750
|
-
type: object
|
|
17751
17967
|
description: Insert a new page into the change request.
|
|
17752
|
-
|
|
17753
|
-
-
|
|
17754
|
-
-
|
|
17755
|
-
|
|
17756
|
-
|
|
17757
|
-
|
|
17758
|
-
|
|
17759
|
-
|
|
17760
|
-
|
|
17761
|
-
|
|
17762
|
-
|
|
17763
|
-
|
|
17764
|
-
|
|
17765
|
-
|
|
17766
|
-
|
|
17767
|
-
|
|
17768
|
-
|
|
17769
|
-
|
|
17770
|
-
|
|
17771
|
-
|
|
17772
|
-
|
|
17968
|
+
allOf:
|
|
17969
|
+
- $ref: "#/components/schemas/RevisionPageUpdate"
|
|
17970
|
+
- type: object
|
|
17971
|
+
required:
|
|
17972
|
+
- operation
|
|
17973
|
+
- title
|
|
17974
|
+
- document
|
|
17975
|
+
properties:
|
|
17976
|
+
operation:
|
|
17977
|
+
type: string
|
|
17978
|
+
enum:
|
|
17979
|
+
- insert_page
|
|
17980
|
+
into:
|
|
17981
|
+
type: string
|
|
17982
|
+
description: ID of the parent page to insert the new page into. If omitted, the page is inserted as a root page.
|
|
17983
|
+
at:
|
|
17984
|
+
type: integer
|
|
17985
|
+
minimum: 0
|
|
17986
|
+
description: Zero-based index to insert the page at among its siblings. If omitted, the page is appended at the end.
|
|
17987
|
+
document:
|
|
17988
|
+
description: Document for the new page. When provided as markdown, its frontmatter is read to set the page metadata.
|
|
17989
|
+
$ref: "#/components/schemas/Document"
|
|
17773
17990
|
example:
|
|
17774
17991
|
operation: insert_page
|
|
17775
17992
|
title: New page
|
|
@@ -18380,7 +18597,6 @@ components:
|
|
|
18380
18597
|
- analytics
|
|
18381
18598
|
- collaboration
|
|
18382
18599
|
- content
|
|
18383
|
-
- gitsync
|
|
18384
18600
|
- marketing
|
|
18385
18601
|
- visitor-auth
|
|
18386
18602
|
- other
|
|
@@ -23560,6 +23776,9 @@ components:
|
|
|
23560
23776
|
spaceId:
|
|
23561
23777
|
type: string
|
|
23562
23778
|
description: Unique identifier of the space targeted by the Git Sync installation.
|
|
23779
|
+
siteId:
|
|
23780
|
+
type: string
|
|
23781
|
+
description: Unique identifier of the site whose Git Sync installation should manage the space installation. Omit to install Git Sync directly on the space.
|
|
23563
23782
|
required:
|
|
23564
23783
|
- type
|
|
23565
23784
|
- spaceId
|
|
@@ -24721,6 +24940,36 @@ components:
|
|
|
24721
24940
|
type: string
|
|
24722
24941
|
description: |
|
|
24723
24942
|
The ID of the site space that must always be included in the search results. The language of this site space will be used to match other site spaces with the same language, if applicable.
|
|
24943
|
+
restrictTo:
|
|
24944
|
+
description: |
|
|
24945
|
+
Must not be provided when searching the entire default scope. To restrict the search to a subset of the default scope, provide `restrictTo` along with `currentSiteSpace`.
|
|
24946
|
+
type: string
|
|
24947
|
+
minLength: 2
|
|
24948
|
+
maxLength: 1
|
|
24949
|
+
x-typescript: never
|
|
24950
|
+
- type: object
|
|
24951
|
+
required:
|
|
24952
|
+
- mode
|
|
24953
|
+
- currentSiteSpace
|
|
24954
|
+
- restrictTo
|
|
24955
|
+
properties:
|
|
24956
|
+
mode:
|
|
24957
|
+
description: |
|
|
24958
|
+
Search a subset of the default scope of the site, relative to the current site space.
|
|
24959
|
+
type: string
|
|
24960
|
+
enum:
|
|
24961
|
+
- default
|
|
24962
|
+
currentSiteSpace:
|
|
24963
|
+
type: string
|
|
24964
|
+
description: |
|
|
24965
|
+
The ID of the site space the search is made from. The language of this site space will be used to match other site spaces with the same language, if applicable.
|
|
24966
|
+
restrictTo:
|
|
24967
|
+
type: string
|
|
24968
|
+
enum:
|
|
24969
|
+
- currentSiteSpace
|
|
24970
|
+
- otherSiteSpaces
|
|
24971
|
+
description: |
|
|
24972
|
+
Restrict the search to a subset of the default scope. With `currentSiteSpace`, only the current site space is searched. With `otherSiteSpaces`, the current site space is excluded and only the other site spaces in the default scope are searched.
|
|
24724
24973
|
- type: object
|
|
24725
24974
|
required:
|
|
24726
24975
|
- mode
|
|
@@ -24774,6 +25023,10 @@ components:
|
|
|
24774
25023
|
- title
|
|
24775
25024
|
- score
|
|
24776
25025
|
- url
|
|
25026
|
+
AgentGoal:
|
|
25027
|
+
type: string
|
|
25028
|
+
maxLength: 1024
|
|
25029
|
+
description: The end goal the agent is trying to accomplish on behalf of the user. Unlike the immediate query, the goal describes the broader task or outcome the agent is working towards.
|
|
24777
25030
|
SiteInsightsSession:
|
|
24778
25031
|
type: object
|
|
24779
25032
|
description: Identifiers for a GitBook site session, used for analytics and adaptive content.
|
|
@@ -24808,8 +25061,12 @@ components:
|
|
|
24808
25061
|
- builtin:github-discussions
|
|
24809
25062
|
- builtin:github-issues
|
|
24810
25063
|
- builtin:intercom
|
|
25064
|
+
- builtin:front
|
|
24811
25065
|
- builtin:zendesk
|
|
25066
|
+
- builtin:zoho-desk
|
|
25067
|
+
- builtin:freshdesk
|
|
24812
25068
|
- builtin:pylon
|
|
25069
|
+
- builtin:hubspot
|
|
24813
25070
|
- builtin:linear
|
|
24814
25071
|
- builtin:jira
|
|
24815
25072
|
ContextRecordTitle:
|
|
@@ -25445,6 +25702,23 @@ components:
|
|
|
25445
25702
|
required:
|
|
25446
25703
|
- connector
|
|
25447
25704
|
- setupSettings
|
|
25705
|
+
- type: object
|
|
25706
|
+
properties:
|
|
25707
|
+
connector:
|
|
25708
|
+
type: string
|
|
25709
|
+
enum:
|
|
25710
|
+
- builtin:front
|
|
25711
|
+
setupSettings:
|
|
25712
|
+
type: object
|
|
25713
|
+
properties:
|
|
25714
|
+
token:
|
|
25715
|
+
type: string
|
|
25716
|
+
minLength: 1
|
|
25717
|
+
required:
|
|
25718
|
+
- token
|
|
25719
|
+
required:
|
|
25720
|
+
- connector
|
|
25721
|
+
- setupSettings
|
|
25448
25722
|
- type: object
|
|
25449
25723
|
properties:
|
|
25450
25724
|
connector:
|
|
@@ -25470,6 +25744,64 @@ components:
|
|
|
25470
25744
|
required:
|
|
25471
25745
|
- connector
|
|
25472
25746
|
- setupSettings
|
|
25747
|
+
- type: object
|
|
25748
|
+
properties:
|
|
25749
|
+
connector:
|
|
25750
|
+
type: string
|
|
25751
|
+
enum:
|
|
25752
|
+
- builtin:zoho-desk
|
|
25753
|
+
setupSettings:
|
|
25754
|
+
type: object
|
|
25755
|
+
properties:
|
|
25756
|
+
dataCenter:
|
|
25757
|
+
type: string
|
|
25758
|
+
minLength: 1
|
|
25759
|
+
description: Zoho data center hosting the account, given as its API domain suffix (e.g. `com`, `eu`, `in`, `com.au`). Zoho scopes both the accounts and desk API hosts by data center.
|
|
25760
|
+
orgId:
|
|
25761
|
+
type: string
|
|
25762
|
+
minLength: 1
|
|
25763
|
+
description: Zoho Desk organization id the tickets belong to.
|
|
25764
|
+
clientId:
|
|
25765
|
+
type: string
|
|
25766
|
+
minLength: 1
|
|
25767
|
+
clientSecret:
|
|
25768
|
+
type: string
|
|
25769
|
+
minLength: 1
|
|
25770
|
+
refreshToken:
|
|
25771
|
+
type: string
|
|
25772
|
+
minLength: 1
|
|
25773
|
+
required:
|
|
25774
|
+
- dataCenter
|
|
25775
|
+
- orgId
|
|
25776
|
+
- clientId
|
|
25777
|
+
- clientSecret
|
|
25778
|
+
- refreshToken
|
|
25779
|
+
required:
|
|
25780
|
+
- connector
|
|
25781
|
+
- setupSettings
|
|
25782
|
+
- type: object
|
|
25783
|
+
properties:
|
|
25784
|
+
connector:
|
|
25785
|
+
type: string
|
|
25786
|
+
enum:
|
|
25787
|
+
- builtin:freshdesk
|
|
25788
|
+
setupSettings:
|
|
25789
|
+
type: object
|
|
25790
|
+
properties:
|
|
25791
|
+
domain:
|
|
25792
|
+
type: string
|
|
25793
|
+
minLength: 1
|
|
25794
|
+
description: Freshdesk domain hosting the account, e.g. `mycompany.freshdesk.com` or just `mycompany`. Tickets and the API are scoped by this domain.
|
|
25795
|
+
apiKey:
|
|
25796
|
+
type: string
|
|
25797
|
+
minLength: 1
|
|
25798
|
+
description: Freshdesk API key with permission to read tickets. Sent as HTTP Basic auth and redacted when read back.
|
|
25799
|
+
required:
|
|
25800
|
+
- domain
|
|
25801
|
+
- apiKey
|
|
25802
|
+
required:
|
|
25803
|
+
- connector
|
|
25804
|
+
- setupSettings
|
|
25473
25805
|
- type: object
|
|
25474
25806
|
properties:
|
|
25475
25807
|
connector:
|
|
@@ -25487,6 +25819,23 @@ components:
|
|
|
25487
25819
|
required:
|
|
25488
25820
|
- connector
|
|
25489
25821
|
- setupSettings
|
|
25822
|
+
- type: object
|
|
25823
|
+
properties:
|
|
25824
|
+
connector:
|
|
25825
|
+
type: string
|
|
25826
|
+
enum:
|
|
25827
|
+
- builtin:hubspot
|
|
25828
|
+
setupSettings:
|
|
25829
|
+
type: object
|
|
25830
|
+
properties:
|
|
25831
|
+
token:
|
|
25832
|
+
type: string
|
|
25833
|
+
minLength: 1
|
|
25834
|
+
required:
|
|
25835
|
+
- token
|
|
25836
|
+
required:
|
|
25837
|
+
- connector
|
|
25838
|
+
- setupSettings
|
|
25490
25839
|
- type: object
|
|
25491
25840
|
properties:
|
|
25492
25841
|
connector:
|
|
@@ -26717,6 +27066,20 @@ components:
|
|
|
26717
27066
|
required:
|
|
26718
27067
|
- spaceId
|
|
26719
27068
|
- pageId
|
|
27069
|
+
comments:
|
|
27070
|
+
type: array
|
|
27071
|
+
description: Comments on the content the user is referring to in the message.
|
|
27072
|
+
items:
|
|
27073
|
+
type: object
|
|
27074
|
+
properties:
|
|
27075
|
+
id:
|
|
27076
|
+
type: string
|
|
27077
|
+
description: ID of the comment.
|
|
27078
|
+
content:
|
|
27079
|
+
type: string
|
|
27080
|
+
description: Snapshot of the comment for display.
|
|
27081
|
+
required:
|
|
27082
|
+
- id
|
|
26720
27083
|
selection:
|
|
26721
27084
|
type: object
|
|
26722
27085
|
description: Range of the current selection in a document.
|
|
@@ -30697,16 +31060,6 @@ components:
|
|
|
30697
31060
|
- tag_created
|
|
30698
31061
|
- tag_deleted
|
|
30699
31062
|
- tag_edited
|
|
30700
|
-
GitSyncOperationState:
|
|
30701
|
-
type: string
|
|
30702
|
-
description: |
|
|
30703
|
-
* `running`: The operation is still running
|
|
30704
|
-
* `failure`: The operation failed
|
|
30705
|
-
* `success`: The operation was successful
|
|
30706
|
-
enum:
|
|
30707
|
-
- running
|
|
30708
|
-
- failure
|
|
30709
|
-
- success
|
|
30710
31063
|
GitSyncOperationDirection:
|
|
30711
31064
|
type: string
|
|
30712
31065
|
enum:
|