@gitbook/api 0.197.0 → 0.199.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 +328 -5
- package/dist/constants.d.ts +4 -0
- package/dist/index.cjs +92 -1
- package/dist/index.js +84 -1
- package/package.json +1 -1
- package/spec/openapi.json +800 -6
- package/spec/openapi.yaml +551 -5
package/spec/openapi.yaml
CHANGED
|
@@ -114,6 +114,12 @@ tags:
|
|
|
114
114
|
{% openapi-schemas spec="gitbook" schemas="SiteAgentSettings" grouped="false" %}
|
|
115
115
|
The SiteAgentSettings object
|
|
116
116
|
{% endopenapi-schemas %}
|
|
117
|
+
- name: site-agent-feedback
|
|
118
|
+
x-page-title: Site agent feedback
|
|
119
|
+
x-page-description: Collect feedback from AI agents about the surfaces your site exposes to them.
|
|
120
|
+
x-parent: sites
|
|
121
|
+
description: |
|
|
122
|
+
Collect structured feedback from AI agents about the tools, operations, commands and content they worked with, so you can see where agents struggle instead of only how often they call you. Feedback is usually about the surfaces you expose to agents, such as your own MCP server, API or CLI; the site is where it is collected and who owns it.
|
|
117
123
|
- name: site-spaces
|
|
118
124
|
x-page-title: Site spaces
|
|
119
125
|
x-page-description: Control which spaces are linked and displayed in a docs site.
|
|
@@ -6842,6 +6848,104 @@ paths:
|
|
|
6842
6848
|
application/json:
|
|
6843
6849
|
schema:
|
|
6844
6850
|
$ref: "#/components/schemas/OrganizationAgentInstructions"
|
|
6851
|
+
/orgs/{organizationId}/agent/conversations:
|
|
6852
|
+
get:
|
|
6853
|
+
operationId: listOrganizationAgentConversations
|
|
6854
|
+
summary: List AI agent conversations in an organization
|
|
6855
|
+
description: "Returns a paginated list of the calling user's AI agent conversations with the organization agent. Unlike change request conversations, these are not tied to a single change request: the agent works across the organization and only attaches a change request when it needs to edit content. A conversation belongs to the user who started it and is never visible to anyone else."
|
|
6856
|
+
x-gitbook-mcp: true
|
|
6857
|
+
tags:
|
|
6858
|
+
- organizations
|
|
6859
|
+
- agents
|
|
6860
|
+
security:
|
|
6861
|
+
- user: []
|
|
6862
|
+
- oauth:
|
|
6863
|
+
- organization:read
|
|
6864
|
+
parameters:
|
|
6865
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6866
|
+
- $ref: "#/components/parameters/listPage"
|
|
6867
|
+
- $ref: "#/components/parameters/listLimit"
|
|
6868
|
+
responses:
|
|
6869
|
+
"200":
|
|
6870
|
+
description: A list of agent conversations
|
|
6871
|
+
content:
|
|
6872
|
+
application/json:
|
|
6873
|
+
schema:
|
|
6874
|
+
allOf:
|
|
6875
|
+
- $ref: "#/components/schemas/List"
|
|
6876
|
+
- type: object
|
|
6877
|
+
required:
|
|
6878
|
+
- items
|
|
6879
|
+
properties:
|
|
6880
|
+
items:
|
|
6881
|
+
type: array
|
|
6882
|
+
items:
|
|
6883
|
+
$ref: "#/components/schemas/AgentConversation"
|
|
6884
|
+
/orgs/{organizationId}/agent/conversations/{conversationId}:
|
|
6885
|
+
put:
|
|
6886
|
+
operationId: provisionOrganizationAgentConversation
|
|
6887
|
+
summary: Provision an AI agent conversation in an organization
|
|
6888
|
+
description: Prepares a conversation so the client can connect to it, giving the agent the credentials it acts with. Call this before opening a conversation; connecting to one that was never provisioned yields an agent whose tools all fail. The conversation itself is only recorded once the user sends a first message, so opening the agent and closing it again leaves nothing behind. Safe to call again to refresh an expiring session.
|
|
6889
|
+
tags:
|
|
6890
|
+
- organizations
|
|
6891
|
+
- agents
|
|
6892
|
+
security:
|
|
6893
|
+
- user: []
|
|
6894
|
+
parameters:
|
|
6895
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6896
|
+
- $ref: "#/components/parameters/conversationId"
|
|
6897
|
+
responses:
|
|
6898
|
+
"204":
|
|
6899
|
+
description: The conversation is ready to be connected to.
|
|
6900
|
+
patch:
|
|
6901
|
+
operationId: updateOrganizationAgentConversation
|
|
6902
|
+
summary: Update an AI agent conversation in an organization
|
|
6903
|
+
description: Updates one of the calling user's conversations with the organization agent. Use this to rename it.
|
|
6904
|
+
x-gitbook-mcp: true
|
|
6905
|
+
tags:
|
|
6906
|
+
- organizations
|
|
6907
|
+
- agents
|
|
6908
|
+
security:
|
|
6909
|
+
- user: []
|
|
6910
|
+
- oauth:
|
|
6911
|
+
- organization:write
|
|
6912
|
+
parameters:
|
|
6913
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6914
|
+
- $ref: "#/components/parameters/conversationId"
|
|
6915
|
+
requestBody:
|
|
6916
|
+
required: true
|
|
6917
|
+
content:
|
|
6918
|
+
application/json:
|
|
6919
|
+
schema:
|
|
6920
|
+
type: object
|
|
6921
|
+
required:
|
|
6922
|
+
- title
|
|
6923
|
+
properties:
|
|
6924
|
+
title:
|
|
6925
|
+
type: string
|
|
6926
|
+
description: The new title of the conversation.
|
|
6927
|
+
responses:
|
|
6928
|
+
"200":
|
|
6929
|
+
description: The updated conversation.
|
|
6930
|
+
content:
|
|
6931
|
+
application/json:
|
|
6932
|
+
schema:
|
|
6933
|
+
$ref: "#/components/schemas/AgentConversation"
|
|
6934
|
+
delete:
|
|
6935
|
+
operationId: deleteOrganizationAgentConversation
|
|
6936
|
+
summary: Delete an agent conversation in an organization
|
|
6937
|
+
description: Deletes one of the calling user's conversations with the organization agent, destroying the messages it holds. This cannot be undone.
|
|
6938
|
+
tags:
|
|
6939
|
+
- organizations
|
|
6940
|
+
- agents
|
|
6941
|
+
security:
|
|
6942
|
+
- user: []
|
|
6943
|
+
parameters:
|
|
6944
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6945
|
+
- $ref: "#/components/parameters/conversationId"
|
|
6946
|
+
responses:
|
|
6947
|
+
"205":
|
|
6948
|
+
description: The conversation has been deleted.
|
|
6845
6949
|
/orgs/{organizationId}/translations:
|
|
6846
6950
|
get:
|
|
6847
6951
|
operationId: listTranslations
|
|
@@ -8497,6 +8601,11 @@ paths:
|
|
|
8497
8601
|
draft:
|
|
8498
8602
|
type: boolean
|
|
8499
8603
|
description: Whether the site section group should be kept in draft mode. Setting it to true makes the site section group draft. Setting it to false makes the site section group live.
|
|
8604
|
+
parentSectionGroupId:
|
|
8605
|
+
description: ID of the parent section group to move this section group into. Set to null to move the section group to the root of the site.
|
|
8606
|
+
oneOf:
|
|
8607
|
+
- type: string
|
|
8608
|
+
- type: "null"
|
|
8500
8609
|
responses:
|
|
8501
8610
|
"200":
|
|
8502
8611
|
description: OK
|
|
@@ -8981,11 +9090,32 @@ paths:
|
|
|
8981
9090
|
- $ref: "#/components/schemas/SearchRecordResult"
|
|
8982
9091
|
discriminator:
|
|
8983
9092
|
propertyName: type
|
|
9093
|
+
/orgs/{organizationId}/sites/{siteId}/search/prewarm:
|
|
9094
|
+
post:
|
|
9095
|
+
operationId: prewarmSiteSearch
|
|
9096
|
+
summary: Prewarm a site's search cache
|
|
9097
|
+
description: Hints the search backend that latency-sensitive site search requests are likely to arrive soon. Call this when a visitor opens the site's search interface.
|
|
9098
|
+
tags:
|
|
9099
|
+
- sites
|
|
9100
|
+
security:
|
|
9101
|
+
- user: []
|
|
9102
|
+
- oauth:
|
|
9103
|
+
- site:search
|
|
9104
|
+
parameters:
|
|
9105
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9106
|
+
- $ref: "#/components/parameters/siteId"
|
|
9107
|
+
responses:
|
|
9108
|
+
"204":
|
|
9109
|
+
description: Search cache warmup accepted
|
|
8984
9110
|
/orgs/{organizationId}/sites/{siteId}/agent-feedback:
|
|
8985
9111
|
post:
|
|
8986
9112
|
operationId: submitSiteAgentFeedback
|
|
8987
|
-
|
|
8988
|
-
|
|
9113
|
+
deprecated: true
|
|
9114
|
+
summary: Submit agent feedback for a site. (Deprecated) use submitAgentFeedbackToSite instead.
|
|
9115
|
+
description: |-
|
|
9116
|
+
Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.
|
|
9117
|
+
|
|
9118
|
+
Deprecated in favour of `submitAgentFeedbackToSite`, which collects feedback about every surface a site exposes to agents. Send the same payload there as a `site-content` subject.
|
|
8989
9119
|
x-internal: true
|
|
8990
9120
|
tags:
|
|
8991
9121
|
- site-insights
|
|
@@ -9031,6 +9161,49 @@ paths:
|
|
|
9031
9161
|
responses:
|
|
9032
9162
|
"204":
|
|
9033
9163
|
description: Feedback submitted
|
|
9164
|
+
/orgs/{organizationId}/sites/{siteId}/agents/feedback:
|
|
9165
|
+
post:
|
|
9166
|
+
operationId: submitAgentFeedbackToSite
|
|
9167
|
+
summary: Submit agent feedback
|
|
9168
|
+
description: Submit structured feedback from an AI agent about an MCP tool or operation, a CLI command, an API endpoint, a site page/mcp, or the product overall. The site collects and owns the feedback rather than being its subject.
|
|
9169
|
+
x-internal: true
|
|
9170
|
+
tags:
|
|
9171
|
+
- site-agent-feedback
|
|
9172
|
+
security:
|
|
9173
|
+
- user: []
|
|
9174
|
+
- oauth:
|
|
9175
|
+
- site:write
|
|
9176
|
+
parameters:
|
|
9177
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9178
|
+
- $ref: "#/components/parameters/siteId"
|
|
9179
|
+
requestBody:
|
|
9180
|
+
required: true
|
|
9181
|
+
content:
|
|
9182
|
+
application/json:
|
|
9183
|
+
schema:
|
|
9184
|
+
$ref: "#/components/schemas/AgentFeedbackInput"
|
|
9185
|
+
responses:
|
|
9186
|
+
"201":
|
|
9187
|
+
description: The feedback was recorded successfully.
|
|
9188
|
+
content:
|
|
9189
|
+
application/json:
|
|
9190
|
+
schema:
|
|
9191
|
+
type: object
|
|
9192
|
+
additionalProperties: false
|
|
9193
|
+
properties:
|
|
9194
|
+
id:
|
|
9195
|
+
type: string
|
|
9196
|
+
description: Unique identifier of the submission.
|
|
9197
|
+
result:
|
|
9198
|
+
type: string
|
|
9199
|
+
description: Message relayed back to the agent, acknowledging the feedback and telling it what happens next.
|
|
9200
|
+
required:
|
|
9201
|
+
- id
|
|
9202
|
+
- result
|
|
9203
|
+
"400":
|
|
9204
|
+
$ref: "#/components/responses/BadRequestError"
|
|
9205
|
+
"403":
|
|
9206
|
+
$ref: "#/components/responses/ForbiddenError"
|
|
9034
9207
|
/orgs/{organizationId}/sites/{siteId}/ask:
|
|
9035
9208
|
post:
|
|
9036
9209
|
operationId: streamAskInSite
|
|
@@ -16041,6 +16214,36 @@ components:
|
|
|
16041
16214
|
- $ref: "#/components/schemas/DocumentTableDefinitionSelect"
|
|
16042
16215
|
- $ref: "#/components/schemas/DocumentTableDefinitionContentRef"
|
|
16043
16216
|
- $ref: "#/components/schemas/DocumentTableDefinitionImage"
|
|
16217
|
+
DocumentTableCellSpan:
|
|
16218
|
+
description: Number of rows or columns covered by a table cell merge
|
|
16219
|
+
type: integer
|
|
16220
|
+
minimum: 1
|
|
16221
|
+
maximum: 50
|
|
16222
|
+
DocumentTableCellMerge:
|
|
16223
|
+
description: Positional table cell merge range. The anchor and spans are resolved against the current sorted record order and visible column order. The current document model applies only non-overlapping horizontal or vertical merges of adjacent Text or Number body cells; unsupported ranges are removed during normalization.
|
|
16224
|
+
type: object
|
|
16225
|
+
properties:
|
|
16226
|
+
anchor:
|
|
16227
|
+
type: object
|
|
16228
|
+
description: Cell at the top-left of the merged range
|
|
16229
|
+
properties:
|
|
16230
|
+
record:
|
|
16231
|
+
type: string
|
|
16232
|
+
description: ID of the anchor record
|
|
16233
|
+
column:
|
|
16234
|
+
type: string
|
|
16235
|
+
description: ID of the anchor column
|
|
16236
|
+
required:
|
|
16237
|
+
- record
|
|
16238
|
+
- column
|
|
16239
|
+
rowSpan:
|
|
16240
|
+
$ref: "#/components/schemas/DocumentTableCellSpan"
|
|
16241
|
+
colSpan:
|
|
16242
|
+
$ref: "#/components/schemas/DocumentTableCellSpan"
|
|
16243
|
+
required:
|
|
16244
|
+
- anchor
|
|
16245
|
+
- rowSpan
|
|
16246
|
+
- colSpan
|
|
16044
16247
|
DocumentFragment:
|
|
16045
16248
|
type: object
|
|
16046
16249
|
properties:
|
|
@@ -16093,6 +16296,11 @@ components:
|
|
|
16093
16296
|
type: object
|
|
16094
16297
|
additionalProperties:
|
|
16095
16298
|
$ref: "#/components/schemas/DocumentTableDefinition"
|
|
16299
|
+
cellMerges:
|
|
16300
|
+
type: array
|
|
16301
|
+
description: Positional table cell merge ranges. The current document model retains only non-overlapping horizontal or vertical merges between adjacent Text or Number body cells. Anchors and spans are resolved against the table's current sorted record order and visible column order.
|
|
16302
|
+
items:
|
|
16303
|
+
$ref: "#/components/schemas/DocumentTableCellMerge"
|
|
16096
16304
|
fullWidth:
|
|
16097
16305
|
type: boolean
|
|
16098
16306
|
description: Whether to render the block as a full width one
|
|
@@ -19001,7 +19209,10 @@ components:
|
|
|
19001
19209
|
description: The title of the conversation, generated from the first message. Absent until generated.
|
|
19002
19210
|
shared:
|
|
19003
19211
|
type: boolean
|
|
19004
|
-
description: Whether the conversation is shared with everyone who has access to
|
|
19212
|
+
description: Whether the conversation is shared with everyone who has access to its context, rather than only its creator. Conversations are shared by default; a private conversation is only ever visible to its creator and stays private for good.
|
|
19213
|
+
changeRequest:
|
|
19214
|
+
type: string
|
|
19215
|
+
description: The change request the conversation is currently editing in. Only set for organization agent conversations, which start without one and attach a change request the first time the agent needs to change content. Absent for change request conversations, whose change request is the conversation's context.
|
|
19005
19216
|
createdAt:
|
|
19006
19217
|
$ref: "#/components/schemas/Timestamp"
|
|
19007
19218
|
updatedAt:
|
|
@@ -21440,6 +21651,11 @@ components:
|
|
|
21440
21651
|
additionalProperties:
|
|
21441
21652
|
type: string
|
|
21442
21653
|
description: Whitelisted search parameters from the visitor authentication request.
|
|
21654
|
+
cookies:
|
|
21655
|
+
type: object
|
|
21656
|
+
additionalProperties:
|
|
21657
|
+
type: string
|
|
21658
|
+
description: Whitelisted cookies from the visitor authentication request.
|
|
21443
21659
|
action:
|
|
21444
21660
|
type: string
|
|
21445
21661
|
enum:
|
|
@@ -27025,6 +27241,209 @@ components:
|
|
|
27025
27241
|
enum:
|
|
27026
27242
|
- mcp
|
|
27027
27243
|
- assistant
|
|
27244
|
+
AgentFeedbackReportedBy:
|
|
27245
|
+
type: object
|
|
27246
|
+
additionalProperties: false
|
|
27247
|
+
description: The agent that reported the feedback. It must never identify the end user the agent is acting on behalf of.
|
|
27248
|
+
properties:
|
|
27249
|
+
model:
|
|
27250
|
+
type: string
|
|
27251
|
+
maxLength: 100
|
|
27252
|
+
description: Self-reported model powering the agent.
|
|
27253
|
+
userAgent:
|
|
27254
|
+
type: string
|
|
27255
|
+
maxLength: 512
|
|
27256
|
+
description: User-Agent the agent itself presented, for example `claude-code/1.2.3`. It is what identifies the harness the agent ran in.
|
|
27257
|
+
onDemand:
|
|
27258
|
+
type: boolean
|
|
27259
|
+
default: false
|
|
27260
|
+
description: Whether the user explicitly asked the agent to submit this feedback.
|
|
27261
|
+
AgentFeedbackSubjectMCPTool:
|
|
27262
|
+
type: object
|
|
27263
|
+
additionalProperties: false
|
|
27264
|
+
description: Feedback about a tool exposed by an MCP server.
|
|
27265
|
+
properties:
|
|
27266
|
+
kind:
|
|
27267
|
+
type: string
|
|
27268
|
+
enum:
|
|
27269
|
+
- mcp-tool
|
|
27270
|
+
toolName:
|
|
27271
|
+
type: string
|
|
27272
|
+
maxLength: 200
|
|
27273
|
+
description: Name of the tool the agent called, as it was exposed to the agent.
|
|
27274
|
+
target:
|
|
27275
|
+
type: string
|
|
27276
|
+
maxLength: 200
|
|
27277
|
+
description: What the tool was pointed at, for a tool that dispatches to something else rather than doing one fixed thing. For a tool that invokes an API operation, the identifier of that operation.
|
|
27278
|
+
required:
|
|
27279
|
+
- kind
|
|
27280
|
+
- toolName
|
|
27281
|
+
AgentFeedbackSubjectCliCommand:
|
|
27282
|
+
type: object
|
|
27283
|
+
additionalProperties: false
|
|
27284
|
+
description: Feedback about a command exposed by a command line interface.
|
|
27285
|
+
properties:
|
|
27286
|
+
kind:
|
|
27287
|
+
type: string
|
|
27288
|
+
enum:
|
|
27289
|
+
- cli-command
|
|
27290
|
+
command:
|
|
27291
|
+
type: string
|
|
27292
|
+
maxLength: 200
|
|
27293
|
+
description: The command the agent ran, without its arguments. Do not include any auth or other sensitive information.
|
|
27294
|
+
flags:
|
|
27295
|
+
type: array
|
|
27296
|
+
maxItems: 50
|
|
27297
|
+
description: Names of the flags passed to the command. It must never contain their values.
|
|
27298
|
+
items:
|
|
27299
|
+
type: string
|
|
27300
|
+
maxLength: 100
|
|
27301
|
+
required:
|
|
27302
|
+
- kind
|
|
27303
|
+
- command
|
|
27304
|
+
AgentFeedbackSubjectApiEndpoint:
|
|
27305
|
+
type: object
|
|
27306
|
+
additionalProperties: false
|
|
27307
|
+
description: Feedback about an API endpoint the agent called directly, without an MCP server or a command line interface in between.
|
|
27308
|
+
properties:
|
|
27309
|
+
kind:
|
|
27310
|
+
type: string
|
|
27311
|
+
enum:
|
|
27312
|
+
- api-endpoint
|
|
27313
|
+
method:
|
|
27314
|
+
type: string
|
|
27315
|
+
description: HTTP method of the endpoint.
|
|
27316
|
+
enum:
|
|
27317
|
+
- GET
|
|
27318
|
+
- POST
|
|
27319
|
+
- PUT
|
|
27320
|
+
- PATCH
|
|
27321
|
+
- DELETE
|
|
27322
|
+
- HEAD
|
|
27323
|
+
- OPTIONS
|
|
27324
|
+
path:
|
|
27325
|
+
type: string
|
|
27326
|
+
maxLength: 500
|
|
27327
|
+
description: Templated path of the endpoint, for example `/v1/orders/{orderId}/fulfill`. It must never contain resolved identifiers or query string values.
|
|
27328
|
+
required:
|
|
27329
|
+
- kind
|
|
27330
|
+
- method
|
|
27331
|
+
- path
|
|
27332
|
+
AgentFeedbackSubjectDocumentation:
|
|
27333
|
+
type: object
|
|
27334
|
+
additionalProperties: false
|
|
27335
|
+
description: Feedback about published documentation, such as a page that is outdated, incorrect, or missing information the agent needed to help its user.
|
|
27336
|
+
properties:
|
|
27337
|
+
kind:
|
|
27338
|
+
type: string
|
|
27339
|
+
enum:
|
|
27340
|
+
- documentation
|
|
27341
|
+
url:
|
|
27342
|
+
description: URL of the content the feedback is about.
|
|
27343
|
+
$ref: "#/components/schemas/URL"
|
|
27344
|
+
required:
|
|
27345
|
+
- kind
|
|
27346
|
+
- url
|
|
27347
|
+
AgentFeedbackSubjectGeneric:
|
|
27348
|
+
type: object
|
|
27349
|
+
additionalProperties: false
|
|
27350
|
+
description: Feedback with no single tool, command, endpoint, or page behind it, such as product friction or a capability the agent expected to find and could not.
|
|
27351
|
+
properties:
|
|
27352
|
+
kind:
|
|
27353
|
+
type: string
|
|
27354
|
+
enum:
|
|
27355
|
+
- generic
|
|
27356
|
+
required:
|
|
27357
|
+
- kind
|
|
27358
|
+
AgentFeedbackSubject:
|
|
27359
|
+
description: What the feedback is about. `kind` determines both the shape of the subject and the surface the agent was working through.
|
|
27360
|
+
oneOf:
|
|
27361
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectMCPTool"
|
|
27362
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectCliCommand"
|
|
27363
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectApiEndpoint"
|
|
27364
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectDocumentation"
|
|
27365
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectGeneric"
|
|
27366
|
+
discriminator:
|
|
27367
|
+
propertyName: kind
|
|
27368
|
+
AgentFeedbackContent:
|
|
27369
|
+
type: object
|
|
27370
|
+
additionalProperties: false
|
|
27371
|
+
description: The content of the feedback. It must never contain parameter values, request or response bodies, credentials, or anything identifying the end user the agent acted for.
|
|
27372
|
+
properties:
|
|
27373
|
+
category:
|
|
27374
|
+
type: string
|
|
27375
|
+
description: |-
|
|
27376
|
+
Classification of the feedback:
|
|
27377
|
+
- Usability: The subject was hard to understand or use correctly, such as a confusing name or unclear parameters.
|
|
27378
|
+
- Reliability: The subject behaved inconsistently, failed unexpectedly, or returned unusable results.
|
|
27379
|
+
- Documentation: The description, schema, or guidance about the subject was missing, unclear, or misleading.
|
|
27380
|
+
- Efficiency: Reaching the outcome took more calls, steps, or tokens than it should have.
|
|
27381
|
+
- Interoperability: The subject did not compose well with other tools, operations, or formats.
|
|
27382
|
+
- Could not accomplish: Nothing exposed to the agent could accomplish what it needed to do.
|
|
27383
|
+
enum:
|
|
27384
|
+
- usability
|
|
27385
|
+
- reliability
|
|
27386
|
+
- documentation
|
|
27387
|
+
- efficiency
|
|
27388
|
+
- interoperability
|
|
27389
|
+
- could-not-accomplish
|
|
27390
|
+
severity:
|
|
27391
|
+
type: string
|
|
27392
|
+
description: How much the issue impeded the agent.
|
|
27393
|
+
enum:
|
|
27394
|
+
- low
|
|
27395
|
+
- medium
|
|
27396
|
+
- high
|
|
27397
|
+
goal:
|
|
27398
|
+
description: What the agent was working towards when it ran into the issue.
|
|
27399
|
+
$ref: "#/components/schemas/AgentGoal"
|
|
27400
|
+
summary:
|
|
27401
|
+
type: string
|
|
27402
|
+
minLength: 1
|
|
27403
|
+
maxLength: 256
|
|
27404
|
+
description: A short summary of what went wrong, in the agent's own words.
|
|
27405
|
+
detail:
|
|
27406
|
+
type: string
|
|
27407
|
+
maxLength: 4096
|
|
27408
|
+
description: Additional explanation of the issue and how the agent ran into it.
|
|
27409
|
+
workaround:
|
|
27410
|
+
type: string
|
|
27411
|
+
maxLength: 2048
|
|
27412
|
+
description: How the agent worked around the issue, when it managed to.
|
|
27413
|
+
metrics:
|
|
27414
|
+
type: object
|
|
27415
|
+
additionalProperties: false
|
|
27416
|
+
description: How the agent interacted with the subject before reporting.
|
|
27417
|
+
properties:
|
|
27418
|
+
callCount:
|
|
27419
|
+
type: integer
|
|
27420
|
+
minimum: 0
|
|
27421
|
+
description: Number of times the agent used the subject.
|
|
27422
|
+
successCount:
|
|
27423
|
+
type: integer
|
|
27424
|
+
minimum: 0
|
|
27425
|
+
description: Number of those uses that produced a usable result.
|
|
27426
|
+
retryCount:
|
|
27427
|
+
type: integer
|
|
27428
|
+
minimum: 0
|
|
27429
|
+
description: Number of those uses that were retries after a failure.
|
|
27430
|
+
required:
|
|
27431
|
+
- category
|
|
27432
|
+
- summary
|
|
27433
|
+
AgentFeedbackInput:
|
|
27434
|
+
type: object
|
|
27435
|
+
additionalProperties: false
|
|
27436
|
+
description: Feedback submitted by an AI agent about a tool, command, endpoint or page it worked with. `reportedBy` and `feedback` have the same shape whatever the feedback is about; only `subject` varies.
|
|
27437
|
+
properties:
|
|
27438
|
+
reportedBy:
|
|
27439
|
+
$ref: "#/components/schemas/AgentFeedbackReportedBy"
|
|
27440
|
+
subject:
|
|
27441
|
+
$ref: "#/components/schemas/AgentFeedbackSubject"
|
|
27442
|
+
feedback:
|
|
27443
|
+
$ref: "#/components/schemas/AgentFeedbackContent"
|
|
27444
|
+
required:
|
|
27445
|
+
- subject
|
|
27446
|
+
- feedback
|
|
27028
27447
|
SiteInsightsSession:
|
|
27029
27448
|
type: object
|
|
27030
27449
|
description: Identifiers for a GitBook site session, used for analytics and adaptive content.
|
|
@@ -28669,6 +29088,10 @@ components:
|
|
|
28669
29088
|
description: The base revision ID used to compare the page change in the current conversation.
|
|
28670
29089
|
page:
|
|
28671
29090
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
29091
|
+
changeRequestId:
|
|
29092
|
+
type: string
|
|
29093
|
+
description: |
|
|
29094
|
+
The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.
|
|
28672
29095
|
required:
|
|
28673
29096
|
- tool
|
|
28674
29097
|
- spaceId
|
|
@@ -28689,6 +29112,10 @@ components:
|
|
|
28689
29112
|
description: The base revision ID used to compare the page change in the current conversation.
|
|
28690
29113
|
page:
|
|
28691
29114
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
29115
|
+
changeRequestId:
|
|
29116
|
+
type: string
|
|
29117
|
+
description: |
|
|
29118
|
+
The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.
|
|
28692
29119
|
required:
|
|
28693
29120
|
- tool
|
|
28694
29121
|
- spaceId
|
|
@@ -28709,6 +29136,10 @@ components:
|
|
|
28709
29136
|
description: The base revision ID used to compare the page deletion in the current conversation.
|
|
28710
29137
|
page:
|
|
28711
29138
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
29139
|
+
changeRequestId:
|
|
29140
|
+
type: string
|
|
29141
|
+
description: |
|
|
29142
|
+
The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.
|
|
28712
29143
|
required:
|
|
28713
29144
|
- tool
|
|
28714
29145
|
- spaceId
|
|
@@ -28729,6 +29160,10 @@ components:
|
|
|
28729
29160
|
description: The base revision ID used to compare the page rename in the current conversation.
|
|
28730
29161
|
page:
|
|
28731
29162
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
29163
|
+
changeRequestId:
|
|
29164
|
+
type: string
|
|
29165
|
+
description: |
|
|
29166
|
+
The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.
|
|
28732
29167
|
title:
|
|
28733
29168
|
type: string
|
|
28734
29169
|
description: The new title of the page.
|
|
@@ -28753,6 +29188,10 @@ components:
|
|
|
28753
29188
|
description: The base revision ID used to compare the page move in the current conversation.
|
|
28754
29189
|
page:
|
|
28755
29190
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
29191
|
+
changeRequestId:
|
|
29192
|
+
type: string
|
|
29193
|
+
description: |
|
|
29194
|
+
The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.
|
|
28756
29195
|
to:
|
|
28757
29196
|
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
28758
29197
|
moveType:
|
|
@@ -29499,6 +29938,11 @@ components:
|
|
|
29499
29938
|
$ref: "#/components/schemas/AIMessageTask"
|
|
29500
29939
|
response:
|
|
29501
29940
|
$ref: "#/components/schemas/AIMessageResponseMetadata"
|
|
29941
|
+
createdAt:
|
|
29942
|
+
type: string
|
|
29943
|
+
format: date-time
|
|
29944
|
+
description: |
|
|
29945
|
+
When the message was added to the conversation. Absent on messages recorded before this field existed.
|
|
29502
29946
|
required:
|
|
29503
29947
|
- id
|
|
29504
29948
|
- role
|
|
@@ -30255,6 +30699,11 @@ components:
|
|
|
30255
30699
|
- page_view
|
|
30256
30700
|
required:
|
|
30257
30701
|
- type
|
|
30702
|
+
SiteInsightsMarkdownSource:
|
|
30703
|
+
description: How a page's markdown was requested. `page-action` means a reader used the site's page-actions menu — its copy or view-as-markdown action — rather than a client fetching the URL directly.
|
|
30704
|
+
type: string
|
|
30705
|
+
enum:
|
|
30706
|
+
- page-action
|
|
30258
30707
|
SiteInsightsEventPageMarkdownRequest:
|
|
30259
30708
|
allOf:
|
|
30260
30709
|
- $ref: "#/components/schemas/SiteInsightsEventBase"
|
|
@@ -30264,6 +30713,8 @@ components:
|
|
|
30264
30713
|
type: string
|
|
30265
30714
|
enum:
|
|
30266
30715
|
- page_markdown_request
|
|
30716
|
+
markdownSource:
|
|
30717
|
+
$ref: "#/components/schemas/SiteInsightsMarkdownSource"
|
|
30267
30718
|
required:
|
|
30268
30719
|
- type
|
|
30269
30720
|
SiteInsightsEventSearchOpen:
|
|
@@ -30875,6 +31326,14 @@ components:
|
|
|
30875
31326
|
type: string
|
|
30876
31327
|
enum:
|
|
30877
31328
|
- eventPageNotFoundType
|
|
31329
|
+
- type: object
|
|
31330
|
+
required:
|
|
31331
|
+
- column
|
|
31332
|
+
properties:
|
|
31333
|
+
column:
|
|
31334
|
+
type: string
|
|
31335
|
+
enum:
|
|
31336
|
+
- eventMarkdownSource
|
|
30878
31337
|
- type: object
|
|
30879
31338
|
required:
|
|
30880
31339
|
- column
|
|
@@ -31450,6 +31909,21 @@ components:
|
|
|
31450
31909
|
oneOf:
|
|
31451
31910
|
- type: "null"
|
|
31452
31911
|
- $ref: "#/components/schemas/SiteInsightsPageNotFoundType"
|
|
31912
|
+
- type: object
|
|
31913
|
+
required:
|
|
31914
|
+
- column
|
|
31915
|
+
- values
|
|
31916
|
+
properties:
|
|
31917
|
+
column:
|
|
31918
|
+
type: string
|
|
31919
|
+
enum:
|
|
31920
|
+
- eventMarkdownSource
|
|
31921
|
+
values:
|
|
31922
|
+
type: array
|
|
31923
|
+
items:
|
|
31924
|
+
oneOf:
|
|
31925
|
+
- type: "null"
|
|
31926
|
+
- $ref: "#/components/schemas/SiteInsightsMarkdownSource"
|
|
31453
31927
|
- type: object
|
|
31454
31928
|
required:
|
|
31455
31929
|
- column
|
|
@@ -33585,7 +34059,32 @@ components:
|
|
|
33585
34059
|
- stage
|
|
33586
34060
|
- startedAt
|
|
33587
34061
|
- updatedAt
|
|
33588
|
-
|
|
34062
|
+
GitSyncRunOperation:
|
|
34063
|
+
type: string
|
|
34064
|
+
description: Operation performed by a durable Git Sync run.
|
|
34065
|
+
enum:
|
|
34066
|
+
- import
|
|
34067
|
+
- export
|
|
34068
|
+
- check
|
|
34069
|
+
- merge
|
|
34070
|
+
- recovery
|
|
34071
|
+
GitSyncRunState:
|
|
34072
|
+
type: string
|
|
34073
|
+
description: Lifecycle state of a durable Git Sync run.
|
|
34074
|
+
enum:
|
|
34075
|
+
- queued
|
|
34076
|
+
- running
|
|
34077
|
+
- success
|
|
34078
|
+
- failure
|
|
34079
|
+
- timeout
|
|
34080
|
+
- cancelled
|
|
34081
|
+
GitProviderChangeState:
|
|
34082
|
+
type: string
|
|
34083
|
+
description: Lifecycle state of a pull or merge request on the Git provider.
|
|
34084
|
+
enum:
|
|
34085
|
+
- open
|
|
34086
|
+
- closed
|
|
34087
|
+
- merged
|
|
33589
34088
|
GitSyncSiteStructureSectionGroup:
|
|
33590
34089
|
type: object
|
|
33591
34090
|
additionalProperties: false
|
|
@@ -35333,6 +35832,24 @@ components:
|
|
|
35333
35832
|
- idle
|
|
35334
35833
|
- processing
|
|
35335
35834
|
- errored
|
|
35835
|
+
AgentQueuedMessage:
|
|
35836
|
+
type: object
|
|
35837
|
+
description: |
|
|
35838
|
+
A message waiting for the agent's current response to finish, held in the order it will be processed. The identifier addresses the entry to remove it from the queue or run it immediately.
|
|
35839
|
+
properties:
|
|
35840
|
+
id:
|
|
35841
|
+
type: string
|
|
35842
|
+
description: Identifier of the queue entry, unique within the conversation.
|
|
35843
|
+
message:
|
|
35844
|
+
$ref: "#/components/schemas/AIMessageInput"
|
|
35845
|
+
queuedAt:
|
|
35846
|
+
type: string
|
|
35847
|
+
format: date-time
|
|
35848
|
+
description: When the message entered the queue.
|
|
35849
|
+
required:
|
|
35850
|
+
- id
|
|
35851
|
+
- message
|
|
35852
|
+
- queuedAt
|
|
35336
35853
|
AgentActivity:
|
|
35337
35854
|
type: object
|
|
35338
35855
|
description: |
|
|
@@ -35350,6 +35867,10 @@ components:
|
|
|
35350
35867
|
type: string
|
|
35351
35868
|
description: |
|
|
35352
35869
|
When `type` is `tool`, the name of the tool being called (matches `AIToolCall.tool`).
|
|
35870
|
+
label:
|
|
35871
|
+
type: string
|
|
35872
|
+
description: |
|
|
35873
|
+
What to show the user instead of a label derived from `tool`, for a tool whose name means nothing to them — an MCP server's, say, where it reads "Searching documentation".
|
|
35353
35874
|
required:
|
|
35354
35875
|
- type
|
|
35355
35876
|
AgentQuestionOption:
|
|
@@ -35384,6 +35905,20 @@ components:
|
|
|
35384
35905
|
- toolCallId
|
|
35385
35906
|
- question
|
|
35386
35907
|
- options
|
|
35908
|
+
AgentEditTarget:
|
|
35909
|
+
type: object
|
|
35910
|
+
description: |
|
|
35911
|
+
Where the agent's content edits land. Usually a change request, which is how published content is changed; a space whose live edits are unlocked is the exception, and is edited in place. Carries identifiers only: the client resolves the change request's number and subject, or the space's title, through the API.
|
|
35912
|
+
properties:
|
|
35913
|
+
spaceId:
|
|
35914
|
+
type: string
|
|
35915
|
+
description: The ID of the space the edits are made in.
|
|
35916
|
+
changeRequestId:
|
|
35917
|
+
type: string
|
|
35918
|
+
description: |
|
|
35919
|
+
The ID of the change request the edits are made in. Absent when the space itself is the target, through its unlocked live edits.
|
|
35920
|
+
required:
|
|
35921
|
+
- spaceId
|
|
35387
35922
|
AgentState:
|
|
35388
35923
|
type: object
|
|
35389
35924
|
properties:
|
|
@@ -35396,9 +35931,16 @@ components:
|
|
|
35396
35931
|
type: string
|
|
35397
35932
|
queuedMessages:
|
|
35398
35933
|
type: array
|
|
35399
|
-
description:
|
|
35934
|
+
description: |
|
|
35935
|
+
List of messages sent by the users queued to processed. Superseded by `queue`, which carries the same messages with the identifiers needed to act on them; kept for compatibility with clients that predate it.
|
|
35400
35936
|
items:
|
|
35401
35937
|
$ref: "#/components/schemas/AIMessageInput"
|
|
35938
|
+
queue:
|
|
35939
|
+
type: array
|
|
35940
|
+
description: |
|
|
35941
|
+
Messages waiting for the current response to finish, in the order they will be processed.
|
|
35942
|
+
items:
|
|
35943
|
+
$ref: "#/components/schemas/AgentQueuedMessage"
|
|
35402
35944
|
activity:
|
|
35403
35945
|
$ref: "#/components/schemas/AgentActivity"
|
|
35404
35946
|
description: |
|
|
@@ -35407,6 +35949,10 @@ components:
|
|
|
35407
35949
|
$ref: "#/components/schemas/AgentPendingQuestion"
|
|
35408
35950
|
description: |
|
|
35409
35951
|
A question the agent is waiting for the user to answer. While set, the client replaces the prompt with a choice control.
|
|
35952
|
+
editTarget:
|
|
35953
|
+
$ref: "#/components/schemas/AgentEditTarget"
|
|
35954
|
+
description: |
|
|
35955
|
+
Where the agent currently edits content. Absent until something is attached: the organization agent starts read-only, while a change request agent always edits the change request it belongs to.
|
|
35410
35956
|
required:
|
|
35411
35957
|
- status
|
|
35412
35958
|
- suggestions
|