@gitbook/api 0.115.0 → 0.116.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
@@ -500,6 +500,63 @@
500
500
  "$ref": "#/components/responses/NotFoundError"
501
501
  }
502
502
  }
503
+ },
504
+ "patch": {
505
+ "operationId": "updateUserById",
506
+ "summary": "Update a user by its ID",
507
+ "tags": [
508
+ "users",
509
+ "critical"
510
+ ],
511
+ "security": [
512
+ {
513
+ "user": []
514
+ }
515
+ ],
516
+ "description": "Update a GitBook account's details.\n",
517
+ "parameters": [
518
+ {
519
+ "$ref": "#/components/parameters/userId"
520
+ }
521
+ ],
522
+ "requestBody": {
523
+ "required": true,
524
+ "content": {
525
+ "application/json": {
526
+ "schema": {
527
+ "type": "object",
528
+ "minProperties": 1,
529
+ "properties": {
530
+ "displayName": {
531
+ "type": "string",
532
+ "description": "Full name for the user",
533
+ "minLength": 1,
534
+ "maxLength": 64
535
+ },
536
+ "photoURL": {
537
+ "$ref": "#/components/schemas/URL"
538
+ }
539
+ }
540
+ }
541
+ }
542
+ }
543
+ },
544
+ "responses": {
545
+ "200": {
546
+ "description": "The user has been updated",
547
+ "content": {
548
+ "application/json": {
549
+ "schema": {
550
+ "$ref": "#/components/schemas/User"
551
+ }
552
+ }
553
+ }
554
+ },
555
+ "404": {
556
+ "description": "User not found",
557
+ "$ref": "#/components/responses/NotFoundError"
558
+ }
559
+ }
503
560
  }
504
561
  },
505
562
  "/spaces/{spaceId}": {
@@ -2865,6 +2922,9 @@
2865
2922
  },
2866
2923
  {
2867
2924
  "$ref": "#/components/parameters/targetPage"
2925
+ },
2926
+ {
2927
+ "$ref": "#/components/parameters/authors"
2868
2928
  }
2869
2929
  ],
2870
2930
  "responses": {
@@ -4462,6 +4522,9 @@
4462
4522
  },
4463
4523
  {
4464
4524
  "$ref": "#/components/parameters/targetPage"
4525
+ },
4526
+ {
4527
+ "$ref": "#/components/parameters/authors"
4465
4528
  }
4466
4529
  ],
4467
4530
  "responses": {
@@ -4855,6 +4918,123 @@
4855
4918
  }
4856
4919
  }
4857
4920
  },
4921
+ "/spaces/{spaceId}/commenters": {
4922
+ "get": {
4923
+ "operationId": "listCommentersInSpace",
4924
+ "summary": "List all users who commented in a space",
4925
+ "tags": [
4926
+ "space-comments",
4927
+ "critical"
4928
+ ],
4929
+ "security": [
4930
+ {
4931
+ "user": []
4932
+ }
4933
+ ],
4934
+ "parameters": [
4935
+ {
4936
+ "$ref": "#/components/parameters/spaceId"
4937
+ },
4938
+ {
4939
+ "$ref": "#/components/parameters/listPage"
4940
+ },
4941
+ {
4942
+ "$ref": "#/components/parameters/listLimit"
4943
+ }
4944
+ ],
4945
+ "responses": {
4946
+ "200": {
4947
+ "description": "OK",
4948
+ "content": {
4949
+ "application/json": {
4950
+ "schema": {
4951
+ "allOf": [
4952
+ {
4953
+ "$ref": "#/components/schemas/List"
4954
+ },
4955
+ {
4956
+ "type": "object",
4957
+ "required": [
4958
+ "items",
4959
+ "total"
4960
+ ],
4961
+ "properties": {
4962
+ "items": {
4963
+ "type": "array",
4964
+ "items": {
4965
+ "$ref": "#/components/schemas/OrganizationMember"
4966
+ }
4967
+ }
4968
+ }
4969
+ }
4970
+ ]
4971
+ }
4972
+ }
4973
+ }
4974
+ }
4975
+ }
4976
+ }
4977
+ },
4978
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/commenters": {
4979
+ "get": {
4980
+ "operationId": "listCommentersInChangeRequest",
4981
+ "summary": "List all users who commented in a CR",
4982
+ "tags": [
4983
+ "change-request-comments",
4984
+ "critical"
4985
+ ],
4986
+ "security": [
4987
+ {
4988
+ "user": []
4989
+ }
4990
+ ],
4991
+ "parameters": [
4992
+ {
4993
+ "$ref": "#/components/parameters/spaceId"
4994
+ },
4995
+ {
4996
+ "$ref": "#/components/parameters/changeRequestId"
4997
+ },
4998
+ {
4999
+ "$ref": "#/components/parameters/listPage"
5000
+ },
5001
+ {
5002
+ "$ref": "#/components/parameters/listLimit"
5003
+ }
5004
+ ],
5005
+ "responses": {
5006
+ "200": {
5007
+ "description": "OK",
5008
+ "content": {
5009
+ "application/json": {
5010
+ "schema": {
5011
+ "allOf": [
5012
+ {
5013
+ "$ref": "#/components/schemas/List"
5014
+ },
5015
+ {
5016
+ "type": "object",
5017
+ "required": [
5018
+ "items",
5019
+ "total"
5020
+ ],
5021
+ "properties": {
5022
+ "items": {
5023
+ "type": "array",
5024
+ "items": {
5025
+ "$ref": "#/components/schemas/OrganizationMember"
5026
+ }
5027
+ }
5028
+ }
5029
+ }
5030
+ ]
5031
+ }
5032
+ }
5033
+ }
5034
+ }
5035
+ }
5036
+ }
5037
+ },
4858
5038
  "/spaces/{spaceId}/permissions/aggregate": {
4859
5039
  "get": {
4860
5040
  "operationId": "listPermissionsAggregateInSpace",
@@ -14203,6 +14383,10 @@
14203
14383
  "type": "string",
14204
14384
  "description": "The ID of the previous response to continue from"
14205
14385
  },
14386
+ "instructions": {
14387
+ "type": "string",
14388
+ "description": "Instructions for the AI"
14389
+ },
14206
14390
  "input": {
14207
14391
  "type": "array",
14208
14392
  "items": {
@@ -15491,6 +15675,18 @@
15491
15675
  "type": "string"
15492
15676
  }
15493
15677
  },
15678
+ "authors": {
15679
+ "name": "authors",
15680
+ "in": "query",
15681
+ "description": "User IDs to filter queried comments on",
15682
+ "required": false,
15683
+ "schema": {
15684
+ "type": "array",
15685
+ "items": {
15686
+ "type": "string"
15687
+ }
15688
+ }
15689
+ },
15494
15690
  "commentId": {
15495
15691
  "name": "commentId",
15496
15692
  "in": "path",
@@ -15958,6 +16154,11 @@
15958
16154
  }
15959
16155
  ]
15960
16156
  },
16157
+ "URL": {
16158
+ "type": "string",
16159
+ "format": "uri",
16160
+ "maxLength": 2048
16161
+ },
15961
16162
  "SpaceTitle": {
15962
16163
  "type": "string",
15963
16164
  "description": "Title of the space",
@@ -15990,11 +16191,6 @@
15990
16191
  "locked"
15991
16192
  ]
15992
16193
  },
15993
- "URL": {
15994
- "type": "string",
15995
- "format": "uri",
15996
- "maxLength": 2048
15997
- },
15998
16194
  "GitSyncProvider": {
15999
16195
  "type": "string",
16000
16196
  "description": "The provider of the Git Sync installation.",
@@ -20205,6 +20401,94 @@
20205
20401
  "nodes"
20206
20402
  ]
20207
20403
  },
20404
+ "DocumentBlockColumn": {
20405
+ "type": "object",
20406
+ "properties": {
20407
+ "object": {
20408
+ "type": "string",
20409
+ "enum": [
20410
+ "block"
20411
+ ]
20412
+ },
20413
+ "type": {
20414
+ "type": "string",
20415
+ "enum": [
20416
+ "column"
20417
+ ]
20418
+ },
20419
+ "key": {
20420
+ "type": "string"
20421
+ },
20422
+ "nodes": {
20423
+ "type": "array",
20424
+ "items": {
20425
+ "oneOf": [
20426
+ {
20427
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
20428
+ }
20429
+ ]
20430
+ }
20431
+ },
20432
+ "isVoid": {
20433
+ "type": "boolean",
20434
+ "enum": [
20435
+ false
20436
+ ]
20437
+ }
20438
+ },
20439
+ "required": [
20440
+ "object",
20441
+ "type",
20442
+ "nodes"
20443
+ ]
20444
+ },
20445
+ "DocumentBlockColumns": {
20446
+ "type": "object",
20447
+ "properties": {
20448
+ "object": {
20449
+ "type": "string",
20450
+ "enum": [
20451
+ "block"
20452
+ ]
20453
+ },
20454
+ "type": {
20455
+ "type": "string",
20456
+ "enum": [
20457
+ "columns"
20458
+ ]
20459
+ },
20460
+ "key": {
20461
+ "type": "string"
20462
+ },
20463
+ "data": {
20464
+ "type": "object",
20465
+ "properties": {
20466
+ "fullWidth": {
20467
+ "type": "boolean"
20468
+ }
20469
+ }
20470
+ },
20471
+ "nodes": {
20472
+ "type": "array",
20473
+ "items": {
20474
+ "$ref": "#/components/schemas/DocumentBlockColumn"
20475
+ }
20476
+ },
20477
+ "isVoid": {
20478
+ "type": "boolean",
20479
+ "enum": [
20480
+ false
20481
+ ]
20482
+ }
20483
+ },
20484
+ "required": [
20485
+ "object",
20486
+ "type",
20487
+ "data",
20488
+ "nodes",
20489
+ "isVoid"
20490
+ ]
20491
+ },
20208
20492
  "DocumentBlock": {
20209
20493
  "oneOf": [
20210
20494
  {
@@ -20296,6 +20580,12 @@
20296
20580
  },
20297
20581
  {
20298
20582
  "$ref": "#/components/schemas/DocumentBlockStepperStep"
20583
+ },
20584
+ {
20585
+ "$ref": "#/components/schemas/DocumentBlockColumns"
20586
+ },
20587
+ {
20588
+ "$ref": "#/components/schemas/DocumentBlockColumn"
20299
20589
  }
20300
20590
  ]
20301
20591
  },
@@ -23441,34 +23731,6 @@
23441
23731
  "user"
23442
23732
  ]
23443
23733
  },
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
23734
  "RevisionPageType": {
23473
23735
  "type": "string",
23474
23736
  "enum": [
@@ -23500,324 +23762,6 @@
23500
23762
  "title"
23501
23763
  ]
23502
23764
  },
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
23765
  "RevisionSemanticChangePageCreated": {
23822
23766
  "type": "object",
23823
23767
  "properties": {
@@ -24422,6 +24366,61 @@
24422
24366
  }
24423
24367
  }
24424
24368
  },
24369
+ "OrganizationMember": {
24370
+ "type": "object",
24371
+ "properties": {
24372
+ "object": {
24373
+ "type": "string",
24374
+ "description": "Type of Object, always equals to \"member\"",
24375
+ "enum": [
24376
+ "member"
24377
+ ]
24378
+ },
24379
+ "id": {
24380
+ "type": "string",
24381
+ "description": "Unique identifier for the user."
24382
+ },
24383
+ "role": {
24384
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
24385
+ },
24386
+ "user": {
24387
+ "$ref": "#/components/schemas/User"
24388
+ },
24389
+ "disabled": {
24390
+ "type": "boolean",
24391
+ "description": "Whatever the membership of this user is disabled and prevent them from accessing content."
24392
+ },
24393
+ "joinedAt": {
24394
+ "description": "Date at which the user joined the organization.",
24395
+ "$ref": "#/components/schemas/Timestamp"
24396
+ },
24397
+ "lastSeenAt": {
24398
+ "description": "Date at which the user was last seen active in the organization.",
24399
+ "$ref": "#/components/schemas/Timestamp"
24400
+ },
24401
+ "sso": {
24402
+ "type": "boolean",
24403
+ "description": "Whether the user can login with SSO."
24404
+ },
24405
+ "spaces": {
24406
+ "type": "number"
24407
+ },
24408
+ "teams": {
24409
+ "type": "number"
24410
+ }
24411
+ },
24412
+ "required": [
24413
+ "object",
24414
+ "id",
24415
+ "role",
24416
+ "user",
24417
+ "disabled",
24418
+ "joinedAt",
24419
+ "sso",
24420
+ "spaces",
24421
+ "teams"
24422
+ ]
24423
+ },
24425
24424
  "IntegrationTitle": {
24426
24425
  "type": "string",
24427
24426
  "description": "Title of the integration",
@@ -28798,61 +28797,6 @@
28798
28797
  "deletedSpaces"
28799
28798
  ]
28800
28799
  },
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
28800
  "MemberContentPermission": {
28857
28801
  "type": "object",
28858
28802
  "description": "Permission of a member in a content.",
@@ -29636,6 +29580,14 @@
29636
29580
  "type": "string",
29637
29581
  "maxLength": 10000
29638
29582
  },
29583
+ "SAMLProviderStatus": {
29584
+ "type": "string",
29585
+ "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",
29586
+ "enum": [
29587
+ "active",
29588
+ "pending"
29589
+ ]
29590
+ },
29639
29591
  "OrganizationSAMLProvider": {
29640
29592
  "type": "object",
29641
29593
  "properties": {
@@ -29672,6 +29624,9 @@
29672
29624
  "description": "Date at which the provider was created.",
29673
29625
  "$ref": "#/components/schemas/Timestamp"
29674
29626
  },
29627
+ "status": {
29628
+ "$ref": "#/components/schemas/SAMLProviderStatus"
29629
+ },
29675
29630
  "service": {
29676
29631
  "description": "Metadata about the service provider.",
29677
29632
  "properties": {
@@ -29719,6 +29674,7 @@
29719
29674
  "certificate",
29720
29675
  "defaultRole",
29721
29676
  "createdAt",
29677
+ "status",
29722
29678
  "service",
29723
29679
  "urls"
29724
29680
  ]
@@ -30526,21 +30482,6 @@
30526
30482
  "type"
30527
30483
  ]
30528
30484
  },
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
30485
  {
30545
30486
  "type": "object",
30546
30487
  "properties": {
@@ -31525,7 +31466,8 @@
31525
31466
  "fallbackURL": {
31526
31467
  "type": "string",
31527
31468
  "format": "uri",
31528
- "description": "A fallback URL that will be used if authentication fails."
31469
+ "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.",
31470
+ "nullable": true
31529
31471
  }
31530
31472
  }
31531
31473
  }
@@ -31758,6 +31700,7 @@
31758
31700
  "type": "string",
31759
31701
  "enum": [
31760
31702
  "user",
31703
+ "assistant",
31761
31704
  "developer"
31762
31705
  ]
31763
31706
  },
@@ -31857,8 +31800,32 @@
31857
31800
  }
31858
31801
  ]
31859
31802
  },
31803
+ "AIMessageContext": {
31804
+ "type": "object",
31805
+ "description": "Context about the current user sending a message.",
31806
+ "properties": {
31807
+ "location": {
31808
+ "type": "object",
31809
+ "properties": {
31810
+ "spaceId": {
31811
+ "type": "string",
31812
+ "description": "ID of the current space."
31813
+ },
31814
+ "pageId": {
31815
+ "type": "string",
31816
+ "description": "ID of the current page."
31817
+ }
31818
+ },
31819
+ "required": [
31820
+ "spaceId",
31821
+ "pageId"
31822
+ ]
31823
+ }
31824
+ }
31825
+ },
31860
31826
  "AIMessageInput": {
31861
31827
  "type": "object",
31828
+ "description": "Input version of an AI message.",
31862
31829
  "properties": {
31863
31830
  "role": {
31864
31831
  "$ref": "#/components/schemas/AIMessageRole"
@@ -31879,6 +31846,9 @@
31879
31846
  "items": {
31880
31847
  "$ref": "#/components/schemas/AIMessageAttachment"
31881
31848
  }
31849
+ },
31850
+ "context": {
31851
+ "$ref": "#/components/schemas/AIMessageContext"
31882
31852
  }
31883
31853
  },
31884
31854
  "required": [
@@ -31968,6 +31938,10 @@
31968
31938
  "response_finish"
31969
31939
  ]
31970
31940
  },
31941
+ "messageId": {
31942
+ "type": "string",
31943
+ "description": "The ID of the message that this event is composing.\n"
31944
+ },
31971
31945
  "responseId": {
31972
31946
  "type": "string",
31973
31947
  "description": "The ID of the response"
@@ -31975,6 +31949,7 @@
31975
31949
  },
31976
31950
  "required": [
31977
31951
  "type",
31952
+ "messageId",
31978
31953
  "responseId"
31979
31954
  ]
31980
31955
  },
@@ -31988,6 +31963,14 @@
31988
31963
  "response_document"
31989
31964
  ]
31990
31965
  },
31966
+ "messageId": {
31967
+ "type": "string",
31968
+ "description": "The ID of the message that this event is composing.\n"
31969
+ },
31970
+ "stepIndex": {
31971
+ "type": "integer",
31972
+ "description": "The index of the step of the message that this event is composing.\n"
31973
+ },
31991
31974
  "operation": {
31992
31975
  "type": "string",
31993
31976
  "enum": [
@@ -31998,12 +31981,14 @@
31998
31981
  "blocks": {
31999
31982
  "type": "array",
32000
31983
  "items": {
32001
- "$ref": "#/components/schemas/DocumentBlock"
31984
+ "$ref": "#/components/schemas/DocumentBlocksTopLevels"
32002
31985
  }
32003
31986
  }
32004
31987
  },
32005
31988
  "required": [
32006
31989
  "type",
31990
+ "messageId",
31991
+ "stepIndex",
32007
31992
  "operation",
32008
31993
  "blocks"
32009
31994
  ]
@@ -32018,6 +32003,10 @@
32018
32003
  "response_object"
32019
32004
  ]
32020
32005
  },
32006
+ "messageId": {
32007
+ "type": "string",
32008
+ "description": "The ID of the message that this event is composing.\n"
32009
+ },
32021
32010
  "jsonChunk": {
32022
32011
  "type": "string",
32023
32012
  "description": "The chunk of the JSON object response"
@@ -32025,6 +32014,7 @@
32025
32014
  },
32026
32015
  "required": [
32027
32016
  "type",
32017
+ "messageId",
32028
32018
  "jsonChunk"
32029
32019
  ]
32030
32020
  },
@@ -32128,6 +32118,226 @@
32128
32118
  "results"
32129
32119
  ]
32130
32120
  },
32121
+ "AIToolCallEditPage": {
32122
+ "type": "object",
32123
+ "properties": {
32124
+ "tool": {
32125
+ "type": "string",
32126
+ "enum": [
32127
+ "editPage"
32128
+ ]
32129
+ },
32130
+ "spaceId": {
32131
+ "type": "string",
32132
+ "description": "The ID of the space being edited."
32133
+ },
32134
+ "page": {
32135
+ "$ref": "#/components/schemas/ChangedRevisionPage"
32136
+ }
32137
+ },
32138
+ "required": [
32139
+ "tool",
32140
+ "spaceId",
32141
+ "page"
32142
+ ]
32143
+ },
32144
+ "AIToolCallCreatePage": {
32145
+ "type": "object",
32146
+ "properties": {
32147
+ "tool": {
32148
+ "type": "string",
32149
+ "enum": [
32150
+ "createPage"
32151
+ ]
32152
+ },
32153
+ "spaceId": {
32154
+ "type": "string",
32155
+ "description": "The ID of the space being edited."
32156
+ },
32157
+ "page": {
32158
+ "$ref": "#/components/schemas/ChangedRevisionPage"
32159
+ }
32160
+ },
32161
+ "required": [
32162
+ "tool",
32163
+ "spaceId",
32164
+ "page"
32165
+ ]
32166
+ },
32167
+ "AIToolCallDeletePage": {
32168
+ "type": "object",
32169
+ "properties": {
32170
+ "tool": {
32171
+ "type": "string",
32172
+ "enum": [
32173
+ "deletePage"
32174
+ ]
32175
+ },
32176
+ "spaceId": {
32177
+ "type": "string",
32178
+ "description": "The ID of the space being edited."
32179
+ },
32180
+ "page": {
32181
+ "$ref": "#/components/schemas/ChangedRevisionPage"
32182
+ }
32183
+ },
32184
+ "required": [
32185
+ "tool",
32186
+ "spaceId",
32187
+ "page"
32188
+ ]
32189
+ },
32190
+ "AIToolCallRenamePage": {
32191
+ "type": "object",
32192
+ "properties": {
32193
+ "tool": {
32194
+ "type": "string",
32195
+ "enum": [
32196
+ "renamePage"
32197
+ ]
32198
+ },
32199
+ "spaceId": {
32200
+ "type": "string",
32201
+ "description": "The ID of the space being edited."
32202
+ },
32203
+ "page": {
32204
+ "$ref": "#/components/schemas/ChangedRevisionPage"
32205
+ },
32206
+ "title": {
32207
+ "type": "string",
32208
+ "description": "The new title of the page."
32209
+ }
32210
+ },
32211
+ "required": [
32212
+ "tool",
32213
+ "spaceId",
32214
+ "page",
32215
+ "title"
32216
+ ]
32217
+ },
32218
+ "AIToolCallMovePage": {
32219
+ "type": "object",
32220
+ "properties": {
32221
+ "tool": {
32222
+ "type": "string",
32223
+ "enum": [
32224
+ "movePage"
32225
+ ]
32226
+ },
32227
+ "spaceId": {
32228
+ "type": "string",
32229
+ "description": "The ID of the space being edited."
32230
+ },
32231
+ "page": {
32232
+ "$ref": "#/components/schemas/ChangedRevisionPage"
32233
+ },
32234
+ "to": {
32235
+ "$ref": "#/components/schemas/ChangedRevisionPage"
32236
+ },
32237
+ "moveType": {
32238
+ "type": "string",
32239
+ "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",
32240
+ "enum": [
32241
+ "within",
32242
+ "before",
32243
+ "after"
32244
+ ]
32245
+ }
32246
+ },
32247
+ "required": [
32248
+ "tool",
32249
+ "spaceId",
32250
+ "page",
32251
+ "moveType"
32252
+ ]
32253
+ },
32254
+ "AIToolCallListModifiedPages": {
32255
+ "type": "object",
32256
+ "properties": {
32257
+ "tool": {
32258
+ "type": "string",
32259
+ "enum": [
32260
+ "listModifiedPages"
32261
+ ]
32262
+ },
32263
+ "spaceId": {
32264
+ "type": "string",
32265
+ "description": "The ID of the space being accessed."
32266
+ }
32267
+ },
32268
+ "required": [
32269
+ "tool",
32270
+ "spaceId"
32271
+ ]
32272
+ },
32273
+ "AIToolCallGetPageDiff": {
32274
+ "type": "object",
32275
+ "properties": {
32276
+ "tool": {
32277
+ "type": "string",
32278
+ "enum": [
32279
+ "getPageDiff"
32280
+ ]
32281
+ },
32282
+ "spaceId": {
32283
+ "type": "string",
32284
+ "description": "The ID of the space being accessed."
32285
+ },
32286
+ "page": {
32287
+ "$ref": "#/components/schemas/ChangedRevisionPage"
32288
+ }
32289
+ },
32290
+ "required": [
32291
+ "tool",
32292
+ "spaceId",
32293
+ "page"
32294
+ ]
32295
+ },
32296
+ "AIToolCallCreateAgentTask": {
32297
+ "type": "object",
32298
+ "properties": {
32299
+ "tool": {
32300
+ "type": "string",
32301
+ "enum": [
32302
+ "createAgentTask"
32303
+ ]
32304
+ },
32305
+ "spaceId": {
32306
+ "type": "string",
32307
+ "description": "The ID of the space the task belongs to."
32308
+ },
32309
+ "action": {
32310
+ "type": "string",
32311
+ "enum": [
32312
+ "create",
32313
+ "update"
32314
+ ]
32315
+ },
32316
+ "task": {
32317
+ "type": "object",
32318
+ "properties": {
32319
+ "id": {
32320
+ "type": "string",
32321
+ "description": "The unique identifier of the task."
32322
+ },
32323
+ "title": {
32324
+ "type": "string",
32325
+ "description": "The title of the task."
32326
+ }
32327
+ },
32328
+ "required": [
32329
+ "id",
32330
+ "title"
32331
+ ]
32332
+ }
32333
+ },
32334
+ "required": [
32335
+ "tool",
32336
+ "spaceId",
32337
+ "action",
32338
+ "task"
32339
+ ]
32340
+ },
32131
32341
  "AIToolCall": {
32132
32342
  "oneOf": [
32133
32343
  {
@@ -32138,6 +32348,30 @@
32138
32348
  },
32139
32349
  {
32140
32350
  "$ref": "#/components/schemas/AIToolCallSearch"
32351
+ },
32352
+ {
32353
+ "$ref": "#/components/schemas/AIToolCallEditPage"
32354
+ },
32355
+ {
32356
+ "$ref": "#/components/schemas/AIToolCallCreatePage"
32357
+ },
32358
+ {
32359
+ "$ref": "#/components/schemas/AIToolCallDeletePage"
32360
+ },
32361
+ {
32362
+ "$ref": "#/components/schemas/AIToolCallRenamePage"
32363
+ },
32364
+ {
32365
+ "$ref": "#/components/schemas/AIToolCallMovePage"
32366
+ },
32367
+ {
32368
+ "$ref": "#/components/schemas/AIToolCallListModifiedPages"
32369
+ },
32370
+ {
32371
+ "$ref": "#/components/schemas/AIToolCallGetPageDiff"
32372
+ },
32373
+ {
32374
+ "$ref": "#/components/schemas/AIToolCallCreateAgentTask"
32141
32375
  }
32142
32376
  ]
32143
32377
  },
@@ -32151,12 +32385,22 @@
32151
32385
  "response_tool_call"
32152
32386
  ]
32153
32387
  },
32388
+ "messageId": {
32389
+ "type": "string",
32390
+ "description": "The ID of the message that this event is composing.\n"
32391
+ },
32392
+ "stepIndex": {
32393
+ "type": "integer",
32394
+ "description": "The index of the step of the message that this event is composing.\n"
32395
+ },
32154
32396
  "toolCall": {
32155
32397
  "$ref": "#/components/schemas/AIToolCall"
32156
32398
  }
32157
32399
  },
32158
32400
  "required": [
32159
32401
  "type",
32402
+ "messageId",
32403
+ "stepIndex",
32160
32404
  "toolCall"
32161
32405
  ]
32162
32406
  },
@@ -38089,6 +38333,294 @@
38089
38333
  "updatedAt"
38090
38334
  ]
38091
38335
  },
38336
+ "AIMessageStep": {
38337
+ "type": "object",
38338
+ "description": "A step in a message from the AI agent.",
38339
+ "properties": {
38340
+ "content": {
38341
+ "$ref": "#/components/schemas/JSONDocument"
38342
+ },
38343
+ "toolCalls": {
38344
+ "type": "array",
38345
+ "items": {
38346
+ "$ref": "#/components/schemas/AIToolCall"
38347
+ }
38348
+ }
38349
+ },
38350
+ "required": [
38351
+ "content"
38352
+ ]
38353
+ },
38354
+ "AIMessage": {
38355
+ "type": "object",
38356
+ "properties": {
38357
+ "id": {
38358
+ "type": "string"
38359
+ },
38360
+ "role": {
38361
+ "$ref": "#/components/schemas/AIMessageRole"
38362
+ },
38363
+ "steps": {
38364
+ "type": "array",
38365
+ "items": {
38366
+ "$ref": "#/components/schemas/AIMessageStep"
38367
+ }
38368
+ }
38369
+ },
38370
+ "required": [
38371
+ "id",
38372
+ "role",
38373
+ "steps"
38374
+ ]
38375
+ },
38376
+ "AgentRequestReset": {
38377
+ "type": "object",
38378
+ "description": "Request to reset the chat.\n",
38379
+ "properties": {
38380
+ "type": {
38381
+ "type": "string",
38382
+ "enum": [
38383
+ "reset"
38384
+ ]
38385
+ }
38386
+ },
38387
+ "required": [
38388
+ "type"
38389
+ ]
38390
+ },
38391
+ "AgentRequestPostMessage": {
38392
+ "type": "object",
38393
+ "description": "Request to post a message to the agent.\n",
38394
+ "properties": {
38395
+ "type": {
38396
+ "type": "string",
38397
+ "enum": [
38398
+ "post_message"
38399
+ ]
38400
+ },
38401
+ "message": {
38402
+ "$ref": "#/components/schemas/AIMessageInput"
38403
+ }
38404
+ },
38405
+ "required": [
38406
+ "type",
38407
+ "message"
38408
+ ]
38409
+ },
38410
+ "AgentRequest": {
38411
+ "description": "Payload to send to the agent.\n",
38412
+ "oneOf": [
38413
+ {
38414
+ "$ref": "#/components/schemas/AgentRequestReset"
38415
+ },
38416
+ {
38417
+ "$ref": "#/components/schemas/AgentRequestPostMessage"
38418
+ }
38419
+ ]
38420
+ },
38421
+ "AgentStreamMessages": {
38422
+ "type": "object",
38423
+ "description": "Payload emitted by the agent to reset the messages.\n",
38424
+ "properties": {
38425
+ "type": {
38426
+ "type": "string",
38427
+ "enum": [
38428
+ "messages"
38429
+ ]
38430
+ },
38431
+ "operation": {
38432
+ "type": "string",
38433
+ "enum": [
38434
+ "append",
38435
+ "replace"
38436
+ ]
38437
+ },
38438
+ "messages": {
38439
+ "type": "array",
38440
+ "items": {
38441
+ "$ref": "#/components/schemas/AIMessage"
38442
+ }
38443
+ }
38444
+ },
38445
+ "required": [
38446
+ "type",
38447
+ "operation",
38448
+ "messages"
38449
+ ]
38450
+ },
38451
+ "AgentStreamMessageResponse": {
38452
+ "type": "object",
38453
+ "description": "Payload emitted by the agent with a partial message.\n",
38454
+ "properties": {
38455
+ "type": {
38456
+ "type": "string",
38457
+ "enum": [
38458
+ "message_response"
38459
+ ]
38460
+ },
38461
+ "response": {
38462
+ "$ref": "#/components/schemas/AIStreamResponse"
38463
+ }
38464
+ },
38465
+ "required": [
38466
+ "type",
38467
+ "response"
38468
+ ]
38469
+ },
38470
+ "AgentStatus": {
38471
+ "type": "string",
38472
+ "enum": [
38473
+ "idle",
38474
+ "processing",
38475
+ "errored"
38476
+ ]
38477
+ },
38478
+ "AgentState": {
38479
+ "type": "object",
38480
+ "properties": {
38481
+ "status": {
38482
+ "$ref": "#/components/schemas/AgentStatus"
38483
+ },
38484
+ "suggestions": {
38485
+ "type": "array",
38486
+ "description": "A list of response suggestions for the user to select from.",
38487
+ "items": {
38488
+ "type": "string"
38489
+ }
38490
+ }
38491
+ },
38492
+ "required": [
38493
+ "status",
38494
+ "suggestions"
38495
+ ]
38496
+ },
38497
+ "AgentStreamState": {
38498
+ "type": "object",
38499
+ "description": "Payload emitted by the agent with its current state.\n",
38500
+ "properties": {
38501
+ "type": {
38502
+ "type": "string",
38503
+ "enum": [
38504
+ "state"
38505
+ ]
38506
+ },
38507
+ "state": {
38508
+ "$ref": "#/components/schemas/AgentState"
38509
+ }
38510
+ },
38511
+ "required": [
38512
+ "type",
38513
+ "state"
38514
+ ]
38515
+ },
38516
+ "AgentStream": {
38517
+ "oneOf": [
38518
+ {
38519
+ "$ref": "#/components/schemas/AgentStreamMessages"
38520
+ },
38521
+ {
38522
+ "$ref": "#/components/schemas/AgentStreamMessageResponse"
38523
+ },
38524
+ {
38525
+ "$ref": "#/components/schemas/AgentStreamState"
38526
+ }
38527
+ ]
38528
+ },
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
+ },
38092
38624
  "RequestSpaceTrackPageView": {
38093
38625
  "$ref": "#/components/schemas/SpaceTrackPageView"
38094
38626
  },