@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.yaml CHANGED
@@ -639,27 +639,6 @@ paths:
639
639
  application/json:
640
640
  schema:
641
641
  $ref: "#/components/schemas/ExportToGitRepository"
642
- "/spaces/{spaceId}/git/sync":
643
- post:
644
- operationId: syncGitRepository
645
- summary: Synchronize a Git repository with the space content.
646
- tags:
647
- - spaces
648
- security:
649
- - user: []
650
- parameters:
651
- - $ref: "#/components/parameters/spaceId"
652
- responses:
653
- "204":
654
- description: Operation to synchronize the repository has been started.
655
- default:
656
- $ref: "#/components/responses/UnexpectedError"
657
- requestBody:
658
- required: true
659
- content:
660
- application/json:
661
- schema:
662
- $ref: "#/components/schemas/SyncGitRepository"
663
642
  "/spaces/{spaceId}/git/info":
664
643
  get:
665
644
  operationId: getSpaceGitInfo
@@ -2213,48 +2192,6 @@ paths:
2213
2192
  $ref: "#/components/schemas/RevisionReusableContent"
2214
2193
  default:
2215
2194
  $ref: "#/components/responses/UnexpectedError"
2216
- "/spaces/{spaceId}/change-requests/{changeRequestId}/touched-content":
2217
- post:
2218
- operationId: touchContentInChangeRequest
2219
- summary: Touch Hive content, marking it as modified as part of this change request.
2220
- tags:
2221
- - spaces
2222
- security:
2223
- - user: []
2224
- parameters:
2225
- - $ref: "#/components/parameters/spaceId"
2226
- - $ref: "#/components/parameters/changeRequestId"
2227
- responses:
2228
- "200":
2229
- description: Content marked as touched.
2230
- content:
2231
- application/json:
2232
- schema:
2233
- $ref: "#/components/schemas/ChangeRequest"
2234
- default:
2235
- $ref: "#/components/responses/UnexpectedError"
2236
- requestBody:
2237
- required: true
2238
- content:
2239
- application/json:
2240
- schema:
2241
- type: object
2242
- properties:
2243
- contentId:
2244
- type: string
2245
- description: The content id of the touched content.
2246
- branchId:
2247
- type: string
2248
- description: The branch id of the touched content.
2249
- relation:
2250
- type: string
2251
- description: The relation of the touched content to the change request.
2252
- enum:
2253
- - synced-block
2254
- required:
2255
- - contentId
2256
- - branchId
2257
- - relation
2258
2195
  "/spaces/{spaceId}/change-requests/{changeRequestId}/pdf":
2259
2196
  get:
2260
2197
  operationId: getChangeRequestPDF
@@ -2291,40 +2228,6 @@ paths:
2291
2228
  - url
2292
2229
  default:
2293
2230
  $ref: "#/components/responses/UnexpectedError"
2294
- "/spaces/{spaceId}/change-requests/{changeRequestId}/synced-blocks/{syncedBlockId}/content":
2295
- get:
2296
- operationId: getSyncedBlockContentInChangeRequest
2297
- summary: Get the content of a synced block in the context of a change request.
2298
- tags:
2299
- - spaces
2300
- security:
2301
- - user: []
2302
- parameters:
2303
- - $ref: "#/components/parameters/spaceId"
2304
- - $ref: "#/components/parameters/changeRequestId"
2305
- - $ref: "#/components/parameters/syncedBlockId"
2306
- responses:
2307
- "200":
2308
- description: OK
2309
- content:
2310
- application/json:
2311
- schema:
2312
- type: object
2313
- properties:
2314
- document:
2315
- $ref: "#/components/schemas/JSONDocument"
2316
- files:
2317
- type: array
2318
- items:
2319
- $ref: "#/components/schemas/RevisionFile"
2320
- required:
2321
- - document
2322
- - files
2323
- "404":
2324
- description: The space, change request, synced block or its content could not be found.
2325
- $ref: "#/components/responses/NotFoundError"
2326
- default:
2327
- $ref: "#/components/responses/UnexpectedError"
2328
2231
  "/spaces/{spaceId}/revisions/{revisionId}":
2329
2232
  get:
2330
2233
  operationId: getRevisionById
@@ -6459,245 +6362,6 @@ paths:
6459
6362
  - $ref: "#/components/schemas/RevisionPageGroup"
6460
6363
  default:
6461
6364
  $ref: "#/components/responses/UnexpectedError"
6462
- "/orgs/{organizationId}/synced-blocks":
6463
- get:
6464
- operationId: listSyncedBlocks
6465
- summary: List all the synced blocks created in an organization
6466
- tags:
6467
- - organizations
6468
- security:
6469
- - user: []
6470
- parameters:
6471
- - $ref: "#/components/parameters/organizationId"
6472
- - $ref: "#/components/parameters/listPage"
6473
- - $ref: "#/components/parameters/listLimit"
6474
- - name: ids
6475
- in: query
6476
- description: A list of IDs to filter the synced blocks.
6477
- required: false
6478
- schema:
6479
- type: array
6480
- items:
6481
- type: string
6482
- responses:
6483
- "200":
6484
- description: OK
6485
- content:
6486
- application/json:
6487
- schema:
6488
- allOf:
6489
- - $ref: "#/components/schemas/List"
6490
- - type: object
6491
- required:
6492
- - items
6493
- properties:
6494
- items:
6495
- type: array
6496
- items:
6497
- $ref: "#/components/schemas/SyncedBlock"
6498
- default:
6499
- $ref: "#/components/responses/UnexpectedError"
6500
- post:
6501
- operationId: createSyncedBlock
6502
- summary: Create a new synced block
6503
- tags:
6504
- - organizations
6505
- security:
6506
- - user: []
6507
- parameters:
6508
- - $ref: "#/components/parameters/organizationId"
6509
- requestBody:
6510
- required: true
6511
- content:
6512
- application/json:
6513
- schema:
6514
- type: object
6515
- properties:
6516
- title:
6517
- type: string
6518
- description: Title of synced block
6519
- responses:
6520
- "201":
6521
- description: Synced block created
6522
- headers:
6523
- Location:
6524
- description: API URL for the newly created synced block
6525
- schema:
6526
- type: string
6527
- content:
6528
- application/json:
6529
- schema:
6530
- $ref: "#/components/schemas/SyncedBlock"
6531
- default:
6532
- $ref: "#/components/responses/UnexpectedError"
6533
- "/orgs/{organizationId}/synced-blocks/{syncedBlockId}":
6534
- get:
6535
- operationId: getSyncedBlock
6536
- summary: Get a synced block by its ID
6537
- tags:
6538
- - organizations
6539
- security:
6540
- - user: []
6541
- parameters:
6542
- - $ref: "#/components/parameters/organizationId"
6543
- - $ref: "#/components/parameters/syncedBlockId"
6544
- responses:
6545
- "200":
6546
- description: OK
6547
- content:
6548
- application/json:
6549
- schema:
6550
- $ref: "#/components/schemas/SyncedBlock"
6551
- default:
6552
- $ref: "#/components/responses/UnexpectedError"
6553
- patch:
6554
- operationId: updateSyncedBlock
6555
- summary: Update an existing synced block.
6556
- tags:
6557
- - organizations
6558
- security:
6559
- - user: []
6560
- parameters:
6561
- - $ref: "#/components/parameters/organizationId"
6562
- - $ref: "#/components/parameters/syncedBlockId"
6563
- requestBody:
6564
- required: true
6565
- content:
6566
- application/json:
6567
- schema:
6568
- type: object
6569
- properties:
6570
- title:
6571
- type: string
6572
- description: A new title for the Synced Block.
6573
- description:
6574
- type: string
6575
- description: A new description for the Synced Block.
6576
- responses:
6577
- "200":
6578
- description: OK
6579
- default:
6580
- $ref: "#/components/responses/UnexpectedError"
6581
- delete:
6582
- operationId: deleteSyncedBlock
6583
- summary: Delete a synced block by its ID
6584
- tags:
6585
- - organizations
6586
- security:
6587
- - user: []
6588
- parameters:
6589
- - $ref: "#/components/parameters/organizationId"
6590
- - $ref: "#/components/parameters/syncedBlockId"
6591
- responses:
6592
- "204":
6593
- description: OK
6594
- default:
6595
- $ref: "#/components/responses/UnexpectedError"
6596
- "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content":
6597
- get:
6598
- operationId: getSyncedBlockContent
6599
- summary: Get the content of a synced block.
6600
- tags:
6601
- - organizations
6602
- security:
6603
- - user: []
6604
- parameters:
6605
- - $ref: "#/components/parameters/organizationId"
6606
- - $ref: "#/components/parameters/syncedBlockId"
6607
- responses:
6608
- "200":
6609
- description: OK
6610
- content:
6611
- application/json:
6612
- schema:
6613
- type: object
6614
- properties:
6615
- document:
6616
- $ref: "#/components/schemas/JSONDocument"
6617
- files:
6618
- type: array
6619
- items:
6620
- $ref: "#/components/schemas/RevisionFile"
6621
- required:
6622
- - document
6623
- - files
6624
- "404":
6625
- description: The synced block or its content could not be found.
6626
- $ref: "#/components/responses/NotFoundError"
6627
- default:
6628
- $ref: "#/components/responses/UnexpectedError"
6629
- "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks":
6630
- get:
6631
- operationId: listSyncedBlockBacklinks
6632
- summary: Get a list of pages that reference this synced block.
6633
- tags:
6634
- - organizations
6635
- security:
6636
- - user: []
6637
- parameters:
6638
- - $ref: "#/components/parameters/organizationId"
6639
- - $ref: "#/components/parameters/syncedBlockId"
6640
- - $ref: "#/components/parameters/listPage"
6641
- - $ref: "#/components/parameters/listLimit"
6642
- - name: changeRequestId
6643
- in: query
6644
- description: Filter backlinks relative to a change request.
6645
- schema:
6646
- type: string
6647
- - name: spaceId
6648
- in: query
6649
- description: Filter backlinks relative to a space.
6650
- schema:
6651
- type: string
6652
- responses:
6653
- "200":
6654
- description: OK
6655
- content:
6656
- application/json:
6657
- schema:
6658
- allOf:
6659
- - $ref: "#/components/schemas/List"
6660
- - type: object
6661
- required:
6662
- - items
6663
- properties:
6664
- items:
6665
- type: array
6666
- items:
6667
- $ref: "#/components/schemas/ContentLocationPage"
6668
- default:
6669
- $ref: "#/components/responses/UnexpectedError"
6670
- "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/usage/spaces":
6671
- get:
6672
- operationId: listSyncedBlockSpaces
6673
- summary: Get a list of spaces that reference this synced block.
6674
- tags:
6675
- - organizations
6676
- security:
6677
- - user: []
6678
- parameters:
6679
- - $ref: "#/components/parameters/organizationId"
6680
- - $ref: "#/components/parameters/syncedBlockId"
6681
- - $ref: "#/components/parameters/listPage"
6682
- - $ref: "#/components/parameters/listLimit"
6683
- responses:
6684
- "200":
6685
- description: OK
6686
- content:
6687
- application/json:
6688
- schema:
6689
- allOf:
6690
- - $ref: "#/components/schemas/List"
6691
- - type: object
6692
- required:
6693
- - items
6694
- properties:
6695
- items:
6696
- type: array
6697
- items:
6698
- $ref: "#/components/schemas/Space"
6699
- default:
6700
- $ref: "#/components/responses/UnexpectedError"
6701
6365
  "/orgs/{organizationId}/ask":
6702
6366
  post:
6703
6367
  operationId: askInOrganization
@@ -7183,27 +6847,7 @@ paths:
7183
6847
  content:
7184
6848
  application/json:
7185
6849
  schema:
7186
- oneOf:
7187
- - type: object
7188
- properties:
7189
- type:
7190
- type: string
7191
- enum:
7192
- - sections
7193
- structure:
7194
- type: array
7195
- items:
7196
- $ref: "#/components/schemas/SiteSection"
7197
- - type: object
7198
- properties:
7199
- type:
7200
- type: string
7201
- enum:
7202
- - siteSpaces
7203
- structure:
7204
- type: array
7205
- items:
7206
- $ref: "#/components/schemas/SiteSpace"
6850
+ $ref: "#/components/schemas/SiteStructure"
7207
6851
  "404":
7208
6852
  description: No matching site found
7209
6853
  $ref: "#/components/responses/NotFoundError"
@@ -7754,17 +7398,51 @@ paths:
7754
7398
  content:
7755
7399
  application/json:
7756
7400
  schema:
7757
- type: object
7758
- properties:
7759
- query:
7760
- type: string
7761
- siteSpaceIds:
7762
- type: array
7763
- minLength: 1
7764
- items:
7765
- type: string
7766
- required:
7767
- - query
7401
+ oneOf:
7402
+ - type: object
7403
+ properties:
7404
+ mode:
7405
+ description: Search only in the site spaces provided
7406
+ type: string
7407
+ enum:
7408
+ - specific
7409
+ siteSpaceIds:
7410
+ type: array
7411
+ minLength: 1
7412
+ items:
7413
+ type: string
7414
+ query:
7415
+ type: string
7416
+ required:
7417
+ - siteSpaceIds
7418
+ - query
7419
+ - type: object
7420
+ properties:
7421
+ mode:
7422
+ description: Search in the current site space and all section's defaults
7423
+ type: string
7424
+ enum:
7425
+ - current
7426
+ siteSpaceId:
7427
+ type: string
7428
+ query:
7429
+ type: string
7430
+ required:
7431
+ - mode
7432
+ - siteSpaceId
7433
+ - query
7434
+ - type: object
7435
+ properties:
7436
+ mode:
7437
+ description: search in all site-spaces
7438
+ type: string
7439
+ enum:
7440
+ - all
7441
+ query:
7442
+ type: string
7443
+ required:
7444
+ - mode
7445
+ - query
7768
7446
  responses:
7769
7447
  "200":
7770
7448
  description: OK
@@ -8219,7 +7897,43 @@ paths:
8219
7897
  content:
8220
7898
  application/json:
8221
7899
  schema:
8222
- $ref: "#/components/schemas/PageFeedback"
7900
+ $ref: "#/components/schemas/PageFeedback"
7901
+ default:
7902
+ $ref: "#/components/responses/UnexpectedError"
7903
+ "/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move":
7904
+ post:
7905
+ operationId: moveSiteSection
7906
+ summary: Move a site section to a new position in the site.
7907
+ tags:
7908
+ - sites
7909
+ security:
7910
+ - user: []
7911
+ parameters:
7912
+ - $ref: "#/components/parameters/organizationId"
7913
+ - $ref: "#/components/parameters/siteId"
7914
+ - $ref: "#/components/parameters/siteSectionId"
7915
+ requestBody:
7916
+ content:
7917
+ application/json:
7918
+ schema:
7919
+ type: object
7920
+ properties:
7921
+ position:
7922
+ description: The position where to move the site section. When not provided the site section is moved at the end of the site.
7923
+ $ref: "#/components/schemas/SiteSectionMovePosition"
7924
+ responses:
7925
+ "200":
7926
+ description: Site section moved
7927
+ content:
7928
+ application/json:
7929
+ schema:
7930
+ $ref: "#/components/schemas/SiteSection"
7931
+ "400":
7932
+ description: Invalid move site section position provided
7933
+ $ref: "#/components/responses/BadRequestError"
7934
+ "404":
7935
+ description: No matching Site section found
7936
+ $ref: "#/components/responses/NotFoundError"
8223
7937
  default:
8224
7938
  $ref: "#/components/responses/UnexpectedError"
8225
7939
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move":
@@ -8925,13 +8639,6 @@ components:
8925
8639
  description: The unique id of the comment reply
8926
8640
  schema:
8927
8641
  type: string
8928
- syncedBlockId:
8929
- name: syncedBlockId
8930
- in: path
8931
- required: true
8932
- description: The unique id of a synced block
8933
- schema:
8934
- type: string
8935
8642
  revisionId:
8936
8643
  name: revisionId
8937
8644
  in: path
@@ -9503,18 +9210,6 @@ components:
9503
9210
  - kind
9504
9211
  - snippet
9505
9212
  - organization
9506
- ContentRefSyncedBlock:
9507
- type: object
9508
- properties:
9509
- kind:
9510
- type: string
9511
- enum:
9512
- - synced-block
9513
- syncedBlock:
9514
- type: string
9515
- required:
9516
- - kind
9517
- - syncedBlock
9518
9213
  ContentRefReusableContent:
9519
9214
  type: object
9520
9215
  properties:
@@ -9538,7 +9233,6 @@ components:
9538
9233
  - $ref: "#/components/schemas/ContentRefCollection"
9539
9234
  - $ref: "#/components/schemas/ContentRefSpace"
9540
9235
  - $ref: "#/components/schemas/ContentRefSnippet"
9541
- - $ref: "#/components/schemas/ContentRefSyncedBlock"
9542
9236
  - $ref: "#/components/schemas/ContentRefReusableContent"
9543
9237
  DocumentInlineLink:
9544
9238
  type: object
@@ -11024,43 +10718,6 @@ components:
11024
10718
  - type
11025
10719
  - data
11026
10720
  - isVoid
11027
- DocumentBlockSyncedBlock:
11028
- type: object
11029
- properties:
11030
- object:
11031
- type: string
11032
- enum:
11033
- - block
11034
- type:
11035
- type: string
11036
- enum:
11037
- - synced-block
11038
- key:
11039
- type: string
11040
- data:
11041
- type: object
11042
- properties:
11043
- ref:
11044
- $ref: "#/components/schemas/ContentRefSyncedBlock"
11045
- required:
11046
- - ref
11047
- meta:
11048
- type: object
11049
- properties:
11050
- apiToken:
11051
- description: API Token to use to fetch the synced block from the API.
11052
- type: string
11053
- required:
11054
- - apiToken
11055
- isVoid:
11056
- type: boolean
11057
- enum:
11058
- - true
11059
- required:
11060
- - object
11061
- - type
11062
- - data
11063
- - isVoid
11064
10721
  DocumentBlockReusableContent:
11065
10722
  type: object
11066
10723
  properties:
@@ -11178,7 +10835,6 @@ components:
11178
10835
  - $ref: "#/components/schemas/DocumentBlockSwagger"
11179
10836
  - $ref: "#/components/schemas/DocumentBlockContentRef"
11180
10837
  - $ref: "#/components/schemas/DocumentBlockIntegration"
11181
- - $ref: "#/components/schemas/DocumentBlockSyncedBlock"
11182
10838
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
11183
10839
  - $ref: "#/components/schemas/DocumentBlockStepper"
11184
10840
  JSONDocument:
@@ -11864,54 +11520,6 @@ components:
11864
11520
  - url
11865
11521
  - ref
11866
11522
  - commitMessage
11867
- SyncGitRepository:
11868
- type: object
11869
- properties:
11870
- ref:
11871
- type: string
11872
- description: Git ref in the format "refs/heads/main"
11873
- repoURL:
11874
- type: string
11875
- description: URL of the Git repository used for synchronization. It can contain basic auth credentials.
11876
- repoTreeURL:
11877
- type: string
11878
- description: URL to use as a prefix for external file references.
11879
- repoCommitURL:
11880
- type: string
11881
- description: URL to use as a prefix for the commit URL.
11882
- repoProjectDirectory:
11883
- type: string
11884
- description: Path to a root directory for the project in the repository.
11885
- commitMessageTemplate:
11886
- type: string
11887
- description: Template message for the commit generated during the synchronization.
11888
- standalone:
11889
- type: boolean
11890
- description: If true, the synchronization of the ref will generate a revision without updating the space primary content.
11891
- force:
11892
- type: object
11893
- description: Whether to force the synchronization
11894
- properties:
11895
- priority:
11896
- type: string
11897
- enum:
11898
- - gitbook
11899
- - git
11900
- required:
11901
- - priority
11902
- timestamp:
11903
- description: |
11904
- The timestamp of the event. It ensures the synchronize operations are executed in the same order on GitBook and on the remote repository.
11905
- $ref: "#/components/schemas/Timestamp"
11906
- gitInfo:
11907
- description: Optional metadata to store on the space about the Git provider
11908
- $ref: "#/components/schemas/UpdateSpaceGitInfo"
11909
- required:
11910
- - ref
11911
- - repoURL
11912
- - repoTreeURL
11913
- - repoCommitURL
11914
- - commitMessageTemplate
11915
11523
  Icon:
11916
11524
  type: string
11917
11525
  maxLength: 50
@@ -12128,6 +11736,40 @@ components:
12128
11736
  type: number
12129
11737
  required:
12130
11738
  - yPos
11739
+ AnalyticsFeedbacksPageScore:
11740
+ type: object
11741
+ description: A score breakdown for a specific page.
11742
+ required:
11743
+ - score
11744
+ - total
11745
+ - rating
11746
+ - ponderedScore
11747
+ - bad
11748
+ - ok
11749
+ - good
11750
+ properties:
11751
+ score:
11752
+ type: number
11753
+ description: Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad').
11754
+ total:
11755
+ type: number
11756
+ description: Total number of ratings done by end users.
11757
+ rating:
11758
+ type: string
11759
+ deprecated: true
11760
+ description: Summary of the rating based on the score ('good', 'ok', or 'bad')
11761
+ ponderedScore:
11762
+ type: number
11763
+ description: Score multiplied by the number of ratings to give more importance to highly rated content.
11764
+ bad:
11765
+ type: number
11766
+ description: Number of 'bad' ratings.
11767
+ ok:
11768
+ type: number
11769
+ description: Number of 'ok' ratings.
11770
+ good:
11771
+ type: number
11772
+ description: Number of 'good' ratings.
12131
11773
  AnalyticsContentPage:
12132
11774
  type: object
12133
11775
  description: Page entry in the content analytics.
@@ -12140,38 +11782,7 @@ components:
12140
11782
  pageViews:
12141
11783
  type: number
12142
11784
  feedbacks:
12143
- type: object
12144
- required:
12145
- - score
12146
- - total
12147
- - rating
12148
- - ponderedScore
12149
- - bad
12150
- - ok
12151
- - good
12152
- properties:
12153
- score:
12154
- type: number
12155
- description: Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad').
12156
- total:
12157
- type: number
12158
- description: Total number of ratings done by end users.
12159
- rating:
12160
- type: string
12161
- deprecated: true
12162
- description: Summary of the rating based on the score ('good', 'ok', or 'bad')
12163
- ponderedScore:
12164
- type: number
12165
- description: Score multiplied by the number of ratings to give more importance to highly rated content.
12166
- bad:
12167
- type: number
12168
- description: Number of 'bad' ratings.
12169
- ok:
12170
- type: number
12171
- description: Number of 'ok' ratings.
12172
- good:
12173
- type: number
12174
- description: Number of 'good' ratings.
11785
+ $ref: "#/components/schemas/AnalyticsFeedbacksPageScore"
12175
11786
  AnalyticsContentPages:
12176
11787
  type: object
12177
11788
  required:
@@ -13471,73 +13082,28 @@ components:
13471
13082
  - kind
13472
13083
  - organization
13473
13084
  - snippet
13474
- SyncedBlock:
13475
- type: object
13476
- properties:
13477
- id:
13478
- type: string
13479
- description: Unique identifier for the synced block
13480
- organization:
13481
- type: string
13482
- description: ID of the organization owning this synced block
13483
- createdAt:
13484
- type: string
13485
- format: date-time
13486
- createdBy:
13487
- $ref: "#/components/schemas/User"
13488
- title:
13489
- type: string
13490
- description: Title describing the synced block.
13491
- maxLength: 100
13492
- description:
13493
- type: string
13494
- description: Description of the synced block.
13495
- maxLength: 500
13496
- usage:
13497
- type: object
13498
- description: Usage of synced block
13499
- properties:
13500
- spaces:
13501
- description: Number of spaces where the synced block is used in
13502
- type: integer
13503
- required:
13504
- - spaces
13505
- urls:
13506
- type: object
13507
- description: URLs associated with the object
13508
- properties:
13509
- location:
13510
- description: URL of the synced block in the API
13511
- $ref: "#/components/schemas/URL"
13512
- app:
13513
- description: URL of the synced block in the app
13514
- $ref: "#/components/schemas/URL"
13515
- required:
13516
- - location
13517
- - app
13518
- required:
13519
- - id
13520
- - organization
13521
- - createdAt
13522
- - createdBy
13523
- - source
13524
- - usage
13525
- - urls
13526
- ContentLocationSyncedBlock:
13085
+ ContentLocationReusableContent:
13527
13086
  type: object
13528
13087
  properties:
13529
13088
  kind:
13530
13089
  type: string
13531
13090
  enum:
13532
- - synced-block
13091
+ - reusable-content
13533
13092
  organization:
13534
13093
  $ref: "#/components/schemas/Organization"
13535
- syncedBlock:
13536
- $ref: "#/components/schemas/SyncedBlock"
13094
+ space:
13095
+ $ref: "#/components/schemas/Space"
13096
+ versionContext:
13097
+ oneOf:
13098
+ - $ref: "#/components/schemas/ContentLocationRevisionContext"
13099
+ - $ref: "#/components/schemas/ContentLocationChangeRequestContext"
13100
+ reusableContent:
13101
+ $ref: "#/components/schemas/RevisionReusableContent"
13537
13102
  required:
13538
13103
  - kind
13539
13104
  - organization
13540
- - syncedBlock
13105
+ - space
13106
+ - reusableContent
13541
13107
  ContentLocation:
13542
13108
  description: An absolute reference to content in GitBook.
13543
13109
  oneOf:
@@ -13548,7 +13114,7 @@ components:
13548
13114
  - $ref: "#/components/schemas/ContentLocationCollection"
13549
13115
  - $ref: "#/components/schemas/ContentLocationSpace"
13550
13116
  - $ref: "#/components/schemas/ContentLocationSnippet"
13551
- - $ref: "#/components/schemas/ContentLocationSyncedBlock"
13117
+ - $ref: "#/components/schemas/ContentLocationReusableContent"
13552
13118
  discriminator:
13553
13119
  propertyName: kind
13554
13120
  ContentReferenceStatus:
@@ -17929,6 +17495,34 @@ components:
17929
17495
  - path
17930
17496
  - siteSpaces
17931
17497
  - urls
17498
+ SiteStructure:
17499
+ oneOf:
17500
+ - type: object
17501
+ properties:
17502
+ type:
17503
+ type: string
17504
+ enum:
17505
+ - sections
17506
+ structure:
17507
+ type: array
17508
+ items:
17509
+ $ref: "#/components/schemas/SiteSection"
17510
+ required:
17511
+ - type
17512
+ - structure
17513
+ - type: object
17514
+ properties:
17515
+ type:
17516
+ type: string
17517
+ enum:
17518
+ - siteSpaces
17519
+ structure:
17520
+ type: array
17521
+ items:
17522
+ $ref: "#/components/schemas/SiteSpace"
17523
+ required:
17524
+ - type
17525
+ - structure
17932
17526
  SitePublishingAuth:
17933
17527
  allOf:
17934
17528
  - oneOf:
@@ -18164,6 +17758,27 @@ components:
18164
17758
  required:
18165
17759
  - script
18166
17760
  - cookies
17761
+ SiteSectionPointer:
17762
+ type: object
17763
+ properties:
17764
+ type:
17765
+ type: string
17766
+ enum:
17767
+ - site-section
17768
+ siteSection:
17769
+ type: string
17770
+ description: Unique identifier for the site section
17771
+ required:
17772
+ - type
17773
+ - siteSection
17774
+ SiteSectionMovePosition:
17775
+ type: object
17776
+ description: Position at which to move the site section to.
17777
+ properties:
17778
+ before:
17779
+ $ref: "#/components/schemas/SiteSectionPointer"
17780
+ after:
17781
+ $ref: "#/components/schemas/SiteSectionPointer"
18167
17782
  SiteSpacePointer:
18168
17783
  type: object
18169
17784
  properties:
@@ -18266,6 +17881,28 @@ components:
18266
17881
  - url
18267
17882
  - referrer
18268
17883
  - spaceId
17884
+ InsightsContentPage:
17885
+ type: object
17886
+ description: Page entry in the content insights.
17887
+ required:
17888
+ - id
17889
+ - title
17890
+ properties:
17891
+ id:
17892
+ description: Unique identifier for the page in the revision
17893
+ type: string
17894
+ title:
17895
+ description: Title of the page
17896
+ type: string
17897
+ path:
17898
+ description: Complete path to access the page in the revision.
17899
+ type: string
17900
+ emoji:
17901
+ description: Emoji of the page, if one has been set.
17902
+ $ref: "#/components/schemas/Emoji"
17903
+ icon:
17904
+ description: Icon of the page, if one has been set.
17905
+ $ref: "#/components/schemas/Icon"
18269
17906
  SiteAdsStats:
18270
17907
  type: object
18271
17908
  required:
@@ -18827,7 +18464,6 @@ components:
18827
18464
  - $ref: "#/components/schemas/DocumentBlockSwagger"
18828
18465
  - $ref: "#/components/schemas/DocumentBlockContentRef"
18829
18466
  - $ref: "#/components/schemas/DocumentBlockIntegration"
18830
- - $ref: "#/components/schemas/DocumentBlockSyncedBlock"
18831
18467
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
18832
18468
  - $ref: "#/components/schemas/DocumentBlockStepper"
18833
18469
  - $ref: "#/components/schemas/DocumentBlockStepperStep"
@@ -19603,34 +19239,6 @@ components:
19603
19239
  required:
19604
19240
  - channel
19605
19241
  - organization
19606
- OrganizationSyncedBlocksChannel:
19607
- type: object
19608
- description: Subscription channel for changes in synced blocks in an organization.
19609
- properties:
19610
- channel:
19611
- type: string
19612
- enum:
19613
- - organization-synced-blocks
19614
- organization:
19615
- type: string
19616
- required:
19617
- - channel
19618
- - organization
19619
- OrganizationSyncedBlockChannel:
19620
- type: object
19621
- properties:
19622
- channel:
19623
- type: string
19624
- enum:
19625
- - organization-synced-block
19626
- organization:
19627
- type: string
19628
- syncedBlock:
19629
- type: string
19630
- required:
19631
- - channel
19632
- - organization
19633
- - syncedBlock
19634
19242
  CommentsChannel:
19635
19243
  type: object
19636
19244
  properties:
@@ -19858,14 +19466,14 @@ components:
19858
19466
  - channel
19859
19467
  - site
19860
19468
  - siteSpace
19861
- SiteSpacesChannel:
19469
+ SiteStructureChannel:
19862
19470
  type: object
19863
- description: Subscription channel for changes in site spaces in an organization.
19471
+ description: Subscription channel for changes in site structure in an organization.
19864
19472
  properties:
19865
19473
  channel:
19866
19474
  type: string
19867
19475
  enum:
19868
- - site-spaces
19476
+ - site-structure
19869
19477
  site:
19870
19478
  type: string
19871
19479
  required:
@@ -19911,19 +19519,6 @@ components:
19911
19519
  - channel
19912
19520
  - site
19913
19521
  - siteShareLink
19914
- SiteSectionsChannel:
19915
- type: object
19916
- description: Subscription channel for changes in site sections in an organization.
19917
- properties:
19918
- channel:
19919
- type: string
19920
- enum:
19921
- - site-sections
19922
- site:
19923
- type: string
19924
- required:
19925
- - channel
19926
- - site
19927
19522
  SiteSectionChannel:
19928
19523
  type: object
19929
19524
  properties:
@@ -19988,8 +19583,6 @@ components:
19988
19583
  - $ref: "#/components/schemas/OrganizationInstallationsChannel"
19989
19584
  - $ref: "#/components/schemas/OrganizationSitesChannel"
19990
19585
  - $ref: "#/components/schemas/OrganizationExperimentalFeaturesChannel"
19991
- - $ref: "#/components/schemas/OrganizationSyncedBlocksChannel"
19992
- - $ref: "#/components/schemas/OrganizationSyncedBlockChannel"
19993
19586
  - $ref: "#/components/schemas/CommentsChannel"
19994
19587
  - $ref: "#/components/schemas/CommentInfoChannel"
19995
19588
  - $ref: "#/components/schemas/CommentReplyInfoChannel"
@@ -20005,11 +19598,10 @@ components:
20005
19598
  - $ref: "#/components/schemas/SiteIntegrationsChannel"
20006
19599
  - $ref: "#/components/schemas/SiteSpaceChannel"
20007
19600
  - $ref: "#/components/schemas/SiteSpaceCustomizationChannel"
20008
- - $ref: "#/components/schemas/SiteSpacesChannel"
19601
+ - $ref: "#/components/schemas/SiteStructureChannel"
20009
19602
  - $ref: "#/components/schemas/SitePublishingAuthChannel"
20010
19603
  - $ref: "#/components/schemas/SiteShareLinksChannel"
20011
19604
  - $ref: "#/components/schemas/SiteShareLinkChannel"
20012
- - $ref: "#/components/schemas/SiteSectionsChannel"
20013
19605
  - $ref: "#/components/schemas/SiteSectionChannel"
20014
19606
  - $ref: "#/components/schemas/CustomHostnameChannel"
20015
19607
  discriminator:
@@ -20066,8 +19658,6 @@ components:
20066
19658
  $ref: "#/components/schemas/InviteUsersToOrganization"
20067
19659
  RequestImportGitRepository:
20068
19660
  $ref: "#/components/schemas/ImportGitRepository"
20069
- RequestSyncGitRepository:
20070
- $ref: "#/components/schemas/SyncGitRepository"
20071
19661
  RequestExportToGitRepository:
20072
19662
  $ref: "#/components/schemas/ExportToGitRepository"
20073
19663
  RequestImportContent: