@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.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",
|
|
@@ -2560,7 +2533,12 @@
|
|
|
2560
2533
|
"$ref": "#/components/schemas/JSONDocument"
|
|
2561
2534
|
},
|
|
2562
2535
|
"links": {
|
|
2563
|
-
"
|
|
2536
|
+
"type": "array",
|
|
2537
|
+
"description": "External links associated with the change request.",
|
|
2538
|
+
"items": {
|
|
2539
|
+
"$ref": "#/components/schemas/ChangeRequestLinkInput"
|
|
2540
|
+
},
|
|
2541
|
+
"maxItems": 10
|
|
2564
2542
|
},
|
|
2565
2543
|
"status": {
|
|
2566
2544
|
"type": "string",
|
|
@@ -3889,7 +3867,7 @@
|
|
|
3889
3867
|
"post": {
|
|
3890
3868
|
"operationId": "updateChangeRequestContent",
|
|
3891
3869
|
"summary": "Apply a batch of content changes to a change request",
|
|
3892
|
-
"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.",
|
|
3893
3871
|
"x-gitbook-mcp": true,
|
|
3894
3872
|
"tags": [
|
|
3895
3873
|
"change-request-content"
|
|
@@ -8260,6 +8238,82 @@
|
|
|
8260
8238
|
}
|
|
8261
8239
|
}
|
|
8262
8240
|
},
|
|
8241
|
+
"/orgs/{organizationId}/styleguides": {
|
|
8242
|
+
"get": {
|
|
8243
|
+
"operationId": "listOrganizationStyleguides",
|
|
8244
|
+
"summary": "List all styleguides in an organization",
|
|
8245
|
+
"description": "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.\n",
|
|
8246
|
+
"x-gitbook-mcp": true,
|
|
8247
|
+
"tags": [
|
|
8248
|
+
"organizations"
|
|
8249
|
+
],
|
|
8250
|
+
"security": [
|
|
8251
|
+
{
|
|
8252
|
+
"user": []
|
|
8253
|
+
},
|
|
8254
|
+
{
|
|
8255
|
+
"oauth": [
|
|
8256
|
+
"site:read"
|
|
8257
|
+
]
|
|
8258
|
+
}
|
|
8259
|
+
],
|
|
8260
|
+
"parameters": [
|
|
8261
|
+
{
|
|
8262
|
+
"$ref": "#/components/parameters/organizationId"
|
|
8263
|
+
}
|
|
8264
|
+
],
|
|
8265
|
+
"responses": {
|
|
8266
|
+
"200": {
|
|
8267
|
+
"description": "OK",
|
|
8268
|
+
"content": {
|
|
8269
|
+
"application/json": {
|
|
8270
|
+
"schema": {
|
|
8271
|
+
"$ref": "#/components/schemas/OrganizationStyleguides"
|
|
8272
|
+
}
|
|
8273
|
+
}
|
|
8274
|
+
}
|
|
8275
|
+
}
|
|
8276
|
+
}
|
|
8277
|
+
}
|
|
8278
|
+
},
|
|
8279
|
+
"/orgs/{organizationId}/styleguide-templates": {
|
|
8280
|
+
"get": {
|
|
8281
|
+
"operationId": "listStyleguideTemplates",
|
|
8282
|
+
"summary": "List all built-in styleguide templates",
|
|
8283
|
+
"description": "Lists the built-in styleguide starter templates that can seed a new styleguide, including the markdown content used to render each template's preview.\n",
|
|
8284
|
+
"x-gitbook-mcp": true,
|
|
8285
|
+
"tags": [
|
|
8286
|
+
"organizations"
|
|
8287
|
+
],
|
|
8288
|
+
"security": [
|
|
8289
|
+
{
|
|
8290
|
+
"user": []
|
|
8291
|
+
},
|
|
8292
|
+
{
|
|
8293
|
+
"oauth": [
|
|
8294
|
+
"site:read"
|
|
8295
|
+
]
|
|
8296
|
+
}
|
|
8297
|
+
],
|
|
8298
|
+
"parameters": [
|
|
8299
|
+
{
|
|
8300
|
+
"$ref": "#/components/parameters/organizationId"
|
|
8301
|
+
}
|
|
8302
|
+
],
|
|
8303
|
+
"responses": {
|
|
8304
|
+
"200": {
|
|
8305
|
+
"description": "OK",
|
|
8306
|
+
"content": {
|
|
8307
|
+
"application/json": {
|
|
8308
|
+
"schema": {
|
|
8309
|
+
"$ref": "#/components/schemas/StyleguideTemplates"
|
|
8310
|
+
}
|
|
8311
|
+
}
|
|
8312
|
+
}
|
|
8313
|
+
}
|
|
8314
|
+
}
|
|
8315
|
+
}
|
|
8316
|
+
},
|
|
8263
8317
|
"/orgs/{organizationId}/members": {
|
|
8264
8318
|
"get": {
|
|
8265
8319
|
"operationId": "listMembersInOrganizationById",
|
|
@@ -8425,7 +8479,7 @@
|
|
|
8425
8479
|
},
|
|
8426
8480
|
"delete": {
|
|
8427
8481
|
"operationId": "removeMemberFromOrganizationById",
|
|
8428
|
-
"summary": "
|
|
8482
|
+
"summary": "Remove an organization member or request an organization admin to do it",
|
|
8429
8483
|
"tags": [
|
|
8430
8484
|
"organization-members"
|
|
8431
8485
|
],
|
|
@@ -8448,6 +8502,9 @@
|
|
|
8448
8502
|
}
|
|
8449
8503
|
],
|
|
8450
8504
|
"responses": {
|
|
8505
|
+
"202": {
|
|
8506
|
+
"description": "The removal request was sent to the organization administrators."
|
|
8507
|
+
},
|
|
8451
8508
|
"204": {
|
|
8452
8509
|
"description": "Member did not exist in the organization."
|
|
8453
8510
|
},
|
|
@@ -14754,9 +14811,8 @@
|
|
|
14754
14811
|
"type": "string"
|
|
14755
14812
|
},
|
|
14756
14813
|
"goal": {
|
|
14757
|
-
"
|
|
14758
|
-
"
|
|
14759
|
-
"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"
|
|
14760
14816
|
}
|
|
14761
14817
|
}
|
|
14762
14818
|
},
|
|
@@ -22335,6 +22391,16 @@
|
|
|
22335
22391
|
"github-legacy"
|
|
22336
22392
|
]
|
|
22337
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
|
+
},
|
|
22338
22404
|
"GitSyncState": {
|
|
22339
22405
|
"type": "object",
|
|
22340
22406
|
"properties": {
|
|
@@ -22361,6 +22427,18 @@
|
|
|
22361
22427
|
"type": "string",
|
|
22362
22428
|
"description": "The URL to the repository tree, used when rendering public content."
|
|
22363
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
|
+
},
|
|
22364
22442
|
"updatedAt": {
|
|
22365
22443
|
"description": "When the Git provider details were last updated",
|
|
22366
22444
|
"$ref": "#/components/schemas/Timestamp"
|
|
@@ -23046,6 +23124,7 @@
|
|
|
23046
23124
|
},
|
|
23047
23125
|
"gitInfo": {
|
|
23048
23126
|
"description": "Optional metadata to store on the space about the Git provider",
|
|
23127
|
+
"deprecated": true,
|
|
23049
23128
|
"$ref": "#/components/schemas/UpdateSpaceGitInfo"
|
|
23050
23129
|
}
|
|
23051
23130
|
},
|
|
@@ -23093,8 +23172,13 @@
|
|
|
23093
23172
|
"force": {
|
|
23094
23173
|
"type": "boolean"
|
|
23095
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
|
+
},
|
|
23096
23179
|
"gitInfo": {
|
|
23097
23180
|
"description": "Optional metadata to store on the space about the Git provider",
|
|
23181
|
+
"deprecated": true,
|
|
23098
23182
|
"$ref": "#/components/schemas/UpdateSpaceGitInfo"
|
|
23099
23183
|
}
|
|
23100
23184
|
},
|
|
@@ -23270,6 +23354,11 @@
|
|
|
23270
23354
|
"updatedAt": {
|
|
23271
23355
|
"description": "When the page was last edited. Only present if page has been edited at least once.",
|
|
23272
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
|
|
23273
23362
|
}
|
|
23274
23363
|
},
|
|
23275
23364
|
"required": [
|
|
@@ -24749,6 +24838,10 @@
|
|
|
24749
24838
|
"hideColumnTitle": {
|
|
24750
24839
|
"type": "boolean",
|
|
24751
24840
|
"description": "Should we display the column title or not"
|
|
24841
|
+
},
|
|
24842
|
+
"wrap": {
|
|
24843
|
+
"type": "boolean",
|
|
24844
|
+
"description": "Whether the cards wrap onto multiple rows (true, the default) or are laid out in a single horizontally-scrolling carousel row (false)."
|
|
24752
24845
|
}
|
|
24753
24846
|
},
|
|
24754
24847
|
"required": [
|
|
@@ -25520,6 +25613,16 @@
|
|
|
25520
25613
|
},
|
|
25521
25614
|
"openInAIProviders": {
|
|
25522
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
|
+
]
|
|
25523
25626
|
}
|
|
25524
25627
|
},
|
|
25525
25628
|
"required": [
|
|
@@ -28394,7 +28497,16 @@
|
|
|
28394
28497
|
"description": "Size of the cover image.",
|
|
28395
28498
|
"enum": [
|
|
28396
28499
|
"hero",
|
|
28397
|
-
"full"
|
|
28500
|
+
"full",
|
|
28501
|
+
"background"
|
|
28502
|
+
]
|
|
28503
|
+
},
|
|
28504
|
+
"RevisionPageLayoutOptionsCoverMask": {
|
|
28505
|
+
"type": "string",
|
|
28506
|
+
"description": "Mask applied to the cover image.",
|
|
28507
|
+
"enum": [
|
|
28508
|
+
"none",
|
|
28509
|
+
"radial"
|
|
28398
28510
|
]
|
|
28399
28511
|
},
|
|
28400
28512
|
"RevisionPageLayoutOptions": {
|
|
@@ -28410,6 +28522,9 @@
|
|
|
28410
28522
|
"coverSize": {
|
|
28411
28523
|
"$ref": "#/components/schemas/RevisionPageLayoutOptionsCoverSize"
|
|
28412
28524
|
},
|
|
28525
|
+
"coverMask": {
|
|
28526
|
+
"$ref": "#/components/schemas/RevisionPageLayoutOptionsCoverMask"
|
|
28527
|
+
},
|
|
28413
28528
|
"title": {
|
|
28414
28529
|
"type": "boolean",
|
|
28415
28530
|
"description": "Should the title be visible?"
|
|
@@ -28447,6 +28562,7 @@
|
|
|
28447
28562
|
"width",
|
|
28448
28563
|
"cover",
|
|
28449
28564
|
"coverSize",
|
|
28565
|
+
"coverMask",
|
|
28450
28566
|
"title",
|
|
28451
28567
|
"description",
|
|
28452
28568
|
"tableOfContents",
|
|
@@ -28457,6 +28573,13 @@
|
|
|
28457
28573
|
"actions"
|
|
28458
28574
|
]
|
|
28459
28575
|
},
|
|
28576
|
+
"RevisionPageDocumentCoverTextColor": {
|
|
28577
|
+
"type": "string",
|
|
28578
|
+
"enum": [
|
|
28579
|
+
"black",
|
|
28580
|
+
"white"
|
|
28581
|
+
]
|
|
28582
|
+
},
|
|
28460
28583
|
"RevisionPageDocumentCover": {
|
|
28461
28584
|
"type": "object",
|
|
28462
28585
|
"properties": {
|
|
@@ -28482,6 +28605,14 @@
|
|
|
28482
28605
|
}
|
|
28483
28606
|
]
|
|
28484
28607
|
},
|
|
28608
|
+
"textColor": {
|
|
28609
|
+
"description": "Text color to use on top of the cover image when in background mode.",
|
|
28610
|
+
"$ref": "#/components/schemas/RevisionPageDocumentCoverTextColor"
|
|
28611
|
+
},
|
|
28612
|
+
"textColorDark": {
|
|
28613
|
+
"description": "Text color to use on top of the dark mode cover image when in background mode.",
|
|
28614
|
+
"$ref": "#/components/schemas/RevisionPageDocumentCoverTextColor"
|
|
28615
|
+
},
|
|
28485
28616
|
"yPos": {
|
|
28486
28617
|
"description": "Vertical position of the cover image.",
|
|
28487
28618
|
"type": "number",
|
|
@@ -29143,8 +29274,9 @@
|
|
|
29143
29274
|
"description": "Optional title to display for the link.",
|
|
29144
29275
|
"maxLength": 128
|
|
29145
29276
|
},
|
|
29146
|
-
"
|
|
29277
|
+
"ChangeRequestLinkInput": {
|
|
29147
29278
|
"type": "object",
|
|
29279
|
+
"description": "External link associated with a change request.",
|
|
29148
29280
|
"properties": {
|
|
29149
29281
|
"ref": {
|
|
29150
29282
|
"$ref": "#/components/schemas/ContentRefURL"
|
|
@@ -29157,6 +29289,117 @@
|
|
|
29157
29289
|
"ref"
|
|
29158
29290
|
]
|
|
29159
29291
|
},
|
|
29292
|
+
"ChangeRequestLinkExpanded": {
|
|
29293
|
+
"description": "External ticket data resolved for this link by a configured connector.",
|
|
29294
|
+
"oneOf": [
|
|
29295
|
+
{
|
|
29296
|
+
"type": "object",
|
|
29297
|
+
"description": "An external ticket linked to the change request.",
|
|
29298
|
+
"properties": {
|
|
29299
|
+
"kind": {
|
|
29300
|
+
"type": "string",
|
|
29301
|
+
"enum": [
|
|
29302
|
+
"external-ticket"
|
|
29303
|
+
]
|
|
29304
|
+
},
|
|
29305
|
+
"provider": {
|
|
29306
|
+
"type": "string",
|
|
29307
|
+
"enum": [
|
|
29308
|
+
"jira"
|
|
29309
|
+
]
|
|
29310
|
+
},
|
|
29311
|
+
"state": {
|
|
29312
|
+
"type": "string",
|
|
29313
|
+
"enum": [
|
|
29314
|
+
"connected"
|
|
29315
|
+
]
|
|
29316
|
+
},
|
|
29317
|
+
"key": {
|
|
29318
|
+
"type": "string",
|
|
29319
|
+
"description": "The ticket's provider-specific key."
|
|
29320
|
+
},
|
|
29321
|
+
"url": {
|
|
29322
|
+
"type": "string",
|
|
29323
|
+
"format": "uri",
|
|
29324
|
+
"description": "URL to open the ticket."
|
|
29325
|
+
},
|
|
29326
|
+
"status": {
|
|
29327
|
+
"type": "object",
|
|
29328
|
+
"properties": {
|
|
29329
|
+
"id": {
|
|
29330
|
+
"type": "string"
|
|
29331
|
+
},
|
|
29332
|
+
"name": {
|
|
29333
|
+
"type": "string"
|
|
29334
|
+
}
|
|
29335
|
+
},
|
|
29336
|
+
"required": [
|
|
29337
|
+
"id",
|
|
29338
|
+
"name"
|
|
29339
|
+
]
|
|
29340
|
+
},
|
|
29341
|
+
"summary": {
|
|
29342
|
+
"type": "string",
|
|
29343
|
+
"description": "The ticket's summary."
|
|
29344
|
+
}
|
|
29345
|
+
},
|
|
29346
|
+
"required": [
|
|
29347
|
+
"kind",
|
|
29348
|
+
"provider",
|
|
29349
|
+
"state",
|
|
29350
|
+
"key",
|
|
29351
|
+
"url",
|
|
29352
|
+
"status",
|
|
29353
|
+
"summary"
|
|
29354
|
+
]
|
|
29355
|
+
},
|
|
29356
|
+
{
|
|
29357
|
+
"type": "object",
|
|
29358
|
+
"description": "An external ticket whose current data could not be loaded.",
|
|
29359
|
+
"properties": {
|
|
29360
|
+
"kind": {
|
|
29361
|
+
"type": "string",
|
|
29362
|
+
"enum": [
|
|
29363
|
+
"external-ticket"
|
|
29364
|
+
]
|
|
29365
|
+
},
|
|
29366
|
+
"provider": {
|
|
29367
|
+
"type": "string",
|
|
29368
|
+
"enum": [
|
|
29369
|
+
"jira"
|
|
29370
|
+
]
|
|
29371
|
+
},
|
|
29372
|
+
"state": {
|
|
29373
|
+
"type": "string",
|
|
29374
|
+
"enum": [
|
|
29375
|
+
"error"
|
|
29376
|
+
]
|
|
29377
|
+
}
|
|
29378
|
+
},
|
|
29379
|
+
"required": [
|
|
29380
|
+
"kind",
|
|
29381
|
+
"provider",
|
|
29382
|
+
"state"
|
|
29383
|
+
]
|
|
29384
|
+
}
|
|
29385
|
+
]
|
|
29386
|
+
},
|
|
29387
|
+
"ChangeRequestLink": {
|
|
29388
|
+
"allOf": [
|
|
29389
|
+
{
|
|
29390
|
+
"$ref": "#/components/schemas/ChangeRequestLinkInput"
|
|
29391
|
+
},
|
|
29392
|
+
{
|
|
29393
|
+
"type": "object",
|
|
29394
|
+
"properties": {
|
|
29395
|
+
"expanded": {
|
|
29396
|
+
"$ref": "#/components/schemas/ChangeRequestLinkExpanded",
|
|
29397
|
+
"readOnly": true
|
|
29398
|
+
}
|
|
29399
|
+
}
|
|
29400
|
+
}
|
|
29401
|
+
]
|
|
29402
|
+
},
|
|
29160
29403
|
"ChangeRequestLinks": {
|
|
29161
29404
|
"type": "array",
|
|
29162
29405
|
"description": "External links associated with the change request.",
|
|
@@ -30124,29 +30367,75 @@
|
|
|
30124
30367
|
}
|
|
30125
30368
|
]
|
|
30126
30369
|
},
|
|
30127
|
-
"
|
|
30370
|
+
"RevisionPageUpdate": {
|
|
30128
30371
|
"type": "object",
|
|
30129
|
-
"description": "
|
|
30130
|
-
"required": [
|
|
30131
|
-
"operation",
|
|
30132
|
-
"page",
|
|
30133
|
-
"document"
|
|
30134
|
-
],
|
|
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.",
|
|
30135
30373
|
"properties": {
|
|
30136
|
-
"
|
|
30374
|
+
"title": {
|
|
30137
30375
|
"type": "string",
|
|
30138
|
-
"
|
|
30139
|
-
|
|
30140
|
-
]
|
|
30376
|
+
"minLength": 1,
|
|
30377
|
+
"description": "Title of the page."
|
|
30141
30378
|
},
|
|
30142
|
-
"
|
|
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": {
|
|
30143
30388
|
"type": "string",
|
|
30144
|
-
"description": "
|
|
30389
|
+
"description": "Description of the page."
|
|
30145
30390
|
},
|
|
30146
|
-
"
|
|
30147
|
-
"
|
|
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."
|
|
30148
30406
|
}
|
|
30149
|
-
}
|
|
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
|
+
],
|
|
30150
30439
|
"example": {
|
|
30151
30440
|
"operation": "update_page",
|
|
30152
30441
|
"page": "page_id",
|
|
@@ -30156,37 +30445,41 @@
|
|
|
30156
30445
|
}
|
|
30157
30446
|
},
|
|
30158
30447
|
"ChangeRequestContentChangeInsertPage": {
|
|
30159
|
-
"type": "object",
|
|
30160
30448
|
"description": "Insert a new page into the change request.",
|
|
30161
|
-
"
|
|
30162
|
-
|
|
30163
|
-
|
|
30164
|
-
"document"
|
|
30165
|
-
],
|
|
30166
|
-
"properties": {
|
|
30167
|
-
"operation": {
|
|
30168
|
-
"type": "string",
|
|
30169
|
-
"enum": [
|
|
30170
|
-
"insert_page"
|
|
30171
|
-
]
|
|
30172
|
-
},
|
|
30173
|
-
"title": {
|
|
30174
|
-
"type": "string",
|
|
30175
|
-
"description": "Title of the new page."
|
|
30176
|
-
},
|
|
30177
|
-
"into": {
|
|
30178
|
-
"type": "string",
|
|
30179
|
-
"description": "ID of the parent page to insert the new page into. If omitted, the page is inserted as a root page."
|
|
30180
|
-
},
|
|
30181
|
-
"at": {
|
|
30182
|
-
"type": "integer",
|
|
30183
|
-
"minimum": 0,
|
|
30184
|
-
"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"
|
|
30185
30452
|
},
|
|
30186
|
-
|
|
30187
|
-
"
|
|
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
|
+
}
|
|
30188
30481
|
}
|
|
30189
|
-
|
|
30482
|
+
],
|
|
30190
30483
|
"example": {
|
|
30191
30484
|
"operation": "insert_page",
|
|
30192
30485
|
"title": "New page",
|
|
@@ -31102,7 +31395,6 @@
|
|
|
31102
31395
|
"analytics",
|
|
31103
31396
|
"collaboration",
|
|
31104
31397
|
"content",
|
|
31105
|
-
"gitsync",
|
|
31106
31398
|
"marketing",
|
|
31107
31399
|
"visitor-auth",
|
|
31108
31400
|
"other"
|
|
@@ -38754,6 +39046,10 @@
|
|
|
38754
39046
|
"spaceId": {
|
|
38755
39047
|
"type": "string",
|
|
38756
39048
|
"description": "Unique identifier of the space targeted by the Git Sync installation."
|
|
39049
|
+
},
|
|
39050
|
+
"siteId": {
|
|
39051
|
+
"type": "string",
|
|
39052
|
+
"description": "Unique identifier of the site whose Git Sync installation should manage the space installation. Omit to install Git Sync directly on the space."
|
|
38757
39053
|
}
|
|
38758
39054
|
},
|
|
38759
39055
|
"required": [
|
|
@@ -40367,6 +40663,42 @@
|
|
|
40367
40663
|
"currentSiteSpace": {
|
|
40368
40664
|
"type": "string",
|
|
40369
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"
|
|
40370
40702
|
}
|
|
40371
40703
|
}
|
|
40372
40704
|
},
|
|
@@ -40449,6 +40781,11 @@
|
|
|
40449
40781
|
"url"
|
|
40450
40782
|
]
|
|
40451
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
|
+
},
|
|
40452
40789
|
"SiteInsightsSession": {
|
|
40453
40790
|
"type": "object",
|
|
40454
40791
|
"description": "Identifiers for a GitBook site session, used for analytics and adaptive content.",
|
|
@@ -40493,8 +40830,12 @@
|
|
|
40493
40830
|
"builtin:github-discussions",
|
|
40494
40831
|
"builtin:github-issues",
|
|
40495
40832
|
"builtin:intercom",
|
|
40833
|
+
"builtin:front",
|
|
40496
40834
|
"builtin:zendesk",
|
|
40835
|
+
"builtin:zoho-desk",
|
|
40836
|
+
"builtin:freshdesk",
|
|
40497
40837
|
"builtin:pylon",
|
|
40838
|
+
"builtin:hubspot",
|
|
40498
40839
|
"builtin:linear",
|
|
40499
40840
|
"builtin:jira"
|
|
40500
40841
|
]
|
|
@@ -41379,6 +41720,33 @@
|
|
|
41379
41720
|
"setupSettings"
|
|
41380
41721
|
]
|
|
41381
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
|
+
},
|
|
41382
41750
|
{
|
|
41383
41751
|
"type": "object",
|
|
41384
41752
|
"properties": {
|
|
@@ -41416,6 +41784,89 @@
|
|
|
41416
41784
|
"setupSettings"
|
|
41417
41785
|
]
|
|
41418
41786
|
},
|
|
41787
|
+
{
|
|
41788
|
+
"type": "object",
|
|
41789
|
+
"properties": {
|
|
41790
|
+
"connector": {
|
|
41791
|
+
"type": "string",
|
|
41792
|
+
"enum": [
|
|
41793
|
+
"builtin:zoho-desk"
|
|
41794
|
+
]
|
|
41795
|
+
},
|
|
41796
|
+
"setupSettings": {
|
|
41797
|
+
"type": "object",
|
|
41798
|
+
"properties": {
|
|
41799
|
+
"dataCenter": {
|
|
41800
|
+
"type": "string",
|
|
41801
|
+
"minLength": 1,
|
|
41802
|
+
"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."
|
|
41803
|
+
},
|
|
41804
|
+
"orgId": {
|
|
41805
|
+
"type": "string",
|
|
41806
|
+
"minLength": 1,
|
|
41807
|
+
"description": "Zoho Desk organization id the tickets belong to."
|
|
41808
|
+
},
|
|
41809
|
+
"clientId": {
|
|
41810
|
+
"type": "string",
|
|
41811
|
+
"minLength": 1
|
|
41812
|
+
},
|
|
41813
|
+
"clientSecret": {
|
|
41814
|
+
"type": "string",
|
|
41815
|
+
"minLength": 1
|
|
41816
|
+
},
|
|
41817
|
+
"refreshToken": {
|
|
41818
|
+
"type": "string",
|
|
41819
|
+
"minLength": 1
|
|
41820
|
+
}
|
|
41821
|
+
},
|
|
41822
|
+
"required": [
|
|
41823
|
+
"dataCenter",
|
|
41824
|
+
"orgId",
|
|
41825
|
+
"clientId",
|
|
41826
|
+
"clientSecret",
|
|
41827
|
+
"refreshToken"
|
|
41828
|
+
]
|
|
41829
|
+
}
|
|
41830
|
+
},
|
|
41831
|
+
"required": [
|
|
41832
|
+
"connector",
|
|
41833
|
+
"setupSettings"
|
|
41834
|
+
]
|
|
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
|
+
},
|
|
41419
41870
|
{
|
|
41420
41871
|
"type": "object",
|
|
41421
41872
|
"properties": {
|
|
@@ -41443,6 +41894,33 @@
|
|
|
41443
41894
|
"setupSettings"
|
|
41444
41895
|
]
|
|
41445
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
|
+
},
|
|
41446
41924
|
{
|
|
41447
41925
|
"type": "object",
|
|
41448
41926
|
"properties": {
|
|
@@ -43231,6 +43709,26 @@
|
|
|
43231
43709
|
"pageId"
|
|
43232
43710
|
]
|
|
43233
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
|
+
},
|
|
43234
43732
|
"selection": {
|
|
43235
43733
|
"type": "object",
|
|
43236
43734
|
"description": "Range of the current selection in a document.",
|
|
@@ -49366,15 +49864,6 @@
|
|
|
49366
49864
|
"tag_edited"
|
|
49367
49865
|
]
|
|
49368
49866
|
},
|
|
49369
|
-
"GitSyncOperationState": {
|
|
49370
|
-
"type": "string",
|
|
49371
|
-
"description": "* `running`: The operation is still running\n* `failure`: The operation failed\n* `success`: The operation was successful\n",
|
|
49372
|
-
"enum": [
|
|
49373
|
-
"running",
|
|
49374
|
-
"failure",
|
|
49375
|
-
"success"
|
|
49376
|
-
]
|
|
49377
|
-
},
|
|
49378
49867
|
"GitSyncOperationDirection": {
|
|
49379
49868
|
"type": "string",
|
|
49380
49869
|
"enum": [
|