@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.json CHANGED
@@ -326,6 +326,13 @@
326
326
  "x-parent": "openapi",
327
327
  "description": "Keep a history of your OpenAPI specs, enabling you to compare different versions, revert, or maintain multiple concurrent versions for testing or documentation.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"OpenAPISpecVersion\" grouped=\"false\" %}\n The OpenAPISpecVersion object\n{% endopenapi-schemas %}\n"
328
328
  },
329
+ {
330
+ "name": "conversations",
331
+ "x-page-icon": "robot",
332
+ "x-page-title": "Conversations",
333
+ "x-page-description": "Ingest knowledge for Conversations.",
334
+ "description": "The Conversations endpoints let you ingest, manage, and monitor Conversations in GitBook to be processed by Docs Agents.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"ConversationsIssuesCluster\" grouped=\"false\" %}\n The ConversationsIssuesCluster object\n{% endopenapi-schemas %}\n"
335
+ },
329
336
  {
330
337
  "name": "custom-fonts",
331
338
  "x-page-icon": "font",
@@ -2271,7 +2278,17 @@
2271
2278
  "content": {
2272
2279
  "application/json": {
2273
2280
  "schema": {
2274
- "$ref": "#/components/schemas/CreateChangeRequest"
2281
+ "type": "object",
2282
+ "properties": {
2283
+ "subject": {
2284
+ "type": "string",
2285
+ "description": "Subject of the change-request"
2286
+ },
2287
+ "agentTaskId": {
2288
+ "type": "string",
2289
+ "description": "ID of the agent task to implement"
2290
+ }
2291
+ }
2275
2292
  }
2276
2293
  }
2277
2294
  }
@@ -6101,6 +6118,9 @@
6101
6118
  },
6102
6119
  {
6103
6120
  "$ref": "#/components/parameters/integrationSearchOwner"
6121
+ },
6122
+ {
6123
+ "$ref": "#/components/parameters/integrationSearchScope"
6104
6124
  }
6105
6125
  ],
6106
6126
  "responses": {
@@ -9290,7 +9310,7 @@
9290
9310
  "/orgs/{organizationId}/integrations": {
9291
9311
  "get": {
9292
9312
  "operationId": "listOrganizationIntegrations",
9293
- "summary": "List all integrations",
9313
+ "summary": "List all public integrations along with private ones trusted by the specific org.",
9294
9314
  "tags": [
9295
9315
  "integrations"
9296
9316
  ],
@@ -9321,6 +9341,9 @@
9321
9341
  },
9322
9342
  {
9323
9343
  "$ref": "#/components/parameters/integrationSearchOwner"
9344
+ },
9345
+ {
9346
+ "$ref": "#/components/parameters/integrationSearchScope"
9324
9347
  }
9325
9348
  ],
9326
9349
  "responses": {
@@ -10444,22 +10467,143 @@
10444
10467
  }
10445
10468
  }
10446
10469
  },
10447
- "/orgs/{organizationId}/translations": {
10470
+ "/orgs/{organizationId}/conversations-clusters": {
10448
10471
  "get": {
10449
- "operationId": "listTranslationSettings",
10450
- "summary": "List all the translation settings",
10472
+ "operationId": "listConversationsIssuesClusters",
10473
+ "summary": "List conversations issues clusters",
10451
10474
  "tags": [
10452
- "translations"
10475
+ "agents"
10476
+ ],
10477
+ "parameters": [
10478
+ {
10479
+ "$ref": "#/components/parameters/organizationId"
10480
+ },
10481
+ {
10482
+ "$ref": "#/components/parameters/listPage"
10483
+ },
10484
+ {
10485
+ "$ref": "#/components/parameters/listLimit"
10486
+ },
10487
+ {
10488
+ "$ref": "#/components/parameters/listOrder"
10489
+ },
10490
+ {
10491
+ "name": "orderBy",
10492
+ "in": "query",
10493
+ "schema": {
10494
+ "type": "string",
10495
+ "default": "updatedAt",
10496
+ "enum": [
10497
+ "updatedAt",
10498
+ "issues",
10499
+ "conversations",
10500
+ "tasksTotal",
10501
+ "tasksBacklog",
10502
+ "tasksStarted"
10503
+ ]
10504
+ }
10505
+ },
10506
+ {
10507
+ "name": "status",
10508
+ "in": "query",
10509
+ "description": "Filter by status",
10510
+ "schema": {
10511
+ "type": "string",
10512
+ "enum": [
10513
+ "pending",
10514
+ "analysing"
10515
+ ]
10516
+ }
10517
+ }
10453
10518
  ],
10454
10519
  "security": [
10455
10520
  {
10456
10521
  "user": []
10457
10522
  }
10458
10523
  ],
10524
+ "responses": {
10525
+ "200": {
10526
+ "description": "OK",
10527
+ "content": {
10528
+ "application/json": {
10529
+ "schema": {
10530
+ "allOf": [
10531
+ {
10532
+ "$ref": "#/components/schemas/List"
10533
+ },
10534
+ {
10535
+ "type": "object",
10536
+ "required": [
10537
+ "items"
10538
+ ],
10539
+ "properties": {
10540
+ "items": {
10541
+ "type": "array",
10542
+ "items": {
10543
+ "$ref": "#/components/schemas/ConversationsIssuesCluster"
10544
+ }
10545
+ }
10546
+ }
10547
+ }
10548
+ ]
10549
+ }
10550
+ }
10551
+ }
10552
+ },
10553
+ "404": {
10554
+ "$ref": "#/components/responses/NotFoundError"
10555
+ }
10556
+ }
10557
+ }
10558
+ },
10559
+ "/orgs/{organizationId}/conversations-clusters/{clusterId}": {
10560
+ "get": {
10561
+ "operationId": "getConversationsIssuesCluster",
10562
+ "summary": "Get a conversations issues cluster by its identifier",
10563
+ "tags": [
10564
+ "agents"
10565
+ ],
10459
10566
  "parameters": [
10460
10567
  {
10461
10568
  "$ref": "#/components/parameters/organizationId"
10462
10569
  },
10570
+ {
10571
+ "$ref": "#/components/parameters/clusterId"
10572
+ }
10573
+ ],
10574
+ "security": [
10575
+ {
10576
+ "user": []
10577
+ }
10578
+ ],
10579
+ "responses": {
10580
+ "200": {
10581
+ "description": "OK",
10582
+ "content": {
10583
+ "application/json": {
10584
+ "schema": {
10585
+ "$ref": "#/components/schemas/ConversationsIssuesCluster"
10586
+ }
10587
+ }
10588
+ }
10589
+ }
10590
+ }
10591
+ }
10592
+ },
10593
+ "/orgs/{organizationId}/conversations-clusters/{clusterId}/issues": {
10594
+ "get": {
10595
+ "operationId": "listConversationsIssuesInCluster",
10596
+ "summary": "List conversations issues in a cluster",
10597
+ "tags": [
10598
+ "agents"
10599
+ ],
10600
+ "parameters": [
10601
+ {
10602
+ "$ref": "#/components/parameters/organizationId"
10603
+ },
10604
+ {
10605
+ "$ref": "#/components/parameters/clusterId"
10606
+ },
10463
10607
  {
10464
10608
  "$ref": "#/components/parameters/listPage"
10465
10609
  },
@@ -10467,6 +10611,11 @@
10467
10611
  "$ref": "#/components/parameters/listLimit"
10468
10612
  }
10469
10613
  ],
10614
+ "security": [
10615
+ {
10616
+ "user": []
10617
+ }
10618
+ ],
10470
10619
  "responses": {
10471
10620
  "200": {
10472
10621
  "description": "OK",
@@ -10486,7 +10635,19 @@
10486
10635
  "items": {
10487
10636
  "type": "array",
10488
10637
  "items": {
10489
- "$ref": "#/components/schemas/TranslationSettings"
10638
+ "type": "object",
10639
+ "properties": {
10640
+ "issue": {
10641
+ "$ref": "#/components/schemas/ConversationIssue"
10642
+ },
10643
+ "conversation": {
10644
+ "$ref": "#/components/schemas/Conversation"
10645
+ }
10646
+ },
10647
+ "required": [
10648
+ "issue",
10649
+ "conversation"
10650
+ ]
10490
10651
  }
10491
10652
  }
10492
10653
  }
@@ -10495,18 +10656,23 @@
10495
10656
  }
10496
10657
  }
10497
10658
  }
10659
+ },
10660
+ "404": {
10661
+ "$ref": "#/components/responses/NotFoundError"
10498
10662
  }
10499
10663
  }
10500
- },
10664
+ }
10665
+ },
10666
+ "/orgs/{organizationId}/conversations": {
10501
10667
  "post": {
10502
- "operationId": "createTranslationSettings",
10503
- "summary": "Create a translation settings",
10668
+ "operationId": "ingestConversation",
10669
+ "summary": "Ingest conversations",
10504
10670
  "tags": [
10505
- "translations"
10671
+ "conversations"
10506
10672
  ],
10507
10673
  "security": [
10508
10674
  {
10509
- "user": []
10675
+ "integration-installation": []
10510
10676
  }
10511
10677
  ],
10512
10678
  "parameters": [
@@ -10519,55 +10685,164 @@
10519
10685
  "content": {
10520
10686
  "application/json": {
10521
10687
  "schema": {
10522
- "type": "object",
10523
- "properties": {
10524
- "title": {
10525
- "type": "string",
10526
- "description": "The title of the translation settings"
10688
+ "oneOf": [
10689
+ {
10690
+ "$ref": "#/components/schemas/ConversationInput"
10691
+ },
10692
+ {
10693
+ "type": "array",
10694
+ "items": {
10695
+ "$ref": "#/components/schemas/ConversationInput"
10696
+ }
10527
10697
  }
10528
- },
10529
- "required": [
10530
- "title"
10531
10698
  ]
10532
10699
  }
10533
10700
  }
10534
10701
  }
10535
10702
  },
10536
10703
  "responses": {
10537
- "201": {
10538
- "description": "Translation settings has been created",
10704
+ "204": {
10705
+ "description": "Conversations ingested"
10706
+ }
10707
+ }
10708
+ }
10709
+ },
10710
+ "/orgs/{organizationId}/agents-setup": {
10711
+ "get": {
10712
+ "operationId": "getAgentSetupState",
10713
+ "summary": "Get the agents setup state",
10714
+ "description": "Get the state of the agent.\n",
10715
+ "tags": [
10716
+ "agents",
10717
+ "critical"
10718
+ ],
10719
+ "security": [
10720
+ {
10721
+ "user-internal": []
10722
+ }
10723
+ ],
10724
+ "parameters": [
10725
+ {
10726
+ "$ref": "#/components/parameters/organizationId"
10727
+ }
10728
+ ],
10729
+ "responses": {
10730
+ "200": {
10731
+ "description": "OK",
10539
10732
  "content": {
10540
10733
  "application/json": {
10541
10734
  "schema": {
10542
- "$ref": "#/components/schemas/TranslationSettings"
10735
+ "$ref": "#/components/schemas/AgentsSetupState"
10543
10736
  }
10544
10737
  }
10545
10738
  }
10546
- },
10547
- "400": {
10548
- "$ref": "#/components/responses/BadRequestError"
10549
10739
  }
10550
10740
  }
10551
10741
  }
10552
10742
  },
10553
- "/orgs/{organizationId}/translations/{translationSettingsId}": {
10743
+ "/orgs/{organizationId}/agent-tasks": {
10554
10744
  "get": {
10555
- "operationId": "getTranslationSettings",
10556
- "summary": "Get a translation settings by its ID",
10745
+ "operationId": "listAgentTasks",
10746
+ "summary": "List agent tasks",
10557
10747
  "tags": [
10558
- "translations"
10748
+ "agents"
10749
+ ],
10750
+ "parameters": [
10751
+ {
10752
+ "$ref": "#/components/parameters/organizationId"
10753
+ },
10754
+ {
10755
+ "$ref": "#/components/parameters/listPage"
10756
+ },
10757
+ {
10758
+ "$ref": "#/components/parameters/listLimit"
10759
+ },
10760
+ {
10761
+ "name": "cluster",
10762
+ "in": "query",
10763
+ "description": "The ID of the conversations issues cluster to filter the agent tasks by",
10764
+ "schema": {
10765
+ "type": "string"
10766
+ }
10767
+ },
10768
+ {
10769
+ "name": "space",
10770
+ "in": "query",
10771
+ "description": "The ID of the space to filter the agent tasks by",
10772
+ "schema": {
10773
+ "type": "string"
10774
+ }
10775
+ },
10776
+ {
10777
+ "name": "status",
10778
+ "in": "query",
10779
+ "description": "The statuses of the agent tasks to filter by",
10780
+ "schema": {
10781
+ "type": "array",
10782
+ "items": {
10783
+ "$ref": "#/components/schemas/AgentTaskStatus"
10784
+ }
10785
+ }
10786
+ }
10559
10787
  ],
10560
10788
  "security": [
10561
10789
  {
10562
10790
  "user": []
10563
10791
  }
10564
10792
  ],
10793
+ "responses": {
10794
+ "200": {
10795
+ "description": "OK",
10796
+ "content": {
10797
+ "application/json": {
10798
+ "schema": {
10799
+ "allOf": [
10800
+ {
10801
+ "$ref": "#/components/schemas/List"
10802
+ },
10803
+ {
10804
+ "type": "object",
10805
+ "required": [
10806
+ "items"
10807
+ ],
10808
+ "properties": {
10809
+ "items": {
10810
+ "type": "array",
10811
+ "items": {
10812
+ "$ref": "#/components/schemas/AgentTask"
10813
+ }
10814
+ }
10815
+ }
10816
+ }
10817
+ ]
10818
+ }
10819
+ }
10820
+ }
10821
+ },
10822
+ "404": {
10823
+ "$ref": "#/components/responses/NotFoundError"
10824
+ }
10825
+ }
10826
+ }
10827
+ },
10828
+ "/orgs/{organizationId}/agent-tasks/{agentTaskId}": {
10829
+ "get": {
10830
+ "operationId": "getAgentTask",
10831
+ "summary": "Get an agent task by its identifier",
10832
+ "tags": [
10833
+ "agents"
10834
+ ],
10565
10835
  "parameters": [
10566
10836
  {
10567
10837
  "$ref": "#/components/parameters/organizationId"
10568
10838
  },
10569
10839
  {
10570
- "$ref": "#/components/parameters/translationSettingsId"
10840
+ "$ref": "#/components/parameters/agentTaskId"
10841
+ }
10842
+ ],
10843
+ "security": [
10844
+ {
10845
+ "user": []
10571
10846
  }
10572
10847
  ],
10573
10848
  "responses": {
@@ -10576,34 +10851,33 @@
10576
10851
  "content": {
10577
10852
  "application/json": {
10578
10853
  "schema": {
10579
- "$ref": "#/components/schemas/TranslationSettings"
10854
+ "$ref": "#/components/schemas/AgentTask"
10580
10855
  }
10581
10856
  }
10582
10857
  }
10583
10858
  },
10584
10859
  "404": {
10585
- "description": "No matching translation settings found",
10586
10860
  "$ref": "#/components/responses/NotFoundError"
10587
10861
  }
10588
10862
  }
10589
10863
  },
10590
- "put": {
10591
- "operationId": "updateTranslationSettings",
10592
- "summary": "Update a translation settings",
10864
+ "patch": {
10865
+ "operationId": "updateAgentTask",
10866
+ "summary": "Update an agent task by its identifier",
10593
10867
  "tags": [
10594
- "translations"
10595
- ],
10596
- "security": [
10597
- {
10598
- "user": []
10599
- }
10868
+ "agents"
10600
10869
  ],
10601
10870
  "parameters": [
10602
10871
  {
10603
10872
  "$ref": "#/components/parameters/organizationId"
10604
10873
  },
10605
10874
  {
10606
- "$ref": "#/components/parameters/translationSettingsId"
10875
+ "$ref": "#/components/parameters/agentTaskId"
10876
+ }
10877
+ ],
10878
+ "security": [
10879
+ {
10880
+ "user": []
10607
10881
  }
10608
10882
  ],
10609
10883
  "requestBody": {
@@ -10613,13 +10887,17 @@
10613
10887
  "schema": {
10614
10888
  "type": "object",
10615
10889
  "properties": {
10616
- "title": {
10890
+ "status": {
10617
10891
  "type": "string",
10618
- "description": "The title of the translation settings"
10892
+ "enum": [
10893
+ "backlog",
10894
+ "started",
10895
+ "canceled"
10896
+ ]
10619
10897
  }
10620
10898
  },
10621
10899
  "required": [
10622
- "title"
10900
+ "status"
10623
10901
  ]
10624
10902
  }
10625
10903
  }
@@ -10627,52 +10905,24 @@
10627
10905
  },
10628
10906
  "responses": {
10629
10907
  "200": {
10630
- "description": "Translation settings has been updated",
10908
+ "description": "OK",
10631
10909
  "content": {
10632
10910
  "application/json": {
10633
10911
  "schema": {
10634
- "$ref": "#/components/schemas/TranslationSettings"
10912
+ "$ref": "#/components/schemas/AgentTask"
10635
10913
  }
10636
10914
  }
10637
10915
  }
10638
- },
10639
- "400": {
10640
- "$ref": "#/components/responses/BadRequestError"
10641
- }
10642
- }
10643
- },
10644
- "delete": {
10645
- "operationId": "deleteTranslationSettings",
10646
- "summary": "Delete a translation settings",
10647
- "tags": [
10648
- "translations"
10649
- ],
10650
- "security": [
10651
- {
10652
- "user": []
10653
- }
10654
- ],
10655
- "parameters": [
10656
- {
10657
- "$ref": "#/components/parameters/organizationId"
10658
- },
10659
- {
10660
- "$ref": "#/components/parameters/translationSettingsId"
10661
- }
10662
- ],
10663
- "responses": {
10664
- "205": {
10665
- "description": "Translation settings has been deleted"
10666
10916
  }
10667
10917
  }
10668
10918
  }
10669
10919
  },
10670
- "/orgs/{organizationId}/translations/{translationSettingsId}/languages": {
10920
+ "/orgs/{organizationId}/translations": {
10671
10921
  "get": {
10672
- "operationId": "listTranslationLanguages",
10673
- "summary": "List all translation settings language",
10922
+ "operationId": "listTranslationSettings",
10923
+ "summary": "List all the translation settings",
10674
10924
  "tags": [
10675
- "translation-languages"
10925
+ "translations"
10676
10926
  ],
10677
10927
  "security": [
10678
10928
  {
@@ -10683,9 +10933,232 @@
10683
10933
  {
10684
10934
  "$ref": "#/components/parameters/organizationId"
10685
10935
  },
10686
- {
10687
- "$ref": "#/components/parameters/translationSettingsId"
10688
- },
10936
+ {
10937
+ "$ref": "#/components/parameters/listPage"
10938
+ },
10939
+ {
10940
+ "$ref": "#/components/parameters/listLimit"
10941
+ }
10942
+ ],
10943
+ "responses": {
10944
+ "200": {
10945
+ "description": "OK",
10946
+ "content": {
10947
+ "application/json": {
10948
+ "schema": {
10949
+ "allOf": [
10950
+ {
10951
+ "$ref": "#/components/schemas/List"
10952
+ },
10953
+ {
10954
+ "type": "object",
10955
+ "required": [
10956
+ "items"
10957
+ ],
10958
+ "properties": {
10959
+ "items": {
10960
+ "type": "array",
10961
+ "items": {
10962
+ "$ref": "#/components/schemas/TranslationSettings"
10963
+ }
10964
+ }
10965
+ }
10966
+ }
10967
+ ]
10968
+ }
10969
+ }
10970
+ }
10971
+ }
10972
+ }
10973
+ },
10974
+ "post": {
10975
+ "operationId": "createTranslationSettings",
10976
+ "summary": "Create a translation settings",
10977
+ "tags": [
10978
+ "translations"
10979
+ ],
10980
+ "security": [
10981
+ {
10982
+ "user": []
10983
+ }
10984
+ ],
10985
+ "parameters": [
10986
+ {
10987
+ "$ref": "#/components/parameters/organizationId"
10988
+ }
10989
+ ],
10990
+ "requestBody": {
10991
+ "required": true,
10992
+ "content": {
10993
+ "application/json": {
10994
+ "schema": {
10995
+ "type": "object",
10996
+ "properties": {
10997
+ "title": {
10998
+ "type": "string",
10999
+ "description": "The title of the translation settings"
11000
+ }
11001
+ },
11002
+ "required": [
11003
+ "title"
11004
+ ]
11005
+ }
11006
+ }
11007
+ }
11008
+ },
11009
+ "responses": {
11010
+ "201": {
11011
+ "description": "Translation settings has been created",
11012
+ "content": {
11013
+ "application/json": {
11014
+ "schema": {
11015
+ "$ref": "#/components/schemas/TranslationSettings"
11016
+ }
11017
+ }
11018
+ }
11019
+ },
11020
+ "400": {
11021
+ "$ref": "#/components/responses/BadRequestError"
11022
+ }
11023
+ }
11024
+ }
11025
+ },
11026
+ "/orgs/{organizationId}/translations/{translationSettingsId}": {
11027
+ "get": {
11028
+ "operationId": "getTranslationSettings",
11029
+ "summary": "Get a translation settings by its ID",
11030
+ "tags": [
11031
+ "translations"
11032
+ ],
11033
+ "security": [
11034
+ {
11035
+ "user": []
11036
+ }
11037
+ ],
11038
+ "parameters": [
11039
+ {
11040
+ "$ref": "#/components/parameters/organizationId"
11041
+ },
11042
+ {
11043
+ "$ref": "#/components/parameters/translationSettingsId"
11044
+ }
11045
+ ],
11046
+ "responses": {
11047
+ "200": {
11048
+ "description": "OK",
11049
+ "content": {
11050
+ "application/json": {
11051
+ "schema": {
11052
+ "$ref": "#/components/schemas/TranslationSettings"
11053
+ }
11054
+ }
11055
+ }
11056
+ },
11057
+ "404": {
11058
+ "description": "No matching translation settings found",
11059
+ "$ref": "#/components/responses/NotFoundError"
11060
+ }
11061
+ }
11062
+ },
11063
+ "put": {
11064
+ "operationId": "updateTranslationSettings",
11065
+ "summary": "Update a translation settings",
11066
+ "tags": [
11067
+ "translations"
11068
+ ],
11069
+ "security": [
11070
+ {
11071
+ "user": []
11072
+ }
11073
+ ],
11074
+ "parameters": [
11075
+ {
11076
+ "$ref": "#/components/parameters/organizationId"
11077
+ },
11078
+ {
11079
+ "$ref": "#/components/parameters/translationSettingsId"
11080
+ }
11081
+ ],
11082
+ "requestBody": {
11083
+ "required": true,
11084
+ "content": {
11085
+ "application/json": {
11086
+ "schema": {
11087
+ "type": "object",
11088
+ "properties": {
11089
+ "title": {
11090
+ "type": "string",
11091
+ "description": "The title of the translation settings"
11092
+ }
11093
+ },
11094
+ "required": [
11095
+ "title"
11096
+ ]
11097
+ }
11098
+ }
11099
+ }
11100
+ },
11101
+ "responses": {
11102
+ "200": {
11103
+ "description": "Translation settings has been updated",
11104
+ "content": {
11105
+ "application/json": {
11106
+ "schema": {
11107
+ "$ref": "#/components/schemas/TranslationSettings"
11108
+ }
11109
+ }
11110
+ }
11111
+ },
11112
+ "400": {
11113
+ "$ref": "#/components/responses/BadRequestError"
11114
+ }
11115
+ }
11116
+ },
11117
+ "delete": {
11118
+ "operationId": "deleteTranslationSettings",
11119
+ "summary": "Delete a translation settings",
11120
+ "tags": [
11121
+ "translations"
11122
+ ],
11123
+ "security": [
11124
+ {
11125
+ "user": []
11126
+ }
11127
+ ],
11128
+ "parameters": [
11129
+ {
11130
+ "$ref": "#/components/parameters/organizationId"
11131
+ },
11132
+ {
11133
+ "$ref": "#/components/parameters/translationSettingsId"
11134
+ }
11135
+ ],
11136
+ "responses": {
11137
+ "205": {
11138
+ "description": "Translation settings has been deleted"
11139
+ }
11140
+ }
11141
+ }
11142
+ },
11143
+ "/orgs/{organizationId}/translations/{translationSettingsId}/languages": {
11144
+ "get": {
11145
+ "operationId": "listTranslationLanguages",
11146
+ "summary": "List all translation settings language",
11147
+ "tags": [
11148
+ "translation-languages"
11149
+ ],
11150
+ "security": [
11151
+ {
11152
+ "user": []
11153
+ }
11154
+ ],
11155
+ "parameters": [
11156
+ {
11157
+ "$ref": "#/components/parameters/organizationId"
11158
+ },
11159
+ {
11160
+ "$ref": "#/components/parameters/translationSettingsId"
11161
+ },
10689
11162
  {
10690
11163
  "$ref": "#/components/parameters/listPage"
10691
11164
  },
@@ -11456,6 +11929,9 @@
11456
11929
  "adaptiveContent": {
11457
11930
  "$ref": "#/components/schemas/SiteAdaptiveContent"
11458
11931
  },
11932
+ "agentsContext": {
11933
+ "$ref": "#/components/schemas/SiteAgentsContext"
11934
+ },
11459
11935
  "defaultSiteSpace": {
11460
11936
  "type": "string",
11461
11937
  "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."
@@ -15773,6 +16249,14 @@
15773
16249
  "type": "string"
15774
16250
  }
15775
16251
  },
16252
+ "integrationSearchScope": {
16253
+ "name": "scope",
16254
+ "in": "query",
16255
+ "description": "Filter the integrations by scope",
16256
+ "schema": {
16257
+ "$ref": "#/components/schemas/IntegrationScope"
16258
+ }
16259
+ },
15776
16260
  "integrationName": {
15777
16261
  "name": "integrationName",
15778
16262
  "in": "path",
@@ -15872,6 +16356,24 @@
15872
16356
  "type": "string"
15873
16357
  }
15874
16358
  },
16359
+ "clusterId": {
16360
+ "name": "clusterId",
16361
+ "in": "path",
16362
+ "required": true,
16363
+ "description": "The unique id of the cluster",
16364
+ "schema": {
16365
+ "type": "string"
16366
+ }
16367
+ },
16368
+ "agentTaskId": {
16369
+ "name": "agentTaskId",
16370
+ "in": "path",
16371
+ "required": true,
16372
+ "description": "The unique id of the agent task",
16373
+ "schema": {
16374
+ "type": "string"
16375
+ }
16376
+ },
15875
16377
  "translationSettingsId": {
15876
16378
  "name": "translationSettingsId",
15877
16379
  "in": "path",
@@ -19032,7 +19534,7 @@
19032
19534
  "data"
19033
19535
  ]
19034
19536
  },
19035
- "DocumentBlockImageDimension": {
19537
+ "Length": {
19036
19538
  "oneOf": [
19037
19539
  {
19038
19540
  "type": "number"
@@ -19096,10 +19598,10 @@
19096
19598
  ]
19097
19599
  },
19098
19600
  "width": {
19099
- "$ref": "#/components/schemas/DocumentBlockImageDimension"
19601
+ "$ref": "#/components/schemas/Length"
19100
19602
  },
19101
19603
  "height": {
19102
- "$ref": "#/components/schemas/DocumentBlockImageDimension"
19604
+ "$ref": "#/components/schemas/Length"
19103
19605
  },
19104
19606
  "alt": {
19105
19607
  "type": "string"
@@ -20425,6 +20927,9 @@
20425
20927
  "oneOf": [
20426
20928
  {
20427
20929
  "$ref": "#/components/schemas/DocumentBlocksEssentials"
20930
+ },
20931
+ {
20932
+ "$ref": "#/components/schemas/DocumentBlockImages"
20428
20933
  }
20429
20934
  ]
20430
20935
  }
@@ -20434,12 +20939,22 @@
20434
20939
  "enum": [
20435
20940
  false
20436
20941
  ]
20942
+ },
20943
+ "data": {
20944
+ "type": "object",
20945
+ "properties": {
20946
+ "width": {
20947
+ "$ref": "#/components/schemas/Length"
20948
+ }
20949
+ },
20950
+ "additionalProperties": false
20437
20951
  }
20438
20952
  },
20439
20953
  "required": [
20440
20954
  "object",
20441
20955
  "type",
20442
- "nodes"
20956
+ "nodes",
20957
+ "data"
20443
20958
  ]
20444
20959
  },
20445
20960
  "DocumentBlockColumns": {
@@ -22492,6 +23007,10 @@
22492
23007
  "type": "boolean",
22493
23008
  "description": "Can the user create new OpenAPI specifications."
22494
23009
  },
23010
+ "ingestConversations": {
23011
+ "type": "boolean",
23012
+ "description": "Can the user ingest conversations in the organization."
23013
+ },
22495
23014
  "viewBilling": {
22496
23015
  "type": "boolean",
22497
23016
  "description": "Can the user view the billing details of the organization."
@@ -22515,6 +23034,7 @@
22515
23034
  "ownTeam",
22516
23035
  "createContent",
22517
23036
  "createOpenAPISpec",
23037
+ "ingestConversations",
22518
23038
  "viewBilling",
22519
23039
  "listMembers",
22520
23040
  "listTeams",
@@ -23150,15 +23670,6 @@
23150
23670
  "locationReferences"
23151
23671
  ]
23152
23672
  },
23153
- "CreateChangeRequest": {
23154
- "type": "object",
23155
- "properties": {
23156
- "subject": {
23157
- "type": "string",
23158
- "description": "Subject of the change-request"
23159
- }
23160
- }
23161
- },
23162
23673
  "ChangeRequestReviewStatus": {
23163
23674
  "type": "string",
23164
23675
  "description": "Status of a change request review.",
@@ -24475,7 +24986,8 @@
24475
24986
  "site:adaptive:read",
24476
24987
  "site:adaptive:write",
24477
24988
  "openapi:read",
24478
- "openapi:write"
24989
+ "openapi:write",
24990
+ "conversations:ingest"
24479
24991
  ]
24480
24992
  },
24481
24993
  "IntegrationScopes": {
@@ -25185,6 +25697,15 @@
25185
25697
  "PublishIntegration": {
25186
25698
  "type": "object",
25187
25699
  "properties": {
25700
+ "runtime": {
25701
+ "type": "string",
25702
+ "description": "The runtime version to use for the integration. If not specified, the integration will use the default runtime.",
25703
+ "default": "v1",
25704
+ "enum": [
25705
+ "v1",
25706
+ "v2"
25707
+ ]
25708
+ },
25188
25709
  "icon": {
25189
25710
  "type": "string",
25190
25711
  "format": "byte",
@@ -26824,6 +27345,14 @@
26824
27345
  }
26825
27346
  ]
26826
27347
  },
27348
+ "SiteAgentsContext": {
27349
+ "type": "string",
27350
+ "description": "Defines if the site will be included in the agent's context.\n- `excluded` means that the agent will not be able to access the site.\n- `included` means that the agent will be able to access the site.\n",
27351
+ "enum": [
27352
+ "excluded",
27353
+ "included"
27354
+ ]
27355
+ },
26827
27356
  "SiteCustomizationFeature": {
26828
27357
  "type": "string",
26829
27358
  "description": "A list of all premium customizations.",
@@ -26972,6 +27501,9 @@
26972
27501
  "ads": {
26973
27502
  "$ref": "#/components/schemas/SiteAds"
26974
27503
  },
27504
+ "agentsContext": {
27505
+ "$ref": "#/components/schemas/SiteAgentsContext"
27506
+ },
26975
27507
  "features": {
26976
27508
  "description": "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.\n",
26977
27509
  "type": "array",
@@ -27016,6 +27548,7 @@
27016
27548
  "siteSpaces",
27017
27549
  "defaultSpace",
27018
27550
  "features",
27551
+ "agentsContext",
27019
27552
  "urls"
27020
27553
  ]
27021
27554
  },
@@ -30143,6 +30676,507 @@
30143
30676
  "url"
30144
30677
  ]
30145
30678
  },
30679
+ "ConversationsIssuesCluster": {
30680
+ "type": "object",
30681
+ "properties": {
30682
+ "object": {
30683
+ "type": "string",
30684
+ "enum": [
30685
+ "issues-cluster"
30686
+ ]
30687
+ },
30688
+ "id": {
30689
+ "type": "string",
30690
+ "description": "The ID of the conversations issues cluster"
30691
+ },
30692
+ "label": {
30693
+ "type": "string",
30694
+ "description": "The label of the conversations issues cluster"
30695
+ },
30696
+ "createdAt": {
30697
+ "$ref": "#/components/schemas/Timestamp"
30698
+ },
30699
+ "updatedAt": {
30700
+ "$ref": "#/components/schemas/Timestamp"
30701
+ },
30702
+ "icon": {
30703
+ "$ref": "#/components/schemas/Icon"
30704
+ },
30705
+ "summary": {
30706
+ "type": "string",
30707
+ "description": "The summary of the conversations issues cluster"
30708
+ },
30709
+ "weeklyPulse": {
30710
+ "type": "array",
30711
+ "minItems": 13,
30712
+ "maxItems": 13,
30713
+ "description": "The weekly pulse of the conversations issues cluster for the past 3 months",
30714
+ "items": {
30715
+ "type": "number"
30716
+ }
30717
+ },
30718
+ "sources": {
30719
+ "type": "object",
30720
+ "additionalProperties": {
30721
+ "type": "number",
30722
+ "description": "The number of issues in the conversations issues cluster for the source"
30723
+ }
30724
+ },
30725
+ "stats": {
30726
+ "type": "object",
30727
+ "description": "The stats of the conversations issues cluster",
30728
+ "properties": {
30729
+ "issues": {
30730
+ "type": "number",
30731
+ "description": "The number of issues in the conversations issues cluster"
30732
+ },
30733
+ "conversations": {
30734
+ "type": "number",
30735
+ "description": "The number of conversations in the conversations issues cluster"
30736
+ },
30737
+ "tasksTotal": {
30738
+ "type": "number",
30739
+ "description": "The number of tasks in the conversations issues cluster"
30740
+ },
30741
+ "tasksBacklog": {
30742
+ "type": "number",
30743
+ "description": "The number of tasks in the backlog in the conversations issues cluster"
30744
+ },
30745
+ "tasksStarted": {
30746
+ "type": "number",
30747
+ "description": "The number of tasks done in the conversations issues cluster"
30748
+ },
30749
+ "tasksCompleted": {
30750
+ "type": "number",
30751
+ "description": "The number of tasks completed in the conversations issues cluster"
30752
+ },
30753
+ "tasksCancelled": {
30754
+ "type": "number",
30755
+ "description": "The number of tasks canceled in the conversations issues cluster"
30756
+ }
30757
+ },
30758
+ "required": [
30759
+ "issues",
30760
+ "conversations",
30761
+ "tasksTotal",
30762
+ "tasksBacklog",
30763
+ "tasksStarted",
30764
+ "tasksCompleted",
30765
+ "tasksCancelled"
30766
+ ]
30767
+ },
30768
+ "urls": {
30769
+ "type": "object",
30770
+ "description": "URLs associated with the conversations issues cluster",
30771
+ "properties": {
30772
+ "location": {
30773
+ "type": "string",
30774
+ "description": "URL of the conversations issues cluster in the API",
30775
+ "format": "uri"
30776
+ },
30777
+ "app": {
30778
+ "type": "string",
30779
+ "description": "URL of the conversations issues cluster in the application",
30780
+ "format": "uri"
30781
+ }
30782
+ },
30783
+ "required": [
30784
+ "app",
30785
+ "location"
30786
+ ]
30787
+ }
30788
+ },
30789
+ "required": [
30790
+ "object",
30791
+ "id",
30792
+ "label",
30793
+ "summary",
30794
+ "icon",
30795
+ "sources",
30796
+ "stats",
30797
+ "weeklyPulse",
30798
+ "createdAt",
30799
+ "updatedAt",
30800
+ "urls"
30801
+ ]
30802
+ },
30803
+ "ConversationIssue": {
30804
+ "type": "object",
30805
+ "properties": {
30806
+ "object": {
30807
+ "type": "string",
30808
+ "enum": [
30809
+ "conversation-issue"
30810
+ ]
30811
+ },
30812
+ "id": {
30813
+ "type": "string",
30814
+ "description": "The ID of the conversation issue"
30815
+ },
30816
+ "title": {
30817
+ "type": "string",
30818
+ "description": "The title of the conversation issue"
30819
+ },
30820
+ "summary": {
30821
+ "type": "string",
30822
+ "description": "The summary of the conversation issue"
30823
+ },
30824
+ "createdAt": {
30825
+ "$ref": "#/components/schemas/Timestamp"
30826
+ },
30827
+ "ingestedAt": {
30828
+ "$ref": "#/components/schemas/Timestamp"
30829
+ },
30830
+ "conversation": {
30831
+ "type": "string",
30832
+ "description": "The ID of the conversation the issue belongs to"
30833
+ },
30834
+ "cluster": {
30835
+ "type": "string",
30836
+ "description": "The ID of the cluster the issue has been linked to"
30837
+ },
30838
+ "urls": {
30839
+ "type": "object",
30840
+ "description": "URLs associated with the conversation issue",
30841
+ "properties": {
30842
+ "location": {
30843
+ "type": "string",
30844
+ "description": "URL of the conversation issue in the API",
30845
+ "format": "uri"
30846
+ }
30847
+ },
30848
+ "required": [
30849
+ "location"
30850
+ ]
30851
+ }
30852
+ },
30853
+ "required": [
30854
+ "object",
30855
+ "id",
30856
+ "title",
30857
+ "summary",
30858
+ "createdAt",
30859
+ "ingestedAt",
30860
+ "conversation",
30861
+ "urls"
30862
+ ]
30863
+ },
30864
+ "ConversationSource": {
30865
+ "oneOf": [
30866
+ {
30867
+ "type": "string",
30868
+ "description": "Integration source",
30869
+ "pattern": "^integration:[^:]+:[^:]+$",
30870
+ "x-typescript": "`integration:${string}:${string}`"
30871
+ },
30872
+ {
30873
+ "type": "string",
30874
+ "description": "Email source",
30875
+ "enum": [
30876
+ "email"
30877
+ ]
30878
+ }
30879
+ ]
30880
+ },
30881
+ "Conversation": {
30882
+ "type": "object",
30883
+ "properties": {
30884
+ "object": {
30885
+ "type": "string",
30886
+ "enum": [
30887
+ "conversation"
30888
+ ]
30889
+ },
30890
+ "id": {
30891
+ "type": "string",
30892
+ "description": "The ID of the conversation"
30893
+ },
30894
+ "subject": {
30895
+ "type": "string",
30896
+ "description": "The subject of the conversation"
30897
+ },
30898
+ "createdAt": {
30899
+ "$ref": "#/components/schemas/Timestamp"
30900
+ },
30901
+ "processedAt": {
30902
+ "$ref": "#/components/schemas/Timestamp"
30903
+ },
30904
+ "source": {
30905
+ "$ref": "#/components/schemas/ConversationSource"
30906
+ },
30907
+ "urls": {
30908
+ "type": "object",
30909
+ "description": "URLs associated with the conversation",
30910
+ "properties": {
30911
+ "location": {
30912
+ "type": "string",
30913
+ "description": "URL of the conversation in the API",
30914
+ "format": "uri"
30915
+ },
30916
+ "source": {
30917
+ "type": "string",
30918
+ "description": "URL of the conversation in the source",
30919
+ "format": "uri"
30920
+ }
30921
+ },
30922
+ "required": [
30923
+ "location"
30924
+ ]
30925
+ }
30926
+ },
30927
+ "required": [
30928
+ "object",
30929
+ "id",
30930
+ "createdAt",
30931
+ "source",
30932
+ "urls"
30933
+ ]
30934
+ },
30935
+ "ConversationMetadata": {
30936
+ "type": "object",
30937
+ "properties": {
30938
+ "url": {
30939
+ "type": "string",
30940
+ "description": "URL to the conversation"
30941
+ },
30942
+ "attributes": {
30943
+ "type": "object",
30944
+ "additionalProperties": {
30945
+ "type": "string"
30946
+ }
30947
+ },
30948
+ "createdAt": {
30949
+ "description": "Date of the conversation creation",
30950
+ "$ref": "#/components/schemas/Timestamp"
30951
+ }
30952
+ }
30953
+ },
30954
+ "ConversationPartMessage": {
30955
+ "type": "object",
30956
+ "description": "A message posted in the conversation by a user or a team member.",
30957
+ "properties": {
30958
+ "type": {
30959
+ "type": "string",
30960
+ "enum": [
30961
+ "message"
30962
+ ]
30963
+ },
30964
+ "role": {
30965
+ "type": "string",
30966
+ "enum": [
30967
+ "user",
30968
+ "assistant",
30969
+ "team-member"
30970
+ ]
30971
+ },
30972
+ "body": {
30973
+ "type": "string",
30974
+ "description": "Markdown or HTML body of the message."
30975
+ }
30976
+ },
30977
+ "required": [
30978
+ "type",
30979
+ "role",
30980
+ "body"
30981
+ ]
30982
+ },
30983
+ "ConversationPart": {
30984
+ "oneOf": [
30985
+ {
30986
+ "$ref": "#/components/schemas/ConversationPartMessage"
30987
+ }
30988
+ ]
30989
+ },
30990
+ "ConversationInput": {
30991
+ "type": "object",
30992
+ "properties": {
30993
+ "id": {
30994
+ "type": "string",
30995
+ "minLength": 1,
30996
+ "maxLength": 255,
30997
+ "description": "The unique identifier for the conversation, relative to the source in which it was created."
30998
+ },
30999
+ "metadata": {
31000
+ "$ref": "#/components/schemas/ConversationMetadata"
31001
+ },
31002
+ "subject": {
31003
+ "type": "string",
31004
+ "maxLength": 512,
31005
+ "description": "The subject of the conversation."
31006
+ },
31007
+ "parts": {
31008
+ "type": "array",
31009
+ "items": {
31010
+ "$ref": "#/components/schemas/ConversationPart"
31011
+ }
31012
+ }
31013
+ },
31014
+ "required": [
31015
+ "id",
31016
+ "parts"
31017
+ ]
31018
+ },
31019
+ "AgentsSetupState": {
31020
+ "type": "object",
31021
+ "description": "State and settings of the agent",
31022
+ "properties": {
31023
+ "email": {
31024
+ "type": "string",
31025
+ "description": "The email address of the agent. Emails can be forwarded to it to ingest conversations."
31026
+ },
31027
+ "stats": {
31028
+ "type": "object",
31029
+ "description": "The stats of the agent.",
31030
+ "properties": {
31031
+ "backlogTasks": {
31032
+ "type": "number",
31033
+ "description": "The number of tasks in the backlog."
31034
+ },
31035
+ "startedTasks": {
31036
+ "type": "number",
31037
+ "description": "The number of tasks in progress."
31038
+ },
31039
+ "completedTasks": {
31040
+ "type": "number",
31041
+ "description": "The number of tasks that have been completed."
31042
+ },
31043
+ "canceledTasks": {
31044
+ "type": "number",
31045
+ "description": "The number of tasks that have been canceled."
31046
+ },
31047
+ "conversations": {
31048
+ "type": "number",
31049
+ "description": "The number of conversations the agent has indexed."
31050
+ },
31051
+ "issues": {
31052
+ "type": "number",
31053
+ "description": "The number of issues the agent has indexed."
31054
+ },
31055
+ "issuesClusters": {
31056
+ "type": "number",
31057
+ "description": "The number of issues clusters the agent has indexed."
31058
+ },
31059
+ "sources": {
31060
+ "type": "object",
31061
+ "additionalProperties": {
31062
+ "type": "number",
31063
+ "description": "The number of conversations ingested for the source"
31064
+ }
31065
+ }
31066
+ },
31067
+ "required": [
31068
+ "backlogTasks",
31069
+ "startedTasks",
31070
+ "completedTasks",
31071
+ "canceledTasks",
31072
+ "conversations",
31073
+ "issues",
31074
+ "issuesClusters",
31075
+ "sources"
31076
+ ]
31077
+ },
31078
+ "settings": {
31079
+ "type": "object",
31080
+ "description": "The settings for the agent.",
31081
+ "properties": {},
31082
+ "additionalProperties": false
31083
+ }
31084
+ },
31085
+ "required": [
31086
+ "email",
31087
+ "settings",
31088
+ "stats"
31089
+ ]
31090
+ },
31091
+ "AgentTaskStatus": {
31092
+ "type": "string",
31093
+ "description": "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.\n",
31094
+ "enum": [
31095
+ "backlog",
31096
+ "started",
31097
+ "completed",
31098
+ "canceled"
31099
+ ]
31100
+ },
31101
+ "AgentTask": {
31102
+ "type": "object",
31103
+ "properties": {
31104
+ "object": {
31105
+ "type": "string",
31106
+ "enum": [
31107
+ "agent-task"
31108
+ ]
31109
+ },
31110
+ "id": {
31111
+ "type": "string",
31112
+ "description": "The ID of the agent task"
31113
+ },
31114
+ "title": {
31115
+ "type": "string",
31116
+ "description": "The title of the agent task"
31117
+ },
31118
+ "description": {
31119
+ "type": "string",
31120
+ "description": "The description of the agent task"
31121
+ },
31122
+ "instructions": {
31123
+ "$ref": "#/components/schemas/JSONDocument"
31124
+ },
31125
+ "status": {
31126
+ "$ref": "#/components/schemas/AgentTaskStatus"
31127
+ },
31128
+ "createdAt": {
31129
+ "$ref": "#/components/schemas/Timestamp"
31130
+ },
31131
+ "updatedAt": {
31132
+ "$ref": "#/components/schemas/Timestamp"
31133
+ },
31134
+ "cluster": {
31135
+ "type": "string",
31136
+ "description": "ID of the cluster the agent task is associated with."
31137
+ },
31138
+ "space": {
31139
+ "type": "string",
31140
+ "description": "ID of the space the agent task will act on."
31141
+ },
31142
+ "changeRequest": {
31143
+ "type": "string",
31144
+ "description": "ID of the change request the agent task is associated with."
31145
+ },
31146
+ "urls": {
31147
+ "type": "object",
31148
+ "description": "URLs associated with the agent task",
31149
+ "properties": {
31150
+ "location": {
31151
+ "type": "string",
31152
+ "description": "URL of the agent task in the API",
31153
+ "format": "uri"
31154
+ },
31155
+ "app": {
31156
+ "type": "string",
31157
+ "description": "URL of the agent task in the application",
31158
+ "format": "uri"
31159
+ }
31160
+ },
31161
+ "required": [
31162
+ "app",
31163
+ "location"
31164
+ ]
31165
+ }
31166
+ },
31167
+ "required": [
31168
+ "object",
31169
+ "id",
31170
+ "title",
31171
+ "description",
31172
+ "instructions",
31173
+ "space",
31174
+ "status",
31175
+ "createdAt",
31176
+ "updatedAt",
31177
+ "urls"
31178
+ ]
31179
+ },
30146
31180
  "TranslationTitle": {
30147
31181
  "type": "string",
30148
31182
  "description": "Title of the translation settings",
@@ -31960,7 +32994,8 @@
31960
32994
  "type": {
31961
32995
  "type": "string",
31962
32996
  "enum": [
31963
- "response_document"
32997
+ "response_document",
32998
+ "response_reasoning"
31964
32999
  ]
31965
33000
  },
31966
33001
  "messageId": {
@@ -35713,6 +36748,13 @@
35713
36748
  "force"
35714
36749
  ]
35715
36750
  },
36751
+ "GitBookUsers": {
36752
+ "type": "string",
36753
+ "description": "Predefined GitBook user identifiers",
36754
+ "enum": [
36755
+ "gitbook:agent"
36756
+ ]
36757
+ },
35716
36758
  "ContentPublishingAuth": {
35717
36759
  "type": "object",
35718
36760
  "properties": {
@@ -37699,6 +38741,51 @@
37699
38741
  "translation"
37700
38742
  ]
37701
38743
  },
38744
+ "AgentTaskChannel": {
38745
+ "type": "object",
38746
+ "description": "Subscription channel for an agent task.",
38747
+ "properties": {
38748
+ "channel": {
38749
+ "type": "string",
38750
+ "enum": [
38751
+ "agent-task"
38752
+ ]
38753
+ },
38754
+ "organization": {
38755
+ "type": "string",
38756
+ "description": "The ID of the organization."
38757
+ },
38758
+ "agentTask": {
38759
+ "type": "string",
38760
+ "description": "The ID of the agent task."
38761
+ }
38762
+ },
38763
+ "required": [
38764
+ "channel",
38765
+ "organization",
38766
+ "agentTask"
38767
+ ]
38768
+ },
38769
+ "AgentTasksChannel": {
38770
+ "type": "object",
38771
+ "description": "Subscription channel for agent tasks.",
38772
+ "properties": {
38773
+ "channel": {
38774
+ "type": "string",
38775
+ "enum": [
38776
+ "agent-tasks"
38777
+ ]
38778
+ },
38779
+ "organization": {
38780
+ "type": "string",
38781
+ "description": "The ID of the organization."
38782
+ }
38783
+ },
38784
+ "required": [
38785
+ "channel",
38786
+ "organization"
38787
+ ]
38788
+ },
37702
38789
  "SubscriptionChannel": {
37703
38790
  "description": "Channel to subscribe to for realtime updates.",
37704
38791
  "oneOf": [
@@ -37899,6 +38986,12 @@
37899
38986
  },
37900
38987
  {
37901
38988
  "$ref": "#/components/schemas/TranslationSettingsChannel"
38989
+ },
38990
+ {
38991
+ "$ref": "#/components/schemas/AgentTaskChannel"
38992
+ },
38993
+ {
38994
+ "$ref": "#/components/schemas/AgentTasksChannel"
37902
38995
  }
37903
38996
  ],
37904
38997
  "discriminator": {
@@ -38340,6 +39433,9 @@
38340
39433
  "content": {
38341
39434
  "$ref": "#/components/schemas/JSONDocument"
38342
39435
  },
39436
+ "reasoning": {
39437
+ "$ref": "#/components/schemas/JSONDocument"
39438
+ },
38343
39439
  "toolCalls": {
38344
39440
  "type": "array",
38345
39441
  "items": {
@@ -38526,101 +39622,6 @@
38526
39622
  }
38527
39623
  ]
38528
39624
  },
38529
- "ConversationMetadata": {
38530
- "type": "object",
38531
- "properties": {
38532
- "url": {
38533
- "type": "string",
38534
- "description": "URL to the conversation"
38535
- },
38536
- "attributes": {
38537
- "type": "object",
38538
- "additionalProperties": {
38539
- "type": "string"
38540
- }
38541
- },
38542
- "createdAt": {
38543
- "description": "Date of the conversation creation",
38544
- "$ref": "#/components/schemas/Timestamp"
38545
- }
38546
- }
38547
- },
38548
- "ConversationPartMessage": {
38549
- "type": "object",
38550
- "description": "A message posted in the conversation by a user or a team member.",
38551
- "properties": {
38552
- "type": {
38553
- "type": "string",
38554
- "enum": [
38555
- "message"
38556
- ]
38557
- },
38558
- "role": {
38559
- "type": "string",
38560
- "enum": [
38561
- "user",
38562
- "assistant",
38563
- "team-member"
38564
- ]
38565
- },
38566
- "body": {
38567
- "type": "string",
38568
- "description": "Markdown or HTML body of the message."
38569
- }
38570
- },
38571
- "required": [
38572
- "type",
38573
- "role",
38574
- "body"
38575
- ]
38576
- },
38577
- "ConversationPart": {
38578
- "oneOf": [
38579
- {
38580
- "$ref": "#/components/schemas/ConversationPartMessage"
38581
- }
38582
- ]
38583
- },
38584
- "ConversationInput": {
38585
- "type": "object",
38586
- "properties": {
38587
- "id": {
38588
- "type": "string",
38589
- "minLength": 1,
38590
- "maxLength": 255,
38591
- "description": "The unique identifier for the conversation, relative to the source in which it was created."
38592
- },
38593
- "metadata": {
38594
- "$ref": "#/components/schemas/ConversationMetadata"
38595
- },
38596
- "subject": {
38597
- "type": "string",
38598
- "maxLength": 512,
38599
- "description": "The subject of the conversation."
38600
- },
38601
- "parts": {
38602
- "type": "array",
38603
- "items": {
38604
- "$ref": "#/components/schemas/ConversationPart"
38605
- }
38606
- }
38607
- },
38608
- "required": [
38609
- "id",
38610
- "parts"
38611
- ]
38612
- },
38613
- "AgentTaskStatus": {
38614
- "type": "string",
38615
- "description": "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.\n",
38616
- "enum": [
38617
- "backlog",
38618
- "in-progress",
38619
- "in-review",
38620
- "done",
38621
- "rejected"
38622
- ]
38623
- },
38624
39625
  "RequestSpaceTrackPageView": {
38625
39626
  "$ref": "#/components/schemas/SpaceTrackPageView"
38626
39627
  },
@@ -38657,9 +39658,6 @@
38657
39658
  "RequestCreateSpace": {
38658
39659
  "$ref": "#/components/schemas/CreateSpace"
38659
39660
  },
38660
- "RequestCreateChangeRequest": {
38661
- "$ref": "#/components/schemas/CreateChangeRequest"
38662
- },
38663
39661
  "RequestRenderIntegrationUI": {
38664
39662
  "$ref": "#/components/schemas/RenderIntegrationUI"
38665
39663
  },