@gitbook/api 0.116.0 → 0.117.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
@@ -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
@@ -5932,6 +5950,256 @@ paths:
5932
5950
  "404":
5933
5951
  description: No matching OpenAPI specification version found
5934
5952
  $ref: "#/components/responses/NotFoundError"
5953
+ "/orgs/{organizationId}/conversations-clusters":
5954
+ get:
5955
+ operationId: listConversationsIssuesClusters
5956
+ summary: List conversations issues clusters
5957
+ tags:
5958
+ - agents
5959
+ parameters:
5960
+ - $ref: "#/components/parameters/organizationId"
5961
+ - $ref: "#/components/parameters/listPage"
5962
+ - $ref: "#/components/parameters/listLimit"
5963
+ - $ref: "#/components/parameters/listOrder"
5964
+ - name: orderBy
5965
+ in: query
5966
+ schema:
5967
+ type: string
5968
+ default: updatedAt
5969
+ enum:
5970
+ - updatedAt
5971
+ - issues
5972
+ - conversations
5973
+ - tasksTotal
5974
+ - tasksBacklog
5975
+ - tasksStarted
5976
+ - name: status
5977
+ in: query
5978
+ description: Filter by status
5979
+ schema:
5980
+ type: string
5981
+ enum:
5982
+ - pending
5983
+ - analysing
5984
+ security:
5985
+ - user: []
5986
+ responses:
5987
+ "200":
5988
+ description: OK
5989
+ content:
5990
+ application/json:
5991
+ schema:
5992
+ allOf:
5993
+ - $ref: "#/components/schemas/List"
5994
+ - type: object
5995
+ required:
5996
+ - items
5997
+ properties:
5998
+ items:
5999
+ type: array
6000
+ items:
6001
+ $ref: "#/components/schemas/ConversationsIssuesCluster"
6002
+ "404":
6003
+ $ref: "#/components/responses/NotFoundError"
6004
+ "/orgs/{organizationId}/conversations-clusters/{clusterId}":
6005
+ get:
6006
+ operationId: getConversationsIssuesCluster
6007
+ summary: Get a conversations issues cluster by its identifier
6008
+ tags:
6009
+ - agents
6010
+ parameters:
6011
+ - $ref: "#/components/parameters/organizationId"
6012
+ - $ref: "#/components/parameters/clusterId"
6013
+ security:
6014
+ - user: []
6015
+ responses:
6016
+ "200":
6017
+ description: OK
6018
+ content:
6019
+ application/json:
6020
+ schema:
6021
+ $ref: "#/components/schemas/ConversationsIssuesCluster"
6022
+ "/orgs/{organizationId}/conversations-clusters/{clusterId}/issues":
6023
+ get:
6024
+ operationId: listConversationsIssuesInCluster
6025
+ summary: List conversations issues in a cluster
6026
+ tags:
6027
+ - agents
6028
+ parameters:
6029
+ - $ref: "#/components/parameters/organizationId"
6030
+ - $ref: "#/components/parameters/clusterId"
6031
+ - $ref: "#/components/parameters/listPage"
6032
+ - $ref: "#/components/parameters/listLimit"
6033
+ security:
6034
+ - user: []
6035
+ responses:
6036
+ "200":
6037
+ description: OK
6038
+ content:
6039
+ application/json:
6040
+ schema:
6041
+ allOf:
6042
+ - $ref: "#/components/schemas/List"
6043
+ - type: object
6044
+ required:
6045
+ - items
6046
+ properties:
6047
+ items:
6048
+ type: array
6049
+ items:
6050
+ type: object
6051
+ properties:
6052
+ issue:
6053
+ $ref: "#/components/schemas/ConversationIssue"
6054
+ conversation:
6055
+ $ref: "#/components/schemas/Conversation"
6056
+ required:
6057
+ - issue
6058
+ - conversation
6059
+ "404":
6060
+ $ref: "#/components/responses/NotFoundError"
6061
+ "/orgs/{organizationId}/conversations":
6062
+ post:
6063
+ operationId: ingestConversation
6064
+ summary: Ingest conversations
6065
+ tags:
6066
+ - conversations
6067
+ security:
6068
+ - integration: []
6069
+ parameters:
6070
+ - $ref: "#/components/parameters/organizationId"
6071
+ requestBody:
6072
+ required: true
6073
+ content:
6074
+ application/json:
6075
+ schema:
6076
+ oneOf:
6077
+ - $ref: "#/components/schemas/ConversationInput"
6078
+ - type: array
6079
+ items:
6080
+ $ref: "#/components/schemas/ConversationInput"
6081
+ responses:
6082
+ "204":
6083
+ description: Conversations ingested
6084
+ "/orgs/{organizationId}/agents-setup":
6085
+ get:
6086
+ operationId: getAgentSetupState
6087
+ summary: Get the agents setup state
6088
+ description: |
6089
+ Get the state of the agent.
6090
+ tags:
6091
+ - agents
6092
+ - critical
6093
+ security:
6094
+ - user-internal: []
6095
+ parameters:
6096
+ - $ref: "#/components/parameters/organizationId"
6097
+ responses:
6098
+ "200":
6099
+ description: OK
6100
+ content:
6101
+ application/json:
6102
+ schema:
6103
+ $ref: "#/components/schemas/AgentsSetupState"
6104
+ "/orgs/{organizationId}/agent-tasks":
6105
+ get:
6106
+ operationId: listAgentTasks
6107
+ summary: List agent tasks
6108
+ tags:
6109
+ - agents
6110
+ parameters:
6111
+ - $ref: "#/components/parameters/organizationId"
6112
+ - $ref: "#/components/parameters/listPage"
6113
+ - $ref: "#/components/parameters/listLimit"
6114
+ - name: cluster
6115
+ in: query
6116
+ description: The ID of the conversations issues cluster to filter the agent tasks by
6117
+ schema:
6118
+ type: string
6119
+ - name: space
6120
+ in: query
6121
+ description: The ID of the space to filter the agent tasks by
6122
+ schema:
6123
+ type: string
6124
+ - name: status
6125
+ in: query
6126
+ description: The statuses of the agent tasks to filter by
6127
+ schema:
6128
+ type: array
6129
+ items:
6130
+ $ref: "#/components/schemas/AgentTaskStatus"
6131
+ security:
6132
+ - user: []
6133
+ responses:
6134
+ "200":
6135
+ description: OK
6136
+ content:
6137
+ application/json:
6138
+ schema:
6139
+ allOf:
6140
+ - $ref: "#/components/schemas/List"
6141
+ - type: object
6142
+ required:
6143
+ - items
6144
+ properties:
6145
+ items:
6146
+ type: array
6147
+ items:
6148
+ $ref: "#/components/schemas/AgentTask"
6149
+ "404":
6150
+ $ref: "#/components/responses/NotFoundError"
6151
+ "/orgs/{organizationId}/agent-tasks/{agentTaskId}":
6152
+ get:
6153
+ operationId: getAgentTask
6154
+ summary: Get an agent task by its identifier
6155
+ tags:
6156
+ - agents
6157
+ parameters:
6158
+ - $ref: "#/components/parameters/organizationId"
6159
+ - $ref: "#/components/parameters/agentTaskId"
6160
+ security:
6161
+ - user: []
6162
+ responses:
6163
+ "200":
6164
+ description: OK
6165
+ content:
6166
+ application/json:
6167
+ schema:
6168
+ $ref: "#/components/schemas/AgentTask"
6169
+ "404":
6170
+ $ref: "#/components/responses/NotFoundError"
6171
+ patch:
6172
+ operationId: updateAgentTask
6173
+ summary: Update an agent task by its identifier
6174
+ tags:
6175
+ - agents
6176
+ parameters:
6177
+ - $ref: "#/components/parameters/organizationId"
6178
+ - $ref: "#/components/parameters/agentTaskId"
6179
+ security:
6180
+ - user: []
6181
+ requestBody:
6182
+ required: true
6183
+ content:
6184
+ application/json:
6185
+ schema:
6186
+ type: object
6187
+ properties:
6188
+ status:
6189
+ type: string
6190
+ enum:
6191
+ - backlog
6192
+ - started
6193
+ - canceled
6194
+ required:
6195
+ - status
6196
+ responses:
6197
+ "200":
6198
+ description: OK
6199
+ content:
6200
+ application/json:
6201
+ schema:
6202
+ $ref: "#/components/schemas/AgentTask"
5935
6203
  "/orgs/{organizationId}/translations":
5936
6204
  get:
5937
6205
  operationId: listTranslationSettings
@@ -8989,6 +9257,12 @@ components:
8989
9257
  description: If defined, only list integrations owned by the given organization.
8990
9258
  schema:
8991
9259
  type: string
9260
+ integrationSearchScope:
9261
+ name: scope
9262
+ in: query
9263
+ description: Filter the integrations by scope
9264
+ schema:
9265
+ $ref: "#/components/schemas/IntegrationScope"
8992
9266
  integrationName:
8993
9267
  name: integrationName
8994
9268
  in: path
@@ -9066,6 +9340,20 @@ components:
9066
9340
  description: The unique ID of the OpenAPI specification version
9067
9341
  schema:
9068
9342
  type: string
9343
+ clusterId:
9344
+ name: clusterId
9345
+ in: path
9346
+ required: true
9347
+ description: The unique id of the cluster
9348
+ schema:
9349
+ type: string
9350
+ agentTaskId:
9351
+ name: agentTaskId
9352
+ in: path
9353
+ required: true
9354
+ description: The unique id of the agent task
9355
+ schema:
9356
+ type: string
9069
9357
  translationSettingsId:
9070
9358
  name: translationSettingsId
9071
9359
  in: path
@@ -12038,14 +12326,20 @@ components:
12038
12326
  items:
12039
12327
  oneOf:
12040
12328
  - $ref: "#/components/schemas/DocumentBlocksEssentials"
12329
+ - $ref: "#/components/schemas/DocumentBlockImages"
12041
12330
  isVoid:
12042
12331
  type: boolean
12043
12332
  enum:
12044
12333
  - false
12334
+ data:
12335
+ type: object
12336
+ properties: {}
12337
+ additionalProperties: false
12045
12338
  required:
12046
12339
  - object
12047
12340
  - type
12048
12341
  - nodes
12342
+ - data
12049
12343
  DocumentBlockColumns:
12050
12344
  type: object
12051
12345
  properties:
@@ -13354,6 +13648,9 @@ components:
13354
13648
  createOpenAPISpec:
13355
13649
  type: boolean
13356
13650
  description: Can the user create new OpenAPI specifications.
13651
+ ingestConversations:
13652
+ type: boolean
13653
+ description: Can the user ingest conversations in the organization.
13357
13654
  viewBilling:
13358
13655
  type: boolean
13359
13656
  description: Can the user view the billing details of the organization.
@@ -13372,6 +13669,7 @@ components:
13372
13669
  - ownTeam
13373
13670
  - createContent
13374
13671
  - createOpenAPISpec
13672
+ - ingestConversations
13375
13673
  - viewBilling
13376
13674
  - listMembers
13377
13675
  - listTeams
@@ -13810,12 +14108,6 @@ components:
13810
14108
  - relation
13811
14109
  - status
13812
14110
  - locationReferences
13813
- CreateChangeRequest:
13814
- type: object
13815
- properties:
13816
- subject:
13817
- type: string
13818
- description: Subject of the change-request
13819
14111
  ChangeRequestReviewStatus:
13820
14112
  type: string
13821
14113
  description: Status of a change request review.
@@ -14707,6 +14999,7 @@ components:
14707
14999
  - site:adaptive:write
14708
15000
  - openapi:read
14709
15001
  - openapi:write
15002
+ - conversations:ingest
14710
15003
  IntegrationScopes:
14711
15004
  type: array
14712
15005
  description: Permissions that should be granted to the integration
@@ -18456,52 +18749,421 @@ components:
18456
18749
  required:
18457
18750
  - filesystem
18458
18751
  - url
18459
- TranslationTitle:
18460
- type: string
18461
- description: Title of the translation settings
18462
- minLength: 1
18463
- maxLength: 100
18464
- TranslationSettings:
18752
+ ConversationsIssuesCluster:
18465
18753
  type: object
18466
18754
  properties:
18467
18755
  object:
18468
18756
  type: string
18469
18757
  enum:
18470
- - translation-settings
18758
+ - issues-cluster
18471
18759
  id:
18472
18760
  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:
18761
+ description: The ID of the conversations issues cluster
18762
+ label:
18481
18763
  type: string
18482
- format: date-time
18764
+ description: The label of the conversations issues cluster
18765
+ createdAt:
18766
+ $ref: "#/components/schemas/Timestamp"
18483
18767
  updatedAt:
18768
+ $ref: "#/components/schemas/Timestamp"
18769
+ icon:
18770
+ $ref: "#/components/schemas/Icon"
18771
+ summary:
18484
18772
  type: string
18485
- format: date-time
18486
- permissions:
18773
+ description: The summary of the conversations issues cluster
18774
+ weeklyPulse:
18775
+ type: array
18776
+ minItems: 13
18777
+ maxItems: 13
18778
+ description: The weekly pulse of the conversations issues cluster for the past 3 months
18779
+ items:
18780
+ type: number
18781
+ sources:
18487
18782
  type: object
18488
- 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
18498
- urls:
18783
+ additionalProperties:
18784
+ type: number
18785
+ description: The number of issues in the conversations issues cluster for the source
18786
+ stats:
18499
18787
  type: object
18500
- description: URLs associated with the object
18788
+ description: The stats of the conversations issues cluster
18501
18789
  properties:
18502
- location:
18503
- type: string
18504
- description: URL of the translation settings in the API
18790
+ issues:
18791
+ type: number
18792
+ description: The number of issues in the conversations issues cluster
18793
+ conversations:
18794
+ type: number
18795
+ description: The number of conversations in the conversations issues cluster
18796
+ tasksTotal:
18797
+ type: number
18798
+ description: The number of tasks in the conversations issues cluster
18799
+ tasksBacklog:
18800
+ type: number
18801
+ description: The number of tasks in the backlog in the conversations issues cluster
18802
+ tasksStarted:
18803
+ type: number
18804
+ description: The number of tasks done in the conversations issues cluster
18805
+ tasksCompleted:
18806
+ type: number
18807
+ description: The number of tasks completed in the conversations issues cluster
18808
+ tasksCancelled:
18809
+ type: number
18810
+ description: The number of tasks canceled in the conversations issues cluster
18811
+ required:
18812
+ - issues
18813
+ - conversations
18814
+ - tasksTotal
18815
+ - tasksBacklog
18816
+ - tasksStarted
18817
+ - tasksCompleted
18818
+ - tasksCancelled
18819
+ urls:
18820
+ type: object
18821
+ description: URLs associated with the conversations issues cluster
18822
+ properties:
18823
+ location:
18824
+ type: string
18825
+ description: URL of the conversations issues cluster in the API
18826
+ format: uri
18827
+ app:
18828
+ type: string
18829
+ description: URL of the conversations issues cluster in the application
18830
+ format: uri
18831
+ required:
18832
+ - app
18833
+ - location
18834
+ required:
18835
+ - object
18836
+ - id
18837
+ - label
18838
+ - summary
18839
+ - icon
18840
+ - sources
18841
+ - stats
18842
+ - weeklyPulse
18843
+ - createdAt
18844
+ - updatedAt
18845
+ - urls
18846
+ ConversationIssue:
18847
+ type: object
18848
+ properties:
18849
+ object:
18850
+ type: string
18851
+ enum:
18852
+ - conversation-issue
18853
+ id:
18854
+ type: string
18855
+ description: The ID of the conversation issue
18856
+ title:
18857
+ type: string
18858
+ description: The title of the conversation issue
18859
+ summary:
18860
+ type: string
18861
+ description: The summary of the conversation issue
18862
+ createdAt:
18863
+ $ref: "#/components/schemas/Timestamp"
18864
+ ingestedAt:
18865
+ $ref: "#/components/schemas/Timestamp"
18866
+ conversation:
18867
+ type: string
18868
+ description: The ID of the conversation the issue belongs to
18869
+ cluster:
18870
+ type: string
18871
+ description: The ID of the cluster the issue has been linked to
18872
+ urls:
18873
+ type: object
18874
+ description: URLs associated with the conversation issue
18875
+ properties:
18876
+ location:
18877
+ type: string
18878
+ description: URL of the conversation issue in the API
18879
+ format: uri
18880
+ required:
18881
+ - location
18882
+ required:
18883
+ - object
18884
+ - id
18885
+ - title
18886
+ - summary
18887
+ - createdAt
18888
+ - ingestedAt
18889
+ - conversation
18890
+ - urls
18891
+ ConversationSource:
18892
+ oneOf:
18893
+ - type: string
18894
+ description: Integration source
18895
+ pattern: ^integration:[^:]+:[^:]+$
18896
+ x-typescript: "`integration:${string}:${string}`"
18897
+ - type: string
18898
+ description: Email source
18899
+ enum:
18900
+ - email
18901
+ Conversation:
18902
+ type: object
18903
+ properties:
18904
+ object:
18905
+ type: string
18906
+ enum:
18907
+ - conversation
18908
+ id:
18909
+ type: string
18910
+ description: The ID of the conversation
18911
+ subject:
18912
+ type: string
18913
+ description: The subject of the conversation
18914
+ createdAt:
18915
+ $ref: "#/components/schemas/Timestamp"
18916
+ processedAt:
18917
+ $ref: "#/components/schemas/Timestamp"
18918
+ source:
18919
+ $ref: "#/components/schemas/ConversationSource"
18920
+ urls:
18921
+ type: object
18922
+ description: URLs associated with the conversation
18923
+ properties:
18924
+ location:
18925
+ type: string
18926
+ description: URL of the conversation in the API
18927
+ format: uri
18928
+ source:
18929
+ type: string
18930
+ description: URL of the conversation in the source
18931
+ format: uri
18932
+ required:
18933
+ - location
18934
+ required:
18935
+ - object
18936
+ - id
18937
+ - createdAt
18938
+ - source
18939
+ - urls
18940
+ ConversationMetadata:
18941
+ type: object
18942
+ properties:
18943
+ url:
18944
+ type: string
18945
+ description: URL to the conversation
18946
+ attributes:
18947
+ type: object
18948
+ additionalProperties:
18949
+ type: string
18950
+ createdAt:
18951
+ description: Date of the conversation creation
18952
+ $ref: "#/components/schemas/Timestamp"
18953
+ ConversationPartMessage:
18954
+ type: object
18955
+ description: A message posted in the conversation by a user or a team member.
18956
+ properties:
18957
+ type:
18958
+ type: string
18959
+ enum:
18960
+ - message
18961
+ role:
18962
+ type: string
18963
+ enum:
18964
+ - user
18965
+ - assistant
18966
+ - team-member
18967
+ body:
18968
+ type: string
18969
+ description: Markdown or HTML body of the message.
18970
+ required:
18971
+ - type
18972
+ - role
18973
+ - body
18974
+ ConversationPart:
18975
+ oneOf:
18976
+ - $ref: "#/components/schemas/ConversationPartMessage"
18977
+ ConversationInput:
18978
+ type: object
18979
+ properties:
18980
+ id:
18981
+ type: string
18982
+ minLength: 1
18983
+ maxLength: 255
18984
+ description: The unique identifier for the conversation, relative to the source in which it was created.
18985
+ metadata:
18986
+ $ref: "#/components/schemas/ConversationMetadata"
18987
+ subject:
18988
+ type: string
18989
+ maxLength: 512
18990
+ description: The subject of the conversation.
18991
+ parts:
18992
+ type: array
18993
+ items:
18994
+ $ref: "#/components/schemas/ConversationPart"
18995
+ required:
18996
+ - id
18997
+ - parts
18998
+ AgentsSetupState:
18999
+ type: object
19000
+ description: State and settings of the agent
19001
+ properties:
19002
+ email:
19003
+ type: string
19004
+ description: The email address of the agent. Emails can be forwarded to it to ingest conversations.
19005
+ stats:
19006
+ type: object
19007
+ description: The stats of the agent.
19008
+ properties:
19009
+ backlogTasks:
19010
+ type: number
19011
+ description: The number of tasks in the backlog.
19012
+ startedTasks:
19013
+ type: number
19014
+ description: The number of tasks in progress.
19015
+ completedTasks:
19016
+ type: number
19017
+ description: The number of tasks that have been completed.
19018
+ canceledTasks:
19019
+ type: number
19020
+ description: The number of tasks that have been canceled.
19021
+ conversations:
19022
+ type: number
19023
+ description: The number of conversations the agent has indexed.
19024
+ issues:
19025
+ type: number
19026
+ description: The number of issues the agent has indexed.
19027
+ issuesClusters:
19028
+ type: number
19029
+ description: The number of issues clusters the agent has indexed.
19030
+ sources:
19031
+ type: object
19032
+ additionalProperties:
19033
+ type: number
19034
+ description: The number of conversations ingested for the source
19035
+ required:
19036
+ - backlogTasks
19037
+ - startedTasks
19038
+ - completedTasks
19039
+ - canceledTasks
19040
+ - conversations
19041
+ - issues
19042
+ - issuesClusters
19043
+ - sources
19044
+ settings:
19045
+ type: object
19046
+ description: The settings for the agent.
19047
+ properties: {}
19048
+ additionalProperties: false
19049
+ required:
19050
+ - email
19051
+ - settings
19052
+ - stats
19053
+ AgentTaskStatus:
19054
+ type: string
19055
+ description: |
19056
+ 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.
19057
+ enum:
19058
+ - backlog
19059
+ - started
19060
+ - completed
19061
+ - canceled
19062
+ AgentTask:
19063
+ type: object
19064
+ properties:
19065
+ object:
19066
+ type: string
19067
+ enum:
19068
+ - agent-task
19069
+ id:
19070
+ type: string
19071
+ description: The ID of the agent task
19072
+ title:
19073
+ type: string
19074
+ description: The title of the agent task
19075
+ description:
19076
+ type: string
19077
+ description: The description of the agent task
19078
+ instructions:
19079
+ $ref: "#/components/schemas/JSONDocument"
19080
+ status:
19081
+ $ref: "#/components/schemas/AgentTaskStatus"
19082
+ createdAt:
19083
+ $ref: "#/components/schemas/Timestamp"
19084
+ updatedAt:
19085
+ $ref: "#/components/schemas/Timestamp"
19086
+ cluster:
19087
+ type: string
19088
+ description: ID of the cluster the agent task is associated with.
19089
+ space:
19090
+ type: string
19091
+ description: ID of the space the agent task will act on.
19092
+ changeRequest:
19093
+ type: string
19094
+ description: ID of the change request the agent task is associated with.
19095
+ urls:
19096
+ type: object
19097
+ description: URLs associated with the agent task
19098
+ properties:
19099
+ location:
19100
+ type: string
19101
+ description: URL of the agent task in the API
19102
+ format: uri
19103
+ app:
19104
+ type: string
19105
+ description: URL of the agent task in the application
19106
+ format: uri
19107
+ required:
19108
+ - app
19109
+ - location
19110
+ required:
19111
+ - object
19112
+ - id
19113
+ - title
19114
+ - description
19115
+ - instructions
19116
+ - space
19117
+ - status
19118
+ - createdAt
19119
+ - updatedAt
19120
+ - urls
19121
+ TranslationTitle:
19122
+ type: string
19123
+ description: Title of the translation settings
19124
+ minLength: 1
19125
+ maxLength: 100
19126
+ TranslationSettings:
19127
+ type: object
19128
+ properties:
19129
+ object:
19130
+ type: string
19131
+ enum:
19132
+ - translation-settings
19133
+ id:
19134
+ type: string
19135
+ description: Unique identifier of the translation settings
19136
+ title:
19137
+ $ref: "#/components/schemas/TranslationTitle"
19138
+ languages:
19139
+ type: array
19140
+ items:
19141
+ $ref: "#/components/schemas/TranslationLanguage"
19142
+ createdAt:
19143
+ type: string
19144
+ format: date-time
19145
+ updatedAt:
19146
+ type: string
19147
+ format: date-time
19148
+ permissions:
19149
+ type: object
19150
+ properties:
19151
+ view:
19152
+ type: boolean
19153
+ description: Whether the user can view the object
19154
+ edit:
19155
+ type: boolean
19156
+ description: Whether the user can edit the object
19157
+ required:
19158
+ - view
19159
+ - edit
19160
+ urls:
19161
+ type: object
19162
+ description: URLs associated with the object
19163
+ properties:
19164
+ location:
19165
+ type: string
19166
+ description: URL of the translation settings in the API
18505
19167
  format: uri
18506
19168
  required:
18507
19169
  - location
@@ -23491,6 +24153,38 @@ components:
23491
24153
  required:
23492
24154
  - channel
23493
24155
  - translation
24156
+ AgentTaskChannel:
24157
+ type: object
24158
+ description: Subscription channel for an agent task.
24159
+ properties:
24160
+ channel:
24161
+ type: string
24162
+ enum:
24163
+ - agent-task
24164
+ organization:
24165
+ type: string
24166
+ description: The ID of the organization.
24167
+ agentTask:
24168
+ type: string
24169
+ description: The ID of the agent task.
24170
+ required:
24171
+ - channel
24172
+ - organization
24173
+ - agentTask
24174
+ AgentTasksChannel:
24175
+ type: object
24176
+ description: Subscription channel for agent tasks.
24177
+ properties:
24178
+ channel:
24179
+ type: string
24180
+ enum:
24181
+ - agent-tasks
24182
+ organization:
24183
+ type: string
24184
+ description: The ID of the organization.
24185
+ required:
24186
+ - channel
24187
+ - organization
23494
24188
  SubscriptionChannel:
23495
24189
  description: Channel to subscribe to for realtime updates.
23496
24190
  oneOf:
@@ -23560,6 +24254,8 @@ components:
23560
24254
  - $ref: "#/components/schemas/OpenAPISpecChannel"
23561
24255
  - $ref: "#/components/schemas/SubdomainChannel"
23562
24256
  - $ref: "#/components/schemas/TranslationSettingsChannel"
24257
+ - $ref: "#/components/schemas/AgentTaskChannel"
24258
+ - $ref: "#/components/schemas/AgentTasksChannel"
23563
24259
  discriminator:
23564
24260
  propertyName: channel
23565
24261
  GitSyncOperationChannelData:
@@ -23985,74 +24681,6 @@ components:
23985
24681
  - $ref: "#/components/schemas/AgentStreamMessages"
23986
24682
  - $ref: "#/components/schemas/AgentStreamMessageResponse"
23987
24683
  - $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
24684
  RequestSpaceTrackPageView:
24057
24685
  $ref: "#/components/schemas/SpaceTrackPageView"
24058
24686
  RequestSiteTrackPageView:
@@ -24077,8 +24705,6 @@ components:
24077
24705
  $ref: "#/components/schemas/ImportContent"
24078
24706
  RequestCreateSpace:
24079
24707
  $ref: "#/components/schemas/CreateSpace"
24080
- RequestCreateChangeRequest:
24081
- $ref: "#/components/schemas/CreateChangeRequest"
24082
24708
  RequestRenderIntegrationUI:
24083
24709
  $ref: "#/components/schemas/RenderIntegrationUI"
24084
24710
  RequestUpdateContentPublishingAuth: