@gitbook/api 0.143.1 → 0.144.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,17 +6037,81 @@ 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"
6052
+ - name: source
6053
+ in: query
6054
+ description: Filter conversations by their source identifier
6055
+ schema:
6056
+ type: string
6057
+ responses:
6058
+ "200":
6059
+ description: OK
6060
+ content:
6061
+ application/json:
6062
+ schema:
6063
+ allOf:
6064
+ - $ref: "#/components/schemas/List"
6065
+ - type: object
6066
+ required:
6067
+ - items
6068
+ properties:
6069
+ items:
6070
+ type: array
6071
+ items:
6072
+ $ref: "#/components/schemas/Conversation"
6073
+ post:
6074
+ operationId: ingestConversation
6075
+ summary: Ingest conversations
6076
+ tags:
6077
+ - conversations
6078
+ security:
6079
+ - integration-installation: []
6080
+ parameters:
6081
+ - $ref: "#/components/parameters/organizationId"
6082
+ requestBody:
6083
+ required: true
6084
+ content:
6085
+ application/json:
6086
+ schema:
6087
+ oneOf:
6088
+ - $ref: "#/components/schemas/ConversationInput"
6089
+ - type: array
6090
+ items:
6091
+ $ref: "#/components/schemas/ConversationInput"
6092
+ responses:
6093
+ "204":
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
6120
6115
  security:
6121
6116
  - user: []
6122
6117
  responses:
@@ -6143,16 +6138,115 @@ paths:
6143
6138
  required:
6144
6139
  - issue
6145
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"
6146
6167
  "404":
6168
+ description: Conversation issue not found
6147
6169
  $ref: "#/components/responses/NotFoundError"
6148
- "/orgs/{organizationId}/conversations":
6149
- post:
6150
- operationId: ingestConversation
6151
- summary: Ingest conversations
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"
6204
+ "/orgs/{organizationId}/agents-setup":
6205
+ get:
6206
+ operationId: getAgentSetupState
6207
+ summary: Get the agents setup state
6208
+ description: |
6209
+ Get the state of the agent.
6210
+ tags:
6211
+ - agents
6212
+ - critical
6213
+ security:
6214
+ - user-internal: []
6215
+ parameters:
6216
+ - $ref: "#/components/parameters/organizationId"
6217
+ responses:
6218
+ "200":
6219
+ description: OK
6220
+ content:
6221
+ application/json:
6222
+ schema:
6223
+ $ref: "#/components/schemas/AgentsSetupState"
6224
+ "/orgs/{organizationId}/agent-instructions":
6225
+ get:
6226
+ operationId: getOrganizationAgentInstructions
6227
+ summary: Get Docs agent instructions for an organization
6228
+ tags:
6229
+ - organizations
6230
+ - agents
6231
+ security:
6232
+ - user: []
6233
+ parameters:
6234
+ - $ref: "#/components/parameters/organizationId"
6235
+ responses:
6236
+ "200":
6237
+ description: OK
6238
+ content:
6239
+ application/json:
6240
+ schema:
6241
+ $ref: "#/components/schemas/OrganizationAgentInstructions"
6242
+ put:
6243
+ operationId: updateOrganizationAgentInstructions
6244
+ summary: Update Docs agent instructions for an organization
6152
6245
  tags:
6153
- - conversations
6246
+ - organizations
6247
+ - agents
6154
6248
  security:
6155
- - integration-installation: []
6249
+ - user: []
6156
6250
  parameters:
6157
6251
  - $ref: "#/components/parameters/organizationId"
6158
6252
  requestBody:
@@ -6160,34 +6254,20 @@ paths:
6160
6254
  content:
6161
6255
  application/json:
6162
6256
  schema:
6163
- oneOf:
6164
- - $ref: "#/components/schemas/ConversationInput"
6165
- - type: array
6166
- items:
6167
- $ref: "#/components/schemas/ConversationInput"
6168
- responses:
6169
- "204":
6170
- description: Conversations ingested
6171
- "/orgs/{organizationId}/agents-setup":
6172
- get:
6173
- operationId: getAgentSetupState
6174
- summary: Get the agents setup state
6175
- description: |
6176
- Get the state of the agent.
6177
- tags:
6178
- - agents
6179
- - critical
6180
- security:
6181
- - user-internal: []
6182
- parameters:
6183
- - $ref: "#/components/parameters/organizationId"
6257
+ type: object
6258
+ required:
6259
+ - instructions
6260
+ properties:
6261
+ instructions:
6262
+ $ref: "#/components/schemas/JSONDocument"
6263
+ description: Document describing the Docs agent instructions.
6184
6264
  responses:
6185
6265
  "200":
6186
- description: OK
6266
+ description: Updated instructions
6187
6267
  content:
6188
6268
  application/json:
6189
6269
  schema:
6190
- $ref: "#/components/schemas/AgentsSetupState"
6270
+ $ref: "#/components/schemas/OrganizationAgentInstructions"
6191
6271
  "/orgs/{organizationId}/agent-tasks":
6192
6272
  get:
6193
6273
  operationId: listAgentTasks
@@ -6712,9 +6792,8 @@ paths:
6712
6792
  summary: Import content into a space from a website
6713
6793
  tags:
6714
6794
  - imports
6715
- x-internal: true
6716
6795
  security:
6717
- - user-internal: []
6796
+ - user: []
6718
6797
  parameters:
6719
6798
  - $ref: "#/components/parameters/organizationId"
6720
6799
  requestBody:
@@ -6742,6 +6821,28 @@ paths:
6742
6821
  $ref: "#/components/responses/BadRequestError"
6743
6822
  "404":
6744
6823
  $ref: "#/components/responses/NotFoundError"
6824
+ "/org/{organizationId}/imports/{importRunId}/cancel":
6825
+ post:
6826
+ operationId: cancelImportRun
6827
+ summary: Cancel an import run
6828
+ tags:
6829
+ - imports
6830
+ security:
6831
+ - user: []
6832
+ parameters:
6833
+ - $ref: "#/components/parameters/organizationId"
6834
+ - $ref: "#/components/parameters/importRunId"
6835
+ responses:
6836
+ "201":
6837
+ description: Import run canceled successfully.
6838
+ content:
6839
+ application/json:
6840
+ schema:
6841
+ $ref: "#/components/schemas/ContentImportRun"
6842
+ "400":
6843
+ $ref: "#/components/responses/BadRequestError"
6844
+ "404":
6845
+ $ref: "#/components/responses/NotFoundError"
6745
6846
  "/orgs/{organizationId}/sites":
6746
6847
  get:
6747
6848
  operationId: listSites
@@ -8614,9 +8715,6 @@ paths:
8614
8715
  description: The messages to send to the AI agent.
8615
8716
  items:
8616
8717
  $ref: "#/components/schemas/AIMessageInput"
8617
- output:
8618
- deprecated: true
8619
- $ref: "#/components/schemas/AIOutputFormat"
8620
8718
  model:
8621
8719
  $ref: "#/components/schemas/AIModel"
8622
8720
  tools:
@@ -9553,6 +9651,13 @@ components:
9553
9651
  description: The unique ID of the change request or its number identifier in the space
9554
9652
  schema:
9555
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
9556
9661
  listOrder:
9557
9662
  name: order
9558
9663
  in: query
@@ -9759,6 +9864,20 @@ components:
9759
9864
  description: The unique id of the cluster
9760
9865
  schema:
9761
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
9762
9881
  agentTaskId:
9763
9882
  name: agentTaskId
9764
9883
  in: path
@@ -9787,6 +9906,13 @@ components:
9787
9906
  description: The unique ID of a font
9788
9907
  schema:
9789
9908
  type: string
9909
+ importRunId:
9910
+ name: importRunId
9911
+ in: path
9912
+ required: true
9913
+ description: The unique id of the import run
9914
+ schema:
9915
+ type: string
9790
9916
  shareLinkId:
9791
9917
  name: shareLinkId
9792
9918
  in: path
@@ -10882,6 +11008,36 @@ components:
10882
11008
  required:
10883
11009
  - object
10884
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
10885
11041
  DocumentMarkColor:
10886
11042
  type: object
10887
11043
  properties:
@@ -10897,35 +11053,9 @@ components:
10897
11053
  type: object
10898
11054
  properties:
10899
11055
  text:
10900
- type: string
10901
- enum:
10902
- - default
10903
- - green
10904
- - blue
10905
- - red
10906
- - orange
10907
- - yellow
10908
- - purple
10909
- - $primary
10910
- - $info
10911
- - $success
10912
- - $warning
10913
- - $danger
11056
+ $ref: "#/components/schemas/DocumentTextColor"
10914
11057
  background:
10915
- type: string
10916
- enum:
10917
- - default
10918
- - green
10919
- - blue
10920
- - red
10921
- - orange
10922
- - yellow
10923
- - purple
10924
- - $primary
10925
- - $info
10926
- - $success
10927
- - $warning
10928
- - $danger
11058
+ $ref: "#/components/schemas/DocumentTextBackgroundColor"
10929
11059
  required:
10930
11060
  - text
10931
11061
  - background
@@ -11054,6 +11184,8 @@ components:
11054
11184
  - $ref: "#/components/schemas/ContentRefFile"
11055
11185
  caption:
11056
11186
  type: string
11187
+ alt:
11188
+ type: string
11057
11189
  size:
11058
11190
  type: string
11059
11191
  enum:
@@ -11261,6 +11393,8 @@ components:
11261
11393
  properties:
11262
11394
  icon:
11263
11395
  type: string
11396
+ color:
11397
+ $ref: "#/components/schemas/DocumentTextColor"
11264
11398
  required:
11265
11399
  - icon
11266
11400
  isVoid:
@@ -11550,6 +11684,13 @@ components:
11550
11684
  type: boolean
11551
11685
  fullWidth:
11552
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
11553
11694
  nodes:
11554
11695
  type: array
11555
11696
  items:
@@ -12313,6 +12454,8 @@ components:
12313
12454
  - right
12314
12455
  fullWidth:
12315
12456
  type: boolean
12457
+ withFrame:
12458
+ type: boolean
12316
12459
  nodes:
12317
12460
  type: array
12318
12461
  items:
@@ -14044,6 +14187,9 @@ components:
14044
14187
  outdated:
14045
14188
  type: boolean
14046
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.
14047
14193
  urls:
14048
14194
  type: object
14049
14195
  description: URLs associated with the object
@@ -14134,46 +14280,6 @@ components:
14134
14280
  - $ref: "#/components/schemas/RevisionTypeComputed"
14135
14281
  discriminator:
14136
14282
  propertyName: type
14137
- ImportContentSource:
14138
- type: string
14139
- enum:
14140
- - website
14141
- - docx
14142
- - markdown
14143
- - html
14144
- - zip
14145
- - confluence
14146
- - github-wiki
14147
- - notion
14148
- - google-docs
14149
- ImportContent:
14150
- type: object
14151
- properties:
14152
- url:
14153
- type: string
14154
- format: uri
14155
- description: URL of the content to import.
14156
- source:
14157
- $ref: "#/components/schemas/ImportContentSource"
14158
- required:
14159
- - url
14160
- - source
14161
- ImportContentResult:
14162
- type: object
14163
- required:
14164
- - revision
14165
- - importedResources
14166
- - totalResources
14167
- properties:
14168
- revision:
14169
- type: string
14170
- description: ID of the newly created revision.
14171
- importedResources:
14172
- type: number
14173
- description: How many resources were imported
14174
- totalResources:
14175
- type: number
14176
- description: How many resources were processed
14177
14283
  SpaceTemplateParams:
14178
14284
  type: object
14179
14285
  description: Parameters for a space template
@@ -14438,6 +14544,9 @@ components:
14438
14544
  properties:
14439
14545
  status:
14440
14546
  $ref: "#/components/schemas/BillingTrialStatus"
14547
+ count:
14548
+ type: integer
14549
+ description: Number of trials the organization has consumed.
14441
14550
  endDate:
14442
14551
  description: The trial's end date, if the organization has or had a trial.
14443
14552
  $ref: "#/components/schemas/Timestamp"
@@ -14448,6 +14557,7 @@ components:
14448
14557
  - downgrade
14449
14558
  required:
14450
14559
  - status
14560
+ - count
14451
14561
  customHostname:
14452
14562
  description: Custom hostname linked to this organization
14453
14563
  type: string
@@ -15034,6 +15144,20 @@ components:
15034
15144
  type: array
15035
15145
  items:
15036
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
15037
15161
  TableCellTarget:
15038
15162
  type: object
15039
15163
  description: Details about the table cell this comment is attached to, if any.
@@ -15072,6 +15196,11 @@ components:
15072
15196
  replies:
15073
15197
  description: The number of replies to this comment.
15074
15198
  type: number
15199
+ repliers:
15200
+ description: The users who replied to this comment.
15201
+ type: array
15202
+ items:
15203
+ $ref: "#/components/schemas/UserContributor"
15075
15204
  body:
15076
15205
  description: The content of the comment.
15077
15206
  $ref: "#/components/schemas/Document"
@@ -15085,8 +15214,6 @@ components:
15085
15214
  properties:
15086
15215
  id:
15087
15216
  type: string
15088
- preview:
15089
- type: string
15090
15217
  required:
15091
15218
  - id
15092
15219
  tableCell:
@@ -15099,19 +15226,13 @@ components:
15099
15226
  type: string
15100
15227
  page:
15101
15228
  description: Information about the page, if this comment refers to a specific page.
15102
- allOf:
15103
- - $ref: "#/components/schemas/RevisionPageBase"
15104
- - type: object
15105
- properties:
15106
- path:
15107
- description: The fully qualified path to the page
15108
- type: string
15109
- outdated:
15110
- description: True if the target of this comment no longer exists in the primary content
15111
- type: boolean
15112
- required:
15113
- - path
15114
- - outdated
15229
+ type: object
15230
+ properties:
15231
+ id:
15232
+ type: string
15233
+ description: The ID of the page
15234
+ required:
15235
+ - id
15115
15236
  space:
15116
15237
  description: The space containing this comment.
15117
15238
  type: string
@@ -15155,6 +15276,7 @@ components:
15155
15276
  - object
15156
15277
  - id
15157
15278
  - replies
15279
+ - repliers
15158
15280
  - body
15159
15281
  - postedBy
15160
15282
  - postedAt
@@ -15223,6 +15345,16 @@ components:
15223
15345
  $ref: "#/components/schemas/Timestamp"
15224
15346
  updatedAt:
15225
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
15226
15358
  required:
15227
15359
  - object
15228
15360
  - id
@@ -15232,6 +15364,7 @@ components:
15232
15364
  - outdated
15233
15365
  - createdAt
15234
15366
  - updatedAt
15367
+ - urls
15235
15368
  Team:
15236
15369
  type: object
15237
15370
  properties:
@@ -15399,26 +15532,18 @@ components:
15399
15532
  $ref: "#/components/schemas/Document"
15400
15533
  required:
15401
15534
  - body
15402
- UserContributor:
15403
- type: object
15404
- description: Contributor towards content.
15405
- properties:
15406
- updatedAt:
15407
- $ref: "#/components/schemas/Timestamp"
15408
- count:
15409
- type: integer
15410
- user:
15411
- $ref: "#/components/schemas/User"
15412
- actionType:
15413
- type: string
15414
- enum:
15415
- - edit
15416
- - comment
15417
- required:
15418
- - updatedAt
15419
- - count
15420
- - user
15421
- - 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
15422
15547
  RevisionPageType:
15423
15548
  type: string
15424
15549
  enum:
@@ -17351,6 +17476,7 @@ components:
17351
17476
  - sites-ads
17352
17477
  - sites-ai-search
17353
17478
  - sites-ai-assistant
17479
+ - sites-embed
17354
17480
  - sites-api-playground
17355
17481
  - sites-basic-customization
17356
17482
  - sites-custom-domain
@@ -19181,6 +19307,15 @@ components:
19181
19307
  properties:
19182
19308
  computedSource:
19183
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
19184
19319
  InstalledIntegration:
19185
19320
  type: object
19186
19321
  description: An installed integration with its current status
@@ -19699,51 +19834,6 @@ components:
19699
19834
  - createdAt
19700
19835
  - updatedAt
19701
19836
  - urls
19702
- ConversationIssue:
19703
- type: object
19704
- properties:
19705
- object:
19706
- type: string
19707
- enum:
19708
- - conversation-issue
19709
- id:
19710
- type: string
19711
- description: The ID of the conversation issue
19712
- title:
19713
- type: string
19714
- description: The title of the conversation issue
19715
- summary:
19716
- type: string
19717
- description: The summary of the conversation issue
19718
- createdAt:
19719
- $ref: "#/components/schemas/Timestamp"
19720
- ingestedAt:
19721
- $ref: "#/components/schemas/Timestamp"
19722
- conversation:
19723
- type: string
19724
- description: The ID of the conversation the issue belongs to
19725
- cluster:
19726
- type: string
19727
- description: The ID of the cluster the issue has been linked to
19728
- urls:
19729
- type: object
19730
- description: URLs associated with the conversation issue
19731
- properties:
19732
- location:
19733
- type: string
19734
- description: URL of the conversation issue in the API
19735
- format: uri
19736
- required:
19737
- - location
19738
- required:
19739
- - object
19740
- - id
19741
- - title
19742
- - summary
19743
- - createdAt
19744
- - ingestedAt
19745
- - conversation
19746
- - urls
19747
19837
  ConversationSource:
19748
19838
  oneOf:
19749
19839
  - type: string
@@ -19850,7 +19940,52 @@ components:
19850
19940
  $ref: "#/components/schemas/ConversationPart"
19851
19941
  required:
19852
19942
  - id
19853
- - parts
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
19854
19989
  AgentsSetupState:
19855
19990
  type: object
19856
19991
  description: State and settings of the agent
@@ -19906,6 +20041,36 @@ components:
19906
20041
  - email
19907
20042
  - settings
19908
20043
  - stats
20044
+ OrganizationAgentInstructions:
20045
+ type: object
20046
+ properties:
20047
+ object:
20048
+ type: string
20049
+ enum:
20050
+ - agent-instructions
20051
+ instructions:
20052
+ $ref: "#/components/schemas/JSONDocument"
20053
+ description: Document containing the Docs agent instructions.
20054
+ updatedAt:
20055
+ $ref: "#/components/schemas/Timestamp"
20056
+ updatedBy:
20057
+ type: string
20058
+ description: Identifier of the member who last updated the instructions.
20059
+ urls:
20060
+ type: object
20061
+ description: URLs related to the custom instructions.
20062
+ properties:
20063
+ location:
20064
+ type: string
20065
+ description: Relative URL to the resource in the API.
20066
+ required:
20067
+ - location
20068
+ required:
20069
+ - object
20070
+ - instructions
20071
+ - updatedAt
20072
+ - updatedBy
20073
+ - urls
19909
20074
  AgentTaskStatus:
19910
20075
  type: string
19911
20076
  description: |
@@ -20349,16 +20514,25 @@ components:
20349
20514
  - failed
20350
20515
  - cancelled
20351
20516
  pages:
20352
- description: Ids of the imported pages
20517
+ description: Imported pages
20353
20518
  type: array
20354
20519
  items:
20355
- type: string
20520
+ type: object
20521
+ properties:
20522
+ id:
20523
+ description: ID of page
20524
+ type: string
20525
+ sourceURL:
20526
+ description: Source URL where the page has been imported from
20527
+ type: string
20528
+ required:
20529
+ - id
20356
20530
  required:
20357
20531
  - id
20358
20532
  - status
20359
- BillingOperationPreviewResponse:
20533
+ SitePublishOperationPreviewResponse:
20360
20534
  description: |
20361
- 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.
20362
20536
  oneOf:
20363
20537
  - type: object
20364
20538
  properties:
@@ -20378,6 +20552,15 @@ components:
20378
20552
  - trial-available
20379
20553
  required:
20380
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
20381
20564
  - type: object
20382
20565
  properties:
20383
20566
  type:
@@ -21189,6 +21372,39 @@ components:
21189
21372
  - $ref: "#/components/schemas/SiteSpace"
21190
21373
  - $ref: "#/components/schemas/SiteSection"
21191
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
21192
21408
  SiteUpgradeReason:
21193
21409
  type: string
21194
21410
  description: The reason or feature that triggered the site upgrade
@@ -21197,9 +21413,8 @@ components:
21197
21413
  - type: string
21198
21414
  enum:
21199
21415
  - settings
21200
- - publish-downgrade
21201
- - from-billing-modal
21202
- - payment-failed-modal
21416
+ - billing-page
21417
+ - end-of-trial
21203
21418
  SitePublishingAuth:
21204
21419
  allOf:
21205
21420
  - oneOf:
@@ -21255,13 +21470,6 @@ components:
21255
21470
  type: string
21256
21471
  description: |
21257
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.
21258
- includedSiteSpaces:
21259
- type: array
21260
- deprecated: true
21261
- description: |
21262
- 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.
21263
- items:
21264
- type: string
21265
21473
  - type: object
21266
21474
  required:
21267
21475
  - mode
@@ -21424,36 +21632,6 @@ components:
21424
21632
  required:
21425
21633
  - role
21426
21634
  - content
21427
- AIOutputObject:
21428
- type: object
21429
- description: |
21430
- Indicate that the AI should response with a JSON object corresponding to the provided schema.
21431
- properties:
21432
- type:
21433
- type: string
21434
- enum:
21435
- - object
21436
- schema:
21437
- type: object
21438
- description: The JSON schema to use for the object.
21439
- required:
21440
- - type
21441
- - schema
21442
- AIOutputDocument:
21443
- type: object
21444
- description: |
21445
- Indicate that the AI should respond with a rich text document.
21446
- properties:
21447
- type:
21448
- type: string
21449
- enum:
21450
- - document
21451
- required:
21452
- - type
21453
- AIOutputFormat:
21454
- oneOf:
21455
- - $ref: "#/components/schemas/AIOutputObject"
21456
- - $ref: "#/components/schemas/AIOutputDocument"
21457
21635
  AIModel:
21458
21636
  type: string
21459
21637
  enum:
@@ -21536,6 +21714,63 @@ components:
21536
21714
  description: The output to the tool call.
21537
21715
  summary:
21538
21716
  $ref: "#/components/schemas/AIToolCallOtherSummary"
21717
+ AIMessageTask:
21718
+ oneOf:
21719
+ - type: object
21720
+ description: When the agent is responding to a comment.
21721
+ properties:
21722
+ type:
21723
+ type: string
21724
+ enum:
21725
+ - respond_to_comment
21726
+ spaceId:
21727
+ type: string
21728
+ description: The ID of the space to respond to the comment in.
21729
+ changeRequestId:
21730
+ type: string
21731
+ description: The ID of the change request to respond to the comment in.
21732
+ commentId:
21733
+ type: string
21734
+ description: The ID of the comment to respond to.
21735
+ required:
21736
+ - type
21737
+ - spaceId
21738
+ - commentId
21739
+ - type: object
21740
+ description: When the agent is reviewing a change request.
21741
+ properties:
21742
+ type:
21743
+ type: string
21744
+ enum:
21745
+ - review_change_request
21746
+ spaceId:
21747
+ type: string
21748
+ description: The ID of the space the change request is in.
21749
+ changeRequestId:
21750
+ type: string
21751
+ description: The ID of the change request to review.
21752
+ required:
21753
+ - type
21754
+ - spaceId
21755
+ - changeRequestId
21756
+ AIStreamResponseStart:
21757
+ type: object
21758
+ description: |
21759
+ Message emitted by the server to indicate the start of the AI response.
21760
+ properties:
21761
+ type:
21762
+ type: string
21763
+ enum:
21764
+ - response_start
21765
+ messageId:
21766
+ type: string
21767
+ description: |
21768
+ The ID of the message that this event is composing.
21769
+ task:
21770
+ $ref: "#/components/schemas/AIMessageTask"
21771
+ required:
21772
+ - type
21773
+ - messageId
21539
21774
  AIStreamResponseFinish:
21540
21775
  type: object
21541
21776
  description: |
@@ -21819,38 +22054,42 @@ components:
21819
22054
  - tool
21820
22055
  - spaceId
21821
22056
  - page
21822
- AIToolCallCreateAgentTask:
22057
+ AIToolCallCreateChangeRequest:
21823
22058
  type: object
21824
22059
  properties:
21825
22060
  tool:
21826
22061
  type: string
21827
22062
  enum:
21828
- - createAgentTask
22063
+ - createChangeRequest
21829
22064
  spaceId:
21830
22065
  type: string
21831
- description: The ID of the space the task belongs to.
22066
+ description: The ID of the space the change request belongs to.
21832
22067
  action:
21833
22068
  type: string
21834
22069
  enum:
21835
22070
  - create
21836
22071
  - update
21837
- task:
22072
+ changeRequest:
21838
22073
  type: object
21839
22074
  properties:
21840
22075
  id:
21841
22076
  type: string
21842
- description: The unique identifier of the task.
21843
- 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:
21844
22082
  type: string
21845
- description: The title of the task.
22083
+ description: A brief summary of the change request.
21846
22084
  required:
21847
22085
  - id
21848
- - title
22086
+ - number
22087
+ - subject
21849
22088
  required:
21850
22089
  - tool
21851
22090
  - spaceId
21852
22091
  - action
21853
- - task
22092
+ - changeRequest
21854
22093
  AIToolCallComment:
21855
22094
  type: object
21856
22095
  properties:
@@ -21871,6 +22110,59 @@ components:
21871
22110
  - tool
21872
22111
  - spaceId
21873
22112
  - commentId
22113
+ AIToolCallReplyToComment:
22114
+ type: object
22115
+ properties:
22116
+ tool:
22117
+ type: string
22118
+ enum:
22119
+ - replyToComment
22120
+ spaceId:
22121
+ type: string
22122
+ description: The ID of the space being commented.
22123
+ page:
22124
+ description: The page being commented.
22125
+ $ref: "#/components/schemas/ChangedRevisionPage"
22126
+ commentId:
22127
+ type: string
22128
+ description: The ID of the comment being replied to.
22129
+ replyId:
22130
+ type: string
22131
+ description: The ID of the reply being posted.
22132
+ required:
22133
+ - tool
22134
+ - spaceId
22135
+ - commentId
22136
+ - replyId
22137
+ AIToolCallSubmitChangeRequestReview:
22138
+ type: object
22139
+ properties:
22140
+ tool:
22141
+ type: string
22142
+ enum:
22143
+ - submitChangeRequestReview
22144
+ spaceId:
22145
+ type: string
22146
+ description: The ID of the space where the review was submitted.
22147
+ changeRequestId:
22148
+ type: string
22149
+ description: The ID of the change request being reviewed.
22150
+ status:
22151
+ $ref: "#/components/schemas/ChangeRequestReviewStatus"
22152
+ description: Result of the review.
22153
+ reviewId:
22154
+ type: string
22155
+ description: Identifier of the review that was created.
22156
+ commentId:
22157
+ type: string
22158
+ description: Identifier of the comment that was created as part of the review.
22159
+ required:
22160
+ - tool
22161
+ - spaceId
22162
+ - changeRequestId
22163
+ - status
22164
+ - reviewId
22165
+ - commentId
21874
22166
  AIToolCallMCP:
21875
22167
  type: object
21876
22168
  description: Tool called from an MCP server
@@ -21917,8 +22209,10 @@ components:
21917
22209
  - $ref: "#/components/schemas/AIToolCallMovePage"
21918
22210
  - $ref: "#/components/schemas/AIToolCallListModifiedPages"
21919
22211
  - $ref: "#/components/schemas/AIToolCallGetPageDiff"
21920
- - $ref: "#/components/schemas/AIToolCallCreateAgentTask"
22212
+ - $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
21921
22213
  - $ref: "#/components/schemas/AIToolCallComment"
22214
+ - $ref: "#/components/schemas/AIToolCallReplyToComment"
22215
+ - $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
21922
22216
  - $ref: "#/components/schemas/AIToolCallMCP"
21923
22217
  - $ref: "#/components/schemas/AIToolCallOther"
21924
22218
  AIStreamResponseToolCall:
@@ -22009,6 +22303,7 @@ components:
22009
22303
  - suggestions
22010
22304
  AIStreamResponse:
22011
22305
  oneOf:
22306
+ - $ref: "#/components/schemas/AIStreamResponseStart"
22012
22307
  - $ref: "#/components/schemas/AIStreamResponseFinish"
22013
22308
  - $ref: "#/components/schemas/AIStreamResponseDocument"
22014
22309
  - $ref: "#/components/schemas/AIStreamResponseObject"
@@ -23935,17 +24230,6 @@ components:
23935
24230
  - status
23936
24231
  - createdAt
23937
24232
  - verificationErrors
23938
- StaffUserInfo:
23939
- type: object
23940
- description: The GitBook Staff User info.
23941
- properties:
23942
- id:
23943
- type: string
23944
- searchKey:
23945
- type: string
23946
- required:
23947
- - id
23948
- - searchKey
23949
24233
  FirebaseUserInfo:
23950
24234
  type: object
23951
24235
  description: The User Firebase Auth Info.
@@ -23994,6 +24278,8 @@ components:
23994
24278
  type: boolean
23995
24279
  reason:
23996
24280
  $ref: "#/components/schemas/BlockReason"
24281
+ blockPaidOrg:
24282
+ type: boolean
23997
24283
  required:
23998
24284
  - block
23999
24285
  UserImpersonationInfo:
@@ -24073,8 +24359,6 @@ components:
24073
24359
  properties:
24074
24360
  updatedAt:
24075
24361
  $ref: "#/components/schemas/Timestamp"
24076
- searchKey:
24077
- type: string
24078
24362
  organizations:
24079
24363
  type: object
24080
24364
  additionalProperties:
@@ -24089,7 +24373,6 @@ components:
24089
24373
  $ref: "#/components/schemas/UserSpacesPermissions"
24090
24374
  required:
24091
24375
  - updatedAt
24092
- - searchKey
24093
24376
  - organizations
24094
24377
  - collections
24095
24378
  - spaces
@@ -25256,6 +25539,19 @@ components:
25256
25539
  required:
25257
25540
  - channel
25258
25541
  - organization
25542
+ OrganizationAgentInstructionsChannel:
25543
+ type: object
25544
+ description: Subscription channel for Docs agent instructions changes in an organization.
25545
+ properties:
25546
+ channel:
25547
+ type: string
25548
+ enum:
25549
+ - organization-agent-instructions
25550
+ organization:
25551
+ type: string
25552
+ required:
25553
+ - channel
25554
+ - organization
25259
25555
  OrganizationChangeRequestsChannel:
25260
25556
  type: object
25261
25557
  description: Subscription channel for all change requests in an organization.
@@ -25311,24 +25607,6 @@ components:
25311
25607
  - channel
25312
25608
  - space
25313
25609
  - comment
25314
- CommentReplyInfoChannel:
25315
- type: object
25316
- properties:
25317
- channel:
25318
- type: string
25319
- enum:
25320
- - space-comment-reply
25321
- space:
25322
- type: string
25323
- comment:
25324
- type: string
25325
- commentReply:
25326
- type: string
25327
- required:
25328
- - channel
25329
- - space
25330
- - comment
25331
- - commentReply
25332
25610
  CommentRepliesChannel:
25333
25611
  type: object
25334
25612
  properties:
@@ -25789,11 +26067,11 @@ components:
25789
26067
  - $ref: "#/components/schemas/OrganizationTranslationsChannel"
25790
26068
  - $ref: "#/components/schemas/OrganizationTranslationsGlossaryChannel"
25791
26069
  - $ref: "#/components/schemas/OrganizationCustomFontsChannel"
26070
+ - $ref: "#/components/schemas/OrganizationAgentInstructionsChannel"
25792
26071
  - $ref: "#/components/schemas/OrganizationChangeRequestsChannel"
25793
26072
  - $ref: "#/components/schemas/SpaceCommentsChannel"
25794
26073
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"
25795
26074
  - $ref: "#/components/schemas/CommentInfoChannel"
25796
- - $ref: "#/components/schemas/CommentReplyInfoChannel"
25797
26075
  - $ref: "#/components/schemas/CommentRepliesChannel"
25798
26076
  - $ref: "#/components/schemas/IntegrationChannel"
25799
26077
  - $ref: "#/components/schemas/IntegrationInstallationChannel"
@@ -26058,41 +26336,12 @@ components:
26058
26336
  type: array
26059
26337
  items:
26060
26338
  $ref: "#/components/schemas/AIMessageStep"
26339
+ task:
26340
+ $ref: "#/components/schemas/AIMessageTask"
26061
26341
  required:
26062
26342
  - id
26063
26343
  - role
26064
26344
  - steps
26065
- AgentRequestReset:
26066
- type: object
26067
- description: |
26068
- Request to reset the chat.
26069
- properties:
26070
- type:
26071
- type: string
26072
- enum:
26073
- - reset
26074
- required:
26075
- - type
26076
- AgentRequestPostMessage:
26077
- type: object
26078
- description: |
26079
- Request to post a message to the agent.
26080
- properties:
26081
- type:
26082
- type: string
26083
- enum:
26084
- - post_message
26085
- message:
26086
- $ref: "#/components/schemas/AIMessageInput"
26087
- required:
26088
- - type
26089
- - message
26090
- AgentRequest:
26091
- description: |
26092
- Payload to send to the agent.
26093
- oneOf:
26094
- - $ref: "#/components/schemas/AgentRequestReset"
26095
- - $ref: "#/components/schemas/AgentRequestPostMessage"
26096
26345
  AgentStreamMessages:
26097
26346
  type: object
26098
26347
  description: |
@@ -26162,11 +26411,28 @@ components:
26162
26411
  required:
26163
26412
  - type
26164
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
26165
26430
  AgentStream:
26166
26431
  oneOf:
26167
26432
  - $ref: "#/components/schemas/AgentStreamMessages"
26168
26433
  - $ref: "#/components/schemas/AgentStreamMessageResponse"
26169
26434
  - $ref: "#/components/schemas/AgentStreamState"
26435
+ - $ref: "#/components/schemas/AgentStreamRPC"
26170
26436
  MergeRulesEvaluationContext:
26171
26437
  type: object
26172
26438
  description: Context available when evaluating merge rules expressions.
@@ -26208,8 +26474,6 @@ components:
26208
26474
  $ref: "#/components/schemas/ImportGitRepository"
26209
26475
  RequestExportToGitRepository:
26210
26476
  $ref: "#/components/schemas/ExportToGitRepository"
26211
- RequestImportContent:
26212
- $ref: "#/components/schemas/ImportContent"
26213
26477
  RequestCreateSpace:
26214
26478
  $ref: "#/components/schemas/CreateSpace"
26215
26479
  RequestRenderIntegrationUI: