@gitbook/api 0.72.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
  }
@@ -16003,15 +15405,6 @@
16003
15405
  "type": "string"
16004
15406
  }
16005
15407
  },
16006
- "syncedBlockId": {
16007
- "name": "syncedBlockId",
16008
- "in": "path",
16009
- "required": true,
16010
- "description": "The unique id of a synced block",
16011
- "schema": {
16012
- "type": "string"
16013
- }
16014
- },
16015
15408
  "revisionId": {
16016
15409
  "name": "revisionId",
16017
15410
  "in": "path",
@@ -16834,24 +16227,6 @@
16834
16227
  "organization"
16835
16228
  ]
16836
16229
  },
16837
- "ContentRefSyncedBlock": {
16838
- "type": "object",
16839
- "properties": {
16840
- "kind": {
16841
- "type": "string",
16842
- "enum": [
16843
- "synced-block"
16844
- ]
16845
- },
16846
- "syncedBlock": {
16847
- "type": "string"
16848
- }
16849
- },
16850
- "required": [
16851
- "kind",
16852
- "syncedBlock"
16853
- ]
16854
- },
16855
16230
  "ContentRefReusableContent": {
16856
16231
  "type": "object",
16857
16232
  "properties": {
@@ -16897,9 +16272,6 @@
16897
16272
  {
16898
16273
  "$ref": "#/components/schemas/ContentRefSnippet"
16899
16274
  },
16900
- {
16901
- "$ref": "#/components/schemas/ContentRefSyncedBlock"
16902
- },
16903
16275
  {
16904
16276
  "$ref": "#/components/schemas/ContentRefReusableContent"
16905
16277
  }
@@ -19224,96 +18596,41 @@
19224
18596
  ]
19225
18597
  },
19226
18598
  "path": {
19227
- "type": "string",
19228
- "description": "Path of the operation in the OpenAPI spec."
19229
- },
19230
- "method": {
19231
- "type": "string",
19232
- "description": "HTTP method of the operation in the OpenAPI spec."
19233
- },
19234
- "expanded": {
19235
- "type": "boolean",
19236
- "description": "If true, the block is opened by default."
19237
- },
19238
- "fullWidth": {
19239
- "type": "boolean"
19240
- }
19241
- },
19242
- "required": [
19243
- "ref"
19244
- ]
19245
- },
19246
- "isVoid": {
19247
- "type": "boolean",
19248
- "enum": [
19249
- true
19250
- ]
19251
- },
19252
- "meta": {
19253
- "type": "object",
19254
- "properties": {
19255
- "id": {
19256
- "description": "Unique ID to be used in an URL for the block.",
19257
- "type": "string"
19258
- }
19259
- },
19260
- "required": [
19261
- "id"
19262
- ]
19263
- }
19264
- },
19265
- "required": [
19266
- "object",
19267
- "type",
19268
- "data",
19269
- "isVoid"
19270
- ]
19271
- },
19272
- "DocumentBlockSyncedBlock": {
19273
- "type": "object",
19274
- "properties": {
19275
- "object": {
19276
- "type": "string",
19277
- "enum": [
19278
- "block"
19279
- ]
19280
- },
19281
- "type": {
19282
- "type": "string",
19283
- "enum": [
19284
- "synced-block"
19285
- ]
19286
- },
19287
- "key": {
19288
- "type": "string"
19289
- },
19290
- "data": {
19291
- "type": "object",
19292
- "properties": {
19293
- "ref": {
19294
- "$ref": "#/components/schemas/ContentRefSyncedBlock"
18599
+ "type": "string",
18600
+ "description": "Path of the operation in the OpenAPI spec."
18601
+ },
18602
+ "method": {
18603
+ "type": "string",
18604
+ "description": "HTTP method of the operation in the OpenAPI spec."
18605
+ },
18606
+ "expanded": {
18607
+ "type": "boolean",
18608
+ "description": "If true, the block is opened by default."
18609
+ },
18610
+ "fullWidth": {
18611
+ "type": "boolean"
19295
18612
  }
19296
18613
  },
19297
18614
  "required": [
19298
18615
  "ref"
19299
18616
  ]
19300
18617
  },
18618
+ "isVoid": {
18619
+ "type": "boolean",
18620
+ "enum": [
18621
+ true
18622
+ ]
18623
+ },
19301
18624
  "meta": {
19302
18625
  "type": "object",
19303
18626
  "properties": {
19304
- "apiToken": {
19305
- "description": "API Token to use to fetch the synced block from the API.",
18627
+ "id": {
18628
+ "description": "Unique ID to be used in an URL for the block.",
19306
18629
  "type": "string"
19307
18630
  }
19308
18631
  },
19309
18632
  "required": [
19310
- "apiToken"
19311
- ]
19312
- },
19313
- "isVoid": {
19314
- "type": "boolean",
19315
- "enum": [
19316
- true
18633
+ "id"
19317
18634
  ]
19318
18635
  }
19319
18636
  },
@@ -19536,9 +18853,6 @@
19536
18853
  {
19537
18854
  "$ref": "#/components/schemas/DocumentBlockIntegration"
19538
18855
  },
19539
- {
19540
- "$ref": "#/components/schemas/DocumentBlockSyncedBlock"
19541
- },
19542
18856
  {
19543
18857
  "$ref": "#/components/schemas/DocumentBlockReusableContent"
19544
18858
  },
@@ -20525,70 +19839,6 @@
20525
19839
  "commitMessage"
20526
19840
  ]
20527
19841
  },
20528
- "SyncGitRepository": {
20529
- "type": "object",
20530
- "properties": {
20531
- "ref": {
20532
- "type": "string",
20533
- "description": "Git ref in the format \"refs/heads/main\""
20534
- },
20535
- "repoURL": {
20536
- "type": "string",
20537
- "description": "URL of the Git repository used for synchronization. It can contain basic auth credentials."
20538
- },
20539
- "repoTreeURL": {
20540
- "type": "string",
20541
- "description": "URL to use as a prefix for external file references."
20542
- },
20543
- "repoCommitURL": {
20544
- "type": "string",
20545
- "description": "URL to use as a prefix for the commit URL."
20546
- },
20547
- "repoProjectDirectory": {
20548
- "type": "string",
20549
- "description": "Path to a root directory for the project in the repository."
20550
- },
20551
- "commitMessageTemplate": {
20552
- "type": "string",
20553
- "description": "Template message for the commit generated during the synchronization."
20554
- },
20555
- "standalone": {
20556
- "type": "boolean",
20557
- "description": "If true, the synchronization of the ref will generate a revision without updating the space primary content."
20558
- },
20559
- "force": {
20560
- "type": "object",
20561
- "description": "Whether to force the synchronization",
20562
- "properties": {
20563
- "priority": {
20564
- "type": "string",
20565
- "enum": [
20566
- "gitbook",
20567
- "git"
20568
- ]
20569
- }
20570
- },
20571
- "required": [
20572
- "priority"
20573
- ]
20574
- },
20575
- "timestamp": {
20576
- "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",
20577
- "$ref": "#/components/schemas/Timestamp"
20578
- },
20579
- "gitInfo": {
20580
- "description": "Optional metadata to store on the space about the Git provider",
20581
- "$ref": "#/components/schemas/UpdateSpaceGitInfo"
20582
- }
20583
- },
20584
- "required": [
20585
- "ref",
20586
- "repoURL",
20587
- "repoTreeURL",
20588
- "repoCommitURL",
20589
- "commitMessageTemplate"
20590
- ]
20591
- },
20592
19842
  "Icon": {
20593
19843
  "type": "string",
20594
19844
  "maxLength": 50,
@@ -22860,98 +22110,6 @@
22860
22110
  "snippet"
22861
22111
  ]
22862
22112
  },
22863
- "SyncedBlock": {
22864
- "type": "object",
22865
- "properties": {
22866
- "id": {
22867
- "type": "string",
22868
- "description": "Unique identifier for the synced block"
22869
- },
22870
- "organization": {
22871
- "type": "string",
22872
- "description": "ID of the organization owning this synced block"
22873
- },
22874
- "createdAt": {
22875
- "type": "string",
22876
- "format": "date-time"
22877
- },
22878
- "createdBy": {
22879
- "$ref": "#/components/schemas/User"
22880
- },
22881
- "title": {
22882
- "type": "string",
22883
- "description": "Title describing the synced block.",
22884
- "maxLength": 100
22885
- },
22886
- "description": {
22887
- "type": "string",
22888
- "description": "Description of the synced block.",
22889
- "maxLength": 500
22890
- },
22891
- "usage": {
22892
- "type": "object",
22893
- "description": "Usage of synced block",
22894
- "properties": {
22895
- "spaces": {
22896
- "description": "Number of spaces where the synced block is used in",
22897
- "type": "integer"
22898
- }
22899
- },
22900
- "required": [
22901
- "spaces"
22902
- ]
22903
- },
22904
- "urls": {
22905
- "type": "object",
22906
- "description": "URLs associated with the object",
22907
- "properties": {
22908
- "location": {
22909
- "description": "URL of the synced block in the API",
22910
- "$ref": "#/components/schemas/URL"
22911
- },
22912
- "app": {
22913
- "description": "URL of the synced block in the app",
22914
- "$ref": "#/components/schemas/URL"
22915
- }
22916
- },
22917
- "required": [
22918
- "location",
22919
- "app"
22920
- ]
22921
- }
22922
- },
22923
- "required": [
22924
- "id",
22925
- "organization",
22926
- "createdAt",
22927
- "createdBy",
22928
- "source",
22929
- "usage",
22930
- "urls"
22931
- ]
22932
- },
22933
- "ContentLocationSyncedBlock": {
22934
- "type": "object",
22935
- "properties": {
22936
- "kind": {
22937
- "type": "string",
22938
- "enum": [
22939
- "synced-block"
22940
- ]
22941
- },
22942
- "organization": {
22943
- "$ref": "#/components/schemas/Organization"
22944
- },
22945
- "syncedBlock": {
22946
- "$ref": "#/components/schemas/SyncedBlock"
22947
- }
22948
- },
22949
- "required": [
22950
- "kind",
22951
- "organization",
22952
- "syncedBlock"
22953
- ]
22954
- },
22955
22113
  "ContentLocationReusableContent": {
22956
22114
  "type": "object",
22957
22115
  "properties": {
@@ -23012,9 +22170,6 @@
23012
22170
  {
23013
22171
  "$ref": "#/components/schemas/ContentLocationSnippet"
23014
22172
  },
23015
- {
23016
- "$ref": "#/components/schemas/ContentLocationSyncedBlock"
23017
- },
23018
22173
  {
23019
22174
  "$ref": "#/components/schemas/ContentLocationReusableContent"
23020
22175
  }
@@ -30217,6 +29372,36 @@
30217
29372
  "spaceId"
30218
29373
  ]
30219
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
+ },
30220
29405
  "SiteAdsStats": {
30221
29406
  "type": "object",
30222
29407
  "required": [
@@ -31067,9 +30252,6 @@
31067
30252
  {
31068
30253
  "$ref": "#/components/schemas/DocumentBlockIntegration"
31069
30254
  },
31070
- {
31071
- "$ref": "#/components/schemas/DocumentBlockSyncedBlock"
31072
- },
31073
30255
  {
31074
30256
  "$ref": "#/components/schemas/DocumentBlockReusableContent"
31075
30257
  },
@@ -32270,47 +31452,6 @@
32270
31452
  "organization"
32271
31453
  ]
32272
31454
  },
32273
- "OrganizationSyncedBlocksChannel": {
32274
- "type": "object",
32275
- "description": "Subscription channel for changes in synced blocks in an organization.",
32276
- "properties": {
32277
- "channel": {
32278
- "type": "string",
32279
- "enum": [
32280
- "organization-synced-blocks"
32281
- ]
32282
- },
32283
- "organization": {
32284
- "type": "string"
32285
- }
32286
- },
32287
- "required": [
32288
- "channel",
32289
- "organization"
32290
- ]
32291
- },
32292
- "OrganizationSyncedBlockChannel": {
32293
- "type": "object",
32294
- "properties": {
32295
- "channel": {
32296
- "type": "string",
32297
- "enum": [
32298
- "organization-synced-block"
32299
- ]
32300
- },
32301
- "organization": {
32302
- "type": "string"
32303
- },
32304
- "syncedBlock": {
32305
- "type": "string"
32306
- }
32307
- },
32308
- "required": [
32309
- "channel",
32310
- "organization",
32311
- "syncedBlock"
32312
- ]
32313
- },
32314
31455
  "CommentsChannel": {
32315
31456
  "type": "object",
32316
31457
  "properties": {
@@ -32645,25 +31786,6 @@
32645
31786
  "siteSpace"
32646
31787
  ]
32647
31788
  },
32648
- "SiteSpacesChannel": {
32649
- "type": "object",
32650
- "description": "Subscription channel for changes in site spaces in an organization.",
32651
- "properties": {
32652
- "channel": {
32653
- "type": "string",
32654
- "enum": [
32655
- "site-spaces"
32656
- ]
32657
- },
32658
- "site": {
32659
- "type": "string"
32660
- }
32661
- },
32662
- "required": [
32663
- "channel",
32664
- "site"
32665
- ]
32666
- },
32667
31789
  "SiteStructureChannel": {
32668
31790
  "type": "object",
32669
31791
  "description": "Subscription channel for changes in site structure in an organization.",
@@ -32742,25 +31864,6 @@
32742
31864
  "siteShareLink"
32743
31865
  ]
32744
31866
  },
32745
- "SiteSectionsChannel": {
32746
- "type": "object",
32747
- "description": "Subscription channel for changes in site sections in an organization.",
32748
- "properties": {
32749
- "channel": {
32750
- "type": "string",
32751
- "enum": [
32752
- "site-sections"
32753
- ]
32754
- },
32755
- "site": {
32756
- "type": "string"
32757
- }
32758
- },
32759
- "required": [
32760
- "channel",
32761
- "site"
32762
- ]
32763
- },
32764
31867
  "SiteSectionChannel": {
32765
31868
  "type": "object",
32766
31869
  "properties": {
@@ -32906,12 +32009,6 @@
32906
32009
  {
32907
32010
  "$ref": "#/components/schemas/OrganizationExperimentalFeaturesChannel"
32908
32011
  },
32909
- {
32910
- "$ref": "#/components/schemas/OrganizationSyncedBlocksChannel"
32911
- },
32912
- {
32913
- "$ref": "#/components/schemas/OrganizationSyncedBlockChannel"
32914
- },
32915
32012
  {
32916
32013
  "$ref": "#/components/schemas/CommentsChannel"
32917
32014
  },
@@ -32957,9 +32054,6 @@
32957
32054
  {
32958
32055
  "$ref": "#/components/schemas/SiteSpaceCustomizationChannel"
32959
32056
  },
32960
- {
32961
- "$ref": "#/components/schemas/SiteSpacesChannel"
32962
- },
32963
32057
  {
32964
32058
  "$ref": "#/components/schemas/SiteStructureChannel"
32965
32059
  },
@@ -32972,9 +32066,6 @@
32972
32066
  {
32973
32067
  "$ref": "#/components/schemas/SiteShareLinkChannel"
32974
32068
  },
32975
- {
32976
- "$ref": "#/components/schemas/SiteSectionsChannel"
32977
- },
32978
32069
  {
32979
32070
  "$ref": "#/components/schemas/SiteSectionChannel"
32980
32071
  },
@@ -33058,9 +32149,6 @@
33058
32149
  "RequestImportGitRepository": {
33059
32150
  "$ref": "#/components/schemas/ImportGitRepository"
33060
32151
  },
33061
- "RequestSyncGitRepository": {
33062
- "$ref": "#/components/schemas/SyncGitRepository"
33063
- },
33064
32152
  "RequestExportToGitRepository": {
33065
32153
  "$ref": "#/components/schemas/ExportToGitRepository"
33066
32154
  },