@gitbook/api 0.143.2 → 0.145.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.yaml CHANGED
@@ -1117,34 +1117,6 @@ paths:
1117
1117
  application/json:
1118
1118
  schema:
1119
1119
  $ref: "#/components/schemas/Revision"
1120
- "/spaces/{spaceId}/content/import":
1121
- post:
1122
- operationId: importContent
1123
- summary: Import content in a space
1124
- tags:
1125
- - space-content
1126
- security:
1127
- - user: []
1128
- parameters:
1129
- - $ref: "#/components/parameters/spaceId"
1130
- responses:
1131
- "201":
1132
- description: Content imported in a new revision
1133
- headers:
1134
- Location:
1135
- description: API URL for the newly created revision
1136
- schema:
1137
- type: string
1138
- content:
1139
- application/json:
1140
- schema:
1141
- $ref: "#/components/schemas/ImportContentResult"
1142
- requestBody:
1143
- required: true
1144
- content:
1145
- application/json:
1146
- schema:
1147
- $ref: "#/components/schemas/ImportContent"
1148
1120
  "/spaces/{spaceId}/content/template":
1149
1121
  post:
1150
1122
  operationId: applyTemplateToSpace
@@ -1358,35 +1330,6 @@ paths:
1358
1330
  type: array
1359
1331
  items:
1360
1332
  $ref: "#/components/schemas/ContentLocation"
1361
- "/spaces/{spaceId}/content/page/{pageId}/import":
1362
- post:
1363
- operationId: importContentInPageById
1364
- summary: Import content into a space page
1365
- tags:
1366
- - space-content
1367
- security:
1368
- - user: []
1369
- parameters:
1370
- - $ref: "#/components/parameters/spaceId"
1371
- - $ref: "#/components/parameters/pageId"
1372
- responses:
1373
- "201":
1374
- description: Content imported in a new revision
1375
- headers:
1376
- Location:
1377
- description: API URL for the newly created revision
1378
- schema:
1379
- type: string
1380
- content:
1381
- application/json:
1382
- schema:
1383
- $ref: "#/components/schemas/ImportContentResult"
1384
- requestBody:
1385
- required: true
1386
- content:
1387
- application/json:
1388
- schema:
1389
- $ref: "#/components/schemas/ImportContent"
1390
1333
  "/spaces/{spaceId}/content/path/{pagePath}":
1391
1334
  get:
1392
1335
  operationId: getPageByPath
@@ -1602,6 +1545,18 @@ paths:
1602
1545
  schema:
1603
1546
  type: string
1604
1547
  description: If defined, only change requests with contributions from this user will be returned.
1548
+ - name: requestedReviewer
1549
+ in: query
1550
+ required: false
1551
+ schema:
1552
+ type: string
1553
+ description: If defined, only change requests with a requested reviewer for this user will be returned.
1554
+ - name: conversationsIssuesCluster
1555
+ in: query
1556
+ required: false
1557
+ schema:
1558
+ type: string
1559
+ description: If defined, only change requests associated with this conversations issues cluster will be returned.
1605
1560
  responses:
1606
1561
  "200":
1607
1562
  description: List of the space's change requests
@@ -1808,6 +1763,29 @@ paths:
1808
1763
  $ref: "#/components/schemas/Document"
1809
1764
  required:
1810
1765
  - status
1766
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/reviews/{reviewId}":
1767
+ get:
1768
+ operationId: getChangeRequestReviewById
1769
+ summary: Get a change request review by its ID
1770
+ tags:
1771
+ - change-requests-reviews
1772
+ security:
1773
+ - user: []
1774
+ parameters:
1775
+ - $ref: "#/components/parameters/spaceId"
1776
+ - $ref: "#/components/parameters/changeRequestId"
1777
+ - $ref: "#/components/parameters/reviewId"
1778
+ - $ref: "#/components/parameters/documentFormat"
1779
+ responses:
1780
+ "200":
1781
+ description: The matching change request review.
1782
+ content:
1783
+ application/json:
1784
+ schema:
1785
+ $ref: "#/components/schemas/ChangeRequestReview"
1786
+ "404":
1787
+ description: The change request review could not be found.
1788
+ $ref: "#/components/responses/NotFoundError"
1811
1789
  "/spaces/{spaceId}/change-requests/{changeRequestId}/requested-reviewers":
1812
1790
  get:
1813
1791
  operationId: getRequestedReviewersByChangeRequestId
@@ -2209,7 +2187,7 @@ paths:
2209
2187
  items:
2210
2188
  type: array
2211
2189
  items:
2212
- $ref: "#/components/schemas/UserContributor"
2190
+ $ref: "#/components/schemas/ChangeRequestUserContributor"
2213
2191
  "404":
2214
2192
  description: The change request could not be found.
2215
2193
  $ref: "#/components/responses/NotFoundError"
@@ -2233,35 +2211,6 @@ paths:
2233
2211
  application/json:
2234
2212
  schema:
2235
2213
  $ref: "#/components/schemas/Revision"
2236
- "/spaces/{spaceId}/change-requests/{changeRequestId}/content/import":
2237
- post:
2238
- operationId: importContentInChangeRequest
2239
- summary: Import content in a change request
2240
- tags:
2241
- - change-request-content
2242
- security:
2243
- - user: []
2244
- parameters:
2245
- - $ref: "#/components/parameters/spaceId"
2246
- - $ref: "#/components/parameters/changeRequestId"
2247
- responses:
2248
- "201":
2249
- description: Content imported in a new revision
2250
- headers:
2251
- Location:
2252
- description: API URL for the newly created revision
2253
- schema:
2254
- type: string
2255
- content:
2256
- application/json:
2257
- schema:
2258
- $ref: "#/components/schemas/ImportContentResult"
2259
- requestBody:
2260
- required: true
2261
- content:
2262
- application/json:
2263
- schema:
2264
- $ref: "#/components/schemas/ImportContent"
2265
2214
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages":
2266
2215
  get:
2267
2216
  operationId: listPagesInChangeRequest
@@ -2458,61 +2407,6 @@ paths:
2458
2407
  type: array
2459
2408
  items:
2460
2409
  $ref: "#/components/schemas/ContentLocation"
2461
- "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/import":
2462
- post:
2463
- operationId: importContentInChangeRequestPageById
2464
- summary: Import content into a change request page
2465
- tags:
2466
- - change-request-content
2467
- security:
2468
- - user: []
2469
- parameters:
2470
- - $ref: "#/components/parameters/spaceId"
2471
- - $ref: "#/components/parameters/changeRequestId"
2472
- - $ref: "#/components/parameters/pageId"
2473
- responses:
2474
- "201":
2475
- description: Content imported in a new revision
2476
- headers:
2477
- Location:
2478
- description: API URL for the newly created revision
2479
- schema:
2480
- type: string
2481
- content:
2482
- application/json:
2483
- schema:
2484
- $ref: "#/components/schemas/ImportContentResult"
2485
- requestBody:
2486
- required: true
2487
- content:
2488
- application/json:
2489
- schema:
2490
- $ref: "#/components/schemas/ImportContent"
2491
- "/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}":
2492
- get:
2493
- operationId: getPageInChangeRequestByPath
2494
- summary: Get a change request page by its path
2495
- tags:
2496
- - change-request-content
2497
- security:
2498
- - user: []
2499
- parameters:
2500
- - $ref: "#/components/parameters/spaceId"
2501
- - $ref: "#/components/parameters/changeRequestId"
2502
- - $ref: "#/components/parameters/pagePath"
2503
- - $ref: "#/components/parameters/documentFormat"
2504
- - $ref: "#/components/parameters/documentEvaluated"
2505
- - $ref: "#/components/parameters/revisionMetadata"
2506
- - $ref: "#/components/parameters/revisionComputed"
2507
- responses:
2508
- "200":
2509
- description: OK
2510
- content:
2511
- application/json:
2512
- schema:
2513
- oneOf:
2514
- - $ref: "#/components/schemas/RevisionPageDocument"
2515
- - $ref: "#/components/schemas/RevisionPageGroup"
2516
2410
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}":
2517
2411
  get:
2518
2412
  operationId: getReusableContentInChangeRequestById
@@ -2790,6 +2684,31 @@ paths:
2790
2684
  oneOf:
2791
2685
  - $ref: "#/components/schemas/RevisionPageDocument"
2792
2686
  - $ref: "#/components/schemas/RevisionPageGroup"
2687
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}":
2688
+ get:
2689
+ operationId: getPageInChangeRequestByPath
2690
+ summary: Get a change request page by its path
2691
+ tags:
2692
+ - change-request-content
2693
+ security:
2694
+ - user: []
2695
+ parameters:
2696
+ - $ref: "#/components/parameters/spaceId"
2697
+ - $ref: "#/components/parameters/changeRequestId"
2698
+ - $ref: "#/components/parameters/pagePath"
2699
+ - $ref: "#/components/parameters/documentFormat"
2700
+ - $ref: "#/components/parameters/documentEvaluated"
2701
+ - $ref: "#/components/parameters/revisionMetadata"
2702
+ - $ref: "#/components/parameters/revisionComputed"
2703
+ responses:
2704
+ "200":
2705
+ description: OK
2706
+ content:
2707
+ application/json:
2708
+ schema:
2709
+ oneOf:
2710
+ - $ref: "#/components/schemas/RevisionPageDocument"
2711
+ - $ref: "#/components/schemas/RevisionPageGroup"
2793
2712
  "/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}":
2794
2713
  get:
2795
2714
  operationId: getReusableContentInRevisionById
@@ -5225,6 +5144,18 @@ paths:
5225
5144
  schema:
5226
5145
  type: string
5227
5146
  description: If defined, only change requests with contributions from this user will be returned.
5147
+ - name: requestedReviewer
5148
+ in: query
5149
+ required: false
5150
+ schema:
5151
+ type: string
5152
+ description: If defined, only change requests with a requested reviewer for this user will be returned.
5153
+ - name: conversationsIssuesCluster
5154
+ in: query
5155
+ required: false
5156
+ schema:
5157
+ type: string
5158
+ description: If defined, only change requests associated with this conversations issues cluster will be returned.
5228
5159
  responses:
5229
5160
  "200":
5230
5161
  description: List of the organization's change requests
@@ -6042,7 +5973,7 @@ paths:
6042
5973
  operationId: listConversationsIssuesClusters
6043
5974
  summary: List conversations issues clusters
6044
5975
  tags:
6045
- - agents
5976
+ - conversations
6046
5977
  parameters:
6047
5978
  - $ref: "#/components/parameters/organizationId"
6048
5979
  - $ref: "#/components/parameters/listPage"
@@ -6106,19 +6037,23 @@ paths:
6106
6037
  application/json:
6107
6038
  schema:
6108
6039
  $ref: "#/components/schemas/ConversationsIssuesCluster"
6109
- "/orgs/{organizationId}/conversations-clusters/{clusterId}/issues":
6040
+ "/orgs/{organizationId}/conversations":
6110
6041
  get:
6111
- operationId: listConversationsIssuesInCluster
6112
- summary: List conversations issues in a cluster
6042
+ operationId: listConversations
6043
+ summary: List conversations
6113
6044
  tags:
6114
- - agents
6045
+ - conversations
6046
+ security:
6047
+ - user: []
6115
6048
  parameters:
6116
6049
  - $ref: "#/components/parameters/organizationId"
6117
- - $ref: "#/components/parameters/clusterId"
6118
6050
  - $ref: "#/components/parameters/listPage"
6119
6051
  - $ref: "#/components/parameters/listLimit"
6120
- security:
6121
- - user: []
6052
+ - name: source
6053
+ in: query
6054
+ description: Filter conversations by their source identifier
6055
+ schema:
6056
+ type: string
6122
6057
  responses:
6123
6058
  "200":
6124
6059
  description: OK
@@ -6134,18 +6069,7 @@ paths:
6134
6069
  items:
6135
6070
  type: array
6136
6071
  items:
6137
- type: object
6138
- properties:
6139
- issue:
6140
- $ref: "#/components/schemas/ConversationIssue"
6141
- conversation:
6142
- $ref: "#/components/schemas/Conversation"
6143
- required:
6144
- - issue
6145
- - conversation
6146
- "404":
6147
- $ref: "#/components/responses/NotFoundError"
6148
- "/orgs/{organizationId}/conversations":
6072
+ $ref: "#/components/schemas/Conversation"
6149
6073
  post:
6150
6074
  operationId: ingestConversation
6151
6075
  summary: Ingest conversations
@@ -6168,6 +6092,115 @@ paths:
6168
6092
  responses:
6169
6093
  "204":
6170
6094
  description: Conversations ingested
6095
+ "/orgs/{organizationId}/conversations-issues":
6096
+ get:
6097
+ operationId: listConversationsIssues
6098
+ summary: List conversation issues
6099
+ tags:
6100
+ - conversations
6101
+ parameters:
6102
+ - $ref: "#/components/parameters/organizationId"
6103
+ - $ref: "#/components/parameters/listPage"
6104
+ - $ref: "#/components/parameters/listLimit"
6105
+ - name: cluster
6106
+ in: query
6107
+ description: Filter conversation issues by cluster identifier.
6108
+ schema:
6109
+ type: string
6110
+ - name: conversation
6111
+ in: query
6112
+ description: Filter conversation issues by conversation identifier.
6113
+ schema:
6114
+ type: string
6115
+ security:
6116
+ - user: []
6117
+ responses:
6118
+ "200":
6119
+ description: OK
6120
+ content:
6121
+ application/json:
6122
+ schema:
6123
+ allOf:
6124
+ - $ref: "#/components/schemas/List"
6125
+ - type: object
6126
+ required:
6127
+ - items
6128
+ properties:
6129
+ items:
6130
+ type: array
6131
+ items:
6132
+ type: object
6133
+ properties:
6134
+ issue:
6135
+ $ref: "#/components/schemas/ConversationIssue"
6136
+ conversation:
6137
+ $ref: "#/components/schemas/Conversation"
6138
+ required:
6139
+ - issue
6140
+ - conversation
6141
+ "/orgs/{organizationId}/conversations-issues/{issueId}":
6142
+ get:
6143
+ operationId: getConversationIssueById
6144
+ summary: Get a conversation issue by ID
6145
+ tags:
6146
+ - conversations
6147
+ security:
6148
+ - user: []
6149
+ parameters:
6150
+ - $ref: "#/components/parameters/organizationId"
6151
+ - $ref: "#/components/parameters/conversationIssueId"
6152
+ responses:
6153
+ "200":
6154
+ description: OK
6155
+ content:
6156
+ application/json:
6157
+ schema:
6158
+ type: object
6159
+ required:
6160
+ - issue
6161
+ - conversation
6162
+ properties:
6163
+ issue:
6164
+ $ref: "#/components/schemas/ConversationIssue"
6165
+ conversation:
6166
+ $ref: "#/components/schemas/Conversation"
6167
+ "404":
6168
+ description: Conversation issue not found
6169
+ $ref: "#/components/responses/NotFoundError"
6170
+ "/orgs/{organizationId}/conversations/{conversationId}":
6171
+ get:
6172
+ operationId: getConversationById
6173
+ summary: Get a conversation by ID
6174
+ tags:
6175
+ - conversations
6176
+ security:
6177
+ - user: []
6178
+ parameters:
6179
+ - $ref: "#/components/parameters/organizationId"
6180
+ - $ref: "#/components/parameters/conversationId"
6181
+ responses:
6182
+ "200":
6183
+ description: OK
6184
+ content:
6185
+ application/json:
6186
+ schema:
6187
+ type: object
6188
+ required:
6189
+ - conversation
6190
+ - parts
6191
+ - metadata
6192
+ properties:
6193
+ conversation:
6194
+ $ref: "#/components/schemas/Conversation"
6195
+ parts:
6196
+ type: array
6197
+ items:
6198
+ $ref: "#/components/schemas/ConversationPart"
6199
+ metadata:
6200
+ $ref: "#/components/schemas/ConversationMetadata"
6201
+ "404":
6202
+ description: Conversation not found
6203
+ $ref: "#/components/responses/NotFoundError"
6171
6204
  "/orgs/{organizationId}/agents-setup":
6172
6205
  get:
6173
6206
  operationId: getAgentSetupState
@@ -6759,9 +6792,8 @@ paths:
6759
6792
  summary: Import content into a space from a website
6760
6793
  tags:
6761
6794
  - imports
6762
- x-internal: true
6763
6795
  security:
6764
- - user-internal: []
6796
+ - user: []
6765
6797
  parameters:
6766
6798
  - $ref: "#/components/parameters/organizationId"
6767
6799
  requestBody:
@@ -6795,9 +6827,8 @@ paths:
6795
6827
  summary: Cancel an import run
6796
6828
  tags:
6797
6829
  - imports
6798
- x-internal: true
6799
6830
  security:
6800
- - user-internal: []
6831
+ - user: []
6801
6832
  parameters:
6802
6833
  - $ref: "#/components/parameters/organizationId"
6803
6834
  - $ref: "#/components/parameters/importRunId"
@@ -8684,9 +8715,6 @@ paths:
8684
8715
  description: The messages to send to the AI agent.
8685
8716
  items:
8686
8717
  $ref: "#/components/schemas/AIMessageInput"
8687
- output:
8688
- deprecated: true
8689
- $ref: "#/components/schemas/AIOutputFormat"
8690
8718
  model:
8691
8719
  $ref: "#/components/schemas/AIModel"
8692
8720
  tools:
@@ -9623,6 +9651,13 @@ components:
9623
9651
  description: The unique ID of the change request or its number identifier in the space
9624
9652
  schema:
9625
9653
  type: string
9654
+ reviewId:
9655
+ name: reviewId
9656
+ in: path
9657
+ required: true
9658
+ description: The unique ID of the change request review.
9659
+ schema:
9660
+ type: string
9626
9661
  listOrder:
9627
9662
  name: order
9628
9663
  in: query
@@ -9829,6 +9864,20 @@ components:
9829
9864
  description: The unique id of the cluster
9830
9865
  schema:
9831
9866
  type: string
9867
+ conversationIssueId:
9868
+ name: issueId
9869
+ in: path
9870
+ required: true
9871
+ description: Identifier of the conversation issue
9872
+ schema:
9873
+ type: string
9874
+ conversationId:
9875
+ name: conversationId
9876
+ in: path
9877
+ required: true
9878
+ description: Identifier of the conversation
9879
+ schema:
9880
+ type: string
9832
9881
  agentTaskId:
9833
9882
  name: agentTaskId
9834
9883
  in: path
@@ -10959,6 +11008,36 @@ components:
10959
11008
  required:
10960
11009
  - object
10961
11010
  - type
11011
+ DocumentTextColor:
11012
+ type: string
11013
+ enum:
11014
+ - default
11015
+ - green
11016
+ - blue
11017
+ - red
11018
+ - orange
11019
+ - yellow
11020
+ - purple
11021
+ - $primary
11022
+ - $info
11023
+ - $success
11024
+ - $warning
11025
+ - $danger
11026
+ DocumentTextBackgroundColor:
11027
+ type: string
11028
+ enum:
11029
+ - default
11030
+ - green
11031
+ - blue
11032
+ - red
11033
+ - orange
11034
+ - yellow
11035
+ - purple
11036
+ - $primary
11037
+ - $info
11038
+ - $success
11039
+ - $warning
11040
+ - $danger
10962
11041
  DocumentMarkColor:
10963
11042
  type: object
10964
11043
  properties:
@@ -10974,35 +11053,9 @@ components:
10974
11053
  type: object
10975
11054
  properties:
10976
11055
  text:
10977
- type: string
10978
- enum:
10979
- - default
10980
- - green
10981
- - blue
10982
- - red
10983
- - orange
10984
- - yellow
10985
- - purple
10986
- - $primary
10987
- - $info
10988
- - $success
10989
- - $warning
10990
- - $danger
11056
+ $ref: "#/components/schemas/DocumentTextColor"
10991
11057
  background:
10992
- type: string
10993
- enum:
10994
- - default
10995
- - green
10996
- - blue
10997
- - red
10998
- - orange
10999
- - yellow
11000
- - purple
11001
- - $primary
11002
- - $info
11003
- - $success
11004
- - $warning
11005
- - $danger
11058
+ $ref: "#/components/schemas/DocumentTextBackgroundColor"
11006
11059
  required:
11007
11060
  - text
11008
11061
  - background
@@ -11340,6 +11393,8 @@ components:
11340
11393
  properties:
11341
11394
  icon:
11342
11395
  type: string
11396
+ color:
11397
+ $ref: "#/components/schemas/DocumentTextColor"
11343
11398
  required:
11344
11399
  - icon
11345
11400
  isVoid:
@@ -11629,6 +11684,13 @@ components:
11629
11684
  type: boolean
11630
11685
  fullWidth:
11631
11686
  type: boolean
11687
+ expandable:
11688
+ type: boolean
11689
+ collapsedLineCount:
11690
+ type: integer
11691
+ description: Number of lines rendered in a code block when it is collapsed
11692
+ minimum: 1
11693
+ default: 10
11632
11694
  nodes:
11633
11695
  type: array
11634
11696
  items:
@@ -14125,6 +14187,9 @@ components:
14125
14187
  outdated:
14126
14188
  type: boolean
14127
14189
  description: If true, the change request is not up-to-date with latest changes in the main content.
14190
+ conversationsIssuesCluster:
14191
+ type: string
14192
+ description: ID of the conversations issues cluster associated with this change request.
14128
14193
  urls:
14129
14194
  type: object
14130
14195
  description: URLs associated with the object
@@ -14215,46 +14280,6 @@ components:
14215
14280
  - $ref: "#/components/schemas/RevisionTypeComputed"
14216
14281
  discriminator:
14217
14282
  propertyName: type
14218
- ImportContentSource:
14219
- type: string
14220
- enum:
14221
- - website
14222
- - docx
14223
- - markdown
14224
- - html
14225
- - zip
14226
- - confluence
14227
- - github-wiki
14228
- - notion
14229
- - google-docs
14230
- ImportContent:
14231
- type: object
14232
- properties:
14233
- url:
14234
- type: string
14235
- format: uri
14236
- description: URL of the content to import.
14237
- source:
14238
- $ref: "#/components/schemas/ImportContentSource"
14239
- required:
14240
- - url
14241
- - source
14242
- ImportContentResult:
14243
- type: object
14244
- required:
14245
- - revision
14246
- - importedResources
14247
- - totalResources
14248
- properties:
14249
- revision:
14250
- type: string
14251
- description: ID of the newly created revision.
14252
- importedResources:
14253
- type: number
14254
- description: How many resources were imported
14255
- totalResources:
14256
- type: number
14257
- description: How many resources were processed
14258
14283
  SpaceTemplateParams:
14259
14284
  type: object
14260
14285
  description: Parameters for a space template
@@ -14519,6 +14544,9 @@ components:
14519
14544
  properties:
14520
14545
  status:
14521
14546
  $ref: "#/components/schemas/BillingTrialStatus"
14547
+ count:
14548
+ type: integer
14549
+ description: Number of trials the organization has consumed.
14522
14550
  endDate:
14523
14551
  description: The trial's end date, if the organization has or had a trial.
14524
14552
  $ref: "#/components/schemas/Timestamp"
@@ -14529,6 +14557,7 @@ components:
14529
14557
  - downgrade
14530
14558
  required:
14531
14559
  - status
14560
+ - count
14532
14561
  customHostname:
14533
14562
  description: Custom hostname linked to this organization
14534
14563
  type: string
@@ -15115,6 +15144,20 @@ components:
15115
15144
  type: array
15116
15145
  items:
15117
15146
  $ref: "#/components/schemas/EmojiReaction"
15147
+ UserContributor:
15148
+ type: object
15149
+ description: Contributor towards content.
15150
+ properties:
15151
+ updatedAt:
15152
+ $ref: "#/components/schemas/Timestamp"
15153
+ count:
15154
+ type: integer
15155
+ user:
15156
+ $ref: "#/components/schemas/User"
15157
+ required:
15158
+ - updatedAt
15159
+ - count
15160
+ - user
15118
15161
  TableCellTarget:
15119
15162
  type: object
15120
15163
  description: Details about the table cell this comment is attached to, if any.
@@ -15153,6 +15196,11 @@ components:
15153
15196
  replies:
15154
15197
  description: The number of replies to this comment.
15155
15198
  type: number
15199
+ repliers:
15200
+ description: The users who replied to this comment.
15201
+ type: array
15202
+ items:
15203
+ $ref: "#/components/schemas/UserContributor"
15156
15204
  body:
15157
15205
  description: The content of the comment.
15158
15206
  $ref: "#/components/schemas/Document"
@@ -15166,8 +15214,6 @@ components:
15166
15214
  properties:
15167
15215
  id:
15168
15216
  type: string
15169
- preview:
15170
- type: string
15171
15217
  required:
15172
15218
  - id
15173
15219
  tableCell:
@@ -15180,19 +15226,13 @@ components:
15180
15226
  type: string
15181
15227
  page:
15182
15228
  description: Information about the page, if this comment refers to a specific page.
15183
- allOf:
15184
- - $ref: "#/components/schemas/RevisionPageBase"
15185
- - type: object
15186
- properties:
15187
- path:
15188
- description: The fully qualified path to the page
15189
- type: string
15190
- outdated:
15191
- description: True if the target of this comment no longer exists in the primary content
15192
- type: boolean
15193
- required:
15194
- - path
15195
- - outdated
15229
+ type: object
15230
+ properties:
15231
+ id:
15232
+ type: string
15233
+ description: The ID of the page
15234
+ required:
15235
+ - id
15196
15236
  space:
15197
15237
  description: The space containing this comment.
15198
15238
  type: string
@@ -15236,6 +15276,7 @@ components:
15236
15276
  - object
15237
15277
  - id
15238
15278
  - replies
15279
+ - repliers
15239
15280
  - body
15240
15281
  - postedBy
15241
15282
  - postedAt
@@ -15304,6 +15345,16 @@ components:
15304
15345
  $ref: "#/components/schemas/Timestamp"
15305
15346
  updatedAt:
15306
15347
  $ref: "#/components/schemas/Timestamp"
15348
+ urls:
15349
+ type: object
15350
+ description: URLs associated with the object
15351
+ properties:
15352
+ location:
15353
+ type: string
15354
+ description: URL of the review in the API
15355
+ format: uri
15356
+ required:
15357
+ - location
15307
15358
  required:
15308
15359
  - object
15309
15360
  - id
@@ -15313,6 +15364,7 @@ components:
15313
15364
  - outdated
15314
15365
  - createdAt
15315
15366
  - updatedAt
15367
+ - urls
15316
15368
  Team:
15317
15369
  type: object
15318
15370
  properties:
@@ -15480,26 +15532,18 @@ components:
15480
15532
  $ref: "#/components/schemas/Document"
15481
15533
  required:
15482
15534
  - body
15483
- UserContributor:
15484
- type: object
15485
- description: Contributor towards content.
15486
- properties:
15487
- updatedAt:
15488
- $ref: "#/components/schemas/Timestamp"
15489
- count:
15490
- type: integer
15491
- user:
15492
- $ref: "#/components/schemas/User"
15493
- actionType:
15494
- type: string
15495
- enum:
15496
- - edit
15497
- - comment
15498
- required:
15499
- - updatedAt
15500
- - count
15501
- - user
15502
- - actionType
15535
+ ChangeRequestUserContributor:
15536
+ allOf:
15537
+ - $ref: "#/components/schemas/UserContributor"
15538
+ - type: object
15539
+ properties:
15540
+ actionType:
15541
+ type: string
15542
+ enum:
15543
+ - edit
15544
+ - comment
15545
+ required:
15546
+ - actionType
15503
15547
  RevisionPageType:
15504
15548
  type: string
15505
15549
  enum:
@@ -19263,6 +19307,15 @@ components:
19263
19307
  properties:
19264
19308
  computedSource:
19265
19309
  $ref: "#/components/schemas/ComputedContentSourceRevision"
19310
+ - type: object
19311
+ description: Create a completely empty space (no page in it)
19312
+ required:
19313
+ - empty
19314
+ properties:
19315
+ empty:
19316
+ type: boolean
19317
+ enum:
19318
+ - true
19266
19319
  InstalledIntegration:
19267
19320
  type: object
19268
19321
  description: An installed integration with its current status
@@ -19781,51 +19834,6 @@ components:
19781
19834
  - createdAt
19782
19835
  - updatedAt
19783
19836
  - urls
19784
- ConversationIssue:
19785
- type: object
19786
- properties:
19787
- object:
19788
- type: string
19789
- enum:
19790
- - conversation-issue
19791
- id:
19792
- type: string
19793
- description: The ID of the conversation issue
19794
- title:
19795
- type: string
19796
- description: The title of the conversation issue
19797
- summary:
19798
- type: string
19799
- description: The summary of the conversation issue
19800
- createdAt:
19801
- $ref: "#/components/schemas/Timestamp"
19802
- ingestedAt:
19803
- $ref: "#/components/schemas/Timestamp"
19804
- conversation:
19805
- type: string
19806
- description: The ID of the conversation the issue belongs to
19807
- cluster:
19808
- type: string
19809
- description: The ID of the cluster the issue has been linked to
19810
- urls:
19811
- type: object
19812
- description: URLs associated with the conversation issue
19813
- properties:
19814
- location:
19815
- type: string
19816
- description: URL of the conversation issue in the API
19817
- format: uri
19818
- required:
19819
- - location
19820
- required:
19821
- - object
19822
- - id
19823
- - title
19824
- - summary
19825
- - createdAt
19826
- - ingestedAt
19827
- - conversation
19828
- - urls
19829
19837
  ConversationSource:
19830
19838
  oneOf:
19831
19839
  - type: string
@@ -19933,6 +19941,51 @@ components:
19933
19941
  required:
19934
19942
  - id
19935
19943
  - parts
19944
+ ConversationIssue:
19945
+ type: object
19946
+ properties:
19947
+ object:
19948
+ type: string
19949
+ enum:
19950
+ - conversation-issue
19951
+ id:
19952
+ type: string
19953
+ description: The ID of the conversation issue
19954
+ title:
19955
+ type: string
19956
+ description: The title of the conversation issue
19957
+ summary:
19958
+ type: string
19959
+ description: The summary of the conversation issue
19960
+ createdAt:
19961
+ $ref: "#/components/schemas/Timestamp"
19962
+ ingestedAt:
19963
+ $ref: "#/components/schemas/Timestamp"
19964
+ conversation:
19965
+ type: string
19966
+ description: The ID of the conversation the issue belongs to
19967
+ cluster:
19968
+ type: string
19969
+ description: The ID of the cluster the issue has been linked to
19970
+ urls:
19971
+ type: object
19972
+ description: URLs associated with the conversation issue
19973
+ properties:
19974
+ location:
19975
+ type: string
19976
+ description: URL of the conversation issue in the API
19977
+ format: uri
19978
+ required:
19979
+ - location
19980
+ required:
19981
+ - object
19982
+ - id
19983
+ - title
19984
+ - summary
19985
+ - createdAt
19986
+ - ingestedAt
19987
+ - conversation
19988
+ - urls
19936
19989
  AgentsSetupState:
19937
19990
  type: object
19938
19991
  description: State and settings of the agent
@@ -20477,9 +20530,9 @@ components:
20477
20530
  required:
20478
20531
  - id
20479
20532
  - status
20480
- BillingOperationPreviewResponse:
20533
+ SitePublishOperationPreviewResponse:
20481
20534
  description: |
20482
- A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.
20535
+ A response to a request to preview the publishing of a site. It indicates whether the operation can proceed immediately, requires checkout, if a trial is available or if a trial extension is available.
20483
20536
  oneOf:
20484
20537
  - type: object
20485
20538
  properties:
@@ -20499,6 +20552,15 @@ components:
20499
20552
  - trial-available
20500
20553
  required:
20501
20554
  - type
20555
+ - type: object
20556
+ properties:
20557
+ type:
20558
+ description: The organization is eligible for an additional trial when publishing the site.
20559
+ type: string
20560
+ enum:
20561
+ - extended-trial-available
20562
+ required:
20563
+ - type
20502
20564
  - type: object
20503
20565
  properties:
20504
20566
  type:
@@ -21310,6 +21372,39 @@ components:
21310
21372
  - $ref: "#/components/schemas/SiteSpace"
21311
21373
  - $ref: "#/components/schemas/SiteSection"
21312
21374
  - $ref: "#/components/schemas/SiteSectionGroup"
21375
+ BillingOperationPreviewResponse:
21376
+ description: |
21377
+ A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.
21378
+ oneOf:
21379
+ - type: object
21380
+ properties:
21381
+ type:
21382
+ description: User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes.
21383
+ type: string
21384
+ enum:
21385
+ - go-ahead
21386
+ required:
21387
+ - type
21388
+ - type: object
21389
+ properties:
21390
+ type:
21391
+ description: By going ahead with this operation, the user will be starting a trial in GitBook.
21392
+ type: string
21393
+ enum:
21394
+ - trial-available
21395
+ required:
21396
+ - type
21397
+ - type: object
21398
+ properties:
21399
+ type:
21400
+ description: User must checkout to complete the operation.
21401
+ type: string
21402
+ enum:
21403
+ - checkout
21404
+ invoice:
21405
+ $ref: "#/components/schemas/BillingInvoicePreview"
21406
+ required:
21407
+ - type
21313
21408
  SiteUpgradeReason:
21314
21409
  type: string
21315
21410
  description: The reason or feature that triggered the site upgrade
@@ -21375,13 +21470,6 @@ components:
21375
21470
  type: string
21376
21471
  description: |
21377
21472
  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.
21378
- includedSiteSpaces:
21379
- type: array
21380
- deprecated: true
21381
- description: |
21382
- Site spaces to include in search results in addition to default site spaces. This is deprecated and will be removed soon. Please use 'currentSiteSpace' instead.
21383
- items:
21384
- type: string
21385
21473
  - type: object
21386
21474
  required:
21387
21475
  - mode
@@ -21544,36 +21632,6 @@ components:
21544
21632
  required:
21545
21633
  - role
21546
21634
  - content
21547
- AIOutputObject:
21548
- type: object
21549
- description: |
21550
- Indicate that the AI should response with a JSON object corresponding to the provided schema.
21551
- properties:
21552
- type:
21553
- type: string
21554
- enum:
21555
- - object
21556
- schema:
21557
- type: object
21558
- description: The JSON schema to use for the object.
21559
- required:
21560
- - type
21561
- - schema
21562
- AIOutputDocument:
21563
- type: object
21564
- description: |
21565
- Indicate that the AI should respond with a rich text document.
21566
- properties:
21567
- type:
21568
- type: string
21569
- enum:
21570
- - document
21571
- required:
21572
- - type
21573
- AIOutputFormat:
21574
- oneOf:
21575
- - $ref: "#/components/schemas/AIOutputObject"
21576
- - $ref: "#/components/schemas/AIOutputDocument"
21577
21635
  AIModel:
21578
21636
  type: string
21579
21637
  enum:
@@ -21996,38 +22054,42 @@ components:
21996
22054
  - tool
21997
22055
  - spaceId
21998
22056
  - page
21999
- AIToolCallCreateAgentTask:
22057
+ AIToolCallCreateChangeRequest:
22000
22058
  type: object
22001
22059
  properties:
22002
22060
  tool:
22003
22061
  type: string
22004
22062
  enum:
22005
- - createAgentTask
22063
+ - createChangeRequest
22006
22064
  spaceId:
22007
22065
  type: string
22008
- description: The ID of the space the task belongs to.
22066
+ description: The ID of the space the change request belongs to.
22009
22067
  action:
22010
22068
  type: string
22011
22069
  enum:
22012
22070
  - create
22013
22071
  - update
22014
- task:
22072
+ changeRequest:
22015
22073
  type: object
22016
22074
  properties:
22017
22075
  id:
22018
22076
  type: string
22019
- description: The unique identifier of the task.
22020
- title:
22077
+ description: The unique identifier of the change request.
22078
+ number:
22079
+ type: number
22080
+ description: Incremental identifier of the change request.
22081
+ subject:
22021
22082
  type: string
22022
- description: The title of the task.
22083
+ description: A brief summary of the change request.
22023
22084
  required:
22024
22085
  - id
22025
- - title
22086
+ - number
22087
+ - subject
22026
22088
  required:
22027
22089
  - tool
22028
22090
  - spaceId
22029
22091
  - action
22030
- - task
22092
+ - changeRequest
22031
22093
  AIToolCallComment:
22032
22094
  type: object
22033
22095
  properties:
@@ -22147,7 +22209,7 @@ components:
22147
22209
  - $ref: "#/components/schemas/AIToolCallMovePage"
22148
22210
  - $ref: "#/components/schemas/AIToolCallListModifiedPages"
22149
22211
  - $ref: "#/components/schemas/AIToolCallGetPageDiff"
22150
- - $ref: "#/components/schemas/AIToolCallCreateAgentTask"
22212
+ - $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
22151
22213
  - $ref: "#/components/schemas/AIToolCallComment"
22152
22214
  - $ref: "#/components/schemas/AIToolCallReplyToComment"
22153
22215
  - $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
@@ -24168,17 +24230,6 @@ components:
24168
24230
  - status
24169
24231
  - createdAt
24170
24232
  - verificationErrors
24171
- StaffUserInfo:
24172
- type: object
24173
- description: The GitBook Staff User info.
24174
- properties:
24175
- id:
24176
- type: string
24177
- searchKey:
24178
- type: string
24179
- required:
24180
- - id
24181
- - searchKey
24182
24233
  FirebaseUserInfo:
24183
24234
  type: object
24184
24235
  description: The User Firebase Auth Info.
@@ -24227,6 +24278,8 @@ components:
24227
24278
  type: boolean
24228
24279
  reason:
24229
24280
  $ref: "#/components/schemas/BlockReason"
24281
+ blockPaidOrg:
24282
+ type: boolean
24230
24283
  required:
24231
24284
  - block
24232
24285
  UserImpersonationInfo:
@@ -24306,8 +24359,6 @@ components:
24306
24359
  properties:
24307
24360
  updatedAt:
24308
24361
  $ref: "#/components/schemas/Timestamp"
24309
- searchKey:
24310
- type: string
24311
24362
  organizations:
24312
24363
  type: object
24313
24364
  additionalProperties:
@@ -24322,7 +24373,6 @@ components:
24322
24373
  $ref: "#/components/schemas/UserSpacesPermissions"
24323
24374
  required:
24324
24375
  - updatedAt
24325
- - searchKey
24326
24376
  - organizations
24327
24377
  - collections
24328
24378
  - spaces
@@ -25557,24 +25607,6 @@ components:
25557
25607
  - channel
25558
25608
  - space
25559
25609
  - comment
25560
- CommentReplyInfoChannel:
25561
- type: object
25562
- properties:
25563
- channel:
25564
- type: string
25565
- enum:
25566
- - space-comment-reply
25567
- space:
25568
- type: string
25569
- comment:
25570
- type: string
25571
- commentReply:
25572
- type: string
25573
- required:
25574
- - channel
25575
- - space
25576
- - comment
25577
- - commentReply
25578
25610
  CommentRepliesChannel:
25579
25611
  type: object
25580
25612
  properties:
@@ -26040,7 +26072,6 @@ components:
26040
26072
  - $ref: "#/components/schemas/SpaceCommentsChannel"
26041
26073
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"
26042
26074
  - $ref: "#/components/schemas/CommentInfoChannel"
26043
- - $ref: "#/components/schemas/CommentReplyInfoChannel"
26044
26075
  - $ref: "#/components/schemas/CommentRepliesChannel"
26045
26076
  - $ref: "#/components/schemas/IntegrationChannel"
26046
26077
  - $ref: "#/components/schemas/IntegrationInstallationChannel"
@@ -26311,37 +26342,6 @@ components:
26311
26342
  - id
26312
26343
  - role
26313
26344
  - steps
26314
- AgentRequestReset:
26315
- type: object
26316
- description: |
26317
- Request to reset the chat.
26318
- properties:
26319
- type:
26320
- type: string
26321
- enum:
26322
- - reset
26323
- required:
26324
- - type
26325
- AgentRequestPostMessage:
26326
- type: object
26327
- description: |
26328
- Request to post a message to the agent.
26329
- properties:
26330
- type:
26331
- type: string
26332
- enum:
26333
- - post_message
26334
- message:
26335
- $ref: "#/components/schemas/AIMessageInput"
26336
- required:
26337
- - type
26338
- - message
26339
- AgentRequest:
26340
- description: |
26341
- Payload to send to the agent.
26342
- oneOf:
26343
- - $ref: "#/components/schemas/AgentRequestReset"
26344
- - $ref: "#/components/schemas/AgentRequestPostMessage"
26345
26345
  AgentStreamMessages:
26346
26346
  type: object
26347
26347
  description: |
@@ -26411,11 +26411,28 @@ components:
26411
26411
  required:
26412
26412
  - type
26413
26413
  - state
26414
+ AgentStreamRPC:
26415
+ type: object
26416
+ description: |
26417
+ Payload emitted by the agent is responding to a RPC call.
26418
+ properties:
26419
+ type:
26420
+ type: string
26421
+ enum:
26422
+ - rpc
26423
+ message:
26424
+ oneOf:
26425
+ - type: string
26426
+ - type: object
26427
+ required:
26428
+ - type
26429
+ - message
26414
26430
  AgentStream:
26415
26431
  oneOf:
26416
26432
  - $ref: "#/components/schemas/AgentStreamMessages"
26417
26433
  - $ref: "#/components/schemas/AgentStreamMessageResponse"
26418
26434
  - $ref: "#/components/schemas/AgentStreamState"
26435
+ - $ref: "#/components/schemas/AgentStreamRPC"
26419
26436
  MergeRulesEvaluationContext:
26420
26437
  type: object
26421
26438
  description: Context available when evaluating merge rules expressions.
@@ -26457,8 +26474,6 @@ components:
26457
26474
  $ref: "#/components/schemas/ImportGitRepository"
26458
26475
  RequestExportToGitRepository:
26459
26476
  $ref: "#/components/schemas/ExportToGitRepository"
26460
- RequestImportContent:
26461
- $ref: "#/components/schemas/ImportContent"
26462
26477
  RequestCreateSpace:
26463
26478
  $ref: "#/components/schemas/CreateSpace"
26464
26479
  RequestRenderIntegrationUI: