@gitbook/api 0.189.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/spec/openapi.json CHANGED
@@ -1225,33 +1225,6 @@
1225
1225
  }
1226
1226
  }
1227
1227
  },
1228
- "/spaces/{spaceId}/git/legacy-installation": {
1229
- "delete": {
1230
- "operationId": "deleteLegacyGitInstallation",
1231
- "summary": "Remove the legacy Git Sync installation from the space to be able to upgrade it to use the new Git integrations",
1232
- "tags": [
1233
- "space-git"
1234
- ],
1235
- "security": [
1236
- {
1237
- "user-internal": []
1238
- }
1239
- ],
1240
- "parameters": [
1241
- {
1242
- "$ref": "#/components/parameters/spaceId"
1243
- }
1244
- ],
1245
- "responses": {
1246
- "204": {
1247
- "description": "The legacy Git installation was already removed"
1248
- },
1249
- "205": {
1250
- "description": "The legacy Git installation was successfully removed"
1251
- }
1252
- }
1253
- }
1254
- },
1255
1228
  "/spaces/{spaceId}/permissions": {
1256
1229
  "post": {
1257
1230
  "operationId": "inviteToSpace",
@@ -3894,7 +3867,7 @@
3894
3867
  "post": {
3895
3868
  "operationId": "updateChangeRequestContent",
3896
3869
  "summary": "Apply a batch of content changes to a change request",
3897
- "description": "Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.",
3870
+ "description": "Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.\n\nWhen 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:\n- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).\n- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`\n for a nested page (e.g. `/pages/guides/getting-started`).\n\n- Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page,\n or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is\n `/pages/README.md`.\n\n- Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`,\n `../other.md`, or `../README.md` (the parent page). Folder-style links without an\n extension (e.g. `./section`) resolve to that folder's page.\n\nExternal 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.",
3898
3871
  "x-gitbook-mcp": true,
3899
3872
  "tags": [
3900
3873
  "change-request-content"
@@ -8506,7 +8479,7 @@
8506
8479
  },
8507
8480
  "delete": {
8508
8481
  "operationId": "removeMemberFromOrganizationById",
8509
- "summary": "Delete an organization member",
8482
+ "summary": "Remove an organization member or request an organization admin to do it",
8510
8483
  "tags": [
8511
8484
  "organization-members"
8512
8485
  ],
@@ -8529,6 +8502,9 @@
8529
8502
  }
8530
8503
  ],
8531
8504
  "responses": {
8505
+ "202": {
8506
+ "description": "The removal request was sent to the organization administrators."
8507
+ },
8532
8508
  "204": {
8533
8509
  "description": "Member did not exist in the organization."
8534
8510
  },
@@ -14835,9 +14811,8 @@
14835
14811
  "type": "string"
14836
14812
  },
14837
14813
  "goal": {
14838
- "type": "string",
14839
- "maxLength": 1024,
14840
- "description": "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.\n"
14814
+ "description": "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.\n",
14815
+ "$ref": "#/components/schemas/AgentGoal"
14841
14816
  }
14842
14817
  }
14843
14818
  },
@@ -22416,6 +22391,16 @@
22416
22391
  "github-legacy"
22417
22392
  ]
22418
22393
  },
22394
+ "GitSyncOperationState": {
22395
+ "type": "string",
22396
+ "description": "* `running`: The operation is still running\n* `failure`: The operation failed\n* `success`: The operation was successful\n* `timeout`: The operation timed out\n",
22397
+ "enum": [
22398
+ "running",
22399
+ "failure",
22400
+ "success",
22401
+ "timeout"
22402
+ ]
22403
+ },
22419
22404
  "GitSyncState": {
22420
22405
  "type": "object",
22421
22406
  "properties": {
@@ -22442,6 +22427,18 @@
22442
22427
  "type": "string",
22443
22428
  "description": "The URL to the repository tree, used when rendering public content."
22444
22429
  },
22430
+ "operation": {
22431
+ "type": "object",
22432
+ "description": "The latest operation on the Git Sync installation.",
22433
+ "properties": {
22434
+ "state": {
22435
+ "$ref": "#/components/schemas/GitSyncOperationState"
22436
+ }
22437
+ },
22438
+ "required": [
22439
+ "state"
22440
+ ]
22441
+ },
22445
22442
  "updatedAt": {
22446
22443
  "description": "When the Git provider details were last updated",
22447
22444
  "$ref": "#/components/schemas/Timestamp"
@@ -23127,6 +23124,7 @@
23127
23124
  },
23128
23125
  "gitInfo": {
23129
23126
  "description": "Optional metadata to store on the space about the Git provider",
23127
+ "deprecated": true,
23130
23128
  "$ref": "#/components/schemas/UpdateSpaceGitInfo"
23131
23129
  }
23132
23130
  },
@@ -23174,8 +23172,13 @@
23174
23172
  "force": {
23175
23173
  "type": "boolean"
23176
23174
  },
23175
+ "standalone": {
23176
+ "type": "boolean",
23177
+ "description": "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.\n"
23178
+ },
23177
23179
  "gitInfo": {
23178
23180
  "description": "Optional metadata to store on the space about the Git provider",
23181
+ "deprecated": true,
23179
23182
  "$ref": "#/components/schemas/UpdateSpaceGitInfo"
23180
23183
  }
23181
23184
  },
@@ -23351,6 +23354,11 @@
23351
23354
  "updatedAt": {
23352
23355
  "description": "When the page was last edited. Only present if page has been edited at least once.",
23353
23356
  "$ref": "#/components/schemas/Timestamp"
23357
+ },
23358
+ "condition": {
23359
+ "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).",
23360
+ "type": "string",
23361
+ "minLength": 1
23354
23362
  }
23355
23363
  },
23356
23364
  "required": [
@@ -25605,6 +25613,16 @@
25605
25613
  },
25606
25614
  "openInAIProviders": {
25607
25615
  "type": "boolean"
25616
+ },
25617
+ "defaultExpanded": {
25618
+ "type": "string",
25619
+ "default": "hidden",
25620
+ "description": "Controls how much of the prompt content is visible by default.",
25621
+ "enum": [
25622
+ "hidden",
25623
+ "partial",
25624
+ "full"
25625
+ ]
25608
25626
  }
25609
25627
  },
25610
25628
  "required": [
@@ -30349,29 +30367,75 @@
30349
30367
  }
30350
30368
  ]
30351
30369
  },
30352
- "ChangeRequestContentChangeUpdatePage": {
30370
+ "RevisionPageUpdate": {
30353
30371
  "type": "object",
30354
- "description": "Replace the document of an existing page with another document.",
30355
- "required": [
30356
- "operation",
30357
- "page",
30358
- "document"
30359
- ],
30372
+ "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.",
30360
30373
  "properties": {
30361
- "operation": {
30374
+ "title": {
30362
30375
  "type": "string",
30363
- "enum": [
30364
- "update_page"
30365
- ]
30376
+ "minLength": 1,
30377
+ "description": "Title of the page."
30366
30378
  },
30367
- "page": {
30379
+ "emoji": {
30380
+ "description": "Emoji of the page. Set to an empty string to remove it.",
30381
+ "$ref": "#/components/schemas/Emoji"
30382
+ },
30383
+ "icon": {
30384
+ "description": "Icon of the page. Set to an empty string to remove it.",
30385
+ "$ref": "#/components/schemas/Icon"
30386
+ },
30387
+ "description": {
30368
30388
  "type": "string",
30369
- "description": "ID of the page whose content should be updated."
30389
+ "description": "Description of the page."
30370
30390
  },
30371
- "document": {
30372
- "$ref": "#/components/schemas/Document"
30391
+ "hidden": {
30392
+ "type": "boolean",
30393
+ "description": "If true, the page is not displayed in the navigation, while still being accessible."
30394
+ },
30395
+ "noIndex": {
30396
+ "type": "boolean",
30397
+ "description": "If true, the page is not indexable in the search and ask features."
30398
+ },
30399
+ "noRobotsIndex": {
30400
+ "type": "boolean",
30401
+ "description": "If true, the page is not indexable by search engine robots."
30402
+ },
30403
+ "condition": {
30404
+ "type": "string",
30405
+ "description": "Adaptive-content condition controlling whether the page is shown to a visitor. Set to an empty string to remove the condition."
30373
30406
  }
30374
- },
30407
+ }
30408
+ },
30409
+ "ChangeRequestContentChangeUpdatePage": {
30410
+ "description": "Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed.",
30411
+ "allOf": [
30412
+ {
30413
+ "$ref": "#/components/schemas/RevisionPageUpdate"
30414
+ },
30415
+ {
30416
+ "type": "object",
30417
+ "required": [
30418
+ "operation",
30419
+ "page"
30420
+ ],
30421
+ "properties": {
30422
+ "operation": {
30423
+ "type": "string",
30424
+ "enum": [
30425
+ "update_page"
30426
+ ]
30427
+ },
30428
+ "page": {
30429
+ "type": "string",
30430
+ "description": "ID of the page to update."
30431
+ },
30432
+ "document": {
30433
+ "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.",
30434
+ "$ref": "#/components/schemas/Document"
30435
+ }
30436
+ }
30437
+ }
30438
+ ],
30375
30439
  "example": {
30376
30440
  "operation": "update_page",
30377
30441
  "page": "page_id",
@@ -30381,37 +30445,41 @@
30381
30445
  }
30382
30446
  },
30383
30447
  "ChangeRequestContentChangeInsertPage": {
30384
- "type": "object",
30385
30448
  "description": "Insert a new page into the change request.",
30386
- "required": [
30387
- "operation",
30388
- "title",
30389
- "document"
30390
- ],
30391
- "properties": {
30392
- "operation": {
30393
- "type": "string",
30394
- "enum": [
30395
- "insert_page"
30396
- ]
30397
- },
30398
- "title": {
30399
- "type": "string",
30400
- "description": "Title of the new page."
30401
- },
30402
- "into": {
30403
- "type": "string",
30404
- "description": "ID of the parent page to insert the new page into. If omitted, the page is inserted as a root page."
30405
- },
30406
- "at": {
30407
- "type": "integer",
30408
- "minimum": 0,
30409
- "description": "Zero-based index to insert the page at among its siblings. If omitted, the page is appended at the end."
30449
+ "allOf": [
30450
+ {
30451
+ "$ref": "#/components/schemas/RevisionPageUpdate"
30410
30452
  },
30411
- "document": {
30412
- "$ref": "#/components/schemas/Document"
30453
+ {
30454
+ "type": "object",
30455
+ "required": [
30456
+ "operation",
30457
+ "title",
30458
+ "document"
30459
+ ],
30460
+ "properties": {
30461
+ "operation": {
30462
+ "type": "string",
30463
+ "enum": [
30464
+ "insert_page"
30465
+ ]
30466
+ },
30467
+ "into": {
30468
+ "type": "string",
30469
+ "description": "ID of the parent page to insert the new page into. If omitted, the page is inserted as a root page."
30470
+ },
30471
+ "at": {
30472
+ "type": "integer",
30473
+ "minimum": 0,
30474
+ "description": "Zero-based index to insert the page at among its siblings. If omitted, the page is appended at the end."
30475
+ },
30476
+ "document": {
30477
+ "description": "Document for the new page. When provided as markdown, its frontmatter is read to set the page metadata.",
30478
+ "$ref": "#/components/schemas/Document"
30479
+ }
30480
+ }
30413
30481
  }
30414
- },
30482
+ ],
30415
30483
  "example": {
30416
30484
  "operation": "insert_page",
30417
30485
  "title": "New page",
@@ -31327,7 +31395,6 @@
31327
31395
  "analytics",
31328
31396
  "collaboration",
31329
31397
  "content",
31330
- "gitsync",
31331
31398
  "marketing",
31332
31399
  "visitor-auth",
31333
31400
  "other"
@@ -40596,6 +40663,42 @@
40596
40663
  "currentSiteSpace": {
40597
40664
  "type": "string",
40598
40665
  "description": "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.\n"
40666
+ },
40667
+ "restrictTo": {
40668
+ "description": "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`.\n",
40669
+ "type": "string",
40670
+ "minLength": 2,
40671
+ "maxLength": 1,
40672
+ "x-typescript": "never"
40673
+ }
40674
+ }
40675
+ },
40676
+ {
40677
+ "type": "object",
40678
+ "required": [
40679
+ "mode",
40680
+ "currentSiteSpace",
40681
+ "restrictTo"
40682
+ ],
40683
+ "properties": {
40684
+ "mode": {
40685
+ "description": "Search a subset of the default scope of the site, relative to the current site space.\n",
40686
+ "type": "string",
40687
+ "enum": [
40688
+ "default"
40689
+ ]
40690
+ },
40691
+ "currentSiteSpace": {
40692
+ "type": "string",
40693
+ "description": "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.\n"
40694
+ },
40695
+ "restrictTo": {
40696
+ "type": "string",
40697
+ "enum": [
40698
+ "currentSiteSpace",
40699
+ "otherSiteSpaces"
40700
+ ],
40701
+ "description": "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.\n"
40599
40702
  }
40600
40703
  }
40601
40704
  },
@@ -40678,6 +40781,11 @@
40678
40781
  "url"
40679
40782
  ]
40680
40783
  },
40784
+ "AgentGoal": {
40785
+ "type": "string",
40786
+ "maxLength": 1024,
40787
+ "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."
40788
+ },
40681
40789
  "SiteInsightsSession": {
40682
40790
  "type": "object",
40683
40791
  "description": "Identifiers for a GitBook site session, used for analytics and adaptive content.",
@@ -40722,9 +40830,12 @@
40722
40830
  "builtin:github-discussions",
40723
40831
  "builtin:github-issues",
40724
40832
  "builtin:intercom",
40833
+ "builtin:front",
40725
40834
  "builtin:zendesk",
40726
40835
  "builtin:zoho-desk",
40836
+ "builtin:freshdesk",
40727
40837
  "builtin:pylon",
40838
+ "builtin:hubspot",
40728
40839
  "builtin:linear",
40729
40840
  "builtin:jira"
40730
40841
  ]
@@ -41609,6 +41720,33 @@
41609
41720
  "setupSettings"
41610
41721
  ]
41611
41722
  },
41723
+ {
41724
+ "type": "object",
41725
+ "properties": {
41726
+ "connector": {
41727
+ "type": "string",
41728
+ "enum": [
41729
+ "builtin:front"
41730
+ ]
41731
+ },
41732
+ "setupSettings": {
41733
+ "type": "object",
41734
+ "properties": {
41735
+ "token": {
41736
+ "type": "string",
41737
+ "minLength": 1
41738
+ }
41739
+ },
41740
+ "required": [
41741
+ "token"
41742
+ ]
41743
+ }
41744
+ },
41745
+ "required": [
41746
+ "connector",
41747
+ "setupSettings"
41748
+ ]
41749
+ },
41612
41750
  {
41613
41751
  "type": "object",
41614
41752
  "properties": {
@@ -41695,6 +41833,40 @@
41695
41833
  "setupSettings"
41696
41834
  ]
41697
41835
  },
41836
+ {
41837
+ "type": "object",
41838
+ "properties": {
41839
+ "connector": {
41840
+ "type": "string",
41841
+ "enum": [
41842
+ "builtin:freshdesk"
41843
+ ]
41844
+ },
41845
+ "setupSettings": {
41846
+ "type": "object",
41847
+ "properties": {
41848
+ "domain": {
41849
+ "type": "string",
41850
+ "minLength": 1,
41851
+ "description": "Freshdesk domain hosting the account, e.g. `mycompany.freshdesk.com` or just `mycompany`. Tickets and the API are scoped by this domain."
41852
+ },
41853
+ "apiKey": {
41854
+ "type": "string",
41855
+ "minLength": 1,
41856
+ "description": "Freshdesk API key with permission to read tickets. Sent as HTTP Basic auth and redacted when read back."
41857
+ }
41858
+ },
41859
+ "required": [
41860
+ "domain",
41861
+ "apiKey"
41862
+ ]
41863
+ }
41864
+ },
41865
+ "required": [
41866
+ "connector",
41867
+ "setupSettings"
41868
+ ]
41869
+ },
41698
41870
  {
41699
41871
  "type": "object",
41700
41872
  "properties": {
@@ -41722,6 +41894,33 @@
41722
41894
  "setupSettings"
41723
41895
  ]
41724
41896
  },
41897
+ {
41898
+ "type": "object",
41899
+ "properties": {
41900
+ "connector": {
41901
+ "type": "string",
41902
+ "enum": [
41903
+ "builtin:hubspot"
41904
+ ]
41905
+ },
41906
+ "setupSettings": {
41907
+ "type": "object",
41908
+ "properties": {
41909
+ "token": {
41910
+ "type": "string",
41911
+ "minLength": 1
41912
+ }
41913
+ },
41914
+ "required": [
41915
+ "token"
41916
+ ]
41917
+ }
41918
+ },
41919
+ "required": [
41920
+ "connector",
41921
+ "setupSettings"
41922
+ ]
41923
+ },
41725
41924
  {
41726
41925
  "type": "object",
41727
41926
  "properties": {
@@ -43510,6 +43709,26 @@
43510
43709
  "pageId"
43511
43710
  ]
43512
43711
  },
43712
+ "comments": {
43713
+ "type": "array",
43714
+ "description": "Comments on the content the user is referring to in the message.",
43715
+ "items": {
43716
+ "type": "object",
43717
+ "properties": {
43718
+ "id": {
43719
+ "type": "string",
43720
+ "description": "ID of the comment."
43721
+ },
43722
+ "content": {
43723
+ "type": "string",
43724
+ "description": "Snapshot of the comment for display."
43725
+ }
43726
+ },
43727
+ "required": [
43728
+ "id"
43729
+ ]
43730
+ }
43731
+ },
43513
43732
  "selection": {
43514
43733
  "type": "object",
43515
43734
  "description": "Range of the current selection in a document.",
@@ -49645,15 +49864,6 @@
49645
49864
  "tag_edited"
49646
49865
  ]
49647
49866
  },
49648
- "GitSyncOperationState": {
49649
- "type": "string",
49650
- "description": "* `running`: The operation is still running\n* `failure`: The operation failed\n* `success`: The operation was successful\n",
49651
- "enum": [
49652
- "running",
49653
- "failure",
49654
- "success"
49655
- ]
49656
- },
49657
49867
  "GitSyncOperationDirection": {
49658
49868
  "type": "string",
49659
49869
  "enum": [