@gitbook/api 0.198.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 +157 -3
- package/dist/constants.d.ts +4 -0
- package/dist/index.cjs +77 -1
- package/dist/index.js +69 -1
- package/package.json +1 -1
- package/spec/openapi.json +404 -4
- package/spec/openapi.yaml +271 -3
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -12078,6 +12078,184 @@
|
|
|
12078
12078
|
}
|
|
12079
12079
|
}
|
|
12080
12080
|
},
|
|
12081
|
+
"/orgs/{organizationId}/agent/conversations": {
|
|
12082
|
+
"get": {
|
|
12083
|
+
"operationId": "listOrganizationAgentConversations",
|
|
12084
|
+
"summary": "List AI agent conversations in an organization",
|
|
12085
|
+
"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.",
|
|
12086
|
+
"x-gitbook-mcp": true,
|
|
12087
|
+
"tags": [
|
|
12088
|
+
"organizations",
|
|
12089
|
+
"agents"
|
|
12090
|
+
],
|
|
12091
|
+
"security": [
|
|
12092
|
+
{
|
|
12093
|
+
"user": []
|
|
12094
|
+
},
|
|
12095
|
+
{
|
|
12096
|
+
"oauth": [
|
|
12097
|
+
"organization:read"
|
|
12098
|
+
]
|
|
12099
|
+
}
|
|
12100
|
+
],
|
|
12101
|
+
"parameters": [
|
|
12102
|
+
{
|
|
12103
|
+
"$ref": "#/components/parameters/organizationId"
|
|
12104
|
+
},
|
|
12105
|
+
{
|
|
12106
|
+
"$ref": "#/components/parameters/listPage"
|
|
12107
|
+
},
|
|
12108
|
+
{
|
|
12109
|
+
"$ref": "#/components/parameters/listLimit"
|
|
12110
|
+
}
|
|
12111
|
+
],
|
|
12112
|
+
"responses": {
|
|
12113
|
+
"200": {
|
|
12114
|
+
"description": "A list of agent conversations",
|
|
12115
|
+
"content": {
|
|
12116
|
+
"application/json": {
|
|
12117
|
+
"schema": {
|
|
12118
|
+
"allOf": [
|
|
12119
|
+
{
|
|
12120
|
+
"$ref": "#/components/schemas/List"
|
|
12121
|
+
},
|
|
12122
|
+
{
|
|
12123
|
+
"type": "object",
|
|
12124
|
+
"required": [
|
|
12125
|
+
"items"
|
|
12126
|
+
],
|
|
12127
|
+
"properties": {
|
|
12128
|
+
"items": {
|
|
12129
|
+
"type": "array",
|
|
12130
|
+
"items": {
|
|
12131
|
+
"$ref": "#/components/schemas/AgentConversation"
|
|
12132
|
+
}
|
|
12133
|
+
}
|
|
12134
|
+
}
|
|
12135
|
+
}
|
|
12136
|
+
]
|
|
12137
|
+
}
|
|
12138
|
+
}
|
|
12139
|
+
}
|
|
12140
|
+
}
|
|
12141
|
+
}
|
|
12142
|
+
}
|
|
12143
|
+
},
|
|
12144
|
+
"/orgs/{organizationId}/agent/conversations/{conversationId}": {
|
|
12145
|
+
"put": {
|
|
12146
|
+
"operationId": "provisionOrganizationAgentConversation",
|
|
12147
|
+
"summary": "Provision an AI agent conversation in an organization",
|
|
12148
|
+
"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.",
|
|
12149
|
+
"tags": [
|
|
12150
|
+
"organizations",
|
|
12151
|
+
"agents"
|
|
12152
|
+
],
|
|
12153
|
+
"security": [
|
|
12154
|
+
{
|
|
12155
|
+
"user": []
|
|
12156
|
+
}
|
|
12157
|
+
],
|
|
12158
|
+
"parameters": [
|
|
12159
|
+
{
|
|
12160
|
+
"$ref": "#/components/parameters/organizationId"
|
|
12161
|
+
},
|
|
12162
|
+
{
|
|
12163
|
+
"$ref": "#/components/parameters/conversationId"
|
|
12164
|
+
}
|
|
12165
|
+
],
|
|
12166
|
+
"responses": {
|
|
12167
|
+
"204": {
|
|
12168
|
+
"description": "The conversation is ready to be connected to."
|
|
12169
|
+
}
|
|
12170
|
+
}
|
|
12171
|
+
},
|
|
12172
|
+
"patch": {
|
|
12173
|
+
"operationId": "updateOrganizationAgentConversation",
|
|
12174
|
+
"summary": "Update an AI agent conversation in an organization",
|
|
12175
|
+
"description": "Updates one of the calling user's conversations with the organization agent. Use this to rename it.",
|
|
12176
|
+
"x-gitbook-mcp": true,
|
|
12177
|
+
"tags": [
|
|
12178
|
+
"organizations",
|
|
12179
|
+
"agents"
|
|
12180
|
+
],
|
|
12181
|
+
"security": [
|
|
12182
|
+
{
|
|
12183
|
+
"user": []
|
|
12184
|
+
},
|
|
12185
|
+
{
|
|
12186
|
+
"oauth": [
|
|
12187
|
+
"organization:write"
|
|
12188
|
+
]
|
|
12189
|
+
}
|
|
12190
|
+
],
|
|
12191
|
+
"parameters": [
|
|
12192
|
+
{
|
|
12193
|
+
"$ref": "#/components/parameters/organizationId"
|
|
12194
|
+
},
|
|
12195
|
+
{
|
|
12196
|
+
"$ref": "#/components/parameters/conversationId"
|
|
12197
|
+
}
|
|
12198
|
+
],
|
|
12199
|
+
"requestBody": {
|
|
12200
|
+
"required": true,
|
|
12201
|
+
"content": {
|
|
12202
|
+
"application/json": {
|
|
12203
|
+
"schema": {
|
|
12204
|
+
"type": "object",
|
|
12205
|
+
"required": [
|
|
12206
|
+
"title"
|
|
12207
|
+
],
|
|
12208
|
+
"properties": {
|
|
12209
|
+
"title": {
|
|
12210
|
+
"type": "string",
|
|
12211
|
+
"description": "The new title of the conversation."
|
|
12212
|
+
}
|
|
12213
|
+
}
|
|
12214
|
+
}
|
|
12215
|
+
}
|
|
12216
|
+
}
|
|
12217
|
+
},
|
|
12218
|
+
"responses": {
|
|
12219
|
+
"200": {
|
|
12220
|
+
"description": "The updated conversation.",
|
|
12221
|
+
"content": {
|
|
12222
|
+
"application/json": {
|
|
12223
|
+
"schema": {
|
|
12224
|
+
"$ref": "#/components/schemas/AgentConversation"
|
|
12225
|
+
}
|
|
12226
|
+
}
|
|
12227
|
+
}
|
|
12228
|
+
}
|
|
12229
|
+
}
|
|
12230
|
+
},
|
|
12231
|
+
"delete": {
|
|
12232
|
+
"operationId": "deleteOrganizationAgentConversation",
|
|
12233
|
+
"summary": "Delete an agent conversation in an organization",
|
|
12234
|
+
"description": "Deletes one of the calling user's conversations with the organization agent, destroying the messages it holds. This cannot be undone.",
|
|
12235
|
+
"tags": [
|
|
12236
|
+
"organizations",
|
|
12237
|
+
"agents"
|
|
12238
|
+
],
|
|
12239
|
+
"security": [
|
|
12240
|
+
{
|
|
12241
|
+
"user": []
|
|
12242
|
+
}
|
|
12243
|
+
],
|
|
12244
|
+
"parameters": [
|
|
12245
|
+
{
|
|
12246
|
+
"$ref": "#/components/parameters/organizationId"
|
|
12247
|
+
},
|
|
12248
|
+
{
|
|
12249
|
+
"$ref": "#/components/parameters/conversationId"
|
|
12250
|
+
}
|
|
12251
|
+
],
|
|
12252
|
+
"responses": {
|
|
12253
|
+
"205": {
|
|
12254
|
+
"description": "The conversation has been deleted."
|
|
12255
|
+
}
|
|
12256
|
+
}
|
|
12257
|
+
}
|
|
12258
|
+
},
|
|
12081
12259
|
"/orgs/{organizationId}/translations": {
|
|
12082
12260
|
"get": {
|
|
12083
12261
|
"operationId": "listTranslations",
|
|
@@ -27615,6 +27793,47 @@
|
|
|
27615
27793
|
}
|
|
27616
27794
|
]
|
|
27617
27795
|
},
|
|
27796
|
+
"DocumentTableCellSpan": {
|
|
27797
|
+
"description": "Number of rows or columns covered by a table cell merge",
|
|
27798
|
+
"type": "integer",
|
|
27799
|
+
"minimum": 1,
|
|
27800
|
+
"maximum": 50
|
|
27801
|
+
},
|
|
27802
|
+
"DocumentTableCellMerge": {
|
|
27803
|
+
"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.",
|
|
27804
|
+
"type": "object",
|
|
27805
|
+
"properties": {
|
|
27806
|
+
"anchor": {
|
|
27807
|
+
"type": "object",
|
|
27808
|
+
"description": "Cell at the top-left of the merged range",
|
|
27809
|
+
"properties": {
|
|
27810
|
+
"record": {
|
|
27811
|
+
"type": "string",
|
|
27812
|
+
"description": "ID of the anchor record"
|
|
27813
|
+
},
|
|
27814
|
+
"column": {
|
|
27815
|
+
"type": "string",
|
|
27816
|
+
"description": "ID of the anchor column"
|
|
27817
|
+
}
|
|
27818
|
+
},
|
|
27819
|
+
"required": [
|
|
27820
|
+
"record",
|
|
27821
|
+
"column"
|
|
27822
|
+
]
|
|
27823
|
+
},
|
|
27824
|
+
"rowSpan": {
|
|
27825
|
+
"$ref": "#/components/schemas/DocumentTableCellSpan"
|
|
27826
|
+
},
|
|
27827
|
+
"colSpan": {
|
|
27828
|
+
"$ref": "#/components/schemas/DocumentTableCellSpan"
|
|
27829
|
+
}
|
|
27830
|
+
},
|
|
27831
|
+
"required": [
|
|
27832
|
+
"anchor",
|
|
27833
|
+
"rowSpan",
|
|
27834
|
+
"colSpan"
|
|
27835
|
+
]
|
|
27836
|
+
},
|
|
27618
27837
|
"DocumentFragment": {
|
|
27619
27838
|
"type": "object",
|
|
27620
27839
|
"properties": {
|
|
@@ -27694,6 +27913,13 @@
|
|
|
27694
27913
|
"$ref": "#/components/schemas/DocumentTableDefinition"
|
|
27695
27914
|
}
|
|
27696
27915
|
},
|
|
27916
|
+
"cellMerges": {
|
|
27917
|
+
"type": "array",
|
|
27918
|
+
"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.",
|
|
27919
|
+
"items": {
|
|
27920
|
+
"$ref": "#/components/schemas/DocumentTableCellMerge"
|
|
27921
|
+
}
|
|
27922
|
+
},
|
|
27697
27923
|
"fullWidth": {
|
|
27698
27924
|
"type": "boolean",
|
|
27699
27925
|
"description": "Whether to render the block as a full width one"
|
|
@@ -32323,7 +32549,11 @@
|
|
|
32323
32549
|
},
|
|
32324
32550
|
"shared": {
|
|
32325
32551
|
"type": "boolean",
|
|
32326
|
-
"description": "Whether the conversation is shared with everyone who has access to
|
|
32552
|
+
"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."
|
|
32553
|
+
},
|
|
32554
|
+
"changeRequest": {
|
|
32555
|
+
"type": "string",
|
|
32556
|
+
"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."
|
|
32327
32557
|
},
|
|
32328
32558
|
"createdAt": {
|
|
32329
32559
|
"$ref": "#/components/schemas/Timestamp"
|
|
@@ -35899,6 +36129,13 @@
|
|
|
35899
36129
|
},
|
|
35900
36130
|
"description": "Whitelisted search parameters from the visitor authentication request."
|
|
35901
36131
|
},
|
|
36132
|
+
"cookies": {
|
|
36133
|
+
"type": "object",
|
|
36134
|
+
"additionalProperties": {
|
|
36135
|
+
"type": "string"
|
|
36136
|
+
},
|
|
36137
|
+
"description": "Whitelisted cookies from the visitor authentication request."
|
|
36138
|
+
},
|
|
35902
36139
|
"action": {
|
|
35903
36140
|
"type": "string",
|
|
35904
36141
|
"enum": [
|
|
@@ -46603,6 +46840,10 @@
|
|
|
46603
46840
|
},
|
|
46604
46841
|
"page": {
|
|
46605
46842
|
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
46843
|
+
},
|
|
46844
|
+
"changeRequestId": {
|
|
46845
|
+
"type": "string",
|
|
46846
|
+
"description": "The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.\n"
|
|
46606
46847
|
}
|
|
46607
46848
|
},
|
|
46608
46849
|
"required": [
|
|
@@ -46631,6 +46872,10 @@
|
|
|
46631
46872
|
},
|
|
46632
46873
|
"page": {
|
|
46633
46874
|
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
46875
|
+
},
|
|
46876
|
+
"changeRequestId": {
|
|
46877
|
+
"type": "string",
|
|
46878
|
+
"description": "The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.\n"
|
|
46634
46879
|
}
|
|
46635
46880
|
},
|
|
46636
46881
|
"required": [
|
|
@@ -46659,6 +46904,10 @@
|
|
|
46659
46904
|
},
|
|
46660
46905
|
"page": {
|
|
46661
46906
|
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
46907
|
+
},
|
|
46908
|
+
"changeRequestId": {
|
|
46909
|
+
"type": "string",
|
|
46910
|
+
"description": "The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.\n"
|
|
46662
46911
|
}
|
|
46663
46912
|
},
|
|
46664
46913
|
"required": [
|
|
@@ -46688,6 +46937,10 @@
|
|
|
46688
46937
|
"page": {
|
|
46689
46938
|
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
46690
46939
|
},
|
|
46940
|
+
"changeRequestId": {
|
|
46941
|
+
"type": "string",
|
|
46942
|
+
"description": "The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.\n"
|
|
46943
|
+
},
|
|
46691
46944
|
"title": {
|
|
46692
46945
|
"type": "string",
|
|
46693
46946
|
"description": "The new title of the page."
|
|
@@ -46721,6 +46974,10 @@
|
|
|
46721
46974
|
"page": {
|
|
46722
46975
|
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
46723
46976
|
},
|
|
46977
|
+
"changeRequestId": {
|
|
46978
|
+
"type": "string",
|
|
46979
|
+
"description": "The ID of the change request the edit was made in. Absent when the space itself was edited, through its unlocked live edits.\n"
|
|
46980
|
+
},
|
|
46724
46981
|
"to": {
|
|
46725
46982
|
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
46726
46983
|
},
|
|
@@ -47831,6 +48088,11 @@
|
|
|
47831
48088
|
},
|
|
47832
48089
|
"response": {
|
|
47833
48090
|
"$ref": "#/components/schemas/AIMessageResponseMetadata"
|
|
48091
|
+
},
|
|
48092
|
+
"createdAt": {
|
|
48093
|
+
"type": "string",
|
|
48094
|
+
"format": "date-time",
|
|
48095
|
+
"description": "When the message was added to the conversation. Absent on messages recorded before this field existed.\n"
|
|
47834
48096
|
}
|
|
47835
48097
|
},
|
|
47836
48098
|
"required": [
|
|
@@ -48904,6 +49166,13 @@
|
|
|
48904
49166
|
}
|
|
48905
49167
|
]
|
|
48906
49168
|
},
|
|
49169
|
+
"SiteInsightsMarkdownSource": {
|
|
49170
|
+
"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.",
|
|
49171
|
+
"type": "string",
|
|
49172
|
+
"enum": [
|
|
49173
|
+
"page-action"
|
|
49174
|
+
]
|
|
49175
|
+
},
|
|
48907
49176
|
"SiteInsightsEventPageMarkdownRequest": {
|
|
48908
49177
|
"allOf": [
|
|
48909
49178
|
{
|
|
@@ -48917,6 +49186,9 @@
|
|
|
48917
49186
|
"enum": [
|
|
48918
49187
|
"page_markdown_request"
|
|
48919
49188
|
]
|
|
49189
|
+
},
|
|
49190
|
+
"markdownSource": {
|
|
49191
|
+
"$ref": "#/components/schemas/SiteInsightsMarkdownSource"
|
|
48920
49192
|
}
|
|
48921
49193
|
},
|
|
48922
49194
|
"required": [
|
|
@@ -49989,6 +50261,20 @@
|
|
|
49989
50261
|
}
|
|
49990
50262
|
}
|
|
49991
50263
|
},
|
|
50264
|
+
{
|
|
50265
|
+
"type": "object",
|
|
50266
|
+
"required": [
|
|
50267
|
+
"column"
|
|
50268
|
+
],
|
|
50269
|
+
"properties": {
|
|
50270
|
+
"column": {
|
|
50271
|
+
"type": "string",
|
|
50272
|
+
"enum": [
|
|
50273
|
+
"eventMarkdownSource"
|
|
50274
|
+
]
|
|
50275
|
+
}
|
|
50276
|
+
}
|
|
50277
|
+
},
|
|
49992
50278
|
{
|
|
49993
50279
|
"type": "object",
|
|
49994
50280
|
"required": [
|
|
@@ -50896,6 +51182,34 @@
|
|
|
50896
51182
|
}
|
|
50897
51183
|
}
|
|
50898
51184
|
},
|
|
51185
|
+
{
|
|
51186
|
+
"type": "object",
|
|
51187
|
+
"required": [
|
|
51188
|
+
"column",
|
|
51189
|
+
"values"
|
|
51190
|
+
],
|
|
51191
|
+
"properties": {
|
|
51192
|
+
"column": {
|
|
51193
|
+
"type": "string",
|
|
51194
|
+
"enum": [
|
|
51195
|
+
"eventMarkdownSource"
|
|
51196
|
+
]
|
|
51197
|
+
},
|
|
51198
|
+
"values": {
|
|
51199
|
+
"type": "array",
|
|
51200
|
+
"items": {
|
|
51201
|
+
"oneOf": [
|
|
51202
|
+
{
|
|
51203
|
+
"type": "null"
|
|
51204
|
+
},
|
|
51205
|
+
{
|
|
51206
|
+
"$ref": "#/components/schemas/SiteInsightsMarkdownSource"
|
|
51207
|
+
}
|
|
51208
|
+
]
|
|
51209
|
+
}
|
|
51210
|
+
}
|
|
51211
|
+
}
|
|
51212
|
+
},
|
|
50899
51213
|
{
|
|
50900
51214
|
"type": "object",
|
|
50901
51215
|
"required": [
|
|
@@ -54107,8 +54421,39 @@
|
|
|
54107
54421
|
"direction",
|
|
54108
54422
|
"stage",
|
|
54109
54423
|
"startedAt",
|
|
54110
|
-
"updatedAt"
|
|
54111
|
-
|
|
54424
|
+
"updatedAt"
|
|
54425
|
+
]
|
|
54426
|
+
},
|
|
54427
|
+
"GitSyncRunOperation": {
|
|
54428
|
+
"type": "string",
|
|
54429
|
+
"description": "Operation performed by a durable Git Sync run.",
|
|
54430
|
+
"enum": [
|
|
54431
|
+
"import",
|
|
54432
|
+
"export",
|
|
54433
|
+
"check",
|
|
54434
|
+
"merge",
|
|
54435
|
+
"recovery"
|
|
54436
|
+
]
|
|
54437
|
+
},
|
|
54438
|
+
"GitSyncRunState": {
|
|
54439
|
+
"type": "string",
|
|
54440
|
+
"description": "Lifecycle state of a durable Git Sync run.",
|
|
54441
|
+
"enum": [
|
|
54442
|
+
"queued",
|
|
54443
|
+
"running",
|
|
54444
|
+
"success",
|
|
54445
|
+
"failure",
|
|
54446
|
+
"timeout",
|
|
54447
|
+
"cancelled"
|
|
54448
|
+
]
|
|
54449
|
+
},
|
|
54450
|
+
"GitProviderChangeState": {
|
|
54451
|
+
"type": "string",
|
|
54452
|
+
"description": "Lifecycle state of a pull or merge request on the Git provider.",
|
|
54453
|
+
"enum": [
|
|
54454
|
+
"open",
|
|
54455
|
+
"closed",
|
|
54456
|
+
"merged"
|
|
54112
54457
|
]
|
|
54113
54458
|
},
|
|
54114
54459
|
"GitSyncSiteStructureSectionGroup": {
|
|
@@ -56632,6 +56977,29 @@
|
|
|
56632
56977
|
"errored"
|
|
56633
56978
|
]
|
|
56634
56979
|
},
|
|
56980
|
+
"AgentQueuedMessage": {
|
|
56981
|
+
"type": "object",
|
|
56982
|
+
"description": "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.\n",
|
|
56983
|
+
"properties": {
|
|
56984
|
+
"id": {
|
|
56985
|
+
"type": "string",
|
|
56986
|
+
"description": "Identifier of the queue entry, unique within the conversation."
|
|
56987
|
+
},
|
|
56988
|
+
"message": {
|
|
56989
|
+
"$ref": "#/components/schemas/AIMessageInput"
|
|
56990
|
+
},
|
|
56991
|
+
"queuedAt": {
|
|
56992
|
+
"type": "string",
|
|
56993
|
+
"format": "date-time",
|
|
56994
|
+
"description": "When the message entered the queue."
|
|
56995
|
+
}
|
|
56996
|
+
},
|
|
56997
|
+
"required": [
|
|
56998
|
+
"id",
|
|
56999
|
+
"message",
|
|
57000
|
+
"queuedAt"
|
|
57001
|
+
]
|
|
57002
|
+
},
|
|
56635
57003
|
"AgentActivity": {
|
|
56636
57004
|
"type": "object",
|
|
56637
57005
|
"description": "Describes what the agent is currently doing while processing, used to display a live activity indicator in the conversation.\n",
|
|
@@ -56648,6 +57016,10 @@
|
|
|
56648
57016
|
"tool": {
|
|
56649
57017
|
"type": "string",
|
|
56650
57018
|
"description": "When `type` is `tool`, the name of the tool being called (matches `AIToolCall.tool`).\n"
|
|
57019
|
+
},
|
|
57020
|
+
"label": {
|
|
57021
|
+
"type": "string",
|
|
57022
|
+
"description": "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\".\n"
|
|
56651
57023
|
}
|
|
56652
57024
|
},
|
|
56653
57025
|
"required": [
|
|
@@ -56697,6 +57069,23 @@
|
|
|
56697
57069
|
"options"
|
|
56698
57070
|
]
|
|
56699
57071
|
},
|
|
57072
|
+
"AgentEditTarget": {
|
|
57073
|
+
"type": "object",
|
|
57074
|
+
"description": "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.\n",
|
|
57075
|
+
"properties": {
|
|
57076
|
+
"spaceId": {
|
|
57077
|
+
"type": "string",
|
|
57078
|
+
"description": "The ID of the space the edits are made in."
|
|
57079
|
+
},
|
|
57080
|
+
"changeRequestId": {
|
|
57081
|
+
"type": "string",
|
|
57082
|
+
"description": "The ID of the change request the edits are made in. Absent when the space itself is the target, through its unlocked live edits.\n"
|
|
57083
|
+
}
|
|
57084
|
+
},
|
|
57085
|
+
"required": [
|
|
57086
|
+
"spaceId"
|
|
57087
|
+
]
|
|
57088
|
+
},
|
|
56700
57089
|
"AgentState": {
|
|
56701
57090
|
"type": "object",
|
|
56702
57091
|
"properties": {
|
|
@@ -56712,11 +57101,18 @@
|
|
|
56712
57101
|
},
|
|
56713
57102
|
"queuedMessages": {
|
|
56714
57103
|
"type": "array",
|
|
56715
|
-
"description": "List of messages sent by the users queued to processed.",
|
|
57104
|
+
"description": "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.\n",
|
|
56716
57105
|
"items": {
|
|
56717
57106
|
"$ref": "#/components/schemas/AIMessageInput"
|
|
56718
57107
|
}
|
|
56719
57108
|
},
|
|
57109
|
+
"queue": {
|
|
57110
|
+
"type": "array",
|
|
57111
|
+
"description": "Messages waiting for the current response to finish, in the order they will be processed.\n",
|
|
57112
|
+
"items": {
|
|
57113
|
+
"$ref": "#/components/schemas/AgentQueuedMessage"
|
|
57114
|
+
}
|
|
57115
|
+
},
|
|
56720
57116
|
"activity": {
|
|
56721
57117
|
"$ref": "#/components/schemas/AgentActivity",
|
|
56722
57118
|
"description": "What the agent is currently doing. Only set while the agent is processing.\n"
|
|
@@ -56724,6 +57120,10 @@
|
|
|
56724
57120
|
"pendingQuestion": {
|
|
56725
57121
|
"$ref": "#/components/schemas/AgentPendingQuestion",
|
|
56726
57122
|
"description": "A question the agent is waiting for the user to answer. While set, the client replaces the prompt with a choice control.\n"
|
|
57123
|
+
},
|
|
57124
|
+
"editTarget": {
|
|
57125
|
+
"$ref": "#/components/schemas/AgentEditTarget",
|
|
57126
|
+
"description": "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.\n"
|
|
56727
57127
|
}
|
|
56728
57128
|
},
|
|
56729
57129
|
"required": [
|