@gitbook/api 0.114.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}": {
@@ -1735,7 +1792,8 @@
1735
1792
  "summary": "List all space page links",
1736
1793
  "tags": [
1737
1794
  "space-content",
1738
- "links"
1795
+ "links",
1796
+ "critical"
1739
1797
  ],
1740
1798
  "security": [
1741
1799
  {
@@ -2746,7 +2804,8 @@
2746
2804
  "summary": "List all change request links",
2747
2805
  "tags": [
2748
2806
  "change-requests-links",
2749
- "links"
2807
+ "links",
2808
+ "critical"
2750
2809
  ],
2751
2810
  "security": [
2752
2811
  {
@@ -2863,6 +2922,9 @@
2863
2922
  },
2864
2923
  {
2865
2924
  "$ref": "#/components/parameters/targetPage"
2925
+ },
2926
+ {
2927
+ "$ref": "#/components/parameters/authors"
2866
2928
  }
2867
2929
  ],
2868
2930
  "responses": {
@@ -3704,7 +3766,8 @@
3704
3766
  "operationId": "listPageLinksInChangeRequest",
3705
3767
  "summary": "List all change request links",
3706
3768
  "tags": [
3707
- "change-request-content"
3769
+ "change-request-content",
3770
+ "critical"
3708
3771
  ],
3709
3772
  "security": [
3710
3773
  {
@@ -4430,7 +4493,8 @@
4430
4493
  "operationId": "listCommentsInSpace",
4431
4494
  "summary": "List all space comments",
4432
4495
  "tags": [
4433
- "space-comments"
4496
+ "space-comments",
4497
+ "critical"
4434
4498
  ],
4435
4499
  "security": [
4436
4500
  {
@@ -4458,6 +4522,9 @@
4458
4522
  },
4459
4523
  {
4460
4524
  "$ref": "#/components/parameters/targetPage"
4525
+ },
4526
+ {
4527
+ "$ref": "#/components/parameters/authors"
4461
4528
  }
4462
4529
  ],
4463
4530
  "responses": {
@@ -4851,6 +4918,123 @@
4851
4918
  }
4852
4919
  }
4853
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
+ },
4854
5038
  "/spaces/{spaceId}/permissions/aggregate": {
4855
5039
  "get": {
4856
5040
  "operationId": "listPermissionsAggregateInSpace",
@@ -5157,7 +5341,8 @@
5157
5341
  "summary": "Get all links in a space including their status and location where they appear.",
5158
5342
  "tags": [
5159
5343
  "spaces",
5160
- "links"
5344
+ "links",
5345
+ "critical"
5161
5346
  ],
5162
5347
  "security": [
5163
5348
  {
@@ -7241,7 +7426,8 @@
7241
7426
  "operationId": "listOrganizationsForAuthenticatedUser",
7242
7427
  "summary": "Get the list of organizations for the currently authenticated user",
7243
7428
  "tags": [
7244
- "organizations"
7429
+ "organizations",
7430
+ "critical"
7245
7431
  ],
7246
7432
  "security": [
7247
7433
  {
@@ -7515,7 +7701,8 @@
7515
7701
  "operationId": "getMemberInOrganizationById",
7516
7702
  "summary": "Get an organization member by its ID",
7517
7703
  "tags": [
7518
- "organization-members"
7704
+ "organization-members",
7705
+ "critical"
7519
7706
  ],
7520
7707
  "security": [
7521
7708
  {
@@ -11345,7 +11532,7 @@
11345
11532
  ],
11346
11533
  "security": [
11347
11534
  {
11348
- "user-internal": []
11535
+ "user": []
11349
11536
  }
11350
11537
  ],
11351
11538
  "parameters": [
@@ -13604,32 +13791,14 @@
13604
13791
  "description": "The favicon to use. Set to null to reset the override.",
13605
13792
  "oneOf": [
13606
13793
  {
13607
- "type": "object",
13608
- "properties": {
13609
- "icon": {
13610
- "$ref": "#/components/schemas/CustomizationThemedURL"
13611
- }
13612
- },
13613
- "required": [
13614
- "icon"
13615
- ]
13794
+ "$ref": "#/components/schemas/CustomizationFavicon"
13616
13795
  },
13617
13796
  {
13618
- "type": "object",
13619
- "properties": {
13620
- "emoji": {
13621
- "$ref": "#/components/schemas/Emoji"
13622
- }
13623
- },
13624
- "required": [
13625
- "emoji"
13626
- ]
13627
- },
13628
- {
13629
- "type": "object",
13797
+ "type": "string",
13630
13798
  "nullable": true,
13631
- "properties": {},
13632
- "additionalProperties": false
13799
+ "enum": [
13800
+ null
13801
+ ]
13633
13802
  }
13634
13803
  ]
13635
13804
  },
@@ -14214,6 +14383,10 @@
14214
14383
  "type": "string",
14215
14384
  "description": "The ID of the previous response to continue from"
14216
14385
  },
14386
+ "instructions": {
14387
+ "type": "string",
14388
+ "description": "Instructions for the AI"
14389
+ },
14217
14390
  "input": {
14218
14391
  "type": "array",
14219
14392
  "items": {
@@ -15191,6 +15364,7 @@
15191
15364
  "get": {
15192
15365
  "operationId": "getPublishedContentByUrl",
15193
15366
  "summary": "Resolve a URL of a published content.",
15367
+ "deprecated": true,
15194
15368
  "tags": [
15195
15369
  "urls"
15196
15370
  ],
@@ -15240,6 +15414,56 @@
15240
15414
  "$ref": "#/components/responses/NotFoundError"
15241
15415
  }
15242
15416
  }
15417
+ },
15418
+ "post": {
15419
+ "operationId": "resolvePublishedContentByUrl",
15420
+ "summary": "Resolve a URL of a published content.",
15421
+ "tags": [
15422
+ "urls"
15423
+ ],
15424
+ "requestBody": {
15425
+ "required": true,
15426
+ "content": {
15427
+ "application/json": {
15428
+ "schema": {
15429
+ "type": "object",
15430
+ "properties": {
15431
+ "url": {
15432
+ "description": "URL to resolve",
15433
+ "$ref": "#/components/schemas/URL"
15434
+ },
15435
+ "redirectOnError": {
15436
+ "type": "boolean",
15437
+ "description": "When true redirects the user to the authentication/fallback URL if the visitor auth token is invalid",
15438
+ "default": false
15439
+ },
15440
+ "visitor": {
15441
+ "$ref": "#/components/schemas/SiteVisitorPayload"
15442
+ }
15443
+ },
15444
+ "required": [
15445
+ "url"
15446
+ ]
15447
+ }
15448
+ }
15449
+ }
15450
+ },
15451
+ "responses": {
15452
+ "200": {
15453
+ "description": "OK",
15454
+ "content": {
15455
+ "application/json": {
15456
+ "schema": {
15457
+ "$ref": "#/components/schemas/PublishedSiteContentLookup"
15458
+ }
15459
+ }
15460
+ }
15461
+ },
15462
+ "404": {
15463
+ "description": "No content found for the URL.",
15464
+ "$ref": "#/components/responses/NotFoundError"
15465
+ }
15466
+ }
15243
15467
  }
15244
15468
  }
15245
15469
  },
@@ -15451,6 +15675,18 @@
15451
15675
  "type": "string"
15452
15676
  }
15453
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
+ },
15454
15690
  "commentId": {
15455
15691
  "name": "commentId",
15456
15692
  "in": "path",
@@ -15918,6 +16154,11 @@
15918
16154
  }
15919
16155
  ]
15920
16156
  },
16157
+ "URL": {
16158
+ "type": "string",
16159
+ "format": "uri",
16160
+ "maxLength": 2048
16161
+ },
15921
16162
  "SpaceTitle": {
15922
16163
  "type": "string",
15923
16164
  "description": "Title of the space",
@@ -15950,11 +16191,6 @@
15950
16191
  "locked"
15951
16192
  ]
15952
16193
  },
15953
- "URL": {
15954
- "type": "string",
15955
- "format": "uri",
15956
- "maxLength": 2048
15957
- },
15958
16194
  "GitSyncProvider": {
15959
16195
  "type": "string",
15960
16196
  "description": "The provider of the Git Sync installation.",
@@ -20165,6 +20401,94 @@
20165
20401
  "nodes"
20166
20402
  ]
20167
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
+ },
20168
20492
  "DocumentBlock": {
20169
20493
  "oneOf": [
20170
20494
  {
@@ -20256,6 +20580,12 @@
20256
20580
  },
20257
20581
  {
20258
20582
  "$ref": "#/components/schemas/DocumentBlockStepperStep"
20583
+ },
20584
+ {
20585
+ "$ref": "#/components/schemas/DocumentBlockColumns"
20586
+ },
20587
+ {
20588
+ "$ref": "#/components/schemas/DocumentBlockColumn"
20259
20589
  }
20260
20590
  ]
20261
20591
  },
@@ -23401,34 +23731,6 @@
23401
23731
  "user"
23402
23732
  ]
23403
23733
  },
23404
- "ChangeRequestBrainstormStatus": {
23405
- "type": "string",
23406
- "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",
23407
- "enum": [
23408
- "pending",
23409
- "failed",
23410
- "running"
23411
- ]
23412
- },
23413
- "ChangeRequestBrainstormActor": {
23414
- "type": "string",
23415
- "enum": [
23416
- "user",
23417
- "agent"
23418
- ]
23419
- },
23420
- "ChangeRequestBrainstormContext": {
23421
- "type": "object",
23422
- "properties": {
23423
- "page": {
23424
- "type": "string",
23425
- "description": "Path of the page the user is currently viewing."
23426
- }
23427
- },
23428
- "required": [
23429
- "page"
23430
- ]
23431
- },
23432
23734
  "RevisionPageType": {
23433
23735
  "type": "string",
23434
23736
  "enum": [
@@ -23460,324 +23762,6 @@
23460
23762
  "title"
23461
23763
  ]
23462
23764
  },
23463
- "ChangeRequestBrainstormLog": {
23464
- "oneOf": [
23465
- {
23466
- "type": "object",
23467
- "properties": {
23468
- "tool": {
23469
- "type": "string",
23470
- "enum": [
23471
- "get-page"
23472
- ]
23473
- },
23474
- "intent": {
23475
- "type": "string"
23476
- },
23477
- "page": {
23478
- "$ref": "#/components/schemas/ChangedRevisionPage"
23479
- }
23480
- },
23481
- "required": [
23482
- "tool",
23483
- "intent",
23484
- "page"
23485
- ]
23486
- },
23487
- {
23488
- "type": "object",
23489
- "properties": {
23490
- "tool": {
23491
- "type": "string",
23492
- "enum": [
23493
- "search-keyword"
23494
- ]
23495
- },
23496
- "intent": {
23497
- "type": "string"
23498
- },
23499
- "query": {
23500
- "type": "string"
23501
- }
23502
- },
23503
- "required": [
23504
- "tool",
23505
- "intent",
23506
- "query"
23507
- ]
23508
- },
23509
- {
23510
- "type": "object",
23511
- "properties": {
23512
- "tool": {
23513
- "type": "string",
23514
- "enum": [
23515
- "search-semantic"
23516
- ]
23517
- },
23518
- "intent": {
23519
- "type": "string"
23520
- },
23521
- "query": {
23522
- "type": "string"
23523
- }
23524
- },
23525
- "required": [
23526
- "tool",
23527
- "intent",
23528
- "query"
23529
- ]
23530
- },
23531
- {
23532
- "type": "object",
23533
- "properties": {
23534
- "tool": {
23535
- "type": "string",
23536
- "enum": [
23537
- "create-page"
23538
- ]
23539
- },
23540
- "page": {
23541
- "$ref": "#/components/schemas/ChangedRevisionPage"
23542
- }
23543
- },
23544
- "required": [
23545
- "tool",
23546
- "page"
23547
- ]
23548
- },
23549
- {
23550
- "type": "object",
23551
- "properties": {
23552
- "tool": {
23553
- "type": "string",
23554
- "enum": [
23555
- "delete-page"
23556
- ]
23557
- },
23558
- "page": {
23559
- "$ref": "#/components/schemas/ChangedRevisionPage"
23560
- }
23561
- },
23562
- "required": [
23563
- "tool",
23564
- "page"
23565
- ]
23566
- },
23567
- {
23568
- "type": "object",
23569
- "properties": {
23570
- "tool": {
23571
- "type": "string",
23572
- "enum": [
23573
- "edit-page"
23574
- ]
23575
- },
23576
- "page": {
23577
- "$ref": "#/components/schemas/ChangedRevisionPage"
23578
- }
23579
- },
23580
- "required": [
23581
- "tool",
23582
- "page"
23583
- ]
23584
- }
23585
- ]
23586
- },
23587
- "ChangeRequestBrainstormPlanStatus": {
23588
- "type": "string",
23589
- "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",
23590
- "enum": [
23591
- "pending",
23592
- "failed",
23593
- "running",
23594
- "completed"
23595
- ]
23596
- },
23597
- "ChangeRequestBrainstormPlanStepTitle": {
23598
- "type": "string",
23599
- "minLength": 1,
23600
- "maxLength": 100
23601
- },
23602
- "ChangeRequestBrainstormPlanStepStatus": {
23603
- "type": "string",
23604
- "enum": [
23605
- "pending",
23606
- "succeeded",
23607
- "failed",
23608
- "running"
23609
- ]
23610
- },
23611
- "ChangeRequestBrainstormPlanStep": {
23612
- "type": "object",
23613
- "properties": {
23614
- "title": {
23615
- "$ref": "#/components/schemas/ChangeRequestBrainstormPlanStepTitle"
23616
- },
23617
- "status": {
23618
- "$ref": "#/components/schemas/ChangeRequestBrainstormPlanStepStatus"
23619
- },
23620
- "instruction": {
23621
- "$ref": "#/components/schemas/JSONDocument"
23622
- },
23623
- "implementation": {
23624
- "description": "Logs related to the implementation phase of the step.",
23625
- "type": "object",
23626
- "properties": {
23627
- "summary": {
23628
- "description": "A summary of the execution phase.",
23629
- "$ref": "#/components/schemas/JSONDocument"
23630
- },
23631
- "logs": {
23632
- "description": "Logs related to the execution phase of the step.",
23633
- "items": {
23634
- "$ref": "#/components/schemas/ChangeRequestBrainstormLog"
23635
- }
23636
- }
23637
- },
23638
- "required": [
23639
- "logs"
23640
- ]
23641
- }
23642
- },
23643
- "required": [
23644
- "title",
23645
- "status",
23646
- "instruction"
23647
- ]
23648
- },
23649
- "ChangeRequestBrainstormPlan": {
23650
- "type": "object",
23651
- "properties": {
23652
- "status": {
23653
- "$ref": "#/components/schemas/ChangeRequestBrainstormPlanStatus"
23654
- },
23655
- "title": {
23656
- "type": "string",
23657
- "description": "The title of the plan."
23658
- },
23659
- "steps": {
23660
- "description": "The steps of the plan to execute the plan.",
23661
- "type": "array",
23662
- "items": {
23663
- "$ref": "#/components/schemas/ChangeRequestBrainstormPlanStep"
23664
- }
23665
- },
23666
- "context": {
23667
- "$ref": "#/components/schemas/ChangeRequestBrainstormContext"
23668
- }
23669
- },
23670
- "required": [
23671
- "status",
23672
- "title",
23673
- "steps"
23674
- ]
23675
- },
23676
- "ChangeRequestBrainstormAttachmentPlan": {
23677
- "type": "object",
23678
- "properties": {
23679
- "type": {
23680
- "type": "string",
23681
- "enum": [
23682
- "plan"
23683
- ]
23684
- },
23685
- "plan": {
23686
- "$ref": "#/components/schemas/ChangeRequestBrainstormPlan"
23687
- }
23688
- },
23689
- "required": [
23690
- "type",
23691
- "plan"
23692
- ]
23693
- },
23694
- "ChangeRequestBrainstormAttachmentMessage": {
23695
- "type": "object",
23696
- "properties": {
23697
- "type": {
23698
- "type": "string",
23699
- "enum": [
23700
- "message"
23701
- ]
23702
- },
23703
- "suggestions": {
23704
- "type": "array",
23705
- "items": {
23706
- "type": "string"
23707
- }
23708
- }
23709
- },
23710
- "required": [
23711
- "type",
23712
- "suggestions"
23713
- ]
23714
- },
23715
- "ChangeRequestBrainstormAttachment": {
23716
- "oneOf": [
23717
- {
23718
- "$ref": "#/components/schemas/ChangeRequestBrainstormAttachmentPlan"
23719
- },
23720
- {
23721
- "$ref": "#/components/schemas/ChangeRequestBrainstormAttachmentMessage"
23722
- }
23723
- ]
23724
- },
23725
- "ChangeRequestBrainstormMessage": {
23726
- "type": "object",
23727
- "properties": {
23728
- "id": {
23729
- "type": "string",
23730
- "description": "The unique identifier of the chat message."
23731
- },
23732
- "actor": {
23733
- "$ref": "#/components/schemas/ChangeRequestBrainstormActor"
23734
- },
23735
- "message": {
23736
- "$ref": "#/components/schemas/JSONDocument"
23737
- },
23738
- "context": {
23739
- "$ref": "#/components/schemas/ChangeRequestBrainstormContext"
23740
- },
23741
- "logs": {
23742
- "description": "Logs related to the processing of the message.",
23743
- "items": {
23744
- "$ref": "#/components/schemas/ChangeRequestBrainstormLog"
23745
- }
23746
- },
23747
- "attachment": {
23748
- "$ref": "#/components/schemas/ChangeRequestBrainstormAttachment"
23749
- }
23750
- },
23751
- "required": [
23752
- "id",
23753
- "actor",
23754
- "message"
23755
- ]
23756
- },
23757
- "ChangeRequestBrainstormSession": {
23758
- "type": "object",
23759
- "properties": {
23760
- "id": {
23761
- "type": "string",
23762
- "description": "The unique identifier of the session."
23763
- },
23764
- "status": {
23765
- "$ref": "#/components/schemas/ChangeRequestBrainstormStatus"
23766
- },
23767
- "messages": {
23768
- "description": "Conversation messages related to the brainstorming phase of the task.",
23769
- "type": "array",
23770
- "items": {
23771
- "$ref": "#/components/schemas/ChangeRequestBrainstormMessage"
23772
- }
23773
- }
23774
- },
23775
- "required": [
23776
- "id",
23777
- "status",
23778
- "messages"
23779
- ]
23780
- },
23781
23765
  "RevisionSemanticChangePageCreated": {
23782
23766
  "type": "object",
23783
23767
  "properties": {
@@ -24382,6 +24366,61 @@
24382
24366
  }
24383
24367
  }
24384
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
+ },
24385
24424
  "IntegrationTitle": {
24386
24425
  "type": "string",
24387
24426
  "description": "Title of the integration",
@@ -26591,6 +26630,52 @@
26591
26630
  "minLength": 2,
26592
26631
  "maxLength": 128
26593
26632
  },
26633
+ "CustomizationThemedURL": {
26634
+ "type": "object",
26635
+ "properties": {
26636
+ "light": {
26637
+ "$ref": "#/components/schemas/URL"
26638
+ },
26639
+ "dark": {
26640
+ "$ref": "#/components/schemas/URL"
26641
+ }
26642
+ },
26643
+ "required": [
26644
+ "light",
26645
+ "dark"
26646
+ ]
26647
+ },
26648
+ "CustomizationFavicon": {
26649
+ "oneOf": [
26650
+ {
26651
+ "type": "object",
26652
+ "properties": {
26653
+ "icon": {
26654
+ "$ref": "#/components/schemas/CustomizationThemedURL"
26655
+ }
26656
+ },
26657
+ "required": [
26658
+ "icon"
26659
+ ]
26660
+ },
26661
+ {
26662
+ "type": "object",
26663
+ "properties": {
26664
+ "emoji": {
26665
+ "$ref": "#/components/schemas/Emoji"
26666
+ }
26667
+ },
26668
+ "required": [
26669
+ "emoji"
26670
+ ]
26671
+ },
26672
+ {
26673
+ "type": "object",
26674
+ "properties": {},
26675
+ "additionalProperties": false
26676
+ }
26677
+ ]
26678
+ },
26594
26679
  "SiteHostname": {
26595
26680
  "type": "string",
26596
26681
  "description": "Custom hostname for the site, for e.g. docs.mycompany.com",
@@ -26844,6 +26929,20 @@
26844
26929
  "title": {
26845
26930
  "$ref": "#/components/schemas/SiteTitle"
26846
26931
  },
26932
+ "icon": {
26933
+ "oneOf": [
26934
+ {
26935
+ "$ref": "#/components/schemas/CustomizationFavicon"
26936
+ },
26937
+ {
26938
+ "type": "string",
26939
+ "nullable": true,
26940
+ "enum": [
26941
+ null
26942
+ ]
26943
+ }
26944
+ ]
26945
+ },
26847
26946
  "hostname": {
26848
26947
  "$ref": "#/components/schemas/SiteHostname"
26849
26948
  },
@@ -28698,61 +28797,6 @@
28698
28797
  "deletedSpaces"
28699
28798
  ]
28700
28799
  },
28701
- "OrganizationMember": {
28702
- "type": "object",
28703
- "properties": {
28704
- "object": {
28705
- "type": "string",
28706
- "description": "Type of Object, always equals to \"member\"",
28707
- "enum": [
28708
- "member"
28709
- ]
28710
- },
28711
- "id": {
28712
- "type": "string",
28713
- "description": "Unique identifier for the user."
28714
- },
28715
- "role": {
28716
- "$ref": "#/components/schemas/MemberRoleOrGuest"
28717
- },
28718
- "user": {
28719
- "$ref": "#/components/schemas/User"
28720
- },
28721
- "disabled": {
28722
- "type": "boolean",
28723
- "description": "Whatever the membership of this user is disabled and prevent them from accessing content."
28724
- },
28725
- "joinedAt": {
28726
- "description": "Date at which the user joined the organization.",
28727
- "$ref": "#/components/schemas/Timestamp"
28728
- },
28729
- "lastSeenAt": {
28730
- "description": "Date at which the user was last seen active in the organization.",
28731
- "$ref": "#/components/schemas/Timestamp"
28732
- },
28733
- "sso": {
28734
- "type": "boolean",
28735
- "description": "Whether the user can login with SSO."
28736
- },
28737
- "spaces": {
28738
- "type": "number"
28739
- },
28740
- "teams": {
28741
- "type": "number"
28742
- }
28743
- },
28744
- "required": [
28745
- "object",
28746
- "id",
28747
- "role",
28748
- "user",
28749
- "disabled",
28750
- "joinedAt",
28751
- "sso",
28752
- "spaces",
28753
- "teams"
28754
- ]
28755
- },
28756
28800
  "MemberContentPermission": {
28757
28801
  "type": "object",
28758
28802
  "description": "Permission of a member in a content.",
@@ -29517,11 +29561,6 @@
29517
29561
  "emoji": {
29518
29562
  "$ref": "#/components/schemas/Emoji"
29519
29563
  },
29520
- "private": {
29521
- "description": "Private spaces are no longer supported by GitBook.",
29522
- "deprecated": true,
29523
- "type": "boolean"
29524
- },
29525
29564
  "parent": {
29526
29565
  "type": "string",
29527
29566
  "description": "ID of a parent collection"
@@ -29541,6 +29580,14 @@
29541
29580
  "type": "string",
29542
29581
  "maxLength": 10000
29543
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
+ },
29544
29591
  "OrganizationSAMLProvider": {
29545
29592
  "type": "object",
29546
29593
  "properties": {
@@ -29577,6 +29624,9 @@
29577
29624
  "description": "Date at which the provider was created.",
29578
29625
  "$ref": "#/components/schemas/Timestamp"
29579
29626
  },
29627
+ "status": {
29628
+ "$ref": "#/components/schemas/SAMLProviderStatus"
29629
+ },
29580
29630
  "service": {
29581
29631
  "description": "Metadata about the service provider.",
29582
29632
  "properties": {
@@ -29624,6 +29674,7 @@
29624
29674
  "certificate",
29625
29675
  "defaultRole",
29626
29676
  "createdAt",
29677
+ "status",
29627
29678
  "service",
29628
29679
  "urls"
29629
29680
  ]
@@ -30431,21 +30482,6 @@
30431
30482
  "type"
30432
30483
  ]
30433
30484
  },
30434
- {
30435
- "type": "object",
30436
- "properties": {
30437
- "type": {
30438
- "description": "User cannot proceed with the operation due to lack of permissions.",
30439
- "type": "string",
30440
- "enum": [
30441
- "no-permissions"
30442
- ]
30443
- }
30444
- },
30445
- "required": [
30446
- "type"
30447
- ]
30448
- },
30449
30485
  {
30450
30486
  "type": "object",
30451
30487
  "properties": {
@@ -30471,87 +30507,87 @@
30471
30507
  }
30472
30508
  ]
30473
30509
  },
30474
- "properties": {
30475
- "type": "object",
30476
- "additionalProperties": {
30477
- "oneOf": [
30478
- {
30479
- "type": "object",
30480
- "properties": {
30481
- "type": {
30482
- "type": "string",
30483
- "enum": [
30484
- "boolean"
30485
- ]
30486
- },
30487
- "description": {
30488
- "type": "string"
30489
- }
30510
+ "SiteAdaptiveJSONSchemaClaimsProperties": {
30511
+ "oneOf": [
30512
+ {
30513
+ "type": "object",
30514
+ "properties": {
30515
+ "type": {
30516
+ "type": "string",
30517
+ "enum": [
30518
+ "boolean"
30519
+ ]
30490
30520
  },
30491
- "required": [
30492
- "type",
30493
- "description"
30494
- ],
30495
- "additionalProperties": false
30521
+ "description": {
30522
+ "type": "string"
30523
+ }
30496
30524
  },
30497
- {
30498
- "type": "object",
30499
- "properties": {
30500
- "type": {
30501
- "type": "string",
30502
- "enum": [
30503
- "string"
30504
- ]
30505
- },
30506
- "enum": {
30507
- "type": "array",
30508
- "items": {
30509
- "type": "string"
30510
- }
30511
- },
30512
- "description": {
30525
+ "required": [
30526
+ "type",
30527
+ "description"
30528
+ ],
30529
+ "additionalProperties": false
30530
+ },
30531
+ {
30532
+ "type": "object",
30533
+ "properties": {
30534
+ "type": {
30535
+ "type": "string",
30536
+ "enum": [
30537
+ "string"
30538
+ ]
30539
+ },
30540
+ "enum": {
30541
+ "type": "array",
30542
+ "items": {
30513
30543
  "type": "string"
30514
30544
  }
30515
30545
  },
30516
- "required": [
30517
- "type",
30518
- "enum",
30519
- "description"
30520
- ],
30521
- "additionalProperties": false
30546
+ "description": {
30547
+ "type": "string"
30548
+ }
30522
30549
  },
30523
- {
30524
- "type": "object",
30550
+ "required": [
30551
+ "type",
30552
+ "enum",
30553
+ "description"
30554
+ ],
30555
+ "additionalProperties": false
30556
+ },
30557
+ {
30558
+ "type": "object",
30559
+ "properties": {
30560
+ "type": {
30561
+ "type": "string",
30562
+ "enum": [
30563
+ "object"
30564
+ ]
30565
+ },
30566
+ "description": {
30567
+ "type": "string"
30568
+ },
30525
30569
  "properties": {
30526
- "type": {
30527
- "type": "string",
30528
- "enum": [
30529
- "object"
30530
- ]
30531
- },
30532
- "description": {
30533
- "type": "string"
30534
- },
30535
- "properties": {
30536
- "$ref": "#/components/schemas/properties"
30537
- },
30570
+ "type": "object",
30538
30571
  "additionalProperties": {
30539
- "type": "boolean",
30540
- "enum": [
30541
- false
30542
- ]
30572
+ "$ref": "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
30543
30573
  }
30544
30574
  },
30545
- "required": [
30546
- "type",
30547
- "description",
30548
- "properties",
30549
- "additionalProperties"
30550
- ],
30551
- "additionalProperties": false
30552
- }
30553
- ]
30554
- }
30575
+ "additionalProperties": {
30576
+ "type": "boolean",
30577
+ "enum": [
30578
+ false
30579
+ ]
30580
+ }
30581
+ },
30582
+ "required": [
30583
+ "type",
30584
+ "description",
30585
+ "properties",
30586
+ "additionalProperties"
30587
+ ],
30588
+ "additionalProperties": false
30589
+ }
30590
+ ]
30555
30591
  },
30556
30592
  "SiteAdaptiveJSONSchema": {
30557
30593
  "type": "object",
@@ -30574,84 +30610,46 @@
30574
30610
  },
30575
30611
  "properties": {
30576
30612
  "type": "object",
30577
- "additionalProperties": {
30578
- "oneOf": [
30579
- {
30580
- "type": "object",
30581
- "properties": {
30582
- "type": {
30583
- "type": "string",
30584
- "enum": [
30585
- "boolean"
30586
- ]
30587
- },
30588
- "description": {
30589
- "type": "string"
30590
- }
30613
+ "properties": {
30614
+ "unsigned": {
30615
+ "type": "object",
30616
+ "description": "Unsigned claims of the site visitor.",
30617
+ "properties": {
30618
+ "type": {
30619
+ "type": "string",
30620
+ "enum": [
30621
+ "object"
30622
+ ]
30591
30623
  },
30592
- "required": [
30593
- "type",
30594
- "description"
30595
- ],
30596
- "additionalProperties": false
30597
- },
30598
- {
30599
- "type": "object",
30600
- "properties": {
30601
- "type": {
30602
- "type": "string",
30603
- "enum": [
30604
- "string"
30605
- ]
30606
- },
30607
- "enum": {
30608
- "type": "array",
30609
- "items": {
30610
- "type": "string"
30611
- }
30612
- },
30613
- "description": {
30614
- "type": "string"
30615
- }
30624
+ "description": {
30625
+ "type": "string",
30626
+ "enum": [
30627
+ "Unsigned claims of the site visitor."
30628
+ ]
30616
30629
  },
30617
- "required": [
30618
- "type",
30619
- "enum",
30620
- "description"
30621
- ],
30622
- "additionalProperties": false
30623
- },
30624
- {
30625
- "type": "object",
30626
30630
  "properties": {
30627
- "type": {
30628
- "type": "string",
30629
- "enum": [
30630
- "object"
30631
- ]
30632
- },
30633
- "description": {
30634
- "type": "string"
30635
- },
30636
- "properties": {
30637
- "$ref": "#/components/schemas/properties"
30638
- },
30631
+ "type": "object",
30639
30632
  "additionalProperties": {
30640
- "type": "boolean",
30641
- "enum": [
30642
- false
30643
- ]
30633
+ "$ref": "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
30644
30634
  }
30645
30635
  },
30646
- "required": [
30647
- "type",
30648
- "description",
30649
- "properties",
30650
- "additionalProperties"
30651
- ],
30652
- "additionalProperties": false
30653
- }
30654
- ]
30636
+ "additionalProperties": {
30637
+ "type": "boolean",
30638
+ "enum": [
30639
+ false
30640
+ ]
30641
+ }
30642
+ },
30643
+ "required": [
30644
+ "type",
30645
+ "description",
30646
+ "properties",
30647
+ "additionalProperties"
30648
+ ]
30649
+ }
30650
+ },
30651
+ "additionalProperties": {
30652
+ "$ref": "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
30655
30653
  }
30656
30654
  },
30657
30655
  "additionalProperties": {
@@ -30835,21 +30833,6 @@
30835
30833
  "pt-br"
30836
30834
  ]
30837
30835
  },
30838
- "CustomizationThemedURL": {
30839
- "type": "object",
30840
- "properties": {
30841
- "light": {
30842
- "$ref": "#/components/schemas/URL"
30843
- },
30844
- "dark": {
30845
- "$ref": "#/components/schemas/URL"
30846
- }
30847
- },
30848
- "required": [
30849
- "light",
30850
- "dark"
30851
- ]
30852
- },
30853
30836
  "CustomizationHeaderPreset": {
30854
30837
  "type": "string",
30855
30838
  "deprecated": true,
@@ -31078,35 +31061,7 @@
31078
31061
  ]
31079
31062
  },
31080
31063
  "favicon": {
31081
- "oneOf": [
31082
- {
31083
- "type": "object",
31084
- "properties": {
31085
- "icon": {
31086
- "$ref": "#/components/schemas/CustomizationThemedURL"
31087
- }
31088
- },
31089
- "required": [
31090
- "icon"
31091
- ]
31092
- },
31093
- {
31094
- "type": "object",
31095
- "properties": {
31096
- "emoji": {
31097
- "$ref": "#/components/schemas/Emoji"
31098
- }
31099
- },
31100
- "required": [
31101
- "emoji"
31102
- ]
31103
- },
31104
- {
31105
- "type": "object",
31106
- "properties": {},
31107
- "additionalProperties": false
31108
- }
31109
- ]
31064
+ "$ref": "#/components/schemas/CustomizationFavicon"
31110
31065
  },
31111
31066
  "header": {
31112
31067
  "type": "object",
@@ -31511,7 +31466,8 @@
31511
31466
  "fallbackURL": {
31512
31467
  "type": "string",
31513
31468
  "format": "uri",
31514
- "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
31515
31471
  }
31516
31472
  }
31517
31473
  }
@@ -31744,6 +31700,7 @@
31744
31700
  "type": "string",
31745
31701
  "enum": [
31746
31702
  "user",
31703
+ "assistant",
31747
31704
  "developer"
31748
31705
  ]
31749
31706
  },
@@ -31843,8 +31800,32 @@
31843
31800
  }
31844
31801
  ]
31845
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
+ },
31846
31826
  "AIMessageInput": {
31847
31827
  "type": "object",
31828
+ "description": "Input version of an AI message.",
31848
31829
  "properties": {
31849
31830
  "role": {
31850
31831
  "$ref": "#/components/schemas/AIMessageRole"
@@ -31865,6 +31846,9 @@
31865
31846
  "items": {
31866
31847
  "$ref": "#/components/schemas/AIMessageAttachment"
31867
31848
  }
31849
+ },
31850
+ "context": {
31851
+ "$ref": "#/components/schemas/AIMessageContext"
31868
31852
  }
31869
31853
  },
31870
31854
  "required": [
@@ -31954,6 +31938,10 @@
31954
31938
  "response_finish"
31955
31939
  ]
31956
31940
  },
31941
+ "messageId": {
31942
+ "type": "string",
31943
+ "description": "The ID of the message that this event is composing.\n"
31944
+ },
31957
31945
  "responseId": {
31958
31946
  "type": "string",
31959
31947
  "description": "The ID of the response"
@@ -31961,6 +31949,7 @@
31961
31949
  },
31962
31950
  "required": [
31963
31951
  "type",
31952
+ "messageId",
31964
31953
  "responseId"
31965
31954
  ]
31966
31955
  },
@@ -31974,6 +31963,14 @@
31974
31963
  "response_document"
31975
31964
  ]
31976
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
+ },
31977
31974
  "operation": {
31978
31975
  "type": "string",
31979
31976
  "enum": [
@@ -31984,12 +31981,14 @@
31984
31981
  "blocks": {
31985
31982
  "type": "array",
31986
31983
  "items": {
31987
- "$ref": "#/components/schemas/DocumentBlock"
31984
+ "$ref": "#/components/schemas/DocumentBlocksTopLevels"
31988
31985
  }
31989
31986
  }
31990
31987
  },
31991
31988
  "required": [
31992
31989
  "type",
31990
+ "messageId",
31991
+ "stepIndex",
31993
31992
  "operation",
31994
31993
  "blocks"
31995
31994
  ]
@@ -32004,6 +32003,10 @@
32004
32003
  "response_object"
32005
32004
  ]
32006
32005
  },
32006
+ "messageId": {
32007
+ "type": "string",
32008
+ "description": "The ID of the message that this event is composing.\n"
32009
+ },
32007
32010
  "jsonChunk": {
32008
32011
  "type": "string",
32009
32012
  "description": "The chunk of the JSON object response"
@@ -32011,6 +32014,7 @@
32011
32014
  },
32012
32015
  "required": [
32013
32016
  "type",
32017
+ "messageId",
32014
32018
  "jsonChunk"
32015
32019
  ]
32016
32020
  },
@@ -32114,6 +32118,226 @@
32114
32118
  "results"
32115
32119
  ]
32116
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
+ },
32117
32341
  "AIToolCall": {
32118
32342
  "oneOf": [
32119
32343
  {
@@ -32124,6 +32348,30 @@
32124
32348
  },
32125
32349
  {
32126
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"
32127
32375
  }
32128
32376
  ]
32129
32377
  },
@@ -32137,12 +32385,22 @@
32137
32385
  "response_tool_call"
32138
32386
  ]
32139
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
+ },
32140
32396
  "toolCall": {
32141
32397
  "$ref": "#/components/schemas/AIToolCall"
32142
32398
  }
32143
32399
  },
32144
32400
  "required": [
32145
32401
  "type",
32402
+ "messageId",
32403
+ "stepIndex",
32146
32404
  "toolCall"
32147
32405
  ]
32148
32406
  },
@@ -34461,7 +34719,7 @@
34461
34719
  "type": "string",
34462
34720
  "description": "The source path to redirect from.",
34463
34721
  "maxLength": 512,
34464
- "pattern": "^/[a-zA-Z0-9-_.\\/]+[a-zA-Z0-9-_.]$"
34722
+ "pattern": "^\\/(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+(?:\\/(?:[A-Za-z0-9\\-._~]|%[0-9A-Fa-f]{2})+)*$"
34465
34723
  },
34466
34724
  "SiteRedirectDestinationSiteSection": {
34467
34725
  "type": "object",
@@ -35265,6 +35523,19 @@
35265
35523
  }
35266
35524
  ]
35267
35525
  },
35526
+ "SiteVisitorPayload": {
35527
+ "type": "object",
35528
+ "description": "An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims.",
35529
+ "properties": {
35530
+ "jwtToken": {
35531
+ "type": "string",
35532
+ "description": "JWT token generated for a visitor auth session."
35533
+ },
35534
+ "unsignedClaims": {
35535
+ "$ref": "#/components/schemas/PlainObject"
35536
+ }
35537
+ }
35538
+ },
35268
35539
  "SHA256": {
35269
35540
  "type": "string",
35270
35541
  "minLength": 64,
@@ -37844,35 +38115,7 @@
37844
38115
  ]
37845
38116
  },
37846
38117
  "favicon": {
37847
- "oneOf": [
37848
- {
37849
- "type": "object",
37850
- "properties": {
37851
- "icon": {
37852
- "$ref": "#/components/schemas/CustomizationThemedURL"
37853
- }
37854
- },
37855
- "required": [
37856
- "icon"
37857
- ]
37858
- },
37859
- {
37860
- "type": "object",
37861
- "properties": {
37862
- "emoji": {
37863
- "$ref": "#/components/schemas/Emoji"
37864
- }
37865
- },
37866
- "required": [
37867
- "emoji"
37868
- ]
37869
- },
37870
- {
37871
- "type": "object",
37872
- "properties": {},
37873
- "additionalProperties": false
37874
- }
37875
- ]
38118
+ "$ref": "#/components/schemas/CustomizationFavicon"
37876
38119
  },
37877
38120
  "header": {
37878
38121
  "type": "object",
@@ -38090,6 +38333,294 @@
38090
38333
  "updatedAt"
38091
38334
  ]
38092
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
+ },
38093
38624
  "RequestSpaceTrackPageView": {
38094
38625
  "$ref": "#/components/schemas/SpaceTrackPageView"
38095
38626
  },