@gitbook/api 0.116.0 → 0.117.1

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
@@ -350,6 +350,16 @@ tags:
350
350
  {% openapi-schemas spec="gitbook" schemas="OpenAPISpecVersion" grouped="false" %}
351
351
  The OpenAPISpecVersion object
352
352
  {% endopenapi-schemas %}
353
+ - name: conversations
354
+ x-page-icon: robot
355
+ x-page-title: Conversations
356
+ x-page-description: Ingest knowledge for Conversations.
357
+ description: |
358
+ The Conversations endpoints let you ingest, manage, and monitor Conversations in GitBook to be processed by Docs Agents.
359
+
360
+ {% openapi-schemas spec="gitbook" schemas="ConversationsIssuesCluster" grouped="false" %}
361
+ The ConversationsIssuesCluster object
362
+ {% endopenapi-schemas %}
353
363
  - name: custom-fonts
354
364
  x-page-icon: font
355
365
  x-page-title: Custom fonts
@@ -1496,7 +1506,14 @@ paths:
1496
1506
  content:
1497
1507
  application/json:
1498
1508
  schema:
1499
- $ref: "#/components/schemas/CreateChangeRequest"
1509
+ type: object
1510
+ properties:
1511
+ subject:
1512
+ type: string
1513
+ description: Subject of the change-request
1514
+ agentTaskId:
1515
+ type: string
1516
+ description: ID of the agent task to implement
1500
1517
  get:
1501
1518
  operationId: listChangeRequestsForSpace
1502
1519
  summary: List all change requests
@@ -3523,6 +3540,7 @@ paths:
3523
3540
  - $ref: "#/components/parameters/integrationSearchBlocks"
3524
3541
  - $ref: "#/components/parameters/integrationSearchContentSources"
3525
3542
  - $ref: "#/components/parameters/integrationSearchOwner"
3543
+ - $ref: "#/components/parameters/integrationSearchScope"
3526
3544
  responses:
3527
3545
  "200":
3528
3546
  description: Paginated list of integrations
@@ -5300,7 +5318,7 @@ paths:
5300
5318
  "/orgs/{organizationId}/integrations":
5301
5319
  get:
5302
5320
  operationId: listOrganizationIntegrations
5303
- summary: List all integrations
5321
+ summary: List all public integrations along with private ones trusted by the specific org.
5304
5322
  tags:
5305
5323
  - integrations
5306
5324
  parameters:
@@ -5313,6 +5331,7 @@ paths:
5313
5331
  - $ref: "#/components/parameters/integrationSearchBlocks"
5314
5332
  - $ref: "#/components/parameters/integrationSearchContentSources"
5315
5333
  - $ref: "#/components/parameters/integrationSearchOwner"
5334
+ - $ref: "#/components/parameters/integrationSearchScope"
5316
5335
  responses:
5317
5336
  "200":
5318
5337
  description: List of integrations.
@@ -5932,6 +5951,256 @@ paths:
5932
5951
  "404":
5933
5952
  description: No matching OpenAPI specification version found
5934
5953
  $ref: "#/components/responses/NotFoundError"
5954
+ "/orgs/{organizationId}/conversations-clusters":
5955
+ get:
5956
+ operationId: listConversationsIssuesClusters
5957
+ summary: List conversations issues clusters
5958
+ tags:
5959
+ - agents
5960
+ parameters:
5961
+ - $ref: "#/components/parameters/organizationId"
5962
+ - $ref: "#/components/parameters/listPage"
5963
+ - $ref: "#/components/parameters/listLimit"
5964
+ - $ref: "#/components/parameters/listOrder"
5965
+ - name: orderBy
5966
+ in: query
5967
+ schema:
5968
+ type: string
5969
+ default: updatedAt
5970
+ enum:
5971
+ - updatedAt
5972
+ - issues
5973
+ - conversations
5974
+ - tasksTotal
5975
+ - tasksBacklog
5976
+ - tasksStarted
5977
+ - name: status
5978
+ in: query
5979
+ description: Filter by status
5980
+ schema:
5981
+ type: string
5982
+ enum:
5983
+ - pending
5984
+ - analysing
5985
+ security:
5986
+ - user: []
5987
+ responses:
5988
+ "200":
5989
+ description: OK
5990
+ content:
5991
+ application/json:
5992
+ schema:
5993
+ allOf:
5994
+ - $ref: "#/components/schemas/List"
5995
+ - type: object
5996
+ required:
5997
+ - items
5998
+ properties:
5999
+ items:
6000
+ type: array
6001
+ items:
6002
+ $ref: "#/components/schemas/ConversationsIssuesCluster"
6003
+ "404":
6004
+ $ref: "#/components/responses/NotFoundError"
6005
+ "/orgs/{organizationId}/conversations-clusters/{clusterId}":
6006
+ get:
6007
+ operationId: getConversationsIssuesCluster
6008
+ summary: Get a conversations issues cluster by its identifier
6009
+ tags:
6010
+ - agents
6011
+ parameters:
6012
+ - $ref: "#/components/parameters/organizationId"
6013
+ - $ref: "#/components/parameters/clusterId"
6014
+ security:
6015
+ - user: []
6016
+ responses:
6017
+ "200":
6018
+ description: OK
6019
+ content:
6020
+ application/json:
6021
+ schema:
6022
+ $ref: "#/components/schemas/ConversationsIssuesCluster"
6023
+ "/orgs/{organizationId}/conversations-clusters/{clusterId}/issues":
6024
+ get:
6025
+ operationId: listConversationsIssuesInCluster
6026
+ summary: List conversations issues in a cluster
6027
+ tags:
6028
+ - agents
6029
+ parameters:
6030
+ - $ref: "#/components/parameters/organizationId"
6031
+ - $ref: "#/components/parameters/clusterId"
6032
+ - $ref: "#/components/parameters/listPage"
6033
+ - $ref: "#/components/parameters/listLimit"
6034
+ security:
6035
+ - user: []
6036
+ responses:
6037
+ "200":
6038
+ description: OK
6039
+ content:
6040
+ application/json:
6041
+ schema:
6042
+ allOf:
6043
+ - $ref: "#/components/schemas/List"
6044
+ - type: object
6045
+ required:
6046
+ - items
6047
+ properties:
6048
+ items:
6049
+ type: array
6050
+ items:
6051
+ type: object
6052
+ properties:
6053
+ issue:
6054
+ $ref: "#/components/schemas/ConversationIssue"
6055
+ conversation:
6056
+ $ref: "#/components/schemas/Conversation"
6057
+ required:
6058
+ - issue
6059
+ - conversation
6060
+ "404":
6061
+ $ref: "#/components/responses/NotFoundError"
6062
+ "/orgs/{organizationId}/conversations":
6063
+ post:
6064
+ operationId: ingestConversation
6065
+ summary: Ingest conversations
6066
+ tags:
6067
+ - conversations
6068
+ security:
6069
+ - integration-installation: []
6070
+ parameters:
6071
+ - $ref: "#/components/parameters/organizationId"
6072
+ requestBody:
6073
+ required: true
6074
+ content:
6075
+ application/json:
6076
+ schema:
6077
+ oneOf:
6078
+ - $ref: "#/components/schemas/ConversationInput"
6079
+ - type: array
6080
+ items:
6081
+ $ref: "#/components/schemas/ConversationInput"
6082
+ responses:
6083
+ "204":
6084
+ description: Conversations ingested
6085
+ "/orgs/{organizationId}/agents-setup":
6086
+ get:
6087
+ operationId: getAgentSetupState
6088
+ summary: Get the agents setup state
6089
+ description: |
6090
+ Get the state of the agent.
6091
+ tags:
6092
+ - agents
6093
+ - critical
6094
+ security:
6095
+ - user-internal: []
6096
+ parameters:
6097
+ - $ref: "#/components/parameters/organizationId"
6098
+ responses:
6099
+ "200":
6100
+ description: OK
6101
+ content:
6102
+ application/json:
6103
+ schema:
6104
+ $ref: "#/components/schemas/AgentsSetupState"
6105
+ "/orgs/{organizationId}/agent-tasks":
6106
+ get:
6107
+ operationId: listAgentTasks
6108
+ summary: List agent tasks
6109
+ tags:
6110
+ - agents
6111
+ parameters:
6112
+ - $ref: "#/components/parameters/organizationId"
6113
+ - $ref: "#/components/parameters/listPage"
6114
+ - $ref: "#/components/parameters/listLimit"
6115
+ - name: cluster
6116
+ in: query
6117
+ description: The ID of the conversations issues cluster to filter the agent tasks by
6118
+ schema:
6119
+ type: string
6120
+ - name: space
6121
+ in: query
6122
+ description: The ID of the space to filter the agent tasks by
6123
+ schema:
6124
+ type: string
6125
+ - name: status
6126
+ in: query
6127
+ description: The statuses of the agent tasks to filter by
6128
+ schema:
6129
+ type: array
6130
+ items:
6131
+ $ref: "#/components/schemas/AgentTaskStatus"
6132
+ security:
6133
+ - user: []
6134
+ responses:
6135
+ "200":
6136
+ description: OK
6137
+ content:
6138
+ application/json:
6139
+ schema:
6140
+ allOf:
6141
+ - $ref: "#/components/schemas/List"
6142
+ - type: object
6143
+ required:
6144
+ - items
6145
+ properties:
6146
+ items:
6147
+ type: array
6148
+ items:
6149
+ $ref: "#/components/schemas/AgentTask"
6150
+ "404":
6151
+ $ref: "#/components/responses/NotFoundError"
6152
+ "/orgs/{organizationId}/agent-tasks/{agentTaskId}":
6153
+ get:
6154
+ operationId: getAgentTask
6155
+ summary: Get an agent task by its identifier
6156
+ tags:
6157
+ - agents
6158
+ parameters:
6159
+ - $ref: "#/components/parameters/organizationId"
6160
+ - $ref: "#/components/parameters/agentTaskId"
6161
+ security:
6162
+ - user: []
6163
+ responses:
6164
+ "200":
6165
+ description: OK
6166
+ content:
6167
+ application/json:
6168
+ schema:
6169
+ $ref: "#/components/schemas/AgentTask"
6170
+ "404":
6171
+ $ref: "#/components/responses/NotFoundError"
6172
+ patch:
6173
+ operationId: updateAgentTask
6174
+ summary: Update an agent task by its identifier
6175
+ tags:
6176
+ - agents
6177
+ parameters:
6178
+ - $ref: "#/components/parameters/organizationId"
6179
+ - $ref: "#/components/parameters/agentTaskId"
6180
+ security:
6181
+ - user: []
6182
+ requestBody:
6183
+ required: true
6184
+ content:
6185
+ application/json:
6186
+ schema:
6187
+ type: object
6188
+ properties:
6189
+ status:
6190
+ type: string
6191
+ enum:
6192
+ - backlog
6193
+ - started
6194
+ - canceled
6195
+ required:
6196
+ - status
6197
+ responses:
6198
+ "200":
6199
+ description: OK
6200
+ content:
6201
+ application/json:
6202
+ schema:
6203
+ $ref: "#/components/schemas/AgentTask"
5935
6204
  "/orgs/{organizationId}/translations":
5936
6205
  get:
5937
6206
  operationId: listTranslationSettings
@@ -6512,6 +6781,8 @@ paths:
6512
6781
  $ref: "#/components/schemas/SiteBasename"
6513
6782
  adaptiveContent:
6514
6783
  $ref: "#/components/schemas/SiteAdaptiveContent"
6784
+ agentsContext:
6785
+ $ref: "#/components/schemas/SiteAgentsContext"
6515
6786
  defaultSiteSpace:
6516
6787
  type: string
6517
6788
  description: ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section.
@@ -8989,6 +9260,12 @@ components:
8989
9260
  description: If defined, only list integrations owned by the given organization.
8990
9261
  schema:
8991
9262
  type: string
9263
+ integrationSearchScope:
9264
+ name: scope
9265
+ in: query
9266
+ description: Filter the integrations by scope
9267
+ schema:
9268
+ $ref: "#/components/schemas/IntegrationScope"
8992
9269
  integrationName:
8993
9270
  name: integrationName
8994
9271
  in: path
@@ -9066,6 +9343,20 @@ components:
9066
9343
  description: The unique ID of the OpenAPI specification version
9067
9344
  schema:
9068
9345
  type: string
9346
+ clusterId:
9347
+ name: clusterId
9348
+ in: path
9349
+ required: true
9350
+ description: The unique id of the cluster
9351
+ schema:
9352
+ type: string
9353
+ agentTaskId:
9354
+ name: agentTaskId
9355
+ in: path
9356
+ required: true
9357
+ description: The unique id of the agent task
9358
+ schema:
9359
+ type: string
9069
9360
  translationSettingsId:
9070
9361
  name: translationSettingsId
9071
9362
  in: path
@@ -11171,7 +11462,7 @@ components:
11171
11462
  - type
11172
11463
  - isVoid
11173
11464
  - data
11174
- DocumentBlockImageDimension:
11465
+ Length:
11175
11466
  oneOf:
11176
11467
  - type: number
11177
11468
  - type: object
@@ -11208,9 +11499,9 @@ components:
11208
11499
  - $ref: "#/components/schemas/ContentRefURL"
11209
11500
  - $ref: "#/components/schemas/ContentRefFile"
11210
11501
  width:
11211
- $ref: "#/components/schemas/DocumentBlockImageDimension"
11502
+ $ref: "#/components/schemas/Length"
11212
11503
  height:
11213
- $ref: "#/components/schemas/DocumentBlockImageDimension"
11504
+ $ref: "#/components/schemas/Length"
11214
11505
  alt:
11215
11506
  type: string
11216
11507
  required:
@@ -12038,14 +12329,22 @@ components:
12038
12329
  items:
12039
12330
  oneOf:
12040
12331
  - $ref: "#/components/schemas/DocumentBlocksEssentials"
12332
+ - $ref: "#/components/schemas/DocumentBlockImages"
12041
12333
  isVoid:
12042
12334
  type: boolean
12043
12335
  enum:
12044
12336
  - false
12337
+ data:
12338
+ type: object
12339
+ properties:
12340
+ width:
12341
+ $ref: "#/components/schemas/Length"
12342
+ additionalProperties: false
12045
12343
  required:
12046
12344
  - object
12047
12345
  - type
12048
12346
  - nodes
12347
+ - data
12049
12348
  DocumentBlockColumns:
12050
12349
  type: object
12051
12350
  properties:
@@ -13354,6 +13653,9 @@ components:
13354
13653
  createOpenAPISpec:
13355
13654
  type: boolean
13356
13655
  description: Can the user create new OpenAPI specifications.
13656
+ ingestConversations:
13657
+ type: boolean
13658
+ description: Can the user ingest conversations in the organization.
13357
13659
  viewBilling:
13358
13660
  type: boolean
13359
13661
  description: Can the user view the billing details of the organization.
@@ -13372,6 +13674,7 @@ components:
13372
13674
  - ownTeam
13373
13675
  - createContent
13374
13676
  - createOpenAPISpec
13677
+ - ingestConversations
13375
13678
  - viewBilling
13376
13679
  - listMembers
13377
13680
  - listTeams
@@ -13810,12 +14113,6 @@ components:
13810
14113
  - relation
13811
14114
  - status
13812
14115
  - locationReferences
13813
- CreateChangeRequest:
13814
- type: object
13815
- properties:
13816
- subject:
13817
- type: string
13818
- description: Subject of the change-request
13819
14116
  ChangeRequestReviewStatus:
13820
14117
  type: string
13821
14118
  description: Status of a change request review.
@@ -14707,6 +15004,7 @@ components:
14707
15004
  - site:adaptive:write
14708
15005
  - openapi:read
14709
15006
  - openapi:write
15007
+ - conversations:ingest
14710
15008
  IntegrationScopes:
14711
15009
  type: array
14712
15010
  description: Permissions that should be granted to the integration
@@ -15198,6 +15496,13 @@ components:
15198
15496
  PublishIntegration:
15199
15497
  type: object
15200
15498
  properties:
15499
+ runtime:
15500
+ type: string
15501
+ description: The runtime version to use for the integration. If not specified, the integration will use the default runtime.
15502
+ default: v1
15503
+ enum:
15504
+ - v1
15505
+ - v2
15201
15506
  icon:
15202
15507
  type: string
15203
15508
  format: byte
@@ -16244,6 +16549,15 @@ components:
16244
16549
  zoneId:
16245
16550
  type: string
16246
16551
  description: The ad network zone ID
16552
+ SiteAgentsContext:
16553
+ type: string
16554
+ description: |
16555
+ Defines if the site will be included in the agent's context.
16556
+ - `excluded` means that the agent will not be able to access the site.
16557
+ - `included` means that the agent will be able to access the site.
16558
+ enum:
16559
+ - excluded
16560
+ - included
16247
16561
  SiteCustomizationFeature:
16248
16562
  type: string
16249
16563
  description: A list of all premium customizations.
@@ -16349,6 +16663,8 @@ components:
16349
16663
  $ref: "#/components/schemas/SiteAdaptiveContent"
16350
16664
  ads:
16351
16665
  $ref: "#/components/schemas/SiteAds"
16666
+ agentsContext:
16667
+ $ref: "#/components/schemas/SiteAgentsContext"
16352
16668
  features:
16353
16669
  description: |
16354
16670
  A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.
@@ -16385,6 +16701,7 @@ components:
16385
16701
  - siteSpaces
16386
16702
  - defaultSpace
16387
16703
  - features
16704
+ - agentsContext
16388
16705
  - urls
16389
16706
  IntegrationSiteInstallation:
16390
16707
  allOf:
@@ -18456,45 +18773,414 @@ components:
18456
18773
  required:
18457
18774
  - filesystem
18458
18775
  - url
18459
- TranslationTitle:
18460
- type: string
18461
- description: Title of the translation settings
18462
- minLength: 1
18463
- maxLength: 100
18464
- TranslationSettings:
18776
+ ConversationsIssuesCluster:
18465
18777
  type: object
18466
18778
  properties:
18467
18779
  object:
18468
18780
  type: string
18469
18781
  enum:
18470
- - translation-settings
18782
+ - issues-cluster
18471
18783
  id:
18472
18784
  type: string
18473
- description: Unique identifier of the translation settings
18474
- title:
18475
- $ref: "#/components/schemas/TranslationTitle"
18476
- languages:
18477
- type: array
18478
- items:
18479
- $ref: "#/components/schemas/TranslationLanguage"
18480
- createdAt:
18785
+ description: The ID of the conversations issues cluster
18786
+ label:
18481
18787
  type: string
18482
- format: date-time
18788
+ description: The label of the conversations issues cluster
18789
+ createdAt:
18790
+ $ref: "#/components/schemas/Timestamp"
18483
18791
  updatedAt:
18792
+ $ref: "#/components/schemas/Timestamp"
18793
+ icon:
18794
+ $ref: "#/components/schemas/Icon"
18795
+ summary:
18484
18796
  type: string
18485
- format: date-time
18486
- permissions:
18797
+ description: The summary of the conversations issues cluster
18798
+ weeklyPulse:
18799
+ type: array
18800
+ minItems: 13
18801
+ maxItems: 13
18802
+ description: The weekly pulse of the conversations issues cluster for the past 3 months
18803
+ items:
18804
+ type: number
18805
+ sources:
18487
18806
  type: object
18807
+ additionalProperties:
18808
+ type: number
18809
+ description: The number of issues in the conversations issues cluster for the source
18810
+ stats:
18811
+ type: object
18812
+ description: The stats of the conversations issues cluster
18488
18813
  properties:
18489
- view:
18490
- type: boolean
18491
- description: Whether the user can view the object
18492
- edit:
18493
- type: boolean
18494
- description: Whether the user can edit the object
18495
- required:
18496
- - view
18497
- - edit
18814
+ issues:
18815
+ type: number
18816
+ description: The number of issues in the conversations issues cluster
18817
+ conversations:
18818
+ type: number
18819
+ description: The number of conversations in the conversations issues cluster
18820
+ tasksTotal:
18821
+ type: number
18822
+ description: The number of tasks in the conversations issues cluster
18823
+ tasksBacklog:
18824
+ type: number
18825
+ description: The number of tasks in the backlog in the conversations issues cluster
18826
+ tasksStarted:
18827
+ type: number
18828
+ description: The number of tasks done in the conversations issues cluster
18829
+ tasksCompleted:
18830
+ type: number
18831
+ description: The number of tasks completed in the conversations issues cluster
18832
+ tasksCancelled:
18833
+ type: number
18834
+ description: The number of tasks canceled in the conversations issues cluster
18835
+ required:
18836
+ - issues
18837
+ - conversations
18838
+ - tasksTotal
18839
+ - tasksBacklog
18840
+ - tasksStarted
18841
+ - tasksCompleted
18842
+ - tasksCancelled
18843
+ urls:
18844
+ type: object
18845
+ description: URLs associated with the conversations issues cluster
18846
+ properties:
18847
+ location:
18848
+ type: string
18849
+ description: URL of the conversations issues cluster in the API
18850
+ format: uri
18851
+ app:
18852
+ type: string
18853
+ description: URL of the conversations issues cluster in the application
18854
+ format: uri
18855
+ required:
18856
+ - app
18857
+ - location
18858
+ required:
18859
+ - object
18860
+ - id
18861
+ - label
18862
+ - summary
18863
+ - icon
18864
+ - sources
18865
+ - stats
18866
+ - weeklyPulse
18867
+ - createdAt
18868
+ - updatedAt
18869
+ - urls
18870
+ ConversationIssue:
18871
+ type: object
18872
+ properties:
18873
+ object:
18874
+ type: string
18875
+ enum:
18876
+ - conversation-issue
18877
+ id:
18878
+ type: string
18879
+ description: The ID of the conversation issue
18880
+ title:
18881
+ type: string
18882
+ description: The title of the conversation issue
18883
+ summary:
18884
+ type: string
18885
+ description: The summary of the conversation issue
18886
+ createdAt:
18887
+ $ref: "#/components/schemas/Timestamp"
18888
+ ingestedAt:
18889
+ $ref: "#/components/schemas/Timestamp"
18890
+ conversation:
18891
+ type: string
18892
+ description: The ID of the conversation the issue belongs to
18893
+ cluster:
18894
+ type: string
18895
+ description: The ID of the cluster the issue has been linked to
18896
+ urls:
18897
+ type: object
18898
+ description: URLs associated with the conversation issue
18899
+ properties:
18900
+ location:
18901
+ type: string
18902
+ description: URL of the conversation issue in the API
18903
+ format: uri
18904
+ required:
18905
+ - location
18906
+ required:
18907
+ - object
18908
+ - id
18909
+ - title
18910
+ - summary
18911
+ - createdAt
18912
+ - ingestedAt
18913
+ - conversation
18914
+ - urls
18915
+ ConversationSource:
18916
+ oneOf:
18917
+ - type: string
18918
+ description: Integration source
18919
+ pattern: ^integration:[^:]+:[^:]+$
18920
+ x-typescript: "`integration:${string}:${string}`"
18921
+ - type: string
18922
+ description: Email source
18923
+ enum:
18924
+ - email
18925
+ Conversation:
18926
+ type: object
18927
+ properties:
18928
+ object:
18929
+ type: string
18930
+ enum:
18931
+ - conversation
18932
+ id:
18933
+ type: string
18934
+ description: The ID of the conversation
18935
+ subject:
18936
+ type: string
18937
+ description: The subject of the conversation
18938
+ createdAt:
18939
+ $ref: "#/components/schemas/Timestamp"
18940
+ processedAt:
18941
+ $ref: "#/components/schemas/Timestamp"
18942
+ source:
18943
+ $ref: "#/components/schemas/ConversationSource"
18944
+ urls:
18945
+ type: object
18946
+ description: URLs associated with the conversation
18947
+ properties:
18948
+ location:
18949
+ type: string
18950
+ description: URL of the conversation in the API
18951
+ format: uri
18952
+ source:
18953
+ type: string
18954
+ description: URL of the conversation in the source
18955
+ format: uri
18956
+ required:
18957
+ - location
18958
+ required:
18959
+ - object
18960
+ - id
18961
+ - createdAt
18962
+ - source
18963
+ - urls
18964
+ ConversationMetadata:
18965
+ type: object
18966
+ properties:
18967
+ url:
18968
+ type: string
18969
+ description: URL to the conversation
18970
+ attributes:
18971
+ type: object
18972
+ additionalProperties:
18973
+ type: string
18974
+ createdAt:
18975
+ description: Date of the conversation creation
18976
+ $ref: "#/components/schemas/Timestamp"
18977
+ ConversationPartMessage:
18978
+ type: object
18979
+ description: A message posted in the conversation by a user or a team member.
18980
+ properties:
18981
+ type:
18982
+ type: string
18983
+ enum:
18984
+ - message
18985
+ role:
18986
+ type: string
18987
+ enum:
18988
+ - user
18989
+ - assistant
18990
+ - team-member
18991
+ body:
18992
+ type: string
18993
+ description: Markdown or HTML body of the message.
18994
+ required:
18995
+ - type
18996
+ - role
18997
+ - body
18998
+ ConversationPart:
18999
+ oneOf:
19000
+ - $ref: "#/components/schemas/ConversationPartMessage"
19001
+ ConversationInput:
19002
+ type: object
19003
+ properties:
19004
+ id:
19005
+ type: string
19006
+ minLength: 1
19007
+ maxLength: 255
19008
+ description: The unique identifier for the conversation, relative to the source in which it was created.
19009
+ metadata:
19010
+ $ref: "#/components/schemas/ConversationMetadata"
19011
+ subject:
19012
+ type: string
19013
+ maxLength: 512
19014
+ description: The subject of the conversation.
19015
+ parts:
19016
+ type: array
19017
+ items:
19018
+ $ref: "#/components/schemas/ConversationPart"
19019
+ required:
19020
+ - id
19021
+ - parts
19022
+ AgentsSetupState:
19023
+ type: object
19024
+ description: State and settings of the agent
19025
+ properties:
19026
+ email:
19027
+ type: string
19028
+ description: The email address of the agent. Emails can be forwarded to it to ingest conversations.
19029
+ stats:
19030
+ type: object
19031
+ description: The stats of the agent.
19032
+ properties:
19033
+ backlogTasks:
19034
+ type: number
19035
+ description: The number of tasks in the backlog.
19036
+ startedTasks:
19037
+ type: number
19038
+ description: The number of tasks in progress.
19039
+ completedTasks:
19040
+ type: number
19041
+ description: The number of tasks that have been completed.
19042
+ canceledTasks:
19043
+ type: number
19044
+ description: The number of tasks that have been canceled.
19045
+ conversations:
19046
+ type: number
19047
+ description: The number of conversations the agent has indexed.
19048
+ issues:
19049
+ type: number
19050
+ description: The number of issues the agent has indexed.
19051
+ issuesClusters:
19052
+ type: number
19053
+ description: The number of issues clusters the agent has indexed.
19054
+ sources:
19055
+ type: object
19056
+ additionalProperties:
19057
+ type: number
19058
+ description: The number of conversations ingested for the source
19059
+ required:
19060
+ - backlogTasks
19061
+ - startedTasks
19062
+ - completedTasks
19063
+ - canceledTasks
19064
+ - conversations
19065
+ - issues
19066
+ - issuesClusters
19067
+ - sources
19068
+ settings:
19069
+ type: object
19070
+ description: The settings for the agent.
19071
+ properties: {}
19072
+ additionalProperties: false
19073
+ required:
19074
+ - email
19075
+ - settings
19076
+ - stats
19077
+ AgentTaskStatus:
19078
+ type: string
19079
+ description: |
19080
+ The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `started`: The task is open, a change request is associated with it. - `completed`: The task is completed. - `canceled`: The task has been canceled by a human.
19081
+ enum:
19082
+ - backlog
19083
+ - started
19084
+ - completed
19085
+ - canceled
19086
+ AgentTask:
19087
+ type: object
19088
+ properties:
19089
+ object:
19090
+ type: string
19091
+ enum:
19092
+ - agent-task
19093
+ id:
19094
+ type: string
19095
+ description: The ID of the agent task
19096
+ title:
19097
+ type: string
19098
+ description: The title of the agent task
19099
+ description:
19100
+ type: string
19101
+ description: The description of the agent task
19102
+ instructions:
19103
+ $ref: "#/components/schemas/JSONDocument"
19104
+ status:
19105
+ $ref: "#/components/schemas/AgentTaskStatus"
19106
+ createdAt:
19107
+ $ref: "#/components/schemas/Timestamp"
19108
+ updatedAt:
19109
+ $ref: "#/components/schemas/Timestamp"
19110
+ cluster:
19111
+ type: string
19112
+ description: ID of the cluster the agent task is associated with.
19113
+ space:
19114
+ type: string
19115
+ description: ID of the space the agent task will act on.
19116
+ changeRequest:
19117
+ type: string
19118
+ description: ID of the change request the agent task is associated with.
19119
+ urls:
19120
+ type: object
19121
+ description: URLs associated with the agent task
19122
+ properties:
19123
+ location:
19124
+ type: string
19125
+ description: URL of the agent task in the API
19126
+ format: uri
19127
+ app:
19128
+ type: string
19129
+ description: URL of the agent task in the application
19130
+ format: uri
19131
+ required:
19132
+ - app
19133
+ - location
19134
+ required:
19135
+ - object
19136
+ - id
19137
+ - title
19138
+ - description
19139
+ - instructions
19140
+ - space
19141
+ - status
19142
+ - createdAt
19143
+ - updatedAt
19144
+ - urls
19145
+ TranslationTitle:
19146
+ type: string
19147
+ description: Title of the translation settings
19148
+ minLength: 1
19149
+ maxLength: 100
19150
+ TranslationSettings:
19151
+ type: object
19152
+ properties:
19153
+ object:
19154
+ type: string
19155
+ enum:
19156
+ - translation-settings
19157
+ id:
19158
+ type: string
19159
+ description: Unique identifier of the translation settings
19160
+ title:
19161
+ $ref: "#/components/schemas/TranslationTitle"
19162
+ languages:
19163
+ type: array
19164
+ items:
19165
+ $ref: "#/components/schemas/TranslationLanguage"
19166
+ createdAt:
19167
+ type: string
19168
+ format: date-time
19169
+ updatedAt:
19170
+ type: string
19171
+ format: date-time
19172
+ permissions:
19173
+ type: object
19174
+ properties:
19175
+ view:
19176
+ type: boolean
19177
+ description: Whether the user can view the object
19178
+ edit:
19179
+ type: boolean
19180
+ description: Whether the user can edit the object
19181
+ required:
19182
+ - view
19183
+ - edit
18498
19184
  urls:
18499
19185
  type: object
18500
19186
  description: URLs associated with the object
@@ -19724,6 +20410,7 @@ components:
19724
20410
  type: string
19725
20411
  enum:
19726
20412
  - response_document
20413
+ - response_reasoning
19727
20414
  messageId:
19728
20415
  type: string
19729
20416
  description: |
@@ -22170,6 +22857,11 @@ components:
22170
22857
  required:
22171
22858
  - spaceId
22172
22859
  - force
22860
+ GitBookUsers:
22861
+ type: string
22862
+ description: Predefined GitBook user identifiers
22863
+ enum:
22864
+ - gitbook:agent
22173
22865
  ContentPublishingAuth:
22174
22866
  type: object
22175
22867
  properties:
@@ -23491,6 +24183,38 @@ components:
23491
24183
  required:
23492
24184
  - channel
23493
24185
  - translation
24186
+ AgentTaskChannel:
24187
+ type: object
24188
+ description: Subscription channel for an agent task.
24189
+ properties:
24190
+ channel:
24191
+ type: string
24192
+ enum:
24193
+ - agent-task
24194
+ organization:
24195
+ type: string
24196
+ description: The ID of the organization.
24197
+ agentTask:
24198
+ type: string
24199
+ description: The ID of the agent task.
24200
+ required:
24201
+ - channel
24202
+ - organization
24203
+ - agentTask
24204
+ AgentTasksChannel:
24205
+ type: object
24206
+ description: Subscription channel for agent tasks.
24207
+ properties:
24208
+ channel:
24209
+ type: string
24210
+ enum:
24211
+ - agent-tasks
24212
+ organization:
24213
+ type: string
24214
+ description: The ID of the organization.
24215
+ required:
24216
+ - channel
24217
+ - organization
23494
24218
  SubscriptionChannel:
23495
24219
  description: Channel to subscribe to for realtime updates.
23496
24220
  oneOf:
@@ -23560,6 +24284,8 @@ components:
23560
24284
  - $ref: "#/components/schemas/OpenAPISpecChannel"
23561
24285
  - $ref: "#/components/schemas/SubdomainChannel"
23562
24286
  - $ref: "#/components/schemas/TranslationSettingsChannel"
24287
+ - $ref: "#/components/schemas/AgentTaskChannel"
24288
+ - $ref: "#/components/schemas/AgentTasksChannel"
23563
24289
  discriminator:
23564
24290
  propertyName: channel
23565
24291
  GitSyncOperationChannelData:
@@ -23859,6 +24585,8 @@ components:
23859
24585
  properties:
23860
24586
  content:
23861
24587
  $ref: "#/components/schemas/JSONDocument"
24588
+ reasoning:
24589
+ $ref: "#/components/schemas/JSONDocument"
23862
24590
  toolCalls:
23863
24591
  type: array
23864
24592
  items:
@@ -23985,74 +24713,6 @@ components:
23985
24713
  - $ref: "#/components/schemas/AgentStreamMessages"
23986
24714
  - $ref: "#/components/schemas/AgentStreamMessageResponse"
23987
24715
  - $ref: "#/components/schemas/AgentStreamState"
23988
- ConversationMetadata:
23989
- type: object
23990
- properties:
23991
- url:
23992
- type: string
23993
- description: URL to the conversation
23994
- attributes:
23995
- type: object
23996
- additionalProperties:
23997
- type: string
23998
- createdAt:
23999
- description: Date of the conversation creation
24000
- $ref: "#/components/schemas/Timestamp"
24001
- ConversationPartMessage:
24002
- type: object
24003
- description: A message posted in the conversation by a user or a team member.
24004
- properties:
24005
- type:
24006
- type: string
24007
- enum:
24008
- - message
24009
- role:
24010
- type: string
24011
- enum:
24012
- - user
24013
- - assistant
24014
- - team-member
24015
- body:
24016
- type: string
24017
- description: Markdown or HTML body of the message.
24018
- required:
24019
- - type
24020
- - role
24021
- - body
24022
- ConversationPart:
24023
- oneOf:
24024
- - $ref: "#/components/schemas/ConversationPartMessage"
24025
- ConversationInput:
24026
- type: object
24027
- properties:
24028
- id:
24029
- type: string
24030
- minLength: 1
24031
- maxLength: 255
24032
- description: The unique identifier for the conversation, relative to the source in which it was created.
24033
- metadata:
24034
- $ref: "#/components/schemas/ConversationMetadata"
24035
- subject:
24036
- type: string
24037
- maxLength: 512
24038
- description: The subject of the conversation.
24039
- parts:
24040
- type: array
24041
- items:
24042
- $ref: "#/components/schemas/ConversationPart"
24043
- required:
24044
- - id
24045
- - parts
24046
- AgentTaskStatus:
24047
- type: string
24048
- description: |
24049
- The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `in-progress`: The task is in progress. - `in-review`: The task is completed, a human should review the result. - `done`: The task is completed. - `rejected`: The task has been rejected by a human.
24050
- enum:
24051
- - backlog
24052
- - in-progress
24053
- - in-review
24054
- - done
24055
- - rejected
24056
24716
  RequestSpaceTrackPageView:
24057
24717
  $ref: "#/components/schemas/SpaceTrackPageView"
24058
24718
  RequestSiteTrackPageView:
@@ -24077,8 +24737,6 @@ components:
24077
24737
  $ref: "#/components/schemas/ImportContent"
24078
24738
  RequestCreateSpace:
24079
24739
  $ref: "#/components/schemas/CreateSpace"
24080
- RequestCreateChangeRequest:
24081
- $ref: "#/components/schemas/CreateChangeRequest"
24082
24740
  RequestRenderIntegrationUI:
24083
24741
  $ref: "#/components/schemas/RenderIntegrationUI"
24084
24742
  RequestUpdateContentPublishingAuth: