@gitbook/api 0.115.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.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",
@@ -500,6 +507,63 @@
500
507
  "$ref": "#/components/responses/NotFoundError"
501
508
  }
502
509
  }
510
+ },
511
+ "patch": {
512
+ "operationId": "updateUserById",
513
+ "summary": "Update a user by its ID",
514
+ "tags": [
515
+ "users",
516
+ "critical"
517
+ ],
518
+ "security": [
519
+ {
520
+ "user": []
521
+ }
522
+ ],
523
+ "description": "Update a GitBook account's details.\n",
524
+ "parameters": [
525
+ {
526
+ "$ref": "#/components/parameters/userId"
527
+ }
528
+ ],
529
+ "requestBody": {
530
+ "required": true,
531
+ "content": {
532
+ "application/json": {
533
+ "schema": {
534
+ "type": "object",
535
+ "minProperties": 1,
536
+ "properties": {
537
+ "displayName": {
538
+ "type": "string",
539
+ "description": "Full name for the user",
540
+ "minLength": 1,
541
+ "maxLength": 64
542
+ },
543
+ "photoURL": {
544
+ "$ref": "#/components/schemas/URL"
545
+ }
546
+ }
547
+ }
548
+ }
549
+ }
550
+ },
551
+ "responses": {
552
+ "200": {
553
+ "description": "The user has been updated",
554
+ "content": {
555
+ "application/json": {
556
+ "schema": {
557
+ "$ref": "#/components/schemas/User"
558
+ }
559
+ }
560
+ }
561
+ },
562
+ "404": {
563
+ "description": "User not found",
564
+ "$ref": "#/components/responses/NotFoundError"
565
+ }
566
+ }
503
567
  }
504
568
  },
505
569
  "/spaces/{spaceId}": {
@@ -2214,7 +2278,17 @@
2214
2278
  "content": {
2215
2279
  "application/json": {
2216
2280
  "schema": {
2217
- "$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
+ }
2218
2292
  }
2219
2293
  }
2220
2294
  }
@@ -2865,6 +2939,9 @@
2865
2939
  },
2866
2940
  {
2867
2941
  "$ref": "#/components/parameters/targetPage"
2942
+ },
2943
+ {
2944
+ "$ref": "#/components/parameters/authors"
2868
2945
  }
2869
2946
  ],
2870
2947
  "responses": {
@@ -4462,210 +4539,213 @@
4462
4539
  },
4463
4540
  {
4464
4541
  "$ref": "#/components/parameters/targetPage"
4465
- }
4466
- ],
4467
- "responses": {
4468
- "200": {
4469
- "description": "OK",
4470
- "content": {
4471
- "application/json": {
4472
- "schema": {
4473
- "allOf": [
4474
- {
4475
- "$ref": "#/components/schemas/List"
4476
- },
4477
- {
4478
- "type": "object",
4479
- "required": [
4480
- "items"
4481
- ],
4482
- "properties": {
4483
- "items": {
4484
- "type": "array",
4485
- "items": {
4486
- "$ref": "#/components/schemas/Comment"
4487
- }
4488
- }
4489
- }
4490
- }
4491
- ]
4492
- }
4493
- }
4494
- }
4495
- }
4496
- }
4497
- },
4498
- "post": {
4499
- "operationId": "postCommentInSpace",
4500
- "summary": "Create a space comment",
4501
- "tags": [
4502
- "space-comments"
4503
- ],
4504
- "security": [
4505
- {
4506
- "user": []
4507
- }
4508
- ],
4509
- "parameters": [
4510
- {
4511
- "$ref": "#/components/parameters/spaceId"
4512
- }
4513
- ],
4514
- "requestBody": {
4515
- "required": true,
4516
- "content": {
4517
- "application/json": {
4518
- "schema": {
4519
- "$ref": "#/components/schemas/PostCommentSchema"
4520
- }
4521
- }
4522
- }
4523
- },
4524
- "responses": {
4525
- "200": {
4526
- "description": "The comment was posted.",
4527
- "content": {
4528
- "application/json": {
4529
- "schema": {
4530
- "$ref": "#/components/schemas/Comment"
4531
- }
4532
- }
4533
- }
4534
- }
4535
- }
4536
- }
4537
- },
4538
- "/spaces/{spaceId}/comments/{commentId}": {
4539
- "get": {
4540
- "operationId": "getCommentInSpace",
4541
- "summary": "Get a space comment",
4542
- "tags": [
4543
- "space-comments"
4544
- ],
4545
- "security": [
4546
- {
4547
- "user": []
4548
- }
4549
- ],
4550
- "parameters": [
4551
- {
4552
- "$ref": "#/components/parameters/spaceId"
4553
- },
4554
- {
4555
- "$ref": "#/components/parameters/commentId"
4556
- },
4557
- {
4558
- "$ref": "#/components/parameters/documentFormat"
4559
- }
4560
- ],
4561
- "responses": {
4562
- "200": {
4563
- "description": "The returned comment.",
4564
- "content": {
4565
- "application/json": {
4566
- "schema": {
4567
- "$ref": "#/components/schemas/Comment"
4568
- }
4569
- }
4570
- }
4571
- }
4572
- }
4573
- },
4574
- "delete": {
4575
- "operationId": "deleteCommentInSpace",
4576
- "summary": "Delete a space comment",
4577
- "tags": [
4578
- "space-comments"
4579
- ],
4580
- "security": [
4581
- {
4582
- "user": []
4583
- }
4584
- ],
4585
- "parameters": [
4586
- {
4587
- "$ref": "#/components/parameters/spaceId"
4588
- },
4589
- {
4590
- "$ref": "#/components/parameters/commentId"
4591
- }
4592
- ],
4593
- "responses": {
4594
- "205": {
4595
- "description": "The comment has been deleted."
4596
- }
4597
- }
4598
- },
4599
- "put": {
4600
- "operationId": "updateCommentInSpace",
4601
- "summary": "Update a space comment",
4602
- "tags": [
4603
- "space-comments"
4604
- ],
4605
- "security": [
4606
- {
4607
- "user": []
4608
- }
4609
- ],
4610
- "parameters": [
4611
- {
4612
- "$ref": "#/components/parameters/spaceId"
4613
- },
4614
- {
4615
- "$ref": "#/components/parameters/commentId"
4616
- }
4617
- ],
4618
- "requestBody": {
4619
- "required": true,
4620
- "content": {
4621
- "application/json": {
4622
- "schema": {
4623
- "$ref": "#/components/schemas/UpdateCommentSchema"
4624
- }
4625
- }
4626
- }
4627
- },
4628
- "responses": {
4629
- "200": {
4630
- "description": "The comment was updated.",
4631
- "content": {
4632
- "application/json": {
4633
- "schema": {
4634
- "$ref": "#/components/schemas/Comment"
4635
- }
4636
- }
4637
- }
4638
- }
4639
- }
4640
- }
4641
- },
4642
- "/spaces/{spaceId}/comments/{commentId}/replies": {
4643
- "get": {
4644
- "operationId": "listCommentRepliesInSpace",
4645
- "summary": "List all space comment replies",
4646
- "tags": [
4647
- "space-comment"
4648
- ],
4649
- "security": [
4650
- {
4651
- "user": []
4652
- }
4653
- ],
4654
- "parameters": [
4655
- {
4656
- "$ref": "#/components/parameters/spaceId"
4657
- },
4658
- {
4659
- "$ref": "#/components/parameters/commentId"
4660
- },
4661
- {
4662
- "$ref": "#/components/parameters/listPage"
4663
4542
  },
4664
4543
  {
4665
- "$ref": "#/components/parameters/listLimit"
4666
- },
4667
- {
4668
- "$ref": "#/components/parameters/documentFormat"
4544
+ "$ref": "#/components/parameters/authors"
4545
+ }
4546
+ ],
4547
+ "responses": {
4548
+ "200": {
4549
+ "description": "OK",
4550
+ "content": {
4551
+ "application/json": {
4552
+ "schema": {
4553
+ "allOf": [
4554
+ {
4555
+ "$ref": "#/components/schemas/List"
4556
+ },
4557
+ {
4558
+ "type": "object",
4559
+ "required": [
4560
+ "items"
4561
+ ],
4562
+ "properties": {
4563
+ "items": {
4564
+ "type": "array",
4565
+ "items": {
4566
+ "$ref": "#/components/schemas/Comment"
4567
+ }
4568
+ }
4569
+ }
4570
+ }
4571
+ ]
4572
+ }
4573
+ }
4574
+ }
4575
+ }
4576
+ }
4577
+ },
4578
+ "post": {
4579
+ "operationId": "postCommentInSpace",
4580
+ "summary": "Create a space comment",
4581
+ "tags": [
4582
+ "space-comments"
4583
+ ],
4584
+ "security": [
4585
+ {
4586
+ "user": []
4587
+ }
4588
+ ],
4589
+ "parameters": [
4590
+ {
4591
+ "$ref": "#/components/parameters/spaceId"
4592
+ }
4593
+ ],
4594
+ "requestBody": {
4595
+ "required": true,
4596
+ "content": {
4597
+ "application/json": {
4598
+ "schema": {
4599
+ "$ref": "#/components/schemas/PostCommentSchema"
4600
+ }
4601
+ }
4602
+ }
4603
+ },
4604
+ "responses": {
4605
+ "200": {
4606
+ "description": "The comment was posted.",
4607
+ "content": {
4608
+ "application/json": {
4609
+ "schema": {
4610
+ "$ref": "#/components/schemas/Comment"
4611
+ }
4612
+ }
4613
+ }
4614
+ }
4615
+ }
4616
+ }
4617
+ },
4618
+ "/spaces/{spaceId}/comments/{commentId}": {
4619
+ "get": {
4620
+ "operationId": "getCommentInSpace",
4621
+ "summary": "Get a space comment",
4622
+ "tags": [
4623
+ "space-comments"
4624
+ ],
4625
+ "security": [
4626
+ {
4627
+ "user": []
4628
+ }
4629
+ ],
4630
+ "parameters": [
4631
+ {
4632
+ "$ref": "#/components/parameters/spaceId"
4633
+ },
4634
+ {
4635
+ "$ref": "#/components/parameters/commentId"
4636
+ },
4637
+ {
4638
+ "$ref": "#/components/parameters/documentFormat"
4639
+ }
4640
+ ],
4641
+ "responses": {
4642
+ "200": {
4643
+ "description": "The returned comment.",
4644
+ "content": {
4645
+ "application/json": {
4646
+ "schema": {
4647
+ "$ref": "#/components/schemas/Comment"
4648
+ }
4649
+ }
4650
+ }
4651
+ }
4652
+ }
4653
+ },
4654
+ "delete": {
4655
+ "operationId": "deleteCommentInSpace",
4656
+ "summary": "Delete a space comment",
4657
+ "tags": [
4658
+ "space-comments"
4659
+ ],
4660
+ "security": [
4661
+ {
4662
+ "user": []
4663
+ }
4664
+ ],
4665
+ "parameters": [
4666
+ {
4667
+ "$ref": "#/components/parameters/spaceId"
4668
+ },
4669
+ {
4670
+ "$ref": "#/components/parameters/commentId"
4671
+ }
4672
+ ],
4673
+ "responses": {
4674
+ "205": {
4675
+ "description": "The comment has been deleted."
4676
+ }
4677
+ }
4678
+ },
4679
+ "put": {
4680
+ "operationId": "updateCommentInSpace",
4681
+ "summary": "Update a space comment",
4682
+ "tags": [
4683
+ "space-comments"
4684
+ ],
4685
+ "security": [
4686
+ {
4687
+ "user": []
4688
+ }
4689
+ ],
4690
+ "parameters": [
4691
+ {
4692
+ "$ref": "#/components/parameters/spaceId"
4693
+ },
4694
+ {
4695
+ "$ref": "#/components/parameters/commentId"
4696
+ }
4697
+ ],
4698
+ "requestBody": {
4699
+ "required": true,
4700
+ "content": {
4701
+ "application/json": {
4702
+ "schema": {
4703
+ "$ref": "#/components/schemas/UpdateCommentSchema"
4704
+ }
4705
+ }
4706
+ }
4707
+ },
4708
+ "responses": {
4709
+ "200": {
4710
+ "description": "The comment was updated.",
4711
+ "content": {
4712
+ "application/json": {
4713
+ "schema": {
4714
+ "$ref": "#/components/schemas/Comment"
4715
+ }
4716
+ }
4717
+ }
4718
+ }
4719
+ }
4720
+ }
4721
+ },
4722
+ "/spaces/{spaceId}/comments/{commentId}/replies": {
4723
+ "get": {
4724
+ "operationId": "listCommentRepliesInSpace",
4725
+ "summary": "List all space comment replies",
4726
+ "tags": [
4727
+ "space-comment"
4728
+ ],
4729
+ "security": [
4730
+ {
4731
+ "user": []
4732
+ }
4733
+ ],
4734
+ "parameters": [
4735
+ {
4736
+ "$ref": "#/components/parameters/spaceId"
4737
+ },
4738
+ {
4739
+ "$ref": "#/components/parameters/commentId"
4740
+ },
4741
+ {
4742
+ "$ref": "#/components/parameters/listPage"
4743
+ },
4744
+ {
4745
+ "$ref": "#/components/parameters/listLimit"
4746
+ },
4747
+ {
4748
+ "$ref": "#/components/parameters/documentFormat"
4669
4749
  }
4670
4750
  ],
4671
4751
  "responses": {
@@ -4855,6 +4935,123 @@
4855
4935
  }
4856
4936
  }
4857
4937
  },
4938
+ "/spaces/{spaceId}/commenters": {
4939
+ "get": {
4940
+ "operationId": "listCommentersInSpace",
4941
+ "summary": "List all users who commented in a space",
4942
+ "tags": [
4943
+ "space-comments",
4944
+ "critical"
4945
+ ],
4946
+ "security": [
4947
+ {
4948
+ "user": []
4949
+ }
4950
+ ],
4951
+ "parameters": [
4952
+ {
4953
+ "$ref": "#/components/parameters/spaceId"
4954
+ },
4955
+ {
4956
+ "$ref": "#/components/parameters/listPage"
4957
+ },
4958
+ {
4959
+ "$ref": "#/components/parameters/listLimit"
4960
+ }
4961
+ ],
4962
+ "responses": {
4963
+ "200": {
4964
+ "description": "OK",
4965
+ "content": {
4966
+ "application/json": {
4967
+ "schema": {
4968
+ "allOf": [
4969
+ {
4970
+ "$ref": "#/components/schemas/List"
4971
+ },
4972
+ {
4973
+ "type": "object",
4974
+ "required": [
4975
+ "items",
4976
+ "total"
4977
+ ],
4978
+ "properties": {
4979
+ "items": {
4980
+ "type": "array",
4981
+ "items": {
4982
+ "$ref": "#/components/schemas/OrganizationMember"
4983
+ }
4984
+ }
4985
+ }
4986
+ }
4987
+ ]
4988
+ }
4989
+ }
4990
+ }
4991
+ }
4992
+ }
4993
+ }
4994
+ },
4995
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/commenters": {
4996
+ "get": {
4997
+ "operationId": "listCommentersInChangeRequest",
4998
+ "summary": "List all users who commented in a CR",
4999
+ "tags": [
5000
+ "change-request-comments",
5001
+ "critical"
5002
+ ],
5003
+ "security": [
5004
+ {
5005
+ "user": []
5006
+ }
5007
+ ],
5008
+ "parameters": [
5009
+ {
5010
+ "$ref": "#/components/parameters/spaceId"
5011
+ },
5012
+ {
5013
+ "$ref": "#/components/parameters/changeRequestId"
5014
+ },
5015
+ {
5016
+ "$ref": "#/components/parameters/listPage"
5017
+ },
5018
+ {
5019
+ "$ref": "#/components/parameters/listLimit"
5020
+ }
5021
+ ],
5022
+ "responses": {
5023
+ "200": {
5024
+ "description": "OK",
5025
+ "content": {
5026
+ "application/json": {
5027
+ "schema": {
5028
+ "allOf": [
5029
+ {
5030
+ "$ref": "#/components/schemas/List"
5031
+ },
5032
+ {
5033
+ "type": "object",
5034
+ "required": [
5035
+ "items",
5036
+ "total"
5037
+ ],
5038
+ "properties": {
5039
+ "items": {
5040
+ "type": "array",
5041
+ "items": {
5042
+ "$ref": "#/components/schemas/OrganizationMember"
5043
+ }
5044
+ }
5045
+ }
5046
+ }
5047
+ ]
5048
+ }
5049
+ }
5050
+ }
5051
+ }
5052
+ }
5053
+ }
5054
+ },
4858
5055
  "/spaces/{spaceId}/permissions/aggregate": {
4859
5056
  "get": {
4860
5057
  "operationId": "listPermissionsAggregateInSpace",
@@ -5921,6 +6118,9 @@
5921
6118
  },
5922
6119
  {
5923
6120
  "$ref": "#/components/parameters/integrationSearchOwner"
6121
+ },
6122
+ {
6123
+ "$ref": "#/components/parameters/integrationSearchScope"
5924
6124
  }
5925
6125
  ],
5926
6126
  "responses": {
@@ -10264,6 +10464,456 @@
10264
10464
  }
10265
10465
  }
10266
10466
  },
10467
+ "/orgs/{organizationId}/conversations-clusters": {
10468
+ "get": {
10469
+ "operationId": "listConversationsIssuesClusters",
10470
+ "summary": "List conversations issues clusters",
10471
+ "tags": [
10472
+ "agents"
10473
+ ],
10474
+ "parameters": [
10475
+ {
10476
+ "$ref": "#/components/parameters/organizationId"
10477
+ },
10478
+ {
10479
+ "$ref": "#/components/parameters/listPage"
10480
+ },
10481
+ {
10482
+ "$ref": "#/components/parameters/listLimit"
10483
+ },
10484
+ {
10485
+ "$ref": "#/components/parameters/listOrder"
10486
+ },
10487
+ {
10488
+ "name": "orderBy",
10489
+ "in": "query",
10490
+ "schema": {
10491
+ "type": "string",
10492
+ "default": "updatedAt",
10493
+ "enum": [
10494
+ "updatedAt",
10495
+ "issues",
10496
+ "conversations",
10497
+ "tasksTotal",
10498
+ "tasksBacklog",
10499
+ "tasksStarted"
10500
+ ]
10501
+ }
10502
+ },
10503
+ {
10504
+ "name": "status",
10505
+ "in": "query",
10506
+ "description": "Filter by status",
10507
+ "schema": {
10508
+ "type": "string",
10509
+ "enum": [
10510
+ "pending",
10511
+ "analysing"
10512
+ ]
10513
+ }
10514
+ }
10515
+ ],
10516
+ "security": [
10517
+ {
10518
+ "user": []
10519
+ }
10520
+ ],
10521
+ "responses": {
10522
+ "200": {
10523
+ "description": "OK",
10524
+ "content": {
10525
+ "application/json": {
10526
+ "schema": {
10527
+ "allOf": [
10528
+ {
10529
+ "$ref": "#/components/schemas/List"
10530
+ },
10531
+ {
10532
+ "type": "object",
10533
+ "required": [
10534
+ "items"
10535
+ ],
10536
+ "properties": {
10537
+ "items": {
10538
+ "type": "array",
10539
+ "items": {
10540
+ "$ref": "#/components/schemas/ConversationsIssuesCluster"
10541
+ }
10542
+ }
10543
+ }
10544
+ }
10545
+ ]
10546
+ }
10547
+ }
10548
+ }
10549
+ },
10550
+ "404": {
10551
+ "$ref": "#/components/responses/NotFoundError"
10552
+ }
10553
+ }
10554
+ }
10555
+ },
10556
+ "/orgs/{organizationId}/conversations-clusters/{clusterId}": {
10557
+ "get": {
10558
+ "operationId": "getConversationsIssuesCluster",
10559
+ "summary": "Get a conversations issues cluster by its identifier",
10560
+ "tags": [
10561
+ "agents"
10562
+ ],
10563
+ "parameters": [
10564
+ {
10565
+ "$ref": "#/components/parameters/organizationId"
10566
+ },
10567
+ {
10568
+ "$ref": "#/components/parameters/clusterId"
10569
+ }
10570
+ ],
10571
+ "security": [
10572
+ {
10573
+ "user": []
10574
+ }
10575
+ ],
10576
+ "responses": {
10577
+ "200": {
10578
+ "description": "OK",
10579
+ "content": {
10580
+ "application/json": {
10581
+ "schema": {
10582
+ "$ref": "#/components/schemas/ConversationsIssuesCluster"
10583
+ }
10584
+ }
10585
+ }
10586
+ }
10587
+ }
10588
+ }
10589
+ },
10590
+ "/orgs/{organizationId}/conversations-clusters/{clusterId}/issues": {
10591
+ "get": {
10592
+ "operationId": "listConversationsIssuesInCluster",
10593
+ "summary": "List conversations issues in a cluster",
10594
+ "tags": [
10595
+ "agents"
10596
+ ],
10597
+ "parameters": [
10598
+ {
10599
+ "$ref": "#/components/parameters/organizationId"
10600
+ },
10601
+ {
10602
+ "$ref": "#/components/parameters/clusterId"
10603
+ },
10604
+ {
10605
+ "$ref": "#/components/parameters/listPage"
10606
+ },
10607
+ {
10608
+ "$ref": "#/components/parameters/listLimit"
10609
+ }
10610
+ ],
10611
+ "security": [
10612
+ {
10613
+ "user": []
10614
+ }
10615
+ ],
10616
+ "responses": {
10617
+ "200": {
10618
+ "description": "OK",
10619
+ "content": {
10620
+ "application/json": {
10621
+ "schema": {
10622
+ "allOf": [
10623
+ {
10624
+ "$ref": "#/components/schemas/List"
10625
+ },
10626
+ {
10627
+ "type": "object",
10628
+ "required": [
10629
+ "items"
10630
+ ],
10631
+ "properties": {
10632
+ "items": {
10633
+ "type": "array",
10634
+ "items": {
10635
+ "type": "object",
10636
+ "properties": {
10637
+ "issue": {
10638
+ "$ref": "#/components/schemas/ConversationIssue"
10639
+ },
10640
+ "conversation": {
10641
+ "$ref": "#/components/schemas/Conversation"
10642
+ }
10643
+ },
10644
+ "required": [
10645
+ "issue",
10646
+ "conversation"
10647
+ ]
10648
+ }
10649
+ }
10650
+ }
10651
+ }
10652
+ ]
10653
+ }
10654
+ }
10655
+ }
10656
+ },
10657
+ "404": {
10658
+ "$ref": "#/components/responses/NotFoundError"
10659
+ }
10660
+ }
10661
+ }
10662
+ },
10663
+ "/orgs/{organizationId}/conversations": {
10664
+ "post": {
10665
+ "operationId": "ingestConversation",
10666
+ "summary": "Ingest conversations",
10667
+ "tags": [
10668
+ "conversations"
10669
+ ],
10670
+ "security": [
10671
+ {
10672
+ "integration": []
10673
+ }
10674
+ ],
10675
+ "parameters": [
10676
+ {
10677
+ "$ref": "#/components/parameters/organizationId"
10678
+ }
10679
+ ],
10680
+ "requestBody": {
10681
+ "required": true,
10682
+ "content": {
10683
+ "application/json": {
10684
+ "schema": {
10685
+ "oneOf": [
10686
+ {
10687
+ "$ref": "#/components/schemas/ConversationInput"
10688
+ },
10689
+ {
10690
+ "type": "array",
10691
+ "items": {
10692
+ "$ref": "#/components/schemas/ConversationInput"
10693
+ }
10694
+ }
10695
+ ]
10696
+ }
10697
+ }
10698
+ }
10699
+ },
10700
+ "responses": {
10701
+ "204": {
10702
+ "description": "Conversations ingested"
10703
+ }
10704
+ }
10705
+ }
10706
+ },
10707
+ "/orgs/{organizationId}/agents-setup": {
10708
+ "get": {
10709
+ "operationId": "getAgentSetupState",
10710
+ "summary": "Get the agents setup state",
10711
+ "description": "Get the state of the agent.\n",
10712
+ "tags": [
10713
+ "agents",
10714
+ "critical"
10715
+ ],
10716
+ "security": [
10717
+ {
10718
+ "user-internal": []
10719
+ }
10720
+ ],
10721
+ "parameters": [
10722
+ {
10723
+ "$ref": "#/components/parameters/organizationId"
10724
+ }
10725
+ ],
10726
+ "responses": {
10727
+ "200": {
10728
+ "description": "OK",
10729
+ "content": {
10730
+ "application/json": {
10731
+ "schema": {
10732
+ "$ref": "#/components/schemas/AgentsSetupState"
10733
+ }
10734
+ }
10735
+ }
10736
+ }
10737
+ }
10738
+ }
10739
+ },
10740
+ "/orgs/{organizationId}/agent-tasks": {
10741
+ "get": {
10742
+ "operationId": "listAgentTasks",
10743
+ "summary": "List agent tasks",
10744
+ "tags": [
10745
+ "agents"
10746
+ ],
10747
+ "parameters": [
10748
+ {
10749
+ "$ref": "#/components/parameters/organizationId"
10750
+ },
10751
+ {
10752
+ "$ref": "#/components/parameters/listPage"
10753
+ },
10754
+ {
10755
+ "$ref": "#/components/parameters/listLimit"
10756
+ },
10757
+ {
10758
+ "name": "cluster",
10759
+ "in": "query",
10760
+ "description": "The ID of the conversations issues cluster to filter the agent tasks by",
10761
+ "schema": {
10762
+ "type": "string"
10763
+ }
10764
+ },
10765
+ {
10766
+ "name": "space",
10767
+ "in": "query",
10768
+ "description": "The ID of the space to filter the agent tasks by",
10769
+ "schema": {
10770
+ "type": "string"
10771
+ }
10772
+ },
10773
+ {
10774
+ "name": "status",
10775
+ "in": "query",
10776
+ "description": "The statuses of the agent tasks to filter by",
10777
+ "schema": {
10778
+ "type": "array",
10779
+ "items": {
10780
+ "$ref": "#/components/schemas/AgentTaskStatus"
10781
+ }
10782
+ }
10783
+ }
10784
+ ],
10785
+ "security": [
10786
+ {
10787
+ "user": []
10788
+ }
10789
+ ],
10790
+ "responses": {
10791
+ "200": {
10792
+ "description": "OK",
10793
+ "content": {
10794
+ "application/json": {
10795
+ "schema": {
10796
+ "allOf": [
10797
+ {
10798
+ "$ref": "#/components/schemas/List"
10799
+ },
10800
+ {
10801
+ "type": "object",
10802
+ "required": [
10803
+ "items"
10804
+ ],
10805
+ "properties": {
10806
+ "items": {
10807
+ "type": "array",
10808
+ "items": {
10809
+ "$ref": "#/components/schemas/AgentTask"
10810
+ }
10811
+ }
10812
+ }
10813
+ }
10814
+ ]
10815
+ }
10816
+ }
10817
+ }
10818
+ },
10819
+ "404": {
10820
+ "$ref": "#/components/responses/NotFoundError"
10821
+ }
10822
+ }
10823
+ }
10824
+ },
10825
+ "/orgs/{organizationId}/agent-tasks/{agentTaskId}": {
10826
+ "get": {
10827
+ "operationId": "getAgentTask",
10828
+ "summary": "Get an agent task by its identifier",
10829
+ "tags": [
10830
+ "agents"
10831
+ ],
10832
+ "parameters": [
10833
+ {
10834
+ "$ref": "#/components/parameters/organizationId"
10835
+ },
10836
+ {
10837
+ "$ref": "#/components/parameters/agentTaskId"
10838
+ }
10839
+ ],
10840
+ "security": [
10841
+ {
10842
+ "user": []
10843
+ }
10844
+ ],
10845
+ "responses": {
10846
+ "200": {
10847
+ "description": "OK",
10848
+ "content": {
10849
+ "application/json": {
10850
+ "schema": {
10851
+ "$ref": "#/components/schemas/AgentTask"
10852
+ }
10853
+ }
10854
+ }
10855
+ },
10856
+ "404": {
10857
+ "$ref": "#/components/responses/NotFoundError"
10858
+ }
10859
+ }
10860
+ },
10861
+ "patch": {
10862
+ "operationId": "updateAgentTask",
10863
+ "summary": "Update an agent task by its identifier",
10864
+ "tags": [
10865
+ "agents"
10866
+ ],
10867
+ "parameters": [
10868
+ {
10869
+ "$ref": "#/components/parameters/organizationId"
10870
+ },
10871
+ {
10872
+ "$ref": "#/components/parameters/agentTaskId"
10873
+ }
10874
+ ],
10875
+ "security": [
10876
+ {
10877
+ "user": []
10878
+ }
10879
+ ],
10880
+ "requestBody": {
10881
+ "required": true,
10882
+ "content": {
10883
+ "application/json": {
10884
+ "schema": {
10885
+ "type": "object",
10886
+ "properties": {
10887
+ "status": {
10888
+ "type": "string",
10889
+ "enum": [
10890
+ "backlog",
10891
+ "started",
10892
+ "canceled"
10893
+ ]
10894
+ }
10895
+ },
10896
+ "required": [
10897
+ "status"
10898
+ ]
10899
+ }
10900
+ }
10901
+ }
10902
+ },
10903
+ "responses": {
10904
+ "200": {
10905
+ "description": "OK",
10906
+ "content": {
10907
+ "application/json": {
10908
+ "schema": {
10909
+ "$ref": "#/components/schemas/AgentTask"
10910
+ }
10911
+ }
10912
+ }
10913
+ }
10914
+ }
10915
+ }
10916
+ },
10267
10917
  "/orgs/{organizationId}/translations": {
10268
10918
  "get": {
10269
10919
  "operationId": "listTranslationSettings",
@@ -14203,6 +14853,10 @@
14203
14853
  "type": "string",
14204
14854
  "description": "The ID of the previous response to continue from"
14205
14855
  },
14856
+ "instructions": {
14857
+ "type": "string",
14858
+ "description": "Instructions for the AI"
14859
+ },
14206
14860
  "input": {
14207
14861
  "type": "array",
14208
14862
  "items": {
@@ -15491,6 +16145,18 @@
15491
16145
  "type": "string"
15492
16146
  }
15493
16147
  },
16148
+ "authors": {
16149
+ "name": "authors",
16150
+ "in": "query",
16151
+ "description": "User IDs to filter queried comments on",
16152
+ "required": false,
16153
+ "schema": {
16154
+ "type": "array",
16155
+ "items": {
16156
+ "type": "string"
16157
+ }
16158
+ }
16159
+ },
15494
16160
  "commentId": {
15495
16161
  "name": "commentId",
15496
16162
  "in": "path",
@@ -15577,6 +16243,14 @@
15577
16243
  "type": "string"
15578
16244
  }
15579
16245
  },
16246
+ "integrationSearchScope": {
16247
+ "name": "scope",
16248
+ "in": "query",
16249
+ "description": "Filter the integrations by scope",
16250
+ "schema": {
16251
+ "$ref": "#/components/schemas/IntegrationScope"
16252
+ }
16253
+ },
15580
16254
  "integrationName": {
15581
16255
  "name": "integrationName",
15582
16256
  "in": "path",
@@ -15676,6 +16350,24 @@
15676
16350
  "type": "string"
15677
16351
  }
15678
16352
  },
16353
+ "clusterId": {
16354
+ "name": "clusterId",
16355
+ "in": "path",
16356
+ "required": true,
16357
+ "description": "The unique id of the cluster",
16358
+ "schema": {
16359
+ "type": "string"
16360
+ }
16361
+ },
16362
+ "agentTaskId": {
16363
+ "name": "agentTaskId",
16364
+ "in": "path",
16365
+ "required": true,
16366
+ "description": "The unique id of the agent task",
16367
+ "schema": {
16368
+ "type": "string"
16369
+ }
16370
+ },
15679
16371
  "translationSettingsId": {
15680
16372
  "name": "translationSettingsId",
15681
16373
  "in": "path",
@@ -15958,6 +16650,11 @@
15958
16650
  }
15959
16651
  ]
15960
16652
  },
16653
+ "URL": {
16654
+ "type": "string",
16655
+ "format": "uri",
16656
+ "maxLength": 2048
16657
+ },
15961
16658
  "SpaceTitle": {
15962
16659
  "type": "string",
15963
16660
  "description": "Title of the space",
@@ -15990,11 +16687,6 @@
15990
16687
  "locked"
15991
16688
  ]
15992
16689
  },
15993
- "URL": {
15994
- "type": "string",
15995
- "format": "uri",
15996
- "maxLength": 2048
15997
- },
15998
16690
  "GitSyncProvider": {
15999
16691
  "type": "string",
16000
16692
  "description": "The provider of the Git Sync installation.",
@@ -19917,28 +20609,173 @@
19917
20609
  "isVoid"
19918
20610
  ]
19919
20611
  },
19920
- "OpenAPISchemasPointer": {
19921
- "type": "object",
19922
- "description": "Pointer to schemas in the OpenAPI spec.",
19923
- "properties": {
19924
- "grouped": {
19925
- "type": "boolean",
19926
- "description": "Whether the schemas are grouped or not.",
19927
- "default": true
19928
- },
19929
- "schemas": {
19930
- "type": "array",
19931
- "description": "List of schemas name from the OpenAPI spec.",
19932
- "items": {
19933
- "type": "string"
19934
- }
19935
- }
19936
- },
19937
- "required": [
19938
- "schemas"
19939
- ]
19940
- },
19941
- "DocumentBlockOpenAPISchemas": {
20612
+ "OpenAPISchemasPointer": {
20613
+ "type": "object",
20614
+ "description": "Pointer to schemas in the OpenAPI spec.",
20615
+ "properties": {
20616
+ "grouped": {
20617
+ "type": "boolean",
20618
+ "description": "Whether the schemas are grouped or not.",
20619
+ "default": true
20620
+ },
20621
+ "schemas": {
20622
+ "type": "array",
20623
+ "description": "List of schemas name from the OpenAPI spec.",
20624
+ "items": {
20625
+ "type": "string"
20626
+ }
20627
+ }
20628
+ },
20629
+ "required": [
20630
+ "schemas"
20631
+ ]
20632
+ },
20633
+ "DocumentBlockOpenAPISchemas": {
20634
+ "type": "object",
20635
+ "properties": {
20636
+ "object": {
20637
+ "type": "string",
20638
+ "enum": [
20639
+ "block"
20640
+ ]
20641
+ },
20642
+ "type": {
20643
+ "type": "string",
20644
+ "enum": [
20645
+ "openapi-schemas"
20646
+ ]
20647
+ },
20648
+ "key": {
20649
+ "type": "string"
20650
+ },
20651
+ "data": {
20652
+ "allOf": [
20653
+ {
20654
+ "$ref": "#/components/schemas/OpenAPISchemasPointer"
20655
+ },
20656
+ {
20657
+ "type": "object",
20658
+ "properties": {
20659
+ "ref": {
20660
+ "$ref": "#/components/schemas/ContentRefOpenAPI"
20661
+ }
20662
+ },
20663
+ "required": [
20664
+ "ref"
20665
+ ]
20666
+ }
20667
+ ],
20668
+ "required": [
20669
+ "ref"
20670
+ ]
20671
+ },
20672
+ "isVoid": {
20673
+ "type": "boolean",
20674
+ "enum": [
20675
+ true
20676
+ ]
20677
+ },
20678
+ "meta": {
20679
+ "type": "object",
20680
+ "properties": {
20681
+ "id": {
20682
+ "description": "Unique ID to be used in an URL for the block.",
20683
+ "type": "string"
20684
+ }
20685
+ },
20686
+ "required": [
20687
+ "id"
20688
+ ]
20689
+ }
20690
+ },
20691
+ "required": [
20692
+ "object",
20693
+ "type",
20694
+ "data",
20695
+ "isVoid"
20696
+ ]
20697
+ },
20698
+ "OpenAPIWebhookPointer": {
20699
+ "type": "object",
20700
+ "description": "Pointer to a webhook in the OpenAPI spec.",
20701
+ "properties": {
20702
+ "name": {
20703
+ "type": "string",
20704
+ "description": "Name of the webhook in the OpenAPI spec."
20705
+ },
20706
+ "method": {
20707
+ "type": "string",
20708
+ "description": "HTTP method of the webhook in the OpenAPI spec."
20709
+ }
20710
+ },
20711
+ "required": [
20712
+ "name",
20713
+ "method"
20714
+ ]
20715
+ },
20716
+ "DocumentBlockOpenAPIWebhook": {
20717
+ "type": "object",
20718
+ "properties": {
20719
+ "object": {
20720
+ "type": "string",
20721
+ "enum": [
20722
+ "block"
20723
+ ]
20724
+ },
20725
+ "type": {
20726
+ "type": "string",
20727
+ "enum": [
20728
+ "openapi-webhook"
20729
+ ]
20730
+ },
20731
+ "key": {
20732
+ "type": "string"
20733
+ },
20734
+ "data": {
20735
+ "allOf": [
20736
+ {
20737
+ "$ref": "#/components/schemas/OpenAPIWebhookPointer"
20738
+ },
20739
+ {
20740
+ "type": "object",
20741
+ "properties": {
20742
+ "ref": {
20743
+ "$ref": "#/components/schemas/ContentRefOpenAPI"
20744
+ }
20745
+ },
20746
+ "required": [
20747
+ "ref"
20748
+ ]
20749
+ }
20750
+ ]
20751
+ },
20752
+ "isVoid": {
20753
+ "type": "boolean",
20754
+ "enum": [
20755
+ true
20756
+ ]
20757
+ },
20758
+ "meta": {
20759
+ "type": "object",
20760
+ "properties": {
20761
+ "id": {
20762
+ "description": "Unique ID to be used in an URL for the block.",
20763
+ "type": "string"
20764
+ }
20765
+ },
20766
+ "required": [
20767
+ "id"
20768
+ ]
20769
+ }
20770
+ },
20771
+ "required": [
20772
+ "object",
20773
+ "type",
20774
+ "data",
20775
+ "isVoid"
20776
+ ]
20777
+ },
20778
+ "DocumentBlockStepperStep": {
19942
20779
  "type": "object",
19943
20780
  "properties": {
19944
20781
  "object": {
@@ -19950,78 +20787,75 @@
19950
20787
  "type": {
19951
20788
  "type": "string",
19952
20789
  "enum": [
19953
- "openapi-schemas"
20790
+ "stepper-step"
19954
20791
  ]
19955
20792
  },
19956
20793
  "key": {
19957
20794
  "type": "string"
19958
20795
  },
19959
- "data": {
19960
- "allOf": [
19961
- {
19962
- "$ref": "#/components/schemas/OpenAPISchemasPointer"
19963
- },
19964
- {
19965
- "type": "object",
19966
- "properties": {
19967
- "ref": {
19968
- "$ref": "#/components/schemas/ContentRefOpenAPI"
19969
- }
20796
+ "nodes": {
20797
+ "type": "array",
20798
+ "items": {
20799
+ "oneOf": [
20800
+ {
20801
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
19970
20802
  },
19971
- "required": [
19972
- "ref"
19973
- ]
19974
- }
19975
- ],
19976
- "required": [
19977
- "ref"
19978
- ]
19979
- },
19980
- "isVoid": {
19981
- "type": "boolean",
19982
- "enum": [
19983
- true
19984
- ]
20803
+ {
20804
+ "$ref": "#/components/schemas/DocumentBlockContentRef"
20805
+ },
20806
+ {
20807
+ "$ref": "#/components/schemas/DocumentBlockCode"
20808
+ },
20809
+ {
20810
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
20811
+ },
20812
+ {
20813
+ "$ref": "#/components/schemas/DocumentBlockFile"
20814
+ },
20815
+ {
20816
+ "$ref": "#/components/schemas/DocumentBlockImages"
20817
+ },
20818
+ {
20819
+ "$ref": "#/components/schemas/DocumentBlockDrawing"
20820
+ },
20821
+ {
20822
+ "$ref": "#/components/schemas/DocumentBlockHint"
20823
+ },
20824
+ {
20825
+ "$ref": "#/components/schemas/DocumentBlockQuote"
20826
+ },
20827
+ {
20828
+ "$ref": "#/components/schemas/DocumentBlockMath"
20829
+ },
20830
+ {
20831
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
20832
+ }
20833
+ ]
20834
+ }
19985
20835
  },
19986
- "meta": {
20836
+ "data": {
19987
20837
  "type": "object",
19988
20838
  "properties": {
19989
- "id": {
19990
- "description": "Unique ID to be used in an URL for the block.",
20839
+ "icon": {
19991
20840
  "type": "string"
19992
20841
  }
19993
- },
19994
- "required": [
19995
- "id"
20842
+ }
20843
+ },
20844
+ "isVoid": {
20845
+ "type": "boolean",
20846
+ "enum": [
20847
+ false
19996
20848
  ]
19997
20849
  }
19998
20850
  },
19999
20851
  "required": [
20000
20852
  "object",
20001
20853
  "type",
20002
- "data",
20003
- "isVoid"
20004
- ]
20005
- },
20006
- "OpenAPIWebhookPointer": {
20007
- "type": "object",
20008
- "description": "Pointer to a webhook in the OpenAPI spec.",
20009
- "properties": {
20010
- "name": {
20011
- "type": "string",
20012
- "description": "Name of the webhook in the OpenAPI spec."
20013
- },
20014
- "method": {
20015
- "type": "string",
20016
- "description": "HTTP method of the webhook in the OpenAPI spec."
20017
- }
20018
- },
20019
- "required": [
20020
- "name",
20021
- "method"
20854
+ "nodes",
20855
+ "data"
20022
20856
  ]
20023
20857
  },
20024
- "DocumentBlockOpenAPIWebhook": {
20858
+ "DocumentBlockStepper": {
20025
20859
  "type": "object",
20026
20860
  "properties": {
20027
20861
  "object": {
@@ -20033,57 +20867,37 @@
20033
20867
  "type": {
20034
20868
  "type": "string",
20035
20869
  "enum": [
20036
- "openapi-webhook"
20870
+ "stepper"
20037
20871
  ]
20038
20872
  },
20039
20873
  "key": {
20040
20874
  "type": "string"
20041
20875
  },
20042
- "data": {
20043
- "allOf": [
20044
- {
20045
- "$ref": "#/components/schemas/OpenAPIWebhookPointer"
20046
- },
20047
- {
20048
- "type": "object",
20049
- "properties": {
20050
- "ref": {
20051
- "$ref": "#/components/schemas/ContentRefOpenAPI"
20052
- }
20053
- },
20054
- "required": [
20055
- "ref"
20056
- ]
20057
- }
20058
- ]
20876
+ "nodes": {
20877
+ "type": "array",
20878
+ "items": {
20879
+ "$ref": "#/components/schemas/DocumentBlockStepperStep"
20880
+ }
20059
20881
  },
20060
20882
  "isVoid": {
20061
20883
  "type": "boolean",
20062
20884
  "enum": [
20063
- true
20885
+ false
20064
20886
  ]
20065
20887
  },
20066
- "meta": {
20888
+ "data": {
20067
20889
  "type": "object",
20068
- "properties": {
20069
- "id": {
20070
- "description": "Unique ID to be used in an URL for the block.",
20071
- "type": "string"
20072
- }
20073
- },
20074
- "required": [
20075
- "id"
20076
- ]
20890
+ "properties": {},
20891
+ "additionalProperties": false
20077
20892
  }
20078
20893
  },
20079
20894
  "required": [
20080
20895
  "object",
20081
20896
  "type",
20082
- "data",
20083
- "isVoid"
20897
+ "nodes"
20084
20898
  ]
20085
20899
  },
20086
- "DocumentBlockStepperStep": {
20900
+ "DocumentBlockColumn": {
20087
20901
  "type": "object",
20088
20902
  "properties": {
20089
20903
  "object": {
@@ -20095,7 +20909,7 @@
20095
20909
  "type": {
20096
20910
  "type": "string",
20097
20911
  "enum": [
20098
- "stepper-step"
20912
+ "column"
20099
20913
  ]
20100
20914
  },
20101
20915
  "key": {
@@ -20108,52 +20922,22 @@
20108
20922
  {
20109
20923
  "$ref": "#/components/schemas/DocumentBlocksEssentials"
20110
20924
  },
20111
- {
20112
- "$ref": "#/components/schemas/DocumentBlockContentRef"
20113
- },
20114
- {
20115
- "$ref": "#/components/schemas/DocumentBlockCode"
20116
- },
20117
- {
20118
- "$ref": "#/components/schemas/DocumentBlockEmbed"
20119
- },
20120
- {
20121
- "$ref": "#/components/schemas/DocumentBlockFile"
20122
- },
20123
20925
  {
20124
20926
  "$ref": "#/components/schemas/DocumentBlockImages"
20125
- },
20126
- {
20127
- "$ref": "#/components/schemas/DocumentBlockDrawing"
20128
- },
20129
- {
20130
- "$ref": "#/components/schemas/DocumentBlockHint"
20131
- },
20132
- {
20133
- "$ref": "#/components/schemas/DocumentBlockQuote"
20134
- },
20135
- {
20136
- "$ref": "#/components/schemas/DocumentBlockMath"
20137
- },
20138
- {
20139
- "$ref": "#/components/schemas/DocumentBlockIntegration"
20140
20927
  }
20141
20928
  ]
20142
20929
  }
20143
20930
  },
20144
- "data": {
20145
- "type": "object",
20146
- "properties": {
20147
- "icon": {
20148
- "type": "string"
20149
- }
20150
- }
20151
- },
20152
20931
  "isVoid": {
20153
20932
  "type": "boolean",
20154
20933
  "enum": [
20155
20934
  false
20156
20935
  ]
20936
+ },
20937
+ "data": {
20938
+ "type": "object",
20939
+ "properties": {},
20940
+ "additionalProperties": false
20157
20941
  }
20158
20942
  },
20159
20943
  "required": [
@@ -20163,7 +20947,7 @@
20163
20947
  "data"
20164
20948
  ]
20165
20949
  },
20166
- "DocumentBlockStepper": {
20950
+ "DocumentBlockColumns": {
20167
20951
  "type": "object",
20168
20952
  "properties": {
20169
20953
  "object": {
@@ -20175,16 +20959,24 @@
20175
20959
  "type": {
20176
20960
  "type": "string",
20177
20961
  "enum": [
20178
- "stepper"
20962
+ "columns"
20179
20963
  ]
20180
20964
  },
20181
20965
  "key": {
20182
20966
  "type": "string"
20183
20967
  },
20968
+ "data": {
20969
+ "type": "object",
20970
+ "properties": {
20971
+ "fullWidth": {
20972
+ "type": "boolean"
20973
+ }
20974
+ }
20975
+ },
20184
20976
  "nodes": {
20185
20977
  "type": "array",
20186
20978
  "items": {
20187
- "$ref": "#/components/schemas/DocumentBlockStepperStep"
20979
+ "$ref": "#/components/schemas/DocumentBlockColumn"
20188
20980
  }
20189
20981
  },
20190
20982
  "isVoid": {
@@ -20192,17 +20984,14 @@
20192
20984
  "enum": [
20193
20985
  false
20194
20986
  ]
20195
- },
20196
- "data": {
20197
- "type": "object",
20198
- "properties": {},
20199
- "additionalProperties": false
20200
20987
  }
20201
20988
  },
20202
20989
  "required": [
20203
20990
  "object",
20204
20991
  "type",
20205
- "nodes"
20992
+ "data",
20993
+ "nodes",
20994
+ "isVoid"
20206
20995
  ]
20207
20996
  },
20208
20997
  "DocumentBlock": {
@@ -20296,6 +21085,12 @@
20296
21085
  },
20297
21086
  {
20298
21087
  "$ref": "#/components/schemas/DocumentBlockStepperStep"
21088
+ },
21089
+ {
21090
+ "$ref": "#/components/schemas/DocumentBlockColumns"
21091
+ },
21092
+ {
21093
+ "$ref": "#/components/schemas/DocumentBlockColumn"
20299
21094
  }
20300
21095
  ]
20301
21096
  },
@@ -22202,6 +22997,10 @@
22202
22997
  "type": "boolean",
22203
22998
  "description": "Can the user create new OpenAPI specifications."
22204
22999
  },
23000
+ "ingestConversations": {
23001
+ "type": "boolean",
23002
+ "description": "Can the user ingest conversations in the organization."
23003
+ },
22205
23004
  "viewBilling": {
22206
23005
  "type": "boolean",
22207
23006
  "description": "Can the user view the billing details of the organization."
@@ -22225,6 +23024,7 @@
22225
23024
  "ownTeam",
22226
23025
  "createContent",
22227
23026
  "createOpenAPISpec",
23027
+ "ingestConversations",
22228
23028
  "viewBilling",
22229
23029
  "listMembers",
22230
23030
  "listTeams",
@@ -22860,15 +23660,6 @@
22860
23660
  "locationReferences"
22861
23661
  ]
22862
23662
  },
22863
- "CreateChangeRequest": {
22864
- "type": "object",
22865
- "properties": {
22866
- "subject": {
22867
- "type": "string",
22868
- "description": "Subject of the change-request"
22869
- }
22870
- }
22871
- },
22872
23663
  "ChangeRequestReviewStatus": {
22873
23664
  "type": "string",
22874
23665
  "description": "Status of a change request review.",
@@ -23441,34 +24232,6 @@
23441
24232
  "user"
23442
24233
  ]
23443
24234
  },
23444
- "ChangeRequestBrainstormStatus": {
23445
- "type": "string",
23446
- "description": "The status of the session.\n- pending: The session is pending for input from the user.\n- running: The session is being processed by GitBook.\n- failed: The session processing has failed.\n",
23447
- "enum": [
23448
- "pending",
23449
- "failed",
23450
- "running"
23451
- ]
23452
- },
23453
- "ChangeRequestBrainstormActor": {
23454
- "type": "string",
23455
- "enum": [
23456
- "user",
23457
- "agent"
23458
- ]
23459
- },
23460
- "ChangeRequestBrainstormContext": {
23461
- "type": "object",
23462
- "properties": {
23463
- "page": {
23464
- "type": "string",
23465
- "description": "Path of the page the user is currently viewing."
23466
- }
23467
- },
23468
- "required": [
23469
- "page"
23470
- ]
23471
- },
23472
24235
  "RevisionPageType": {
23473
24236
  "type": "string",
23474
24237
  "enum": [
@@ -23500,324 +24263,6 @@
23500
24263
  "title"
23501
24264
  ]
23502
24265
  },
23503
- "ChangeRequestBrainstormLog": {
23504
- "oneOf": [
23505
- {
23506
- "type": "object",
23507
- "properties": {
23508
- "tool": {
23509
- "type": "string",
23510
- "enum": [
23511
- "get-page"
23512
- ]
23513
- },
23514
- "intent": {
23515
- "type": "string"
23516
- },
23517
- "page": {
23518
- "$ref": "#/components/schemas/ChangedRevisionPage"
23519
- }
23520
- },
23521
- "required": [
23522
- "tool",
23523
- "intent",
23524
- "page"
23525
- ]
23526
- },
23527
- {
23528
- "type": "object",
23529
- "properties": {
23530
- "tool": {
23531
- "type": "string",
23532
- "enum": [
23533
- "search-keyword"
23534
- ]
23535
- },
23536
- "intent": {
23537
- "type": "string"
23538
- },
23539
- "query": {
23540
- "type": "string"
23541
- }
23542
- },
23543
- "required": [
23544
- "tool",
23545
- "intent",
23546
- "query"
23547
- ]
23548
- },
23549
- {
23550
- "type": "object",
23551
- "properties": {
23552
- "tool": {
23553
- "type": "string",
23554
- "enum": [
23555
- "search-semantic"
23556
- ]
23557
- },
23558
- "intent": {
23559
- "type": "string"
23560
- },
23561
- "query": {
23562
- "type": "string"
23563
- }
23564
- },
23565
- "required": [
23566
- "tool",
23567
- "intent",
23568
- "query"
23569
- ]
23570
- },
23571
- {
23572
- "type": "object",
23573
- "properties": {
23574
- "tool": {
23575
- "type": "string",
23576
- "enum": [
23577
- "create-page"
23578
- ]
23579
- },
23580
- "page": {
23581
- "$ref": "#/components/schemas/ChangedRevisionPage"
23582
- }
23583
- },
23584
- "required": [
23585
- "tool",
23586
- "page"
23587
- ]
23588
- },
23589
- {
23590
- "type": "object",
23591
- "properties": {
23592
- "tool": {
23593
- "type": "string",
23594
- "enum": [
23595
- "delete-page"
23596
- ]
23597
- },
23598
- "page": {
23599
- "$ref": "#/components/schemas/ChangedRevisionPage"
23600
- }
23601
- },
23602
- "required": [
23603
- "tool",
23604
- "page"
23605
- ]
23606
- },
23607
- {
23608
- "type": "object",
23609
- "properties": {
23610
- "tool": {
23611
- "type": "string",
23612
- "enum": [
23613
- "edit-page"
23614
- ]
23615
- },
23616
- "page": {
23617
- "$ref": "#/components/schemas/ChangedRevisionPage"
23618
- }
23619
- },
23620
- "required": [
23621
- "tool",
23622
- "page"
23623
- ]
23624
- }
23625
- ]
23626
- },
23627
- "ChangeRequestBrainstormPlanStatus": {
23628
- "type": "string",
23629
- "description": "The status of the plan.\n- pending: The task is pending for input from the user.\n- running: The task is being processed by GitBook.\n- failed: The task processing has failed.\n- completed: The task has been completed.\n",
23630
- "enum": [
23631
- "pending",
23632
- "failed",
23633
- "running",
23634
- "completed"
23635
- ]
23636
- },
23637
- "ChangeRequestBrainstormPlanStepTitle": {
23638
- "type": "string",
23639
- "minLength": 1,
23640
- "maxLength": 100
23641
- },
23642
- "ChangeRequestBrainstormPlanStepStatus": {
23643
- "type": "string",
23644
- "enum": [
23645
- "pending",
23646
- "succeeded",
23647
- "failed",
23648
- "running"
23649
- ]
23650
- },
23651
- "ChangeRequestBrainstormPlanStep": {
23652
- "type": "object",
23653
- "properties": {
23654
- "title": {
23655
- "$ref": "#/components/schemas/ChangeRequestBrainstormPlanStepTitle"
23656
- },
23657
- "status": {
23658
- "$ref": "#/components/schemas/ChangeRequestBrainstormPlanStepStatus"
23659
- },
23660
- "instruction": {
23661
- "$ref": "#/components/schemas/JSONDocument"
23662
- },
23663
- "implementation": {
23664
- "description": "Logs related to the implementation phase of the step.",
23665
- "type": "object",
23666
- "properties": {
23667
- "summary": {
23668
- "description": "A summary of the execution phase.",
23669
- "$ref": "#/components/schemas/JSONDocument"
23670
- },
23671
- "logs": {
23672
- "description": "Logs related to the execution phase of the step.",
23673
- "items": {
23674
- "$ref": "#/components/schemas/ChangeRequestBrainstormLog"
23675
- }
23676
- }
23677
- },
23678
- "required": [
23679
- "logs"
23680
- ]
23681
- }
23682
- },
23683
- "required": [
23684
- "title",
23685
- "status",
23686
- "instruction"
23687
- ]
23688
- },
23689
- "ChangeRequestBrainstormPlan": {
23690
- "type": "object",
23691
- "properties": {
23692
- "status": {
23693
- "$ref": "#/components/schemas/ChangeRequestBrainstormPlanStatus"
23694
- },
23695
- "title": {
23696
- "type": "string",
23697
- "description": "The title of the plan."
23698
- },
23699
- "steps": {
23700
- "description": "The steps of the plan to execute the plan.",
23701
- "type": "array",
23702
- "items": {
23703
- "$ref": "#/components/schemas/ChangeRequestBrainstormPlanStep"
23704
- }
23705
- },
23706
- "context": {
23707
- "$ref": "#/components/schemas/ChangeRequestBrainstormContext"
23708
- }
23709
- },
23710
- "required": [
23711
- "status",
23712
- "title",
23713
- "steps"
23714
- ]
23715
- },
23716
- "ChangeRequestBrainstormAttachmentPlan": {
23717
- "type": "object",
23718
- "properties": {
23719
- "type": {
23720
- "type": "string",
23721
- "enum": [
23722
- "plan"
23723
- ]
23724
- },
23725
- "plan": {
23726
- "$ref": "#/components/schemas/ChangeRequestBrainstormPlan"
23727
- }
23728
- },
23729
- "required": [
23730
- "type",
23731
- "plan"
23732
- ]
23733
- },
23734
- "ChangeRequestBrainstormAttachmentMessage": {
23735
- "type": "object",
23736
- "properties": {
23737
- "type": {
23738
- "type": "string",
23739
- "enum": [
23740
- "message"
23741
- ]
23742
- },
23743
- "suggestions": {
23744
- "type": "array",
23745
- "items": {
23746
- "type": "string"
23747
- }
23748
- }
23749
- },
23750
- "required": [
23751
- "type",
23752
- "suggestions"
23753
- ]
23754
- },
23755
- "ChangeRequestBrainstormAttachment": {
23756
- "oneOf": [
23757
- {
23758
- "$ref": "#/components/schemas/ChangeRequestBrainstormAttachmentPlan"
23759
- },
23760
- {
23761
- "$ref": "#/components/schemas/ChangeRequestBrainstormAttachmentMessage"
23762
- }
23763
- ]
23764
- },
23765
- "ChangeRequestBrainstormMessage": {
23766
- "type": "object",
23767
- "properties": {
23768
- "id": {
23769
- "type": "string",
23770
- "description": "The unique identifier of the chat message."
23771
- },
23772
- "actor": {
23773
- "$ref": "#/components/schemas/ChangeRequestBrainstormActor"
23774
- },
23775
- "message": {
23776
- "$ref": "#/components/schemas/JSONDocument"
23777
- },
23778
- "context": {
23779
- "$ref": "#/components/schemas/ChangeRequestBrainstormContext"
23780
- },
23781
- "logs": {
23782
- "description": "Logs related to the processing of the message.",
23783
- "items": {
23784
- "$ref": "#/components/schemas/ChangeRequestBrainstormLog"
23785
- }
23786
- },
23787
- "attachment": {
23788
- "$ref": "#/components/schemas/ChangeRequestBrainstormAttachment"
23789
- }
23790
- },
23791
- "required": [
23792
- "id",
23793
- "actor",
23794
- "message"
23795
- ]
23796
- },
23797
- "ChangeRequestBrainstormSession": {
23798
- "type": "object",
23799
- "properties": {
23800
- "id": {
23801
- "type": "string",
23802
- "description": "The unique identifier of the session."
23803
- },
23804
- "status": {
23805
- "$ref": "#/components/schemas/ChangeRequestBrainstormStatus"
23806
- },
23807
- "messages": {
23808
- "description": "Conversation messages related to the brainstorming phase of the task.",
23809
- "type": "array",
23810
- "items": {
23811
- "$ref": "#/components/schemas/ChangeRequestBrainstormMessage"
23812
- }
23813
- }
23814
- },
23815
- "required": [
23816
- "id",
23817
- "status",
23818
- "messages"
23819
- ]
23820
- },
23821
24266
  "RevisionSemanticChangePageCreated": {
23822
24267
  "type": "object",
23823
24268
  "properties": {
@@ -24422,6 +24867,61 @@
24422
24867
  }
24423
24868
  }
24424
24869
  },
24870
+ "OrganizationMember": {
24871
+ "type": "object",
24872
+ "properties": {
24873
+ "object": {
24874
+ "type": "string",
24875
+ "description": "Type of Object, always equals to \"member\"",
24876
+ "enum": [
24877
+ "member"
24878
+ ]
24879
+ },
24880
+ "id": {
24881
+ "type": "string",
24882
+ "description": "Unique identifier for the user."
24883
+ },
24884
+ "role": {
24885
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
24886
+ },
24887
+ "user": {
24888
+ "$ref": "#/components/schemas/User"
24889
+ },
24890
+ "disabled": {
24891
+ "type": "boolean",
24892
+ "description": "Whatever the membership of this user is disabled and prevent them from accessing content."
24893
+ },
24894
+ "joinedAt": {
24895
+ "description": "Date at which the user joined the organization.",
24896
+ "$ref": "#/components/schemas/Timestamp"
24897
+ },
24898
+ "lastSeenAt": {
24899
+ "description": "Date at which the user was last seen active in the organization.",
24900
+ "$ref": "#/components/schemas/Timestamp"
24901
+ },
24902
+ "sso": {
24903
+ "type": "boolean",
24904
+ "description": "Whether the user can login with SSO."
24905
+ },
24906
+ "spaces": {
24907
+ "type": "number"
24908
+ },
24909
+ "teams": {
24910
+ "type": "number"
24911
+ }
24912
+ },
24913
+ "required": [
24914
+ "object",
24915
+ "id",
24916
+ "role",
24917
+ "user",
24918
+ "disabled",
24919
+ "joinedAt",
24920
+ "sso",
24921
+ "spaces",
24922
+ "teams"
24923
+ ]
24924
+ },
24425
24925
  "IntegrationTitle": {
24426
24926
  "type": "string",
24427
24927
  "description": "Title of the integration",
@@ -24476,7 +24976,8 @@
24476
24976
  "site:adaptive:read",
24477
24977
  "site:adaptive:write",
24478
24978
  "openapi:read",
24479
- "openapi:write"
24979
+ "openapi:write",
24980
+ "conversations:ingest"
24480
24981
  ]
24481
24982
  },
24482
24983
  "IntegrationScopes": {
@@ -28798,61 +29299,6 @@
28798
29299
  "deletedSpaces"
28799
29300
  ]
28800
29301
  },
28801
- "OrganizationMember": {
28802
- "type": "object",
28803
- "properties": {
28804
- "object": {
28805
- "type": "string",
28806
- "description": "Type of Object, always equals to \"member\"",
28807
- "enum": [
28808
- "member"
28809
- ]
28810
- },
28811
- "id": {
28812
- "type": "string",
28813
- "description": "Unique identifier for the user."
28814
- },
28815
- "role": {
28816
- "$ref": "#/components/schemas/MemberRoleOrGuest"
28817
- },
28818
- "user": {
28819
- "$ref": "#/components/schemas/User"
28820
- },
28821
- "disabled": {
28822
- "type": "boolean",
28823
- "description": "Whatever the membership of this user is disabled and prevent them from accessing content."
28824
- },
28825
- "joinedAt": {
28826
- "description": "Date at which the user joined the organization.",
28827
- "$ref": "#/components/schemas/Timestamp"
28828
- },
28829
- "lastSeenAt": {
28830
- "description": "Date at which the user was last seen active in the organization.",
28831
- "$ref": "#/components/schemas/Timestamp"
28832
- },
28833
- "sso": {
28834
- "type": "boolean",
28835
- "description": "Whether the user can login with SSO."
28836
- },
28837
- "spaces": {
28838
- "type": "number"
28839
- },
28840
- "teams": {
28841
- "type": "number"
28842
- }
28843
- },
28844
- "required": [
28845
- "object",
28846
- "id",
28847
- "role",
28848
- "user",
28849
- "disabled",
28850
- "joinedAt",
28851
- "sso",
28852
- "spaces",
28853
- "teams"
28854
- ]
28855
- },
28856
29302
  "MemberContentPermission": {
28857
29303
  "type": "object",
28858
29304
  "description": "Permission of a member in a content.",
@@ -29636,6 +30082,14 @@
29636
30082
  "type": "string",
29637
30083
  "maxLength": 10000
29638
30084
  },
30085
+ "SAMLProviderStatus": {
30086
+ "type": "string",
30087
+ "description": "Status of the provider.\n- `active`: The provider is active and can be used to authenticate users.\n- `pending`: The provider is pending and is not yet fully configured.\n",
30088
+ "enum": [
30089
+ "active",
30090
+ "pending"
30091
+ ]
30092
+ },
29639
30093
  "OrganizationSAMLProvider": {
29640
30094
  "type": "object",
29641
30095
  "properties": {
@@ -29672,6 +30126,9 @@
29672
30126
  "description": "Date at which the provider was created.",
29673
30127
  "$ref": "#/components/schemas/Timestamp"
29674
30128
  },
30129
+ "status": {
30130
+ "$ref": "#/components/schemas/SAMLProviderStatus"
30131
+ },
29675
30132
  "service": {
29676
30133
  "description": "Metadata about the service provider.",
29677
30134
  "properties": {
@@ -29719,6 +30176,7 @@
29719
30176
  "certificate",
29720
30177
  "defaultRole",
29721
30178
  "createdAt",
30179
+ "status",
29722
30180
  "service",
29723
30181
  "urls"
29724
30182
  ]
@@ -30187,6 +30645,507 @@
30187
30645
  "url"
30188
30646
  ]
30189
30647
  },
30648
+ "ConversationsIssuesCluster": {
30649
+ "type": "object",
30650
+ "properties": {
30651
+ "object": {
30652
+ "type": "string",
30653
+ "enum": [
30654
+ "issues-cluster"
30655
+ ]
30656
+ },
30657
+ "id": {
30658
+ "type": "string",
30659
+ "description": "The ID of the conversations issues cluster"
30660
+ },
30661
+ "label": {
30662
+ "type": "string",
30663
+ "description": "The label of the conversations issues cluster"
30664
+ },
30665
+ "createdAt": {
30666
+ "$ref": "#/components/schemas/Timestamp"
30667
+ },
30668
+ "updatedAt": {
30669
+ "$ref": "#/components/schemas/Timestamp"
30670
+ },
30671
+ "icon": {
30672
+ "$ref": "#/components/schemas/Icon"
30673
+ },
30674
+ "summary": {
30675
+ "type": "string",
30676
+ "description": "The summary of the conversations issues cluster"
30677
+ },
30678
+ "weeklyPulse": {
30679
+ "type": "array",
30680
+ "minItems": 13,
30681
+ "maxItems": 13,
30682
+ "description": "The weekly pulse of the conversations issues cluster for the past 3 months",
30683
+ "items": {
30684
+ "type": "number"
30685
+ }
30686
+ },
30687
+ "sources": {
30688
+ "type": "object",
30689
+ "additionalProperties": {
30690
+ "type": "number",
30691
+ "description": "The number of issues in the conversations issues cluster for the source"
30692
+ }
30693
+ },
30694
+ "stats": {
30695
+ "type": "object",
30696
+ "description": "The stats of the conversations issues cluster",
30697
+ "properties": {
30698
+ "issues": {
30699
+ "type": "number",
30700
+ "description": "The number of issues in the conversations issues cluster"
30701
+ },
30702
+ "conversations": {
30703
+ "type": "number",
30704
+ "description": "The number of conversations in the conversations issues cluster"
30705
+ },
30706
+ "tasksTotal": {
30707
+ "type": "number",
30708
+ "description": "The number of tasks in the conversations issues cluster"
30709
+ },
30710
+ "tasksBacklog": {
30711
+ "type": "number",
30712
+ "description": "The number of tasks in the backlog in the conversations issues cluster"
30713
+ },
30714
+ "tasksStarted": {
30715
+ "type": "number",
30716
+ "description": "The number of tasks done in the conversations issues cluster"
30717
+ },
30718
+ "tasksCompleted": {
30719
+ "type": "number",
30720
+ "description": "The number of tasks completed in the conversations issues cluster"
30721
+ },
30722
+ "tasksCancelled": {
30723
+ "type": "number",
30724
+ "description": "The number of tasks canceled in the conversations issues cluster"
30725
+ }
30726
+ },
30727
+ "required": [
30728
+ "issues",
30729
+ "conversations",
30730
+ "tasksTotal",
30731
+ "tasksBacklog",
30732
+ "tasksStarted",
30733
+ "tasksCompleted",
30734
+ "tasksCancelled"
30735
+ ]
30736
+ },
30737
+ "urls": {
30738
+ "type": "object",
30739
+ "description": "URLs associated with the conversations issues cluster",
30740
+ "properties": {
30741
+ "location": {
30742
+ "type": "string",
30743
+ "description": "URL of the conversations issues cluster in the API",
30744
+ "format": "uri"
30745
+ },
30746
+ "app": {
30747
+ "type": "string",
30748
+ "description": "URL of the conversations issues cluster in the application",
30749
+ "format": "uri"
30750
+ }
30751
+ },
30752
+ "required": [
30753
+ "app",
30754
+ "location"
30755
+ ]
30756
+ }
30757
+ },
30758
+ "required": [
30759
+ "object",
30760
+ "id",
30761
+ "label",
30762
+ "summary",
30763
+ "icon",
30764
+ "sources",
30765
+ "stats",
30766
+ "weeklyPulse",
30767
+ "createdAt",
30768
+ "updatedAt",
30769
+ "urls"
30770
+ ]
30771
+ },
30772
+ "ConversationIssue": {
30773
+ "type": "object",
30774
+ "properties": {
30775
+ "object": {
30776
+ "type": "string",
30777
+ "enum": [
30778
+ "conversation-issue"
30779
+ ]
30780
+ },
30781
+ "id": {
30782
+ "type": "string",
30783
+ "description": "The ID of the conversation issue"
30784
+ },
30785
+ "title": {
30786
+ "type": "string",
30787
+ "description": "The title of the conversation issue"
30788
+ },
30789
+ "summary": {
30790
+ "type": "string",
30791
+ "description": "The summary of the conversation issue"
30792
+ },
30793
+ "createdAt": {
30794
+ "$ref": "#/components/schemas/Timestamp"
30795
+ },
30796
+ "ingestedAt": {
30797
+ "$ref": "#/components/schemas/Timestamp"
30798
+ },
30799
+ "conversation": {
30800
+ "type": "string",
30801
+ "description": "The ID of the conversation the issue belongs to"
30802
+ },
30803
+ "cluster": {
30804
+ "type": "string",
30805
+ "description": "The ID of the cluster the issue has been linked to"
30806
+ },
30807
+ "urls": {
30808
+ "type": "object",
30809
+ "description": "URLs associated with the conversation issue",
30810
+ "properties": {
30811
+ "location": {
30812
+ "type": "string",
30813
+ "description": "URL of the conversation issue in the API",
30814
+ "format": "uri"
30815
+ }
30816
+ },
30817
+ "required": [
30818
+ "location"
30819
+ ]
30820
+ }
30821
+ },
30822
+ "required": [
30823
+ "object",
30824
+ "id",
30825
+ "title",
30826
+ "summary",
30827
+ "createdAt",
30828
+ "ingestedAt",
30829
+ "conversation",
30830
+ "urls"
30831
+ ]
30832
+ },
30833
+ "ConversationSource": {
30834
+ "oneOf": [
30835
+ {
30836
+ "type": "string",
30837
+ "description": "Integration source",
30838
+ "pattern": "^integration:[^:]+:[^:]+$",
30839
+ "x-typescript": "`integration:${string}:${string}`"
30840
+ },
30841
+ {
30842
+ "type": "string",
30843
+ "description": "Email source",
30844
+ "enum": [
30845
+ "email"
30846
+ ]
30847
+ }
30848
+ ]
30849
+ },
30850
+ "Conversation": {
30851
+ "type": "object",
30852
+ "properties": {
30853
+ "object": {
30854
+ "type": "string",
30855
+ "enum": [
30856
+ "conversation"
30857
+ ]
30858
+ },
30859
+ "id": {
30860
+ "type": "string",
30861
+ "description": "The ID of the conversation"
30862
+ },
30863
+ "subject": {
30864
+ "type": "string",
30865
+ "description": "The subject of the conversation"
30866
+ },
30867
+ "createdAt": {
30868
+ "$ref": "#/components/schemas/Timestamp"
30869
+ },
30870
+ "processedAt": {
30871
+ "$ref": "#/components/schemas/Timestamp"
30872
+ },
30873
+ "source": {
30874
+ "$ref": "#/components/schemas/ConversationSource"
30875
+ },
30876
+ "urls": {
30877
+ "type": "object",
30878
+ "description": "URLs associated with the conversation",
30879
+ "properties": {
30880
+ "location": {
30881
+ "type": "string",
30882
+ "description": "URL of the conversation in the API",
30883
+ "format": "uri"
30884
+ },
30885
+ "source": {
30886
+ "type": "string",
30887
+ "description": "URL of the conversation in the source",
30888
+ "format": "uri"
30889
+ }
30890
+ },
30891
+ "required": [
30892
+ "location"
30893
+ ]
30894
+ }
30895
+ },
30896
+ "required": [
30897
+ "object",
30898
+ "id",
30899
+ "createdAt",
30900
+ "source",
30901
+ "urls"
30902
+ ]
30903
+ },
30904
+ "ConversationMetadata": {
30905
+ "type": "object",
30906
+ "properties": {
30907
+ "url": {
30908
+ "type": "string",
30909
+ "description": "URL to the conversation"
30910
+ },
30911
+ "attributes": {
30912
+ "type": "object",
30913
+ "additionalProperties": {
30914
+ "type": "string"
30915
+ }
30916
+ },
30917
+ "createdAt": {
30918
+ "description": "Date of the conversation creation",
30919
+ "$ref": "#/components/schemas/Timestamp"
30920
+ }
30921
+ }
30922
+ },
30923
+ "ConversationPartMessage": {
30924
+ "type": "object",
30925
+ "description": "A message posted in the conversation by a user or a team member.",
30926
+ "properties": {
30927
+ "type": {
30928
+ "type": "string",
30929
+ "enum": [
30930
+ "message"
30931
+ ]
30932
+ },
30933
+ "role": {
30934
+ "type": "string",
30935
+ "enum": [
30936
+ "user",
30937
+ "assistant",
30938
+ "team-member"
30939
+ ]
30940
+ },
30941
+ "body": {
30942
+ "type": "string",
30943
+ "description": "Markdown or HTML body of the message."
30944
+ }
30945
+ },
30946
+ "required": [
30947
+ "type",
30948
+ "role",
30949
+ "body"
30950
+ ]
30951
+ },
30952
+ "ConversationPart": {
30953
+ "oneOf": [
30954
+ {
30955
+ "$ref": "#/components/schemas/ConversationPartMessage"
30956
+ }
30957
+ ]
30958
+ },
30959
+ "ConversationInput": {
30960
+ "type": "object",
30961
+ "properties": {
30962
+ "id": {
30963
+ "type": "string",
30964
+ "minLength": 1,
30965
+ "maxLength": 255,
30966
+ "description": "The unique identifier for the conversation, relative to the source in which it was created."
30967
+ },
30968
+ "metadata": {
30969
+ "$ref": "#/components/schemas/ConversationMetadata"
30970
+ },
30971
+ "subject": {
30972
+ "type": "string",
30973
+ "maxLength": 512,
30974
+ "description": "The subject of the conversation."
30975
+ },
30976
+ "parts": {
30977
+ "type": "array",
30978
+ "items": {
30979
+ "$ref": "#/components/schemas/ConversationPart"
30980
+ }
30981
+ }
30982
+ },
30983
+ "required": [
30984
+ "id",
30985
+ "parts"
30986
+ ]
30987
+ },
30988
+ "AgentsSetupState": {
30989
+ "type": "object",
30990
+ "description": "State and settings of the agent",
30991
+ "properties": {
30992
+ "email": {
30993
+ "type": "string",
30994
+ "description": "The email address of the agent. Emails can be forwarded to it to ingest conversations."
30995
+ },
30996
+ "stats": {
30997
+ "type": "object",
30998
+ "description": "The stats of the agent.",
30999
+ "properties": {
31000
+ "backlogTasks": {
31001
+ "type": "number",
31002
+ "description": "The number of tasks in the backlog."
31003
+ },
31004
+ "startedTasks": {
31005
+ "type": "number",
31006
+ "description": "The number of tasks in progress."
31007
+ },
31008
+ "completedTasks": {
31009
+ "type": "number",
31010
+ "description": "The number of tasks that have been completed."
31011
+ },
31012
+ "canceledTasks": {
31013
+ "type": "number",
31014
+ "description": "The number of tasks that have been canceled."
31015
+ },
31016
+ "conversations": {
31017
+ "type": "number",
31018
+ "description": "The number of conversations the agent has indexed."
31019
+ },
31020
+ "issues": {
31021
+ "type": "number",
31022
+ "description": "The number of issues the agent has indexed."
31023
+ },
31024
+ "issuesClusters": {
31025
+ "type": "number",
31026
+ "description": "The number of issues clusters the agent has indexed."
31027
+ },
31028
+ "sources": {
31029
+ "type": "object",
31030
+ "additionalProperties": {
31031
+ "type": "number",
31032
+ "description": "The number of conversations ingested for the source"
31033
+ }
31034
+ }
31035
+ },
31036
+ "required": [
31037
+ "backlogTasks",
31038
+ "startedTasks",
31039
+ "completedTasks",
31040
+ "canceledTasks",
31041
+ "conversations",
31042
+ "issues",
31043
+ "issuesClusters",
31044
+ "sources"
31045
+ ]
31046
+ },
31047
+ "settings": {
31048
+ "type": "object",
31049
+ "description": "The settings for the agent.",
31050
+ "properties": {},
31051
+ "additionalProperties": false
31052
+ }
31053
+ },
31054
+ "required": [
31055
+ "email",
31056
+ "settings",
31057
+ "stats"
31058
+ ]
31059
+ },
31060
+ "AgentTaskStatus": {
31061
+ "type": "string",
31062
+ "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",
31063
+ "enum": [
31064
+ "backlog",
31065
+ "started",
31066
+ "completed",
31067
+ "canceled"
31068
+ ]
31069
+ },
31070
+ "AgentTask": {
31071
+ "type": "object",
31072
+ "properties": {
31073
+ "object": {
31074
+ "type": "string",
31075
+ "enum": [
31076
+ "agent-task"
31077
+ ]
31078
+ },
31079
+ "id": {
31080
+ "type": "string",
31081
+ "description": "The ID of the agent task"
31082
+ },
31083
+ "title": {
31084
+ "type": "string",
31085
+ "description": "The title of the agent task"
31086
+ },
31087
+ "description": {
31088
+ "type": "string",
31089
+ "description": "The description of the agent task"
31090
+ },
31091
+ "instructions": {
31092
+ "$ref": "#/components/schemas/JSONDocument"
31093
+ },
31094
+ "status": {
31095
+ "$ref": "#/components/schemas/AgentTaskStatus"
31096
+ },
31097
+ "createdAt": {
31098
+ "$ref": "#/components/schemas/Timestamp"
31099
+ },
31100
+ "updatedAt": {
31101
+ "$ref": "#/components/schemas/Timestamp"
31102
+ },
31103
+ "cluster": {
31104
+ "type": "string",
31105
+ "description": "ID of the cluster the agent task is associated with."
31106
+ },
31107
+ "space": {
31108
+ "type": "string",
31109
+ "description": "ID of the space the agent task will act on."
31110
+ },
31111
+ "changeRequest": {
31112
+ "type": "string",
31113
+ "description": "ID of the change request the agent task is associated with."
31114
+ },
31115
+ "urls": {
31116
+ "type": "object",
31117
+ "description": "URLs associated with the agent task",
31118
+ "properties": {
31119
+ "location": {
31120
+ "type": "string",
31121
+ "description": "URL of the agent task in the API",
31122
+ "format": "uri"
31123
+ },
31124
+ "app": {
31125
+ "type": "string",
31126
+ "description": "URL of the agent task in the application",
31127
+ "format": "uri"
31128
+ }
31129
+ },
31130
+ "required": [
31131
+ "app",
31132
+ "location"
31133
+ ]
31134
+ }
31135
+ },
31136
+ "required": [
31137
+ "object",
31138
+ "id",
31139
+ "title",
31140
+ "description",
31141
+ "instructions",
31142
+ "space",
31143
+ "status",
31144
+ "createdAt",
31145
+ "updatedAt",
31146
+ "urls"
31147
+ ]
31148
+ },
30190
31149
  "TranslationTitle": {
30191
31150
  "type": "string",
30192
31151
  "description": "Title of the translation settings",
@@ -30526,21 +31485,6 @@
30526
31485
  "type"
30527
31486
  ]
30528
31487
  },
30529
- {
30530
- "type": "object",
30531
- "properties": {
30532
- "type": {
30533
- "description": "User cannot proceed with the operation due to lack of permissions.",
30534
- "type": "string",
30535
- "enum": [
30536
- "no-permissions"
30537
- ]
30538
- }
30539
- },
30540
- "required": [
30541
- "type"
30542
- ]
30543
- },
30544
31488
  {
30545
31489
  "type": "object",
30546
31490
  "properties": {
@@ -31525,7 +32469,8 @@
31525
32469
  "fallbackURL": {
31526
32470
  "type": "string",
31527
32471
  "format": "uri",
31528
- "description": "A fallback URL that will be used if authentication fails."
32472
+ "description": "A fallback URL that will be used if authentication fails. If not provided, the fallback URL will not be changed. If set to null, the fallback URL will be unset.",
32473
+ "nullable": true
31529
32474
  }
31530
32475
  }
31531
32476
  }
@@ -31758,6 +32703,7 @@
31758
32703
  "type": "string",
31759
32704
  "enum": [
31760
32705
  "user",
32706
+ "assistant",
31761
32707
  "developer"
31762
32708
  ]
31763
32709
  },
@@ -31857,8 +32803,32 @@
31857
32803
  }
31858
32804
  ]
31859
32805
  },
32806
+ "AIMessageContext": {
32807
+ "type": "object",
32808
+ "description": "Context about the current user sending a message.",
32809
+ "properties": {
32810
+ "location": {
32811
+ "type": "object",
32812
+ "properties": {
32813
+ "spaceId": {
32814
+ "type": "string",
32815
+ "description": "ID of the current space."
32816
+ },
32817
+ "pageId": {
32818
+ "type": "string",
32819
+ "description": "ID of the current page."
32820
+ }
32821
+ },
32822
+ "required": [
32823
+ "spaceId",
32824
+ "pageId"
32825
+ ]
32826
+ }
32827
+ }
32828
+ },
31860
32829
  "AIMessageInput": {
31861
32830
  "type": "object",
32831
+ "description": "Input version of an AI message.",
31862
32832
  "properties": {
31863
32833
  "role": {
31864
32834
  "$ref": "#/components/schemas/AIMessageRole"
@@ -31879,6 +32849,9 @@
31879
32849
  "items": {
31880
32850
  "$ref": "#/components/schemas/AIMessageAttachment"
31881
32851
  }
32852
+ },
32853
+ "context": {
32854
+ "$ref": "#/components/schemas/AIMessageContext"
31882
32855
  }
31883
32856
  },
31884
32857
  "required": [
@@ -31968,6 +32941,10 @@
31968
32941
  "response_finish"
31969
32942
  ]
31970
32943
  },
32944
+ "messageId": {
32945
+ "type": "string",
32946
+ "description": "The ID of the message that this event is composing.\n"
32947
+ },
31971
32948
  "responseId": {
31972
32949
  "type": "string",
31973
32950
  "description": "The ID of the response"
@@ -31975,6 +32952,7 @@
31975
32952
  },
31976
32953
  "required": [
31977
32954
  "type",
32955
+ "messageId",
31978
32956
  "responseId"
31979
32957
  ]
31980
32958
  },
@@ -31988,6 +32966,14 @@
31988
32966
  "response_document"
31989
32967
  ]
31990
32968
  },
32969
+ "messageId": {
32970
+ "type": "string",
32971
+ "description": "The ID of the message that this event is composing.\n"
32972
+ },
32973
+ "stepIndex": {
32974
+ "type": "integer",
32975
+ "description": "The index of the step of the message that this event is composing.\n"
32976
+ },
31991
32977
  "operation": {
31992
32978
  "type": "string",
31993
32979
  "enum": [
@@ -31998,12 +32984,14 @@
31998
32984
  "blocks": {
31999
32985
  "type": "array",
32000
32986
  "items": {
32001
- "$ref": "#/components/schemas/DocumentBlock"
32987
+ "$ref": "#/components/schemas/DocumentBlocksTopLevels"
32002
32988
  }
32003
32989
  }
32004
32990
  },
32005
32991
  "required": [
32006
32992
  "type",
32993
+ "messageId",
32994
+ "stepIndex",
32007
32995
  "operation",
32008
32996
  "blocks"
32009
32997
  ]
@@ -32018,6 +33006,10 @@
32018
33006
  "response_object"
32019
33007
  ]
32020
33008
  },
33009
+ "messageId": {
33010
+ "type": "string",
33011
+ "description": "The ID of the message that this event is composing.\n"
33012
+ },
32021
33013
  "jsonChunk": {
32022
33014
  "type": "string",
32023
33015
  "description": "The chunk of the JSON object response"
@@ -32025,6 +33017,7 @@
32025
33017
  },
32026
33018
  "required": [
32027
33019
  "type",
33020
+ "messageId",
32028
33021
  "jsonChunk"
32029
33022
  ]
32030
33023
  },
@@ -32128,6 +33121,226 @@
32128
33121
  "results"
32129
33122
  ]
32130
33123
  },
33124
+ "AIToolCallEditPage": {
33125
+ "type": "object",
33126
+ "properties": {
33127
+ "tool": {
33128
+ "type": "string",
33129
+ "enum": [
33130
+ "editPage"
33131
+ ]
33132
+ },
33133
+ "spaceId": {
33134
+ "type": "string",
33135
+ "description": "The ID of the space being edited."
33136
+ },
33137
+ "page": {
33138
+ "$ref": "#/components/schemas/ChangedRevisionPage"
33139
+ }
33140
+ },
33141
+ "required": [
33142
+ "tool",
33143
+ "spaceId",
33144
+ "page"
33145
+ ]
33146
+ },
33147
+ "AIToolCallCreatePage": {
33148
+ "type": "object",
33149
+ "properties": {
33150
+ "tool": {
33151
+ "type": "string",
33152
+ "enum": [
33153
+ "createPage"
33154
+ ]
33155
+ },
33156
+ "spaceId": {
33157
+ "type": "string",
33158
+ "description": "The ID of the space being edited."
33159
+ },
33160
+ "page": {
33161
+ "$ref": "#/components/schemas/ChangedRevisionPage"
33162
+ }
33163
+ },
33164
+ "required": [
33165
+ "tool",
33166
+ "spaceId",
33167
+ "page"
33168
+ ]
33169
+ },
33170
+ "AIToolCallDeletePage": {
33171
+ "type": "object",
33172
+ "properties": {
33173
+ "tool": {
33174
+ "type": "string",
33175
+ "enum": [
33176
+ "deletePage"
33177
+ ]
33178
+ },
33179
+ "spaceId": {
33180
+ "type": "string",
33181
+ "description": "The ID of the space being edited."
33182
+ },
33183
+ "page": {
33184
+ "$ref": "#/components/schemas/ChangedRevisionPage"
33185
+ }
33186
+ },
33187
+ "required": [
33188
+ "tool",
33189
+ "spaceId",
33190
+ "page"
33191
+ ]
33192
+ },
33193
+ "AIToolCallRenamePage": {
33194
+ "type": "object",
33195
+ "properties": {
33196
+ "tool": {
33197
+ "type": "string",
33198
+ "enum": [
33199
+ "renamePage"
33200
+ ]
33201
+ },
33202
+ "spaceId": {
33203
+ "type": "string",
33204
+ "description": "The ID of the space being edited."
33205
+ },
33206
+ "page": {
33207
+ "$ref": "#/components/schemas/ChangedRevisionPage"
33208
+ },
33209
+ "title": {
33210
+ "type": "string",
33211
+ "description": "The new title of the page."
33212
+ }
33213
+ },
33214
+ "required": [
33215
+ "tool",
33216
+ "spaceId",
33217
+ "page",
33218
+ "title"
33219
+ ]
33220
+ },
33221
+ "AIToolCallMovePage": {
33222
+ "type": "object",
33223
+ "properties": {
33224
+ "tool": {
33225
+ "type": "string",
33226
+ "enum": [
33227
+ "movePage"
33228
+ ]
33229
+ },
33230
+ "spaceId": {
33231
+ "type": "string",
33232
+ "description": "The ID of the space being edited."
33233
+ },
33234
+ "page": {
33235
+ "$ref": "#/components/schemas/ChangedRevisionPage"
33236
+ },
33237
+ "to": {
33238
+ "$ref": "#/components/schemas/ChangedRevisionPage"
33239
+ },
33240
+ "moveType": {
33241
+ "type": "string",
33242
+ "description": "Indicates how the page was moved relative to the \"to\" page.\n- `within`: moved as the last child of the target page (or to the root when `to` is omitted)\n- `before`: moved directly before the target page\n- `after`: moved directly after the target page\n",
33243
+ "enum": [
33244
+ "within",
33245
+ "before",
33246
+ "after"
33247
+ ]
33248
+ }
33249
+ },
33250
+ "required": [
33251
+ "tool",
33252
+ "spaceId",
33253
+ "page",
33254
+ "moveType"
33255
+ ]
33256
+ },
33257
+ "AIToolCallListModifiedPages": {
33258
+ "type": "object",
33259
+ "properties": {
33260
+ "tool": {
33261
+ "type": "string",
33262
+ "enum": [
33263
+ "listModifiedPages"
33264
+ ]
33265
+ },
33266
+ "spaceId": {
33267
+ "type": "string",
33268
+ "description": "The ID of the space being accessed."
33269
+ }
33270
+ },
33271
+ "required": [
33272
+ "tool",
33273
+ "spaceId"
33274
+ ]
33275
+ },
33276
+ "AIToolCallGetPageDiff": {
33277
+ "type": "object",
33278
+ "properties": {
33279
+ "tool": {
33280
+ "type": "string",
33281
+ "enum": [
33282
+ "getPageDiff"
33283
+ ]
33284
+ },
33285
+ "spaceId": {
33286
+ "type": "string",
33287
+ "description": "The ID of the space being accessed."
33288
+ },
33289
+ "page": {
33290
+ "$ref": "#/components/schemas/ChangedRevisionPage"
33291
+ }
33292
+ },
33293
+ "required": [
33294
+ "tool",
33295
+ "spaceId",
33296
+ "page"
33297
+ ]
33298
+ },
33299
+ "AIToolCallCreateAgentTask": {
33300
+ "type": "object",
33301
+ "properties": {
33302
+ "tool": {
33303
+ "type": "string",
33304
+ "enum": [
33305
+ "createAgentTask"
33306
+ ]
33307
+ },
33308
+ "spaceId": {
33309
+ "type": "string",
33310
+ "description": "The ID of the space the task belongs to."
33311
+ },
33312
+ "action": {
33313
+ "type": "string",
33314
+ "enum": [
33315
+ "create",
33316
+ "update"
33317
+ ]
33318
+ },
33319
+ "task": {
33320
+ "type": "object",
33321
+ "properties": {
33322
+ "id": {
33323
+ "type": "string",
33324
+ "description": "The unique identifier of the task."
33325
+ },
33326
+ "title": {
33327
+ "type": "string",
33328
+ "description": "The title of the task."
33329
+ }
33330
+ },
33331
+ "required": [
33332
+ "id",
33333
+ "title"
33334
+ ]
33335
+ }
33336
+ },
33337
+ "required": [
33338
+ "tool",
33339
+ "spaceId",
33340
+ "action",
33341
+ "task"
33342
+ ]
33343
+ },
32131
33344
  "AIToolCall": {
32132
33345
  "oneOf": [
32133
33346
  {
@@ -32138,6 +33351,30 @@
32138
33351
  },
32139
33352
  {
32140
33353
  "$ref": "#/components/schemas/AIToolCallSearch"
33354
+ },
33355
+ {
33356
+ "$ref": "#/components/schemas/AIToolCallEditPage"
33357
+ },
33358
+ {
33359
+ "$ref": "#/components/schemas/AIToolCallCreatePage"
33360
+ },
33361
+ {
33362
+ "$ref": "#/components/schemas/AIToolCallDeletePage"
33363
+ },
33364
+ {
33365
+ "$ref": "#/components/schemas/AIToolCallRenamePage"
33366
+ },
33367
+ {
33368
+ "$ref": "#/components/schemas/AIToolCallMovePage"
33369
+ },
33370
+ {
33371
+ "$ref": "#/components/schemas/AIToolCallListModifiedPages"
33372
+ },
33373
+ {
33374
+ "$ref": "#/components/schemas/AIToolCallGetPageDiff"
33375
+ },
33376
+ {
33377
+ "$ref": "#/components/schemas/AIToolCallCreateAgentTask"
32141
33378
  }
32142
33379
  ]
32143
33380
  },
@@ -32151,12 +33388,22 @@
32151
33388
  "response_tool_call"
32152
33389
  ]
32153
33390
  },
33391
+ "messageId": {
33392
+ "type": "string",
33393
+ "description": "The ID of the message that this event is composing.\n"
33394
+ },
33395
+ "stepIndex": {
33396
+ "type": "integer",
33397
+ "description": "The index of the step of the message that this event is composing.\n"
33398
+ },
32154
33399
  "toolCall": {
32155
33400
  "$ref": "#/components/schemas/AIToolCall"
32156
33401
  }
32157
33402
  },
32158
33403
  "required": [
32159
33404
  "type",
33405
+ "messageId",
33406
+ "stepIndex",
32160
33407
  "toolCall"
32161
33408
  ]
32162
33409
  },
@@ -37455,6 +38702,51 @@
37455
38702
  "translation"
37456
38703
  ]
37457
38704
  },
38705
+ "AgentTaskChannel": {
38706
+ "type": "object",
38707
+ "description": "Subscription channel for an agent task.",
38708
+ "properties": {
38709
+ "channel": {
38710
+ "type": "string",
38711
+ "enum": [
38712
+ "agent-task"
38713
+ ]
38714
+ },
38715
+ "organization": {
38716
+ "type": "string",
38717
+ "description": "The ID of the organization."
38718
+ },
38719
+ "agentTask": {
38720
+ "type": "string",
38721
+ "description": "The ID of the agent task."
38722
+ }
38723
+ },
38724
+ "required": [
38725
+ "channel",
38726
+ "organization",
38727
+ "agentTask"
38728
+ ]
38729
+ },
38730
+ "AgentTasksChannel": {
38731
+ "type": "object",
38732
+ "description": "Subscription channel for agent tasks.",
38733
+ "properties": {
38734
+ "channel": {
38735
+ "type": "string",
38736
+ "enum": [
38737
+ "agent-tasks"
38738
+ ]
38739
+ },
38740
+ "organization": {
38741
+ "type": "string",
38742
+ "description": "The ID of the organization."
38743
+ }
38744
+ },
38745
+ "required": [
38746
+ "channel",
38747
+ "organization"
38748
+ ]
38749
+ },
37458
38750
  "SubscriptionChannel": {
37459
38751
  "description": "Channel to subscribe to for realtime updates.",
37460
38752
  "oneOf": [
@@ -37655,6 +38947,12 @@
37655
38947
  },
37656
38948
  {
37657
38949
  "$ref": "#/components/schemas/TranslationSettingsChannel"
38950
+ },
38951
+ {
38952
+ "$ref": "#/components/schemas/AgentTaskChannel"
38953
+ },
38954
+ {
38955
+ "$ref": "#/components/schemas/AgentTasksChannel"
37658
38956
  }
37659
38957
  ],
37660
38958
  "discriminator": {
@@ -38089,6 +39387,199 @@
38089
39387
  "updatedAt"
38090
39388
  ]
38091
39389
  },
39390
+ "AIMessageStep": {
39391
+ "type": "object",
39392
+ "description": "A step in a message from the AI agent.",
39393
+ "properties": {
39394
+ "content": {
39395
+ "$ref": "#/components/schemas/JSONDocument"
39396
+ },
39397
+ "toolCalls": {
39398
+ "type": "array",
39399
+ "items": {
39400
+ "$ref": "#/components/schemas/AIToolCall"
39401
+ }
39402
+ }
39403
+ },
39404
+ "required": [
39405
+ "content"
39406
+ ]
39407
+ },
39408
+ "AIMessage": {
39409
+ "type": "object",
39410
+ "properties": {
39411
+ "id": {
39412
+ "type": "string"
39413
+ },
39414
+ "role": {
39415
+ "$ref": "#/components/schemas/AIMessageRole"
39416
+ },
39417
+ "steps": {
39418
+ "type": "array",
39419
+ "items": {
39420
+ "$ref": "#/components/schemas/AIMessageStep"
39421
+ }
39422
+ }
39423
+ },
39424
+ "required": [
39425
+ "id",
39426
+ "role",
39427
+ "steps"
39428
+ ]
39429
+ },
39430
+ "AgentRequestReset": {
39431
+ "type": "object",
39432
+ "description": "Request to reset the chat.\n",
39433
+ "properties": {
39434
+ "type": {
39435
+ "type": "string",
39436
+ "enum": [
39437
+ "reset"
39438
+ ]
39439
+ }
39440
+ },
39441
+ "required": [
39442
+ "type"
39443
+ ]
39444
+ },
39445
+ "AgentRequestPostMessage": {
39446
+ "type": "object",
39447
+ "description": "Request to post a message to the agent.\n",
39448
+ "properties": {
39449
+ "type": {
39450
+ "type": "string",
39451
+ "enum": [
39452
+ "post_message"
39453
+ ]
39454
+ },
39455
+ "message": {
39456
+ "$ref": "#/components/schemas/AIMessageInput"
39457
+ }
39458
+ },
39459
+ "required": [
39460
+ "type",
39461
+ "message"
39462
+ ]
39463
+ },
39464
+ "AgentRequest": {
39465
+ "description": "Payload to send to the agent.\n",
39466
+ "oneOf": [
39467
+ {
39468
+ "$ref": "#/components/schemas/AgentRequestReset"
39469
+ },
39470
+ {
39471
+ "$ref": "#/components/schemas/AgentRequestPostMessage"
39472
+ }
39473
+ ]
39474
+ },
39475
+ "AgentStreamMessages": {
39476
+ "type": "object",
39477
+ "description": "Payload emitted by the agent to reset the messages.\n",
39478
+ "properties": {
39479
+ "type": {
39480
+ "type": "string",
39481
+ "enum": [
39482
+ "messages"
39483
+ ]
39484
+ },
39485
+ "operation": {
39486
+ "type": "string",
39487
+ "enum": [
39488
+ "append",
39489
+ "replace"
39490
+ ]
39491
+ },
39492
+ "messages": {
39493
+ "type": "array",
39494
+ "items": {
39495
+ "$ref": "#/components/schemas/AIMessage"
39496
+ }
39497
+ }
39498
+ },
39499
+ "required": [
39500
+ "type",
39501
+ "operation",
39502
+ "messages"
39503
+ ]
39504
+ },
39505
+ "AgentStreamMessageResponse": {
39506
+ "type": "object",
39507
+ "description": "Payload emitted by the agent with a partial message.\n",
39508
+ "properties": {
39509
+ "type": {
39510
+ "type": "string",
39511
+ "enum": [
39512
+ "message_response"
39513
+ ]
39514
+ },
39515
+ "response": {
39516
+ "$ref": "#/components/schemas/AIStreamResponse"
39517
+ }
39518
+ },
39519
+ "required": [
39520
+ "type",
39521
+ "response"
39522
+ ]
39523
+ },
39524
+ "AgentStatus": {
39525
+ "type": "string",
39526
+ "enum": [
39527
+ "idle",
39528
+ "processing",
39529
+ "errored"
39530
+ ]
39531
+ },
39532
+ "AgentState": {
39533
+ "type": "object",
39534
+ "properties": {
39535
+ "status": {
39536
+ "$ref": "#/components/schemas/AgentStatus"
39537
+ },
39538
+ "suggestions": {
39539
+ "type": "array",
39540
+ "description": "A list of response suggestions for the user to select from.",
39541
+ "items": {
39542
+ "type": "string"
39543
+ }
39544
+ }
39545
+ },
39546
+ "required": [
39547
+ "status",
39548
+ "suggestions"
39549
+ ]
39550
+ },
39551
+ "AgentStreamState": {
39552
+ "type": "object",
39553
+ "description": "Payload emitted by the agent with its current state.\n",
39554
+ "properties": {
39555
+ "type": {
39556
+ "type": "string",
39557
+ "enum": [
39558
+ "state"
39559
+ ]
39560
+ },
39561
+ "state": {
39562
+ "$ref": "#/components/schemas/AgentState"
39563
+ }
39564
+ },
39565
+ "required": [
39566
+ "type",
39567
+ "state"
39568
+ ]
39569
+ },
39570
+ "AgentStream": {
39571
+ "oneOf": [
39572
+ {
39573
+ "$ref": "#/components/schemas/AgentStreamMessages"
39574
+ },
39575
+ {
39576
+ "$ref": "#/components/schemas/AgentStreamMessageResponse"
39577
+ },
39578
+ {
39579
+ "$ref": "#/components/schemas/AgentStreamState"
39580
+ }
39581
+ ]
39582
+ },
38092
39583
  "RequestSpaceTrackPageView": {
38093
39584
  "$ref": "#/components/schemas/SpaceTrackPageView"
38094
39585
  },
@@ -38125,9 +39616,6 @@
38125
39616
  "RequestCreateSpace": {
38126
39617
  "$ref": "#/components/schemas/CreateSpace"
38127
39618
  },
38128
- "RequestCreateChangeRequest": {
38129
- "$ref": "#/components/schemas/CreateChangeRequest"
38130
- },
38131
39619
  "RequestRenderIntegrationUI": {
38132
39620
  "$ref": "#/components/schemas/RenderIntegrationUI"
38133
39621
  },