@gitbook/api 0.71.0 → 0.73.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
@@ -1103,43 +1103,6 @@
1103
1103
  }
1104
1104
  }
1105
1105
  },
1106
- "/spaces/{spaceId}/git/sync": {
1107
- "post": {
1108
- "operationId": "syncGitRepository",
1109
- "summary": "Synchronize a Git repository with the space content.",
1110
- "tags": [
1111
- "spaces"
1112
- ],
1113
- "security": [
1114
- {
1115
- "user": []
1116
- }
1117
- ],
1118
- "parameters": [
1119
- {
1120
- "$ref": "#/components/parameters/spaceId"
1121
- }
1122
- ],
1123
- "responses": {
1124
- "204": {
1125
- "description": "Operation to synchronize the repository has been started."
1126
- },
1127
- "default": {
1128
- "$ref": "#/components/responses/UnexpectedError"
1129
- }
1130
- },
1131
- "requestBody": {
1132
- "required": true,
1133
- "content": {
1134
- "application/json": {
1135
- "schema": {
1136
- "$ref": "#/components/schemas/SyncGitRepository"
1137
- }
1138
- }
1139
- }
1140
- }
1141
- }
1142
- },
1143
1106
  "/spaces/{spaceId}/git/info": {
1144
1107
  "get": {
1145
1108
  "operationId": "getSpaceGitInfo",
@@ -4046,75 +4009,6 @@
4046
4009
  }
4047
4010
  }
4048
4011
  },
4049
- "/spaces/{spaceId}/change-requests/{changeRequestId}/touched-content": {
4050
- "post": {
4051
- "operationId": "touchContentInChangeRequest",
4052
- "summary": "Touch Hive content, marking it as modified as part of this change request.",
4053
- "tags": [
4054
- "spaces"
4055
- ],
4056
- "security": [
4057
- {
4058
- "user": []
4059
- }
4060
- ],
4061
- "parameters": [
4062
- {
4063
- "$ref": "#/components/parameters/spaceId"
4064
- },
4065
- {
4066
- "$ref": "#/components/parameters/changeRequestId"
4067
- }
4068
- ],
4069
- "responses": {
4070
- "200": {
4071
- "description": "Content marked as touched.",
4072
- "content": {
4073
- "application/json": {
4074
- "schema": {
4075
- "$ref": "#/components/schemas/ChangeRequest"
4076
- }
4077
- }
4078
- }
4079
- },
4080
- "default": {
4081
- "$ref": "#/components/responses/UnexpectedError"
4082
- }
4083
- },
4084
- "requestBody": {
4085
- "required": true,
4086
- "content": {
4087
- "application/json": {
4088
- "schema": {
4089
- "type": "object",
4090
- "properties": {
4091
- "contentId": {
4092
- "type": "string",
4093
- "description": "The content id of the touched content."
4094
- },
4095
- "branchId": {
4096
- "type": "string",
4097
- "description": "The branch id of the touched content."
4098
- },
4099
- "relation": {
4100
- "type": "string",
4101
- "description": "The relation of the touched content to the change request.",
4102
- "enum": [
4103
- "synced-block"
4104
- ]
4105
- }
4106
- },
4107
- "required": [
4108
- "contentId",
4109
- "branchId",
4110
- "relation"
4111
- ]
4112
- }
4113
- }
4114
- }
4115
- }
4116
- }
4117
- },
4118
4012
  "/spaces/{spaceId}/change-requests/{changeRequestId}/pdf": {
4119
4013
  "get": {
4120
4014
  "operationId": "getChangeRequestPDF",
@@ -4177,65 +4071,6 @@
4177
4071
  }
4178
4072
  }
4179
4073
  },
4180
- "/spaces/{spaceId}/change-requests/{changeRequestId}/synced-blocks/{syncedBlockId}/content": {
4181
- "get": {
4182
- "operationId": "getSyncedBlockContentInChangeRequest",
4183
- "summary": "Get the content of a synced block in the context of a change request.",
4184
- "tags": [
4185
- "spaces"
4186
- ],
4187
- "security": [
4188
- {
4189
- "user": []
4190
- }
4191
- ],
4192
- "parameters": [
4193
- {
4194
- "$ref": "#/components/parameters/spaceId"
4195
- },
4196
- {
4197
- "$ref": "#/components/parameters/changeRequestId"
4198
- },
4199
- {
4200
- "$ref": "#/components/parameters/syncedBlockId"
4201
- }
4202
- ],
4203
- "responses": {
4204
- "200": {
4205
- "description": "OK",
4206
- "content": {
4207
- "application/json": {
4208
- "schema": {
4209
- "type": "object",
4210
- "properties": {
4211
- "document": {
4212
- "$ref": "#/components/schemas/JSONDocument"
4213
- },
4214
- "files": {
4215
- "type": "array",
4216
- "items": {
4217
- "$ref": "#/components/schemas/RevisionFile"
4218
- }
4219
- }
4220
- },
4221
- "required": [
4222
- "document",
4223
- "files"
4224
- ]
4225
- }
4226
- }
4227
- }
4228
- },
4229
- "404": {
4230
- "description": "The space, change request, synced block or its content could not be found.",
4231
- "$ref": "#/components/responses/NotFoundError"
4232
- },
4233
- "default": {
4234
- "$ref": "#/components/responses/UnexpectedError"
4235
- }
4236
- }
4237
- }
4238
- },
4239
4074
  "/spaces/{spaceId}/revisions/{revisionId}": {
4240
4075
  "get": {
4241
4076
  "operationId": "getRevisionById",
@@ -11622,13 +11457,10 @@
11622
11457
  }
11623
11458
  }
11624
11459
  },
11625
- "/orgs/{organizationId}/synced-blocks": {
11626
- "get": {
11627
- "operationId": "listSyncedBlocks",
11628
- "summary": "List all the synced blocks created in an organization",
11629
- "tags": [
11630
- "organizations"
11631
- ],
11460
+ "/orgs/{organizationId}/ask": {
11461
+ "post": {
11462
+ "operationId": "askInOrganization",
11463
+ "summary": "Ask a question.",
11632
11464
  "security": [
11633
11465
  {
11634
11466
  "user": []
@@ -11639,49 +11471,39 @@
11639
11471
  "$ref": "#/components/parameters/organizationId"
11640
11472
  },
11641
11473
  {
11642
- "$ref": "#/components/parameters/listPage"
11643
- },
11644
- {
11645
- "$ref": "#/components/parameters/listLimit"
11474
+ "$ref": "#/components/parameters/documentFormat"
11646
11475
  },
11647
11476
  {
11648
- "name": "ids",
11477
+ "name": "details",
11649
11478
  "in": "query",
11650
- "description": "A list of IDs to filter the synced blocks.",
11651
- "required": false,
11479
+ "description": "Return query details in the result",
11652
11480
  "schema": {
11653
- "type": "array",
11654
- "items": {
11655
- "type": "string"
11656
- }
11481
+ "type": "boolean"
11657
11482
  }
11658
11483
  }
11659
11484
  ],
11485
+ "requestBody": {
11486
+ "required": true,
11487
+ "content": {
11488
+ "application/json": {
11489
+ "schema": {
11490
+ "$ref": "#/components/schemas/SearchAIQuery"
11491
+ }
11492
+ }
11493
+ }
11494
+ },
11660
11495
  "responses": {
11661
11496
  "200": {
11662
11497
  "description": "OK",
11663
11498
  "content": {
11664
11499
  "application/json": {
11665
11500
  "schema": {
11666
- "allOf": [
11667
- {
11668
- "$ref": "#/components/schemas/List"
11669
- },
11670
- {
11671
- "type": "object",
11672
- "required": [
11673
- "items"
11674
- ],
11675
- "properties": {
11676
- "items": {
11677
- "type": "array",
11678
- "items": {
11679
- "$ref": "#/components/schemas/SyncedBlock"
11680
- }
11681
- }
11682
- }
11501
+ "type": "object",
11502
+ "properties": {
11503
+ "answer": {
11504
+ "$ref": "#/components/schemas/SearchAIAnswer"
11683
11505
  }
11684
- ]
11506
+ }
11685
11507
  }
11686
11508
  }
11687
11509
  }
@@ -11690,54 +11512,29 @@
11690
11512
  "$ref": "#/components/responses/UnexpectedError"
11691
11513
  }
11692
11514
  }
11693
- },
11694
- "post": {
11695
- "operationId": "createSyncedBlock",
11696
- "summary": "Create a new synced block",
11697
- "tags": [
11698
- "organizations"
11699
- ],
11700
- "security": [
11701
- {
11702
- "user": []
11703
- }
11704
- ],
11515
+ }
11516
+ },
11517
+ "/orgs/{organizationId}/ask/questions": {
11518
+ "get": {
11519
+ "operationId": "getRecommendedQuestionsInOrganization",
11520
+ "summary": "Get a list of questions recommended to be asked in an organization.",
11705
11521
  "parameters": [
11706
11522
  {
11707
11523
  "$ref": "#/components/parameters/organizationId"
11708
11524
  }
11709
11525
  ],
11710
- "requestBody": {
11711
- "required": true,
11712
- "content": {
11713
- "application/json": {
11714
- "schema": {
11715
- "type": "object",
11716
- "properties": {
11717
- "title": {
11718
- "type": "string",
11719
- "description": "Title of synced block"
11720
- }
11721
- }
11722
- }
11723
- }
11526
+ "security": [
11527
+ {
11528
+ "user": []
11724
11529
  }
11725
- },
11530
+ ],
11726
11531
  "responses": {
11727
- "201": {
11728
- "description": "Synced block created",
11729
- "headers": {
11730
- "Location": {
11731
- "description": "API URL for the newly created synced block",
11732
- "schema": {
11733
- "type": "string"
11734
- }
11735
- }
11736
- },
11532
+ "200": {
11533
+ "description": "OK",
11737
11534
  "content": {
11738
11535
  "application/json": {
11739
11536
  "schema": {
11740
- "$ref": "#/components/schemas/SyncedBlock"
11537
+ "$ref": "#/components/schemas/SearchAIRecommendedQuestions"
11741
11538
  }
11742
11539
  }
11743
11540
  }
@@ -11748,422 +11545,27 @@
11748
11545
  }
11749
11546
  }
11750
11547
  },
11751
- "/orgs/{organizationId}/synced-blocks/{syncedBlockId}": {
11548
+ "/orgs/{organizationId}/ask/questions/stream": {
11752
11549
  "get": {
11753
- "operationId": "getSyncedBlock",
11754
- "summary": "Get a synced block by its ID",
11755
- "tags": [
11756
- "organizations"
11757
- ],
11758
- "security": [
11759
- {
11760
- "user": []
11761
- }
11762
- ],
11550
+ "operationId": "streamRecommendedQuestionsInOrganization",
11551
+ "summary": "Stream a list of questions recommended to be asked in an organization.",
11763
11552
  "parameters": [
11764
11553
  {
11765
11554
  "$ref": "#/components/parameters/organizationId"
11766
- },
11555
+ }
11556
+ ],
11557
+ "security": [
11767
11558
  {
11768
- "$ref": "#/components/parameters/syncedBlockId"
11559
+ "user": []
11769
11560
  }
11770
11561
  ],
11771
11562
  "responses": {
11772
11563
  "200": {
11773
11564
  "description": "OK",
11774
11565
  "content": {
11775
- "application/json": {
11566
+ "text/event-stream": {
11776
11567
  "schema": {
11777
- "$ref": "#/components/schemas/SyncedBlock"
11778
- }
11779
- }
11780
- }
11781
- },
11782
- "default": {
11783
- "$ref": "#/components/responses/UnexpectedError"
11784
- }
11785
- }
11786
- },
11787
- "patch": {
11788
- "operationId": "updateSyncedBlock",
11789
- "summary": "Update an existing synced block.",
11790
- "tags": [
11791
- "organizations"
11792
- ],
11793
- "security": [
11794
- {
11795
- "user": []
11796
- }
11797
- ],
11798
- "parameters": [
11799
- {
11800
- "$ref": "#/components/parameters/organizationId"
11801
- },
11802
- {
11803
- "$ref": "#/components/parameters/syncedBlockId"
11804
- }
11805
- ],
11806
- "requestBody": {
11807
- "required": true,
11808
- "content": {
11809
- "application/json": {
11810
- "schema": {
11811
- "type": "object",
11812
- "properties": {
11813
- "title": {
11814
- "type": "string",
11815
- "description": "A new title for the Synced Block."
11816
- },
11817
- "description": {
11818
- "type": "string",
11819
- "description": "A new description for the Synced Block."
11820
- }
11821
- }
11822
- }
11823
- }
11824
- }
11825
- },
11826
- "responses": {
11827
- "200": {
11828
- "description": "OK"
11829
- },
11830
- "default": {
11831
- "$ref": "#/components/responses/UnexpectedError"
11832
- }
11833
- }
11834
- },
11835
- "delete": {
11836
- "operationId": "deleteSyncedBlock",
11837
- "summary": "Delete a synced block by its ID",
11838
- "tags": [
11839
- "organizations"
11840
- ],
11841
- "security": [
11842
- {
11843
- "user": []
11844
- }
11845
- ],
11846
- "parameters": [
11847
- {
11848
- "$ref": "#/components/parameters/organizationId"
11849
- },
11850
- {
11851
- "$ref": "#/components/parameters/syncedBlockId"
11852
- }
11853
- ],
11854
- "responses": {
11855
- "204": {
11856
- "description": "OK"
11857
- },
11858
- "default": {
11859
- "$ref": "#/components/responses/UnexpectedError"
11860
- }
11861
- }
11862
- }
11863
- },
11864
- "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content": {
11865
- "get": {
11866
- "operationId": "getSyncedBlockContent",
11867
- "summary": "Get the content of a synced block.",
11868
- "tags": [
11869
- "organizations"
11870
- ],
11871
- "security": [
11872
- {
11873
- "user": []
11874
- }
11875
- ],
11876
- "parameters": [
11877
- {
11878
- "$ref": "#/components/parameters/organizationId"
11879
- },
11880
- {
11881
- "$ref": "#/components/parameters/syncedBlockId"
11882
- }
11883
- ],
11884
- "responses": {
11885
- "200": {
11886
- "description": "OK",
11887
- "content": {
11888
- "application/json": {
11889
- "schema": {
11890
- "type": "object",
11891
- "properties": {
11892
- "document": {
11893
- "$ref": "#/components/schemas/JSONDocument"
11894
- },
11895
- "files": {
11896
- "type": "array",
11897
- "items": {
11898
- "$ref": "#/components/schemas/RevisionFile"
11899
- }
11900
- }
11901
- },
11902
- "required": [
11903
- "document",
11904
- "files"
11905
- ]
11906
- }
11907
- }
11908
- }
11909
- },
11910
- "404": {
11911
- "description": "The synced block or its content could not be found.",
11912
- "$ref": "#/components/responses/NotFoundError"
11913
- },
11914
- "default": {
11915
- "$ref": "#/components/responses/UnexpectedError"
11916
- }
11917
- }
11918
- }
11919
- },
11920
- "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks": {
11921
- "get": {
11922
- "operationId": "listSyncedBlockBacklinks",
11923
- "summary": "Get a list of pages that reference this synced block.",
11924
- "tags": [
11925
- "organizations"
11926
- ],
11927
- "security": [
11928
- {
11929
- "user": []
11930
- }
11931
- ],
11932
- "parameters": [
11933
- {
11934
- "$ref": "#/components/parameters/organizationId"
11935
- },
11936
- {
11937
- "$ref": "#/components/parameters/syncedBlockId"
11938
- },
11939
- {
11940
- "$ref": "#/components/parameters/listPage"
11941
- },
11942
- {
11943
- "$ref": "#/components/parameters/listLimit"
11944
- },
11945
- {
11946
- "name": "changeRequestId",
11947
- "in": "query",
11948
- "description": "Filter backlinks relative to a change request.",
11949
- "schema": {
11950
- "type": "string"
11951
- }
11952
- },
11953
- {
11954
- "name": "spaceId",
11955
- "in": "query",
11956
- "description": "Filter backlinks relative to a space.",
11957
- "schema": {
11958
- "type": "string"
11959
- }
11960
- }
11961
- ],
11962
- "responses": {
11963
- "200": {
11964
- "description": "OK",
11965
- "content": {
11966
- "application/json": {
11967
- "schema": {
11968
- "allOf": [
11969
- {
11970
- "$ref": "#/components/schemas/List"
11971
- },
11972
- {
11973
- "type": "object",
11974
- "required": [
11975
- "items"
11976
- ],
11977
- "properties": {
11978
- "items": {
11979
- "type": "array",
11980
- "items": {
11981
- "$ref": "#/components/schemas/ContentLocationPage"
11982
- }
11983
- }
11984
- }
11985
- }
11986
- ]
11987
- }
11988
- }
11989
- }
11990
- },
11991
- "default": {
11992
- "$ref": "#/components/responses/UnexpectedError"
11993
- }
11994
- }
11995
- }
11996
- },
11997
- "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/usage/spaces": {
11998
- "get": {
11999
- "operationId": "listSyncedBlockSpaces",
12000
- "summary": "Get a list of spaces that reference this synced block.",
12001
- "tags": [
12002
- "organizations"
12003
- ],
12004
- "security": [
12005
- {
12006
- "user": []
12007
- }
12008
- ],
12009
- "parameters": [
12010
- {
12011
- "$ref": "#/components/parameters/organizationId"
12012
- },
12013
- {
12014
- "$ref": "#/components/parameters/syncedBlockId"
12015
- },
12016
- {
12017
- "$ref": "#/components/parameters/listPage"
12018
- },
12019
- {
12020
- "$ref": "#/components/parameters/listLimit"
12021
- }
12022
- ],
12023
- "responses": {
12024
- "200": {
12025
- "description": "OK",
12026
- "content": {
12027
- "application/json": {
12028
- "schema": {
12029
- "allOf": [
12030
- {
12031
- "$ref": "#/components/schemas/List"
12032
- },
12033
- {
12034
- "type": "object",
12035
- "required": [
12036
- "items"
12037
- ],
12038
- "properties": {
12039
- "items": {
12040
- "type": "array",
12041
- "items": {
12042
- "$ref": "#/components/schemas/Space"
12043
- }
12044
- }
12045
- }
12046
- }
12047
- ]
12048
- }
12049
- }
12050
- }
12051
- },
12052
- "default": {
12053
- "$ref": "#/components/responses/UnexpectedError"
12054
- }
12055
- }
12056
- }
12057
- },
12058
- "/orgs/{organizationId}/ask": {
12059
- "post": {
12060
- "operationId": "askInOrganization",
12061
- "summary": "Ask a question.",
12062
- "security": [
12063
- {
12064
- "user": []
12065
- }
12066
- ],
12067
- "parameters": [
12068
- {
12069
- "$ref": "#/components/parameters/organizationId"
12070
- },
12071
- {
12072
- "$ref": "#/components/parameters/documentFormat"
12073
- },
12074
- {
12075
- "name": "details",
12076
- "in": "query",
12077
- "description": "Return query details in the result",
12078
- "schema": {
12079
- "type": "boolean"
12080
- }
12081
- }
12082
- ],
12083
- "requestBody": {
12084
- "required": true,
12085
- "content": {
12086
- "application/json": {
12087
- "schema": {
12088
- "$ref": "#/components/schemas/SearchAIQuery"
12089
- }
12090
- }
12091
- }
12092
- },
12093
- "responses": {
12094
- "200": {
12095
- "description": "OK",
12096
- "content": {
12097
- "application/json": {
12098
- "schema": {
12099
- "type": "object",
12100
- "properties": {
12101
- "answer": {
12102
- "$ref": "#/components/schemas/SearchAIAnswer"
12103
- }
12104
- }
12105
- }
12106
- }
12107
- }
12108
- },
12109
- "default": {
12110
- "$ref": "#/components/responses/UnexpectedError"
12111
- }
12112
- }
12113
- }
12114
- },
12115
- "/orgs/{organizationId}/ask/questions": {
12116
- "get": {
12117
- "operationId": "getRecommendedQuestionsInOrganization",
12118
- "summary": "Get a list of questions recommended to be asked in an organization.",
12119
- "parameters": [
12120
- {
12121
- "$ref": "#/components/parameters/organizationId"
12122
- }
12123
- ],
12124
- "security": [
12125
- {
12126
- "user": []
12127
- }
12128
- ],
12129
- "responses": {
12130
- "200": {
12131
- "description": "OK",
12132
- "content": {
12133
- "application/json": {
12134
- "schema": {
12135
- "$ref": "#/components/schemas/SearchAIRecommendedQuestions"
12136
- }
12137
- }
12138
- }
12139
- },
12140
- "default": {
12141
- "$ref": "#/components/responses/UnexpectedError"
12142
- }
12143
- }
12144
- }
12145
- },
12146
- "/orgs/{organizationId}/ask/questions/stream": {
12147
- "get": {
12148
- "operationId": "streamRecommendedQuestionsInOrganization",
12149
- "summary": "Stream a list of questions recommended to be asked in an organization.",
12150
- "parameters": [
12151
- {
12152
- "$ref": "#/components/parameters/organizationId"
12153
- }
12154
- ],
12155
- "security": [
12156
- {
12157
- "user": []
12158
- }
12159
- ],
12160
- "responses": {
12161
- "200": {
12162
- "description": "OK",
12163
- "content": {
12164
- "text/event-stream": {
12165
- "schema": {
12166
- "$ref": "#/components/schemas/SearchAIRecommendedQuestionStream"
11568
+ "$ref": "#/components/schemas/SearchAIRecommendedQuestionStream"
12167
11569
  }
12168
11570
  }
12169
11571
  }
@@ -12916,42 +12318,7 @@
12916
12318
  "content": {
12917
12319
  "application/json": {
12918
12320
  "schema": {
12919
- "oneOf": [
12920
- {
12921
- "type": "object",
12922
- "properties": {
12923
- "type": {
12924
- "type": "string",
12925
- "enum": [
12926
- "sections"
12927
- ]
12928
- },
12929
- "structure": {
12930
- "type": "array",
12931
- "items": {
12932
- "$ref": "#/components/schemas/SiteSection"
12933
- }
12934
- }
12935
- }
12936
- },
12937
- {
12938
- "type": "object",
12939
- "properties": {
12940
- "type": {
12941
- "type": "string",
12942
- "enum": [
12943
- "siteSpaces"
12944
- ]
12945
- },
12946
- "structure": {
12947
- "type": "array",
12948
- "items": {
12949
- "$ref": "#/components/schemas/SiteSpace"
12950
- }
12951
- }
12952
- }
12953
- }
12954
- ]
12321
+ "$ref": "#/components/schemas/SiteStructure"
12955
12322
  }
12956
12323
  }
12957
12324
  }
@@ -13943,21 +13310,75 @@
13943
13310
  "content": {
13944
13311
  "application/json": {
13945
13312
  "schema": {
13946
- "type": "object",
13947
- "properties": {
13948
- "query": {
13949
- "type": "string"
13313
+ "oneOf": [
13314
+ {
13315
+ "type": "object",
13316
+ "properties": {
13317
+ "mode": {
13318
+ "description": "Search only in the site spaces provided",
13319
+ "type": "string",
13320
+ "enum": [
13321
+ "specific"
13322
+ ]
13323
+ },
13324
+ "siteSpaceIds": {
13325
+ "type": "array",
13326
+ "minLength": 1,
13327
+ "items": {
13328
+ "type": "string"
13329
+ }
13330
+ },
13331
+ "query": {
13332
+ "type": "string"
13333
+ }
13334
+ },
13335
+ "required": [
13336
+ "siteSpaceIds",
13337
+ "query"
13338
+ ]
13950
13339
  },
13951
- "siteSpaceIds": {
13952
- "type": "array",
13953
- "minLength": 1,
13954
- "items": {
13955
- "type": "string"
13956
- }
13340
+ {
13341
+ "type": "object",
13342
+ "properties": {
13343
+ "mode": {
13344
+ "description": "Search in the current site space and all section's defaults",
13345
+ "type": "string",
13346
+ "enum": [
13347
+ "current"
13348
+ ]
13349
+ },
13350
+ "siteSpaceId": {
13351
+ "type": "string"
13352
+ },
13353
+ "query": {
13354
+ "type": "string"
13355
+ }
13356
+ },
13357
+ "required": [
13358
+ "mode",
13359
+ "siteSpaceId",
13360
+ "query"
13361
+ ]
13362
+ },
13363
+ {
13364
+ "type": "object",
13365
+ "properties": {
13366
+ "mode": {
13367
+ "description": "search in all site-spaces",
13368
+ "type": "string",
13369
+ "enum": [
13370
+ "all"
13371
+ ]
13372
+ },
13373
+ "query": {
13374
+ "type": "string"
13375
+ }
13376
+ },
13377
+ "required": [
13378
+ "mode",
13379
+ "query"
13380
+ ]
13957
13381
  }
13958
- },
13959
- "required": [
13960
- "query"
13961
13382
  ]
13962
13383
  }
13963
13384
  }
@@ -14774,6 +14195,69 @@
14774
14195
  }
14775
14196
  }
14776
14197
  },
14198
+ "/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move": {
14199
+ "post": {
14200
+ "operationId": "moveSiteSection",
14201
+ "summary": "Move a site section to a new position in the site.",
14202
+ "tags": [
14203
+ "sites"
14204
+ ],
14205
+ "security": [
14206
+ {
14207
+ "user": []
14208
+ }
14209
+ ],
14210
+ "parameters": [
14211
+ {
14212
+ "$ref": "#/components/parameters/organizationId"
14213
+ },
14214
+ {
14215
+ "$ref": "#/components/parameters/siteId"
14216
+ },
14217
+ {
14218
+ "$ref": "#/components/parameters/siteSectionId"
14219
+ }
14220
+ ],
14221
+ "requestBody": {
14222
+ "content": {
14223
+ "application/json": {
14224
+ "schema": {
14225
+ "type": "object",
14226
+ "properties": {
14227
+ "position": {
14228
+ "description": "The position where to move the site section. When not provided the site section is moved at the end of the site.",
14229
+ "$ref": "#/components/schemas/SiteSectionMovePosition"
14230
+ }
14231
+ }
14232
+ }
14233
+ }
14234
+ }
14235
+ },
14236
+ "responses": {
14237
+ "200": {
14238
+ "description": "Site section moved",
14239
+ "content": {
14240
+ "application/json": {
14241
+ "schema": {
14242
+ "$ref": "#/components/schemas/SiteSection"
14243
+ }
14244
+ }
14245
+ }
14246
+ },
14247
+ "400": {
14248
+ "description": "Invalid move site section position provided",
14249
+ "$ref": "#/components/responses/BadRequestError"
14250
+ },
14251
+ "404": {
14252
+ "description": "No matching Site section found",
14253
+ "$ref": "#/components/responses/NotFoundError"
14254
+ },
14255
+ "default": {
14256
+ "$ref": "#/components/responses/UnexpectedError"
14257
+ }
14258
+ }
14259
+ }
14260
+ },
14777
14261
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move": {
14778
14262
  "post": {
14779
14263
  "operationId": "moveSiteSpace",
@@ -15921,15 +15405,6 @@
15921
15405
  "type": "string"
15922
15406
  }
15923
15407
  },
15924
- "syncedBlockId": {
15925
- "name": "syncedBlockId",
15926
- "in": "path",
15927
- "required": true,
15928
- "description": "The unique id of a synced block",
15929
- "schema": {
15930
- "type": "string"
15931
- }
15932
- },
15933
15408
  "revisionId": {
15934
15409
  "name": "revisionId",
15935
15410
  "in": "path",
@@ -16752,24 +16227,6 @@
16752
16227
  "organization"
16753
16228
  ]
16754
16229
  },
16755
- "ContentRefSyncedBlock": {
16756
- "type": "object",
16757
- "properties": {
16758
- "kind": {
16759
- "type": "string",
16760
- "enum": [
16761
- "synced-block"
16762
- ]
16763
- },
16764
- "syncedBlock": {
16765
- "type": "string"
16766
- }
16767
- },
16768
- "required": [
16769
- "kind",
16770
- "syncedBlock"
16771
- ]
16772
- },
16773
16230
  "ContentRefReusableContent": {
16774
16231
  "type": "object",
16775
16232
  "properties": {
@@ -16815,9 +16272,6 @@
16815
16272
  {
16816
16273
  "$ref": "#/components/schemas/ContentRefSnippet"
16817
16274
  },
16818
- {
16819
- "$ref": "#/components/schemas/ContentRefSyncedBlock"
16820
- },
16821
16275
  {
16822
16276
  "$ref": "#/components/schemas/ContentRefReusableContent"
16823
16277
  }
@@ -19187,61 +18641,6 @@
19187
18641
  "isVoid"
19188
18642
  ]
19189
18643
  },
19190
- "DocumentBlockSyncedBlock": {
19191
- "type": "object",
19192
- "properties": {
19193
- "object": {
19194
- "type": "string",
19195
- "enum": [
19196
- "block"
19197
- ]
19198
- },
19199
- "type": {
19200
- "type": "string",
19201
- "enum": [
19202
- "synced-block"
19203
- ]
19204
- },
19205
- "key": {
19206
- "type": "string"
19207
- },
19208
- "data": {
19209
- "type": "object",
19210
- "properties": {
19211
- "ref": {
19212
- "$ref": "#/components/schemas/ContentRefSyncedBlock"
19213
- }
19214
- },
19215
- "required": [
19216
- "ref"
19217
- ]
19218
- },
19219
- "meta": {
19220
- "type": "object",
19221
- "properties": {
19222
- "apiToken": {
19223
- "description": "API Token to use to fetch the synced block from the API.",
19224
- "type": "string"
19225
- }
19226
- },
19227
- "required": [
19228
- "apiToken"
19229
- ]
19230
- },
19231
- "isVoid": {
19232
- "type": "boolean",
19233
- "enum": [
19234
- true
19235
- ]
19236
- }
19237
- },
19238
- "required": [
19239
- "object",
19240
- "type",
19241
- "data",
19242
- "isVoid"
19243
- ]
19244
- },
19245
18644
  "DocumentBlockReusableContent": {
19246
18645
  "type": "object",
19247
18646
  "properties": {
@@ -19454,9 +18853,6 @@
19454
18853
  {
19455
18854
  "$ref": "#/components/schemas/DocumentBlockIntegration"
19456
18855
  },
19457
- {
19458
- "$ref": "#/components/schemas/DocumentBlockSyncedBlock"
19459
- },
19460
18856
  {
19461
18857
  "$ref": "#/components/schemas/DocumentBlockReusableContent"
19462
18858
  },
@@ -20443,70 +19839,6 @@
20443
19839
  "commitMessage"
20444
19840
  ]
20445
19841
  },
20446
- "SyncGitRepository": {
20447
- "type": "object",
20448
- "properties": {
20449
- "ref": {
20450
- "type": "string",
20451
- "description": "Git ref in the format \"refs/heads/main\""
20452
- },
20453
- "repoURL": {
20454
- "type": "string",
20455
- "description": "URL of the Git repository used for synchronization. It can contain basic auth credentials."
20456
- },
20457
- "repoTreeURL": {
20458
- "type": "string",
20459
- "description": "URL to use as a prefix for external file references."
20460
- },
20461
- "repoCommitURL": {
20462
- "type": "string",
20463
- "description": "URL to use as a prefix for the commit URL."
20464
- },
20465
- "repoProjectDirectory": {
20466
- "type": "string",
20467
- "description": "Path to a root directory for the project in the repository."
20468
- },
20469
- "commitMessageTemplate": {
20470
- "type": "string",
20471
- "description": "Template message for the commit generated during the synchronization."
20472
- },
20473
- "standalone": {
20474
- "type": "boolean",
20475
- "description": "If true, the synchronization of the ref will generate a revision without updating the space primary content."
20476
- },
20477
- "force": {
20478
- "type": "object",
20479
- "description": "Whether to force the synchronization",
20480
- "properties": {
20481
- "priority": {
20482
- "type": "string",
20483
- "enum": [
20484
- "gitbook",
20485
- "git"
20486
- ]
20487
- }
20488
- },
20489
- "required": [
20490
- "priority"
20491
- ]
20492
- },
20493
- "timestamp": {
20494
- "description": "The timestamp of the event. It ensures the synchronize operations are executed in the same order on GitBook and on the remote repository.\n",
20495
- "$ref": "#/components/schemas/Timestamp"
20496
- },
20497
- "gitInfo": {
20498
- "description": "Optional metadata to store on the space about the Git provider",
20499
- "$ref": "#/components/schemas/UpdateSpaceGitInfo"
20500
- }
20501
- },
20502
- "required": [
20503
- "ref",
20504
- "repoURL",
20505
- "repoTreeURL",
20506
- "repoCommitURL",
20507
- "commitMessageTemplate"
20508
- ]
20509
- },
20510
19842
  "Icon": {
20511
19843
  "type": "string",
20512
19844
  "maxLength": 50,
@@ -20821,14 +20153,58 @@
20821
20153
  "description": "Content reference pointing to the source image.",
20822
20154
  "$ref": "#/components/schemas/ContentRefFile"
20823
20155
  },
20824
- "yPos": {
20825
- "description": "Vertical position of the cover image.",
20826
- "type": "number"
20156
+ "yPos": {
20157
+ "description": "Vertical position of the cover image.",
20158
+ "type": "number"
20159
+ }
20160
+ },
20161
+ "required": [
20162
+ "yPos"
20163
+ ]
20164
+ },
20165
+ "AnalyticsFeedbacksPageScore": {
20166
+ "type": "object",
20167
+ "description": "A score breakdown for a specific page.",
20168
+ "required": [
20169
+ "score",
20170
+ "total",
20171
+ "rating",
20172
+ "ponderedScore",
20173
+ "bad",
20174
+ "ok",
20175
+ "good"
20176
+ ],
20177
+ "properties": {
20178
+ "score": {
20179
+ "type": "number",
20180
+ "description": "Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad')."
20181
+ },
20182
+ "total": {
20183
+ "type": "number",
20184
+ "description": "Total number of ratings done by end users."
20185
+ },
20186
+ "rating": {
20187
+ "type": "string",
20188
+ "deprecated": true,
20189
+ "description": "Summary of the rating based on the score ('good', 'ok', or 'bad')"
20190
+ },
20191
+ "ponderedScore": {
20192
+ "type": "number",
20193
+ "description": "Score multiplied by the number of ratings to give more importance to highly rated content."
20194
+ },
20195
+ "bad": {
20196
+ "type": "number",
20197
+ "description": "Number of 'bad' ratings."
20198
+ },
20199
+ "ok": {
20200
+ "type": "number",
20201
+ "description": "Number of 'ok' ratings."
20202
+ },
20203
+ "good": {
20204
+ "type": "number",
20205
+ "description": "Number of 'good' ratings."
20827
20206
  }
20828
- },
20829
- "required": [
20830
- "yPos"
20831
- ]
20207
+ }
20832
20208
  },
20833
20209
  "AnalyticsContentPage": {
20834
20210
  "type": "object",
@@ -20845,47 +20221,7 @@
20845
20221
  "type": "number"
20846
20222
  },
20847
20223
  "feedbacks": {
20848
- "type": "object",
20849
- "required": [
20850
- "score",
20851
- "total",
20852
- "rating",
20853
- "ponderedScore",
20854
- "bad",
20855
- "ok",
20856
- "good"
20857
- ],
20858
- "properties": {
20859
- "score": {
20860
- "type": "number",
20861
- "description": "Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad')."
20862
- },
20863
- "total": {
20864
- "type": "number",
20865
- "description": "Total number of ratings done by end users."
20866
- },
20867
- "rating": {
20868
- "type": "string",
20869
- "deprecated": true,
20870
- "description": "Summary of the rating based on the score ('good', 'ok', or 'bad')"
20871
- },
20872
- "ponderedScore": {
20873
- "type": "number",
20874
- "description": "Score multiplied by the number of ratings to give more importance to highly rated content."
20875
- },
20876
- "bad": {
20877
- "type": "number",
20878
- "description": "Number of 'bad' ratings."
20879
- },
20880
- "ok": {
20881
- "type": "number",
20882
- "description": "Number of 'ok' ratings."
20883
- },
20884
- "good": {
20885
- "type": "number",
20886
- "description": "Number of 'good' ratings."
20887
- }
20888
- }
20224
+ "$ref": "#/components/schemas/AnalyticsFeedbacksPageScore"
20889
20225
  }
20890
20226
  }
20891
20227
  },
@@ -22774,96 +22110,40 @@
22774
22110
  "snippet"
22775
22111
  ]
22776
22112
  },
22777
- "SyncedBlock": {
22113
+ "ContentLocationReusableContent": {
22778
22114
  "type": "object",
22779
22115
  "properties": {
22780
- "id": {
22116
+ "kind": {
22781
22117
  "type": "string",
22782
- "description": "Unique identifier for the synced block"
22118
+ "enum": [
22119
+ "reusable-content"
22120
+ ]
22783
22121
  },
22784
22122
  "organization": {
22785
- "type": "string",
22786
- "description": "ID of the organization owning this synced block"
22787
- },
22788
- "createdAt": {
22789
- "type": "string",
22790
- "format": "date-time"
22791
- },
22792
- "createdBy": {
22793
- "$ref": "#/components/schemas/User"
22794
- },
22795
- "title": {
22796
- "type": "string",
22797
- "description": "Title describing the synced block.",
22798
- "maxLength": 100
22799
- },
22800
- "description": {
22801
- "type": "string",
22802
- "description": "Description of the synced block.",
22803
- "maxLength": 500
22123
+ "$ref": "#/components/schemas/Organization"
22804
22124
  },
22805
- "usage": {
22806
- "type": "object",
22807
- "description": "Usage of synced block",
22808
- "properties": {
22809
- "spaces": {
22810
- "description": "Number of spaces where the synced block is used in",
22811
- "type": "integer"
22812
- }
22813
- },
22814
- "required": [
22815
- "spaces"
22816
- ]
22125
+ "space": {
22126
+ "$ref": "#/components/schemas/Space"
22817
22127
  },
22818
- "urls": {
22819
- "type": "object",
22820
- "description": "URLs associated with the object",
22821
- "properties": {
22822
- "location": {
22823
- "description": "URL of the synced block in the API",
22824
- "$ref": "#/components/schemas/URL"
22128
+ "versionContext": {
22129
+ "oneOf": [
22130
+ {
22131
+ "$ref": "#/components/schemas/ContentLocationRevisionContext"
22825
22132
  },
22826
- "app": {
22827
- "description": "URL of the synced block in the app",
22828
- "$ref": "#/components/schemas/URL"
22133
+ {
22134
+ "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
22829
22135
  }
22830
- },
22831
- "required": [
22832
- "location",
22833
- "app"
22834
- ]
22835
- }
22836
- },
22837
- "required": [
22838
- "id",
22839
- "organization",
22840
- "createdAt",
22841
- "createdBy",
22842
- "source",
22843
- "usage",
22844
- "urls"
22845
- ]
22846
- },
22847
- "ContentLocationSyncedBlock": {
22848
- "type": "object",
22849
- "properties": {
22850
- "kind": {
22851
- "type": "string",
22852
- "enum": [
22853
- "synced-block"
22854
22136
  ]
22855
22137
  },
22856
- "organization": {
22857
- "$ref": "#/components/schemas/Organization"
22858
- },
22859
- "syncedBlock": {
22860
- "$ref": "#/components/schemas/SyncedBlock"
22138
+ "reusableContent": {
22139
+ "$ref": "#/components/schemas/RevisionReusableContent"
22861
22140
  }
22862
22141
  },
22863
22142
  "required": [
22864
22143
  "kind",
22865
22144
  "organization",
22866
- "syncedBlock"
22145
+ "space",
22146
+ "reusableContent"
22867
22147
  ]
22868
22148
  },
22869
22149
  "ContentLocation": {
@@ -22891,7 +22171,7 @@
22891
22171
  "$ref": "#/components/schemas/ContentLocationSnippet"
22892
22172
  },
22893
22173
  {
22894
- "$ref": "#/components/schemas/ContentLocationSyncedBlock"
22174
+ "$ref": "#/components/schemas/ContentLocationReusableContent"
22895
22175
  }
22896
22176
  ],
22897
22177
  "discriminator": {
@@ -29519,6 +28799,52 @@
29519
28799
  "urls"
29520
28800
  ]
29521
28801
  },
28802
+ "SiteStructure": {
28803
+ "oneOf": [
28804
+ {
28805
+ "type": "object",
28806
+ "properties": {
28807
+ "type": {
28808
+ "type": "string",
28809
+ "enum": [
28810
+ "sections"
28811
+ ]
28812
+ },
28813
+ "structure": {
28814
+ "type": "array",
28815
+ "items": {
28816
+ "$ref": "#/components/schemas/SiteSection"
28817
+ }
28818
+ }
28819
+ },
28820
+ "required": [
28821
+ "type",
28822
+ "structure"
28823
+ ]
28824
+ },
28825
+ {
28826
+ "type": "object",
28827
+ "properties": {
28828
+ "type": {
28829
+ "type": "string",
28830
+ "enum": [
28831
+ "siteSpaces"
28832
+ ]
28833
+ },
28834
+ "structure": {
28835
+ "type": "array",
28836
+ "items": {
28837
+ "$ref": "#/components/schemas/SiteSpace"
28838
+ }
28839
+ }
28840
+ },
28841
+ "required": [
28842
+ "type",
28843
+ "structure"
28844
+ ]
28845
+ }
28846
+ ]
28847
+ },
29522
28848
  "SitePublishingAuth": {
29523
28849
  "allOf": [
29524
28850
  {
@@ -29876,6 +29202,37 @@
29876
29202
  "cookies"
29877
29203
  ]
29878
29204
  },
29205
+ "SiteSectionPointer": {
29206
+ "type": "object",
29207
+ "properties": {
29208
+ "type": {
29209
+ "type": "string",
29210
+ "enum": [
29211
+ "site-section"
29212
+ ]
29213
+ },
29214
+ "siteSection": {
29215
+ "type": "string",
29216
+ "description": "Unique identifier for the site section"
29217
+ }
29218
+ },
29219
+ "required": [
29220
+ "type",
29221
+ "siteSection"
29222
+ ]
29223
+ },
29224
+ "SiteSectionMovePosition": {
29225
+ "type": "object",
29226
+ "description": "Position at which to move the site section to.",
29227
+ "properties": {
29228
+ "before": {
29229
+ "$ref": "#/components/schemas/SiteSectionPointer"
29230
+ },
29231
+ "after": {
29232
+ "$ref": "#/components/schemas/SiteSectionPointer"
29233
+ }
29234
+ }
29235
+ },
29879
29236
  "SiteSpacePointer": {
29880
29237
  "type": "object",
29881
29238
  "properties": {
@@ -30015,6 +29372,36 @@
30015
29372
  "spaceId"
30016
29373
  ]
30017
29374
  },
29375
+ "InsightsContentPage": {
29376
+ "type": "object",
29377
+ "description": "Page entry in the content insights.",
29378
+ "required": [
29379
+ "id",
29380
+ "title"
29381
+ ],
29382
+ "properties": {
29383
+ "id": {
29384
+ "description": "Unique identifier for the page in the revision",
29385
+ "type": "string"
29386
+ },
29387
+ "title": {
29388
+ "description": "Title of the page",
29389
+ "type": "string"
29390
+ },
29391
+ "path": {
29392
+ "description": "Complete path to access the page in the revision.",
29393
+ "type": "string"
29394
+ },
29395
+ "emoji": {
29396
+ "description": "Emoji of the page, if one has been set.",
29397
+ "$ref": "#/components/schemas/Emoji"
29398
+ },
29399
+ "icon": {
29400
+ "description": "Icon of the page, if one has been set.",
29401
+ "$ref": "#/components/schemas/Icon"
29402
+ }
29403
+ }
29404
+ },
30018
29405
  "SiteAdsStats": {
30019
29406
  "type": "object",
30020
29407
  "required": [
@@ -30865,9 +30252,6 @@
30865
30252
  {
30866
30253
  "$ref": "#/components/schemas/DocumentBlockIntegration"
30867
30254
  },
30868
- {
30869
- "$ref": "#/components/schemas/DocumentBlockSyncedBlock"
30870
- },
30871
30255
  {
30872
30256
  "$ref": "#/components/schemas/DocumentBlockReusableContent"
30873
30257
  },
@@ -32068,47 +31452,6 @@
32068
31452
  "organization"
32069
31453
  ]
32070
31454
  },
32071
- "OrganizationSyncedBlocksChannel": {
32072
- "type": "object",
32073
- "description": "Subscription channel for changes in synced blocks in an organization.",
32074
- "properties": {
32075
- "channel": {
32076
- "type": "string",
32077
- "enum": [
32078
- "organization-synced-blocks"
32079
- ]
32080
- },
32081
- "organization": {
32082
- "type": "string"
32083
- }
32084
- },
32085
- "required": [
32086
- "channel",
32087
- "organization"
32088
- ]
32089
- },
32090
- "OrganizationSyncedBlockChannel": {
32091
- "type": "object",
32092
- "properties": {
32093
- "channel": {
32094
- "type": "string",
32095
- "enum": [
32096
- "organization-synced-block"
32097
- ]
32098
- },
32099
- "organization": {
32100
- "type": "string"
32101
- },
32102
- "syncedBlock": {
32103
- "type": "string"
32104
- }
32105
- },
32106
- "required": [
32107
- "channel",
32108
- "organization",
32109
- "syncedBlock"
32110
- ]
32111
- },
32112
31455
  "CommentsChannel": {
32113
31456
  "type": "object",
32114
31457
  "properties": {
@@ -32443,14 +31786,14 @@
32443
31786
  "siteSpace"
32444
31787
  ]
32445
31788
  },
32446
- "SiteSpacesChannel": {
31789
+ "SiteStructureChannel": {
32447
31790
  "type": "object",
32448
- "description": "Subscription channel for changes in site spaces in an organization.",
31791
+ "description": "Subscription channel for changes in site structure in an organization.",
32449
31792
  "properties": {
32450
31793
  "channel": {
32451
31794
  "type": "string",
32452
31795
  "enum": [
32453
- "site-spaces"
31796
+ "site-structure"
32454
31797
  ]
32455
31798
  },
32456
31799
  "site": {
@@ -32521,25 +31864,6 @@
32521
31864
  "siteShareLink"
32522
31865
  ]
32523
31866
  },
32524
- "SiteSectionsChannel": {
32525
- "type": "object",
32526
- "description": "Subscription channel for changes in site sections in an organization.",
32527
- "properties": {
32528
- "channel": {
32529
- "type": "string",
32530
- "enum": [
32531
- "site-sections"
32532
- ]
32533
- },
32534
- "site": {
32535
- "type": "string"
32536
- }
32537
- },
32538
- "required": [
32539
- "channel",
32540
- "site"
32541
- ]
32542
- },
32543
31867
  "SiteSectionChannel": {
32544
31868
  "type": "object",
32545
31869
  "properties": {
@@ -32685,12 +32009,6 @@
32685
32009
  {
32686
32010
  "$ref": "#/components/schemas/OrganizationExperimentalFeaturesChannel"
32687
32011
  },
32688
- {
32689
- "$ref": "#/components/schemas/OrganizationSyncedBlocksChannel"
32690
- },
32691
- {
32692
- "$ref": "#/components/schemas/OrganizationSyncedBlockChannel"
32693
- },
32694
32012
  {
32695
32013
  "$ref": "#/components/schemas/CommentsChannel"
32696
32014
  },
@@ -32737,7 +32055,7 @@
32737
32055
  "$ref": "#/components/schemas/SiteSpaceCustomizationChannel"
32738
32056
  },
32739
32057
  {
32740
- "$ref": "#/components/schemas/SiteSpacesChannel"
32058
+ "$ref": "#/components/schemas/SiteStructureChannel"
32741
32059
  },
32742
32060
  {
32743
32061
  "$ref": "#/components/schemas/SitePublishingAuthChannel"
@@ -32748,9 +32066,6 @@
32748
32066
  {
32749
32067
  "$ref": "#/components/schemas/SiteShareLinkChannel"
32750
32068
  },
32751
- {
32752
- "$ref": "#/components/schemas/SiteSectionsChannel"
32753
- },
32754
32069
  {
32755
32070
  "$ref": "#/components/schemas/SiteSectionChannel"
32756
32071
  },
@@ -32834,9 +32149,6 @@
32834
32149
  "RequestImportGitRepository": {
32835
32150
  "$ref": "#/components/schemas/ImportGitRepository"
32836
32151
  },
32837
- "RequestSyncGitRepository": {
32838
- "$ref": "#/components/schemas/SyncGitRepository"
32839
- },
32840
32152
  "RequestExportToGitRepository": {
32841
32153
  "$ref": "#/components/schemas/ExportToGitRepository"
32842
32154
  },