@gitbook/api 0.35.0 → 0.36.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
@@ -94,6 +94,13 @@ components:
94
94
  description: The target page of the comment
95
95
  schema:
96
96
  type: string
97
+ revisionMetadata:
98
+ name: metadata
99
+ in: query
100
+ description: If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
101
+ schema:
102
+ type: boolean
103
+ default: true
97
104
  spaceId:
98
105
  name: spaceId
99
106
  in: path
@@ -159,6 +166,13 @@ components:
159
166
  description: The unique id of the site
160
167
  schema:
161
168
  type: string
169
+ siteSpaceId:
170
+ name: siteSpaceId
171
+ in: path
172
+ required: true
173
+ description: The unique id of the site-space relationship
174
+ schema:
175
+ type: string
162
176
  organizationId:
163
177
  name: organizationId
164
178
  in: path
@@ -180,6 +194,13 @@ components:
180
194
  description: The unique id of a snippet
181
195
  schema:
182
196
  type: string
197
+ syncedBlockId:
198
+ name: syncedBlockId
199
+ in: path
200
+ required: true
201
+ description: The unique id of a synced block
202
+ schema:
203
+ type: string
183
204
  userId:
184
205
  name: userId
185
206
  in: path
@@ -257,6 +278,13 @@ components:
257
278
  description: The unique id of the share link
258
279
  schema:
259
280
  type: string
281
+ hostname:
282
+ name: hostname
283
+ in: path
284
+ required: true
285
+ description: The custom hostname, for example "docs.gitbook.com"
286
+ schema:
287
+ type: string
260
288
  backofficeHostname:
261
289
  name: hostname
262
290
  in: path
@@ -4215,6 +4243,19 @@ components:
4215
4243
  required:
4216
4244
  - level
4217
4245
  - collection
4246
+ OrganizationPointer:
4247
+ type: object
4248
+ properties:
4249
+ type:
4250
+ type: string
4251
+ enum:
4252
+ - organization
4253
+ organization:
4254
+ type: string
4255
+ description: Unique identifier for the organization
4256
+ required:
4257
+ - type
4258
+ - organization
4218
4259
  Capture:
4219
4260
  type: object
4220
4261
  properties:
@@ -4528,10 +4569,6 @@ components:
4528
4569
  createdAt:
4529
4570
  type: string
4530
4571
  format: date-time
4531
- editedAt:
4532
- type: string
4533
- format: date-time
4534
- description: Timestamp of when the synced block was last edited, if it has been edited since its creation.
4535
4572
  title:
4536
4573
  type: string
4537
4574
  description: Title describing the synced block.
@@ -4625,23 +4662,22 @@ components:
4625
4662
  - space
4626
4663
  - page
4627
4664
  ContentReferenceUsage:
4628
- type: array
4629
- items:
4630
- type: object
4631
- properties:
4632
- status:
4633
- $ref: "#/components/schemas/ContentReferenceStatus"
4634
- targetReference:
4635
- description: The reference target where a list of pages are pointing at
4665
+ type: object
4666
+ properties:
4667
+ status:
4668
+ $ref: "#/components/schemas/ContentReferenceStatus"
4669
+ targetReference:
4670
+ description: The reference target where a list of pages are pointing at
4671
+ $ref: "#/components/schemas/ContentReferenceResolved"
4672
+ locationReferences:
4673
+ description: All pages where the target is being referenced.
4674
+ type: array
4675
+ items:
4636
4676
  $ref: "#/components/schemas/ContentReferenceResolved"
4637
- locationReferences:
4638
- description: All pages where the target is being referenced.
4639
- type: array
4640
- items:
4641
- $ref: "#/components/schemas/ContentReferenceResolved"
4642
- required:
4643
- - targetReference
4644
- - locationReferences
4677
+ required:
4678
+ - status
4679
+ - targetReference
4680
+ - locationReferences
4645
4681
  ContentReferenceResolved:
4646
4682
  type: object
4647
4683
  properties:
@@ -4660,16 +4696,21 @@ components:
4660
4696
  - user
4661
4697
  - snippet
4662
4698
  - url
4699
+ - synced-block
4663
4700
  url:
4664
4701
  description: Target in-app url for the reference
4665
4702
  type: string
4666
4703
  extra:
4667
4704
  type: object
4668
4705
  properties:
4706
+ collection:
4707
+ $ref: "#/components/schemas/Collection"
4669
4708
  space:
4670
4709
  $ref: "#/components/schemas/Space"
4671
4710
  page:
4672
- $ref: "#/components/schemas/RevisionPageDocument"
4711
+ $ref: "#/components/schemas/RevisionPage"
4712
+ anchor:
4713
+ $ref: "#/components/schemas/RevisionPage"
4673
4714
  file:
4674
4715
  $ref: "#/components/schemas/RevisionFile"
4675
4716
  snippet:
@@ -4684,10 +4725,12 @@ components:
4684
4725
  ContentReferenceStatus:
4685
4726
  type: string
4686
4727
  enum:
4728
+ - ok
4687
4729
  - broken
4688
4730
  - in-app
4689
4731
  description: |
4690
4732
  Text to display to represent the reference. Possible values include:
4733
+ - `ok` - No problems detected for this content reference.
4691
4734
  - `broken` - The target does not exist in the revision.
4692
4735
  - `in-app` - The target is a URL link pointing to an internal location in the app.
4693
4736
  ContentReferencesStats:
@@ -8027,6 +8070,20 @@ components:
8027
8070
  - $ref: "#/components/schemas/ChangeRequestChannel"
8028
8071
  - $ref: "#/components/schemas/ChangeRequestsChannel"
8029
8072
  - $ref: "#/components/schemas/ChangeRequestReviewsChannel"
8073
+ - type: object
8074
+ properties:
8075
+ channel:
8076
+ type: string
8077
+ enum:
8078
+ - space-change-request-broken-links
8079
+ space:
8080
+ type: string
8081
+ changeRequest:
8082
+ type: string
8083
+ required:
8084
+ - channel
8085
+ - space
8086
+ - changeRequest
8030
8087
  - $ref: "#/components/schemas/CollectionChannel"
8031
8088
  - $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
8032
8089
  - type: object
@@ -8066,6 +8123,7 @@ components:
8066
8123
  required:
8067
8124
  - channel
8068
8125
  - organization
8126
+ - $ref: "#/components/schemas/OrganizationSyncedBlockChannel"
8069
8127
  - type: object
8070
8128
  properties:
8071
8129
  channel:
@@ -8137,6 +8195,20 @@ components:
8137
8195
  - $ref: "#/components/schemas/IntegrationSiteInstallationChannel"
8138
8196
  - $ref: "#/components/schemas/IntegrationSiteInstallationsChannel"
8139
8197
  - $ref: "#/components/schemas/SiteChannel"
8198
+ - $ref: "#/components/schemas/SiteSpaceChannel"
8199
+ - $ref: "#/components/schemas/SiteSpacesChannel"
8200
+ - type: object
8201
+ properties:
8202
+ channel:
8203
+ type: string
8204
+ enum:
8205
+ - site-publishing-auth
8206
+ site:
8207
+ type: string
8208
+ required:
8209
+ - channel
8210
+ - site
8211
+ - $ref: "#/components/schemas/CustomHostnameChannel"
8140
8212
  discriminator:
8141
8213
  propertyName: channel
8142
8214
  SpaceInfoChannel:
@@ -8403,6 +8475,21 @@ components:
8403
8475
  - channel
8404
8476
  - organization
8405
8477
  - team
8478
+ OrganizationSyncedBlockChannel:
8479
+ type: object
8480
+ properties:
8481
+ channel:
8482
+ type: string
8483
+ enum:
8484
+ - organization-synced-block
8485
+ organization:
8486
+ type: string
8487
+ syncedBlock:
8488
+ type: string
8489
+ required:
8490
+ - channel
8491
+ - organization
8492
+ - syncedBlock
8406
8493
  OrganizationTeamMembersChannel:
8407
8494
  type: object
8408
8495
  properties:
@@ -8656,6 +8743,46 @@ components:
8656
8743
  required:
8657
8744
  - channel
8658
8745
  - site
8746
+ SiteSpaceChannel:
8747
+ type: object
8748
+ properties:
8749
+ channel:
8750
+ type: string
8751
+ enum:
8752
+ - site-space
8753
+ site:
8754
+ type: string
8755
+ siteSpace:
8756
+ type: string
8757
+ required:
8758
+ - channel
8759
+ - site
8760
+ - siteSpace
8761
+ SiteSpacesChannel:
8762
+ type: object
8763
+ description: Subscription channel for changes in site spaces in an organization.
8764
+ properties:
8765
+ channel:
8766
+ type: string
8767
+ enum:
8768
+ - site-spaces
8769
+ site:
8770
+ type: string
8771
+ required:
8772
+ - channel
8773
+ - site
8774
+ CustomHostnameChannel:
8775
+ type: object
8776
+ properties:
8777
+ channel:
8778
+ type: string
8779
+ enum:
8780
+ - custom-hostname
8781
+ customHostname:
8782
+ type: string
8783
+ required:
8784
+ - channel
8785
+ - customHostname
8659
8786
  CustomField:
8660
8787
  type: object
8661
8788
  description: Custom field
@@ -9138,6 +9265,8 @@ components:
9138
9265
  createdAt:
9139
9266
  type: string
9140
9267
  format: date-time
9268
+ subscription:
9269
+ $ref: "#/components/schemas/SiteSubscription"
9141
9270
  urls:
9142
9271
  type: object
9143
9272
  description: URLs associated with the object
@@ -9166,6 +9295,7 @@ components:
9166
9295
  - createdAt
9167
9296
  - siteSpaces
9168
9297
  - defaultSpace
9298
+ - subscription
9169
9299
  - urls
9170
9300
  SiteTitle:
9171
9301
  type: string
@@ -9367,15 +9497,21 @@ components:
9367
9497
  - $ref: "#/components/schemas/SpaceVisitorAuth"
9368
9498
  SiteBasename:
9369
9499
  type: string
9370
- description: Basename for the site. For e.g. /api
9500
+ description: Basename for the site. For e.g. api
9501
+ minLength: 1
9371
9502
  maxLength: 100
9372
9503
  SiteHostname:
9373
9504
  type: string
9374
9505
  description: Custom hostname for the site, for e.g. docs.mycompany.com
9375
- maxLength: 100
9506
+ pattern: ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
9376
9507
  SiteSpace:
9377
9508
  type: object
9378
9509
  properties:
9510
+ object:
9511
+ type: string
9512
+ description: The object type, which is always "site-space"
9513
+ enum:
9514
+ - site-space
9379
9515
  id:
9380
9516
  type: string
9381
9517
  description: Unique identifier of the site-space
@@ -9395,6 +9531,125 @@ components:
9395
9531
  description: Path to the space on the site
9396
9532
  minLength: 1
9397
9533
  maxLength: 100
9534
+ SiteSubscriptionStatus:
9535
+ type: string
9536
+ enum:
9537
+ - active
9538
+ - inactive
9539
+ SiteSubscriptionType:
9540
+ type: string
9541
+ enum:
9542
+ - basic
9543
+ - premium
9544
+ SiteSubscription:
9545
+ type: object
9546
+ properties:
9547
+ type:
9548
+ $ref: "#/components/schemas/SiteSubscriptionType"
9549
+ status:
9550
+ $ref: "#/components/schemas/SiteSubscriptionStatus"
9551
+ required:
9552
+ - type
9553
+ - status
9554
+ CustomHostname:
9555
+ type: object
9556
+ properties:
9557
+ object:
9558
+ type: string
9559
+ enum:
9560
+ - custom-hostname
9561
+ hostname:
9562
+ $ref: "#/components/schemas/SiteHostname"
9563
+ target:
9564
+ oneOf:
9565
+ - $ref: "#/components/schemas/OrganizationPointer"
9566
+ - $ref: "#/components/schemas/SpacePointer"
9567
+ - $ref: "#/components/schemas/CollectionPointer"
9568
+ isActive:
9569
+ type: boolean
9570
+ status:
9571
+ $ref: "#/components/schemas/CustomHostnameStatus"
9572
+ urls:
9573
+ type: object
9574
+ description: URLs associated with the object
9575
+ properties:
9576
+ location:
9577
+ type: string
9578
+ description: URL of the custom hostname in the API
9579
+ format: uri
9580
+ required:
9581
+ - location
9582
+ required:
9583
+ - object
9584
+ - hostname
9585
+ - target
9586
+ - isActive
9587
+ - urls
9588
+ CustomHostnameStatus:
9589
+ type: string
9590
+ oneOf:
9591
+ - $ref: "#/components/schemas/CustomHostnameDnsStatus"
9592
+ - $ref: "#/components/schemas/CustomHostnameSslStatus"
9593
+ - $ref: "#/components/schemas/CustomHostnameErrorStatus"
9594
+ CustomHostnameDnsStatus:
9595
+ type: string
9596
+ enum:
9597
+ - dns_passed
9598
+ - dns_wrong_cname
9599
+ - dns_no_cname
9600
+ - dns_cloudflare_proxied
9601
+ - dns_wrong_caa
9602
+ CustomHostnameSslStatus:
9603
+ type: string
9604
+ enum:
9605
+ - live
9606
+ - ssl_unknown
9607
+ - ssl_pending
9608
+ - ssl_failed
9609
+ - ssl_retry_expired
9610
+ CustomHostnameErrorStatus:
9611
+ type: string
9612
+ enum:
9613
+ - invalid_domain
9614
+ - internal_error
9615
+ Seat:
9616
+ type: object
9617
+ properties:
9618
+ object:
9619
+ type: string
9620
+ enum:
9621
+ - seat
9622
+ organization:
9623
+ description: The unique ID of the organization
9624
+ type: string
9625
+ member:
9626
+ description: The unique ID of the organization member
9627
+ type: string
9628
+ createdAt:
9629
+ type: string
9630
+ format: date-time
9631
+ updatedAt:
9632
+ type: string
9633
+ format: date-time
9634
+ required:
9635
+ - object
9636
+ - organization
9637
+ - member
9638
+ - createdAt
9639
+ - updatedAt
9640
+ SeatsUsage:
9641
+ type: object
9642
+ description: A summary of the seats usage and availability in the organization.
9643
+ properties:
9644
+ total:
9645
+ description: The total amount of seats in the organization.
9646
+ type: number
9647
+ available:
9648
+ description: How many seats are still available.
9649
+ type: number
9650
+ required:
9651
+ - total
9652
+ - available
9398
9653
  responses:
9399
9654
  BadRequestError:
9400
9655
  description: Bad Request
@@ -10198,6 +10453,7 @@ paths:
10198
10453
  - user: []
10199
10454
  parameters:
10200
10455
  - $ref: "#/components/parameters/spaceId"
10456
+ - $ref: "#/components/parameters/revisionMetadata"
10201
10457
  responses:
10202
10458
  "200":
10203
10459
  description: OK
@@ -10243,6 +10499,7 @@ paths:
10243
10499
  - user: []
10244
10500
  parameters:
10245
10501
  - $ref: "#/components/parameters/spaceId"
10502
+ - $ref: "#/components/parameters/revisionMetadata"
10246
10503
  responses:
10247
10504
  "200":
10248
10505
  description: OK
@@ -10269,6 +10526,7 @@ paths:
10269
10526
  - $ref: "#/components/parameters/spaceId"
10270
10527
  - $ref: "#/components/parameters/listPage"
10271
10528
  - $ref: "#/components/parameters/listLimit"
10529
+ - $ref: "#/components/parameters/revisionMetadata"
10272
10530
  responses:
10273
10531
  "200":
10274
10532
  description: OK
@@ -10296,6 +10554,7 @@ paths:
10296
10554
  parameters:
10297
10555
  - $ref: "#/components/parameters/spaceId"
10298
10556
  - $ref: "#/components/parameters/fileId"
10557
+ - $ref: "#/components/parameters/revisionMetadata"
10299
10558
  responses:
10300
10559
  "200":
10301
10560
  description: OK
@@ -10315,6 +10574,7 @@ paths:
10315
10574
  - $ref: "#/components/parameters/spaceId"
10316
10575
  - $ref: "#/components/parameters/pageId"
10317
10576
  - $ref: "#/components/parameters/pageFormat"
10577
+ - $ref: "#/components/parameters/revisionMetadata"
10318
10578
  responses:
10319
10579
  "200":
10320
10580
  description: OK
@@ -10363,6 +10623,7 @@ paths:
10363
10623
  - $ref: "#/components/parameters/spaceId"
10364
10624
  - $ref: "#/components/parameters/pagePath"
10365
10625
  - $ref: "#/components/parameters/pageFormat"
10626
+ - $ref: "#/components/parameters/revisionMetadata"
10366
10627
  responses:
10367
10628
  "200":
10368
10629
  description: OK
@@ -10726,6 +10987,57 @@ paths:
10726
10987
  description: Optionally, update the subject of the change request when requesting reviewers.
10727
10988
  required:
10728
10989
  - users
10990
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/links":
10991
+ get:
10992
+ operationId: listChangeRequestLinks
10993
+ summary: Get all links in the context of a change request including their status and location where they appear.
10994
+ tags:
10995
+ - spaces
10996
+ - links
10997
+ security:
10998
+ - user: []
10999
+ parameters:
11000
+ - $ref: "#/components/parameters/spaceId"
11001
+ - $ref: "#/components/parameters/changeRequestId"
11002
+ - $ref: "#/components/parameters/listPage"
11003
+ - $ref: "#/components/parameters/listLimit"
11004
+ - name: status
11005
+ in: query
11006
+ required: false
11007
+ schema:
11008
+ $ref: "#/components/schemas/ContentReferenceStatus"
11009
+ - name: brokenContext
11010
+ in: query
11011
+ required: false
11012
+ schema:
11013
+ type: string
11014
+ enum:
11015
+ - change-request
11016
+ - space
11017
+ responses:
11018
+ "200":
11019
+ description: OK
11020
+ content:
11021
+ application/json:
11022
+ schema:
11023
+ allOf:
11024
+ - $ref: "#/components/schemas/List"
11025
+ - type: object
11026
+ properties:
11027
+ stats:
11028
+ $ref: "#/components/schemas/ContentReferencesStats"
11029
+ items:
11030
+ type: array
11031
+ items:
11032
+ $ref: "#/components/schemas/ContentReferenceUsage"
11033
+ required:
11034
+ - items
11035
+ - stats
11036
+ "404":
11037
+ description: The change request could not be found.
11038
+ $ref: "#/components/responses/NotFoundError"
11039
+ default:
11040
+ $ref: "#/components/responses/UnexpectedError"
10729
11041
  "/spaces/{spaceId}/change-requests/{changeRequestId}/comments":
10730
11042
  get:
10731
11043
  operationId: listCommentsInChangeRequest
@@ -11018,6 +11330,7 @@ paths:
11018
11330
  parameters:
11019
11331
  - $ref: "#/components/parameters/spaceId"
11020
11332
  - $ref: "#/components/parameters/changeRequestId"
11333
+ - $ref: "#/components/parameters/revisionMetadata"
11021
11334
  responses:
11022
11335
  "200":
11023
11336
  description: OK
@@ -11065,6 +11378,7 @@ paths:
11065
11378
  parameters:
11066
11379
  - $ref: "#/components/parameters/spaceId"
11067
11380
  - $ref: "#/components/parameters/changeRequestId"
11381
+ - $ref: "#/components/parameters/revisionMetadata"
11068
11382
  responses:
11069
11383
  "200":
11070
11384
  description: OK
@@ -11092,6 +11406,7 @@ paths:
11092
11406
  - $ref: "#/components/parameters/changeRequestId"
11093
11407
  - $ref: "#/components/parameters/listPage"
11094
11408
  - $ref: "#/components/parameters/listLimit"
11409
+ - $ref: "#/components/parameters/revisionMetadata"
11095
11410
  responses:
11096
11411
  "200":
11097
11412
  description: OK
@@ -11120,6 +11435,7 @@ paths:
11120
11435
  - $ref: "#/components/parameters/spaceId"
11121
11436
  - $ref: "#/components/parameters/changeRequestId"
11122
11437
  - $ref: "#/components/parameters/fileId"
11438
+ - $ref: "#/components/parameters/revisionMetadata"
11123
11439
  responses:
11124
11440
  "200":
11125
11441
  description: OK
@@ -11140,6 +11456,7 @@ paths:
11140
11456
  - $ref: "#/components/parameters/changeRequestId"
11141
11457
  - $ref: "#/components/parameters/pageId"
11142
11458
  - $ref: "#/components/parameters/pageFormat"
11459
+ - $ref: "#/components/parameters/revisionMetadata"
11143
11460
  responses:
11144
11461
  "200":
11145
11462
  description: OK
@@ -11190,6 +11507,7 @@ paths:
11190
11507
  - $ref: "#/components/parameters/changeRequestId"
11191
11508
  - $ref: "#/components/parameters/pagePath"
11192
11509
  - $ref: "#/components/parameters/pageFormat"
11510
+ - $ref: "#/components/parameters/revisionMetadata"
11193
11511
  responses:
11194
11512
  "200":
11195
11513
  description: OK
@@ -11252,6 +11570,7 @@ paths:
11252
11570
  parameters:
11253
11571
  - $ref: "#/components/parameters/spaceId"
11254
11572
  - $ref: "#/components/parameters/revisionId"
11573
+ - $ref: "#/components/parameters/revisionMetadata"
11255
11574
  responses:
11256
11575
  "200":
11257
11576
  description: OK
@@ -11270,18 +11589,13 @@ paths:
11270
11589
  parameters:
11271
11590
  - $ref: "#/components/parameters/spaceId"
11272
11591
  - $ref: "#/components/parameters/revisionId"
11592
+ - $ref: "#/components/parameters/revisionMetadata"
11273
11593
  - name: limit
11274
11594
  in: query
11275
11595
  description: Limit the number of changes returned
11276
11596
  schema:
11277
11597
  type: number
11278
11598
  default: 10
11279
- - name: metadata
11280
- in: query
11281
- description: Whether to include changes to metadata, such as git information and custom fields
11282
- schema:
11283
- type: boolean
11284
- default: true
11285
11599
  responses:
11286
11600
  "200":
11287
11601
  description: OK
@@ -11309,6 +11623,8 @@ paths:
11309
11623
  - user: []
11310
11624
  parameters:
11311
11625
  - $ref: "#/components/parameters/spaceId"
11626
+ - $ref: "#/components/parameters/revisionId"
11627
+ - $ref: "#/components/parameters/revisionMetadata"
11312
11628
  responses:
11313
11629
  "200":
11314
11630
  description: OK
@@ -11336,6 +11652,7 @@ paths:
11336
11652
  - $ref: "#/components/parameters/revisionId"
11337
11653
  - $ref: "#/components/parameters/listPage"
11338
11654
  - $ref: "#/components/parameters/listLimit"
11655
+ - $ref: "#/components/parameters/revisionMetadata"
11339
11656
  responses:
11340
11657
  "200":
11341
11658
  description: OK
@@ -11364,6 +11681,7 @@ paths:
11364
11681
  - $ref: "#/components/parameters/spaceId"
11365
11682
  - $ref: "#/components/parameters/revisionId"
11366
11683
  - $ref: "#/components/parameters/fileId"
11684
+ - $ref: "#/components/parameters/revisionMetadata"
11367
11685
  responses:
11368
11686
  "200":
11369
11687
  description: OK
@@ -11384,6 +11702,7 @@ paths:
11384
11702
  - $ref: "#/components/parameters/revisionId"
11385
11703
  - $ref: "#/components/parameters/pageId"
11386
11704
  - $ref: "#/components/parameters/pageFormat"
11705
+ - $ref: "#/components/parameters/revisionMetadata"
11387
11706
  responses:
11388
11707
  "200":
11389
11708
  description: OK
@@ -11404,6 +11723,7 @@ paths:
11404
11723
  - $ref: "#/components/parameters/revisionId"
11405
11724
  - $ref: "#/components/parameters/pagePath"
11406
11725
  - $ref: "#/components/parameters/pageFormat"
11726
+ - $ref: "#/components/parameters/revisionMetadata"
11407
11727
  responses:
11408
11728
  "200":
11409
11729
  description: OK
@@ -15126,12 +15446,7 @@ paths:
15126
15446
  - user: []
15127
15447
  parameters:
15128
15448
  - $ref: "#/components/parameters/organizationId"
15129
- - name: syncedBlockId
15130
- in: path
15131
- required: true
15132
- description: The unique id of a synced block
15133
- schema:
15134
- type: string
15449
+ - $ref: "#/components/parameters/syncedBlockId"
15135
15450
  responses:
15136
15451
  "200":
15137
15452
  description: OK
@@ -15141,23 +15456,48 @@ paths:
15141
15456
  $ref: "#/components/schemas/SyncedBlock"
15142
15457
  default:
15143
15458
  $ref: "#/components/responses/UnexpectedError"
15144
- "/orgs/{organizationId}/ask":
15145
- post:
15146
- operationId: askInOrganization
15147
- summary: Ask a question.
15459
+ put:
15460
+ operationId: updateSyncedBlock
15461
+ summary: Update an existing synced block.
15462
+ tags:
15463
+ - organizations
15148
15464
  security:
15149
15465
  - user: []
15150
15466
  parameters:
15151
15467
  - $ref: "#/components/parameters/organizationId"
15152
- - $ref: "#/components/parameters/pageFormat"
15468
+ - $ref: "#/components/parameters/syncedBlockId"
15153
15469
  requestBody:
15154
15470
  required: true
15155
15471
  content:
15156
15472
  application/json:
15157
15473
  schema:
15158
- $ref: "#/components/schemas/SearchAIQuery"
15159
- responses:
15160
- "200":
15474
+ type: object
15475
+ properties:
15476
+ title:
15477
+ type: string
15478
+ description: A new title for the Synced Block.
15479
+ responses:
15480
+ "200":
15481
+ description: OK
15482
+ default:
15483
+ $ref: "#/components/responses/UnexpectedError"
15484
+ "/orgs/{organizationId}/ask":
15485
+ post:
15486
+ operationId: askInOrganization
15487
+ summary: Ask a question.
15488
+ security:
15489
+ - user: []
15490
+ parameters:
15491
+ - $ref: "#/components/parameters/organizationId"
15492
+ - $ref: "#/components/parameters/pageFormat"
15493
+ requestBody:
15494
+ required: true
15495
+ content:
15496
+ application/json:
15497
+ schema:
15498
+ $ref: "#/components/schemas/SearchAIQuery"
15499
+ responses:
15500
+ "200":
15161
15501
  description: OK
15162
15502
  content:
15163
15503
  application/json:
@@ -15376,6 +15716,12 @@ paths:
15376
15716
  - $ref: "#/components/parameters/organizationId"
15377
15717
  - $ref: "#/components/parameters/listPage"
15378
15718
  - $ref: "#/components/parameters/listLimit"
15719
+ - name: space
15720
+ in: query
15721
+ description: Identifier of the space to filter the sites by
15722
+ required: false
15723
+ schema:
15724
+ type: string
15379
15725
  responses:
15380
15726
  "200":
15381
15727
  description: OK
@@ -15404,7 +15750,6 @@ paths:
15404
15750
  parameters:
15405
15751
  - $ref: "#/components/parameters/organizationId"
15406
15752
  requestBody:
15407
- required: true
15408
15753
  content:
15409
15754
  application/json:
15410
15755
  schema:
@@ -15419,9 +15764,6 @@ paths:
15419
15764
  description: ID of spaces to be added to the site
15420
15765
  items:
15421
15766
  type: string
15422
- required:
15423
- - title
15424
- - spaces
15425
15767
  responses:
15426
15768
  "201":
15427
15769
  description: Site created
@@ -15436,6 +15778,342 @@ paths:
15436
15778
  $ref: "#/components/schemas/Site"
15437
15779
  default:
15438
15780
  $ref: "#/components/responses/UnexpectedError"
15781
+ "/orgs/{organizationId}/sites/{siteId}":
15782
+ get:
15783
+ operationId: getSiteById
15784
+ summary: Get an organization site by its ID
15785
+ tags:
15786
+ - sites
15787
+ security:
15788
+ - user: []
15789
+ parameters:
15790
+ - $ref: "#/components/parameters/organizationId"
15791
+ - $ref: "#/components/parameters/siteId"
15792
+ responses:
15793
+ "200":
15794
+ description: OK
15795
+ content:
15796
+ application/json:
15797
+ schema:
15798
+ $ref: "#/components/schemas/Site"
15799
+ "404":
15800
+ description: No matching site found
15801
+ $ref: "#/components/responses/NotFoundError"
15802
+ default:
15803
+ $ref: "#/components/responses/UnexpectedError"
15804
+ patch:
15805
+ operationId: updateSiteById
15806
+ summary: Update a site in an organization
15807
+ tags:
15808
+ - sites
15809
+ security:
15810
+ - user: []
15811
+ parameters:
15812
+ - $ref: "#/components/parameters/organizationId"
15813
+ - $ref: "#/components/parameters/siteId"
15814
+ requestBody:
15815
+ required: true
15816
+ content:
15817
+ application/json:
15818
+ schema:
15819
+ type: object
15820
+ properties:
15821
+ title:
15822
+ $ref: "#/components/schemas/SiteTitle"
15823
+ visibility:
15824
+ $ref: "#/components/schemas/SiteVisibility"
15825
+ hostname:
15826
+ $ref: "#/components/schemas/SiteHostname"
15827
+ basename:
15828
+ $ref: "#/components/schemas/SiteBasename"
15829
+ defaultSiteSpace:
15830
+ type: string
15831
+ description: ID of the site-space to be used as the default
15832
+ responses:
15833
+ "200":
15834
+ description: OK
15835
+ content:
15836
+ application/json:
15837
+ schema:
15838
+ $ref: "#/components/schemas/Site"
15839
+ default:
15840
+ $ref: "#/components/responses/UnexpectedError"
15841
+ delete:
15842
+ operationId: deleteSiteById
15843
+ summary: Delete a site in an organization
15844
+ tags:
15845
+ - sites
15846
+ security:
15847
+ - user: []
15848
+ parameters:
15849
+ - $ref: "#/components/parameters/organizationId"
15850
+ - $ref: "#/components/parameters/siteId"
15851
+ responses:
15852
+ "205":
15853
+ description: Site has been deleted
15854
+ default:
15855
+ $ref: "#/components/responses/UnexpectedError"
15856
+ "/orgs/{organizationId}/sites/{siteId}/publishing/auth":
15857
+ get:
15858
+ operationId: getSitePublishingAuthSettings
15859
+ summary: Get the publishing authentication settings for a site.
15860
+ tags:
15861
+ - sites
15862
+ security:
15863
+ - user: []
15864
+ parameters:
15865
+ - $ref: "#/components/parameters/organizationId"
15866
+ - $ref: "#/components/parameters/siteId"
15867
+ responses:
15868
+ "200":
15869
+ description: OK
15870
+ content:
15871
+ application/json:
15872
+ schema:
15873
+ $ref: "#/components/schemas/SitePublishingAuth"
15874
+ "400":
15875
+ $ref: "#/components/responses/BadRequestError"
15876
+ default:
15877
+ $ref: "#/components/responses/UnexpectedError"
15878
+ "/orgs/{organizationId}/sites/{siteId}/spaces":
15879
+ post:
15880
+ operationId: addSpaceToSite
15881
+ summary: Add a space to a site in an organization
15882
+ tags:
15883
+ - sites
15884
+ security:
15885
+ - user: []
15886
+ parameters:
15887
+ - $ref: "#/components/parameters/organizationId"
15888
+ - $ref: "#/components/parameters/siteId"
15889
+ requestBody:
15890
+ required: true
15891
+ content:
15892
+ application/json:
15893
+ schema:
15894
+ type: object
15895
+ properties:
15896
+ spaceId:
15897
+ type: string
15898
+ description: ID of the space
15899
+ required:
15900
+ - spaceId
15901
+ responses:
15902
+ "201":
15903
+ description: Space added to the site
15904
+ headers:
15905
+ Location:
15906
+ description: API URL for the newly created site-space relationship
15907
+ schema:
15908
+ type: string
15909
+ content:
15910
+ application/json:
15911
+ schema:
15912
+ $ref: "#/components/schemas/SiteSpace"
15913
+ default:
15914
+ $ref: "#/components/responses/UnexpectedError"
15915
+ get:
15916
+ operationId: listSiteSpaces
15917
+ summary: List all the site spaces under a site in an organization
15918
+ tags:
15919
+ - sites
15920
+ security:
15921
+ - user: []
15922
+ parameters:
15923
+ - $ref: "#/components/parameters/organizationId"
15924
+ - $ref: "#/components/parameters/siteId"
15925
+ - $ref: "#/components/parameters/listPage"
15926
+ - $ref: "#/components/parameters/listLimit"
15927
+ responses:
15928
+ "200":
15929
+ description: OK
15930
+ content:
15931
+ application/json:
15932
+ schema:
15933
+ allOf:
15934
+ - $ref: "#/components/schemas/List"
15935
+ - type: object
15936
+ required:
15937
+ - items
15938
+ properties:
15939
+ items:
15940
+ type: array
15941
+ items:
15942
+ $ref: "#/components/schemas/SiteSpace"
15943
+ default:
15944
+ $ref: "#/components/responses/UnexpectedError"
15945
+ "/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}":
15946
+ patch:
15947
+ operationId: updateSiteSpaceById
15948
+ summary: Update a space on a site in an organization
15949
+ tags:
15950
+ - sites
15951
+ security:
15952
+ - user: []
15953
+ parameters:
15954
+ - $ref: "#/components/parameters/organizationId"
15955
+ - $ref: "#/components/parameters/siteId"
15956
+ - $ref: "#/components/parameters/siteSpaceId"
15957
+ requestBody:
15958
+ required: true
15959
+ content:
15960
+ application/json:
15961
+ schema:
15962
+ type: object
15963
+ properties:
15964
+ path:
15965
+ $ref: "#/components/schemas/SiteSpacePath"
15966
+ responses:
15967
+ "200":
15968
+ description: OK
15969
+ content:
15970
+ application/json:
15971
+ schema:
15972
+ $ref: "#/components/schemas/SiteSpace"
15973
+ default:
15974
+ $ref: "#/components/responses/UnexpectedError"
15975
+ delete:
15976
+ operationId: deleteSiteSpaceById
15977
+ summary: Delete a space on a site in an organization
15978
+ tags:
15979
+ - sites
15980
+ security:
15981
+ - user: []
15982
+ parameters:
15983
+ - $ref: "#/components/parameters/organizationId"
15984
+ - $ref: "#/components/parameters/siteId"
15985
+ - $ref: "#/components/parameters/siteSpaceId"
15986
+ responses:
15987
+ "205":
15988
+ description: Site space has been deleted
15989
+ default:
15990
+ $ref: "#/components/responses/UnexpectedError"
15991
+ "/custom-hostnames/{hostname}":
15992
+ get:
15993
+ operationId: getCustomHostname
15994
+ summary: Get the details about a custom hostname.
15995
+ tags:
15996
+ - custom-hostnames
15997
+ security:
15998
+ - user-internal: []
15999
+ parameters:
16000
+ - $ref: "#/components/parameters/hostname"
16001
+ responses:
16002
+ "200":
16003
+ description: OK
16004
+ content:
16005
+ application/json:
16006
+ schema:
16007
+ $ref: "#/components/schemas/CustomHostname"
16008
+ default:
16009
+ $ref: "#/components/responses/UnexpectedError"
16010
+ post:
16011
+ operationId: setupCustomHostname
16012
+ summary: Setup a custom hostname on a content or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
16013
+ tags:
16014
+ - custom-hostnames
16015
+ security:
16016
+ - user-internal: []
16017
+ parameters:
16018
+ - $ref: "#/components/parameters/hostname"
16019
+ requestBody:
16020
+ content:
16021
+ application/json:
16022
+ schema:
16023
+ type: object
16024
+ properties:
16025
+ target:
16026
+ oneOf:
16027
+ - $ref: "#/components/schemas/OrganizationPointer"
16028
+ - $ref: "#/components/schemas/SpacePointer"
16029
+ - $ref: "#/components/schemas/CollectionPointer"
16030
+ required:
16031
+ - target
16032
+ responses:
16033
+ "201":
16034
+ description: Custom hostname created
16035
+ headers:
16036
+ Location:
16037
+ description: API URL for the newly created custom hostname
16038
+ schema:
16039
+ type: string
16040
+ content:
16041
+ application/json:
16042
+ schema:
16043
+ $ref: "#/components/schemas/CustomHostname"
16044
+ "409":
16045
+ description: Custom hostname is already in use on the target
16046
+ $ref: "#/components/responses/ConflictError"
16047
+ default:
16048
+ $ref: "#/components/responses/UnexpectedError"
16049
+ patch:
16050
+ operationId: dnsRevalidateCustomHostname
16051
+ summary: Revalidate a custom hostname's DNS records and status.
16052
+ tags:
16053
+ - custom-hostnames
16054
+ security:
16055
+ - user-internal: []
16056
+ parameters:
16057
+ - $ref: "#/components/parameters/hostname"
16058
+ responses:
16059
+ "204":
16060
+ description: DNS validation has been retriggered
16061
+ "400":
16062
+ description: The current custom hostname is inactive and cannot be revalidated
16063
+ $ref: "#/components/responses/ConflictError"
16064
+ "409":
16065
+ description: The current custom hostname status does not allow DNS revalidation
16066
+ $ref: "#/components/responses/ConflictError"
16067
+ default:
16068
+ $ref: "#/components/responses/UnexpectedError"
16069
+ delete:
16070
+ operationId: removeCustomHostname
16071
+ summary: Remove a custom hostname from a content or organization. The custom hostname will continue to point to the content or organization unless it is used for another one.
16072
+ tags:
16073
+ - custom-hostnames
16074
+ security:
16075
+ - user-internal: []
16076
+ parameters:
16077
+ - $ref: "#/components/parameters/hostname"
16078
+ responses:
16079
+ "205":
16080
+ description: Custom hostname has been removed
16081
+ default:
16082
+ $ref: "#/components/responses/UnexpectedError"
16083
+ "/custom-hostnames/{hostname}/test":
16084
+ post:
16085
+ operationId: testCustomHostname
16086
+ summary: Test if a custom hostname can be used for a content or organization.
16087
+ tags:
16088
+ - custom-hostnames
16089
+ security:
16090
+ - user-internal: []
16091
+ parameters:
16092
+ - $ref: "#/components/parameters/hostname"
16093
+ requestBody:
16094
+ content:
16095
+ application/json:
16096
+ schema:
16097
+ type: object
16098
+ properties:
16099
+ target:
16100
+ oneOf:
16101
+ - $ref: "#/components/schemas/OrganizationPointer"
16102
+ - $ref: "#/components/schemas/SpacePointer"
16103
+ - $ref: "#/components/schemas/CollectionPointer"
16104
+ required:
16105
+ - target
16106
+ responses:
16107
+ "204":
16108
+ description: The custom hostname is available and valid.
16109
+ "400":
16110
+ description: The custom hostname is invalid.
16111
+ $ref: "#/components/responses/BadRequestError"
16112
+ "409":
16113
+ description: The custom hostname is already configured for this target or a different one.
16114
+ $ref: "#/components/responses/ConflictError"
16115
+ default:
16116
+ $ref: "#/components/responses/UnexpectedError"
15439
16117
  /internal/hive/token:
15440
16118
  post:
15441
16119
  operationId: generateHiveAccessToken