@gitbook/api 0.92.0 → 0.94.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
@@ -1311,7 +1311,7 @@ paths:
1311
1311
  - user: []
1312
1312
  parameters:
1313
1313
  - $ref: "#/components/parameters/spaceId"
1314
- - $ref: "#/components/parameters/documentFormat"
1314
+ - $ref: "#/components/parameters/documentSchema"
1315
1315
  requestBody:
1316
1316
  required: true
1317
1317
  content:
@@ -1329,7 +1329,7 @@ paths:
1329
1329
  content:
1330
1330
  application/json:
1331
1331
  schema:
1332
- $ref: "#/components/schemas/Document"
1332
+ $ref: "#/components/schemas/JSONDocument"
1333
1333
  default:
1334
1334
  $ref: "#/components/responses/UnexpectedError"
1335
1335
  "/spaces/{spaceId}/content/computed/revision":
@@ -5418,6 +5418,8 @@ paths:
5418
5418
  - ultimateSites
5419
5419
  invoice:
5420
5420
  $ref: "#/components/schemas/BillingInvoicePreview"
5421
+ discount:
5422
+ $ref: "#/components/schemas/BillingDiscount"
5421
5423
  required:
5422
5424
  - totals
5423
5425
  default:
@@ -6346,199 +6348,139 @@ paths:
6346
6348
  - teamMembers
6347
6349
  default:
6348
6350
  $ref: "#/components/responses/UnexpectedError"
6349
- "/orgs/{organizationId}/captures":
6350
- get:
6351
- operationId: listCaptures
6352
- deprecated: true
6353
- summary: List captures. Deprecated, use listSnippets instead.
6354
- description: |
6355
- List captures in an organization, newest first.
6356
- tags:
6357
- - organizations
6351
+ "/orgs/{organizationId}/ask":
6352
+ post:
6353
+ operationId: askInOrganization
6354
+ summary: Ask a question.
6358
6355
  security:
6359
6356
  - user: []
6360
6357
  parameters:
6361
6358
  - $ref: "#/components/parameters/organizationId"
6362
6359
  - $ref: "#/components/parameters/documentFormat"
6363
- - $ref: "#/components/parameters/listPage"
6364
- - $ref: "#/components/parameters/listLimit"
6365
- - name: context
6360
+ - name: details
6366
6361
  in: query
6367
- description: The context in which the item was captured
6362
+ description: Return query details in the result
6368
6363
  schema:
6369
- type: string
6370
- enum:
6371
- - walkthrough
6372
- - thread
6373
- responses:
6374
- "200":
6375
- description: OK
6376
- content:
6377
- application/json:
6378
- schema:
6379
- allOf:
6380
- - $ref: "#/components/schemas/List"
6381
- - type: object
6382
- required:
6383
- - items
6384
- properties:
6385
- items:
6386
- type: array
6387
- items:
6388
- $ref: "#/components/schemas/Capture"
6389
- default:
6390
- $ref: "#/components/responses/UnexpectedError"
6391
- post:
6392
- operationId: startCapture
6393
- summary: Start a capture
6394
- tags:
6395
- - organizations
6396
- security:
6397
- - user: []
6398
- parameters:
6399
- - $ref: "#/components/parameters/organizationId"
6364
+ type: boolean
6400
6365
  requestBody:
6366
+ required: true
6401
6367
  content:
6402
6368
  application/json:
6403
6369
  schema:
6404
- type: object
6405
- properties:
6406
- title:
6407
- $ref: "#/components/schemas/CaptureTitle"
6408
- context:
6409
- $ref: "#/components/schemas/CaptureContext"
6410
- externalId:
6411
- type: string
6412
- description: ID in the original source of the capture.
6413
- externalURL:
6414
- type: string
6415
- format: uri
6416
- description: URL of the original source of the capture.
6417
- required:
6418
- - context
6370
+ $ref: "#/components/schemas/SearchAIQuery"
6419
6371
  responses:
6420
- "201":
6421
- description: Capture started
6422
- headers:
6423
- Location:
6424
- description: API URL for the newly created capture
6425
- schema:
6426
- type: string
6372
+ "200":
6373
+ description: OK
6427
6374
  content:
6428
6375
  application/json:
6429
6376
  schema:
6430
- $ref: "#/components/schemas/Capture"
6377
+ type: object
6378
+ properties:
6379
+ answer:
6380
+ $ref: "#/components/schemas/SearchAIAnswer"
6431
6381
  default:
6432
6382
  $ref: "#/components/responses/UnexpectedError"
6433
- "/orgs/{organizationId}/captures/{captureId}":
6383
+ "/orgs/{organizationId}/ask/questions":
6434
6384
  get:
6435
- operationId: getCapture
6436
- deprecated: true
6437
- summary: Get a capture by its ID. Deprecated, use getSnippet instead.
6438
- tags:
6439
- - organizations
6440
- security:
6441
- - user: []
6385
+ operationId: getRecommendedQuestionsInOrganization
6386
+ summary: Get a list of questions recommended to be asked in an organization.
6442
6387
  parameters:
6443
6388
  - $ref: "#/components/parameters/organizationId"
6444
- - $ref: "#/components/parameters/captureId"
6445
- - $ref: "#/components/parameters/documentFormat"
6389
+ security:
6390
+ - user: []
6446
6391
  responses:
6447
6392
  "200":
6448
6393
  description: OK
6449
6394
  content:
6450
6395
  application/json:
6451
6396
  schema:
6452
- $ref: "#/components/schemas/Capture"
6397
+ $ref: "#/components/schemas/SearchAIRecommendedQuestions"
6453
6398
  default:
6454
6399
  $ref: "#/components/responses/UnexpectedError"
6455
- "/orgs/{organizationId}/captures/{captureId}/events":
6456
- post:
6457
- operationId: addEventsToCapture
6458
- summary: Add events to a running capture
6459
- tags:
6460
- - organizations
6461
- security:
6462
- - user: []
6400
+ "/orgs/{organizationId}/ask/questions/stream":
6401
+ get:
6402
+ operationId: streamRecommendedQuestionsInOrganization
6403
+ summary: Stream a list of questions recommended to be asked in an organization.
6463
6404
  parameters:
6464
6405
  - $ref: "#/components/parameters/organizationId"
6465
- - $ref: "#/components/parameters/captureId"
6466
- requestBody:
6467
- content:
6468
- application/json:
6469
- schema:
6470
- type: object
6471
- properties:
6472
- events:
6473
- type: array
6474
- items:
6475
- $ref: "#/components/schemas/CaptureEvent"
6476
- required:
6477
- - events
6406
+ security:
6407
+ - user: []
6478
6408
  responses:
6479
- "204":
6480
- description: Events added
6409
+ "200":
6410
+ description: OK
6411
+ content:
6412
+ text/event-stream:
6413
+ schema:
6414
+ $ref: "#/components/schemas/SearchAIRecommendedQuestionStream"
6481
6415
  default:
6482
6416
  $ref: "#/components/responses/UnexpectedError"
6483
- "/orgs/{organizationId}/captures/{captureId}/stop":
6484
- post:
6485
- operationId: stopCapture
6486
- summary: Stop a capture
6487
- tags:
6488
- - organizations
6417
+ "/orgs/{organizationId}/ask/stream":
6418
+ get:
6419
+ operationId: streamAskInOrganization
6420
+ summary: Ask a question to an AI across spaces that is accessible by the currently authenticated target and stream the answer as a Server-Sent Events URL.
6489
6421
  security:
6490
6422
  - user: []
6491
6423
  parameters:
6492
6424
  - $ref: "#/components/parameters/organizationId"
6493
- - $ref: "#/components/parameters/captureId"
6425
+ - name: query
6426
+ in: query
6427
+ required: true
6428
+ schema:
6429
+ type: string
6494
6430
  - $ref: "#/components/parameters/documentFormat"
6495
- requestBody:
6496
- content:
6497
- application/json:
6498
- schema:
6499
- type: object
6500
- properties: {}
6431
+ - name: details
6432
+ in: query
6433
+ description: Return query details in the result
6434
+ schema:
6435
+ type: boolean
6501
6436
  responses:
6502
6437
  "200":
6503
- description: Capture stopped
6438
+ description: OK
6504
6439
  content:
6505
- application/json:
6440
+ text/event-stream:
6506
6441
  schema:
6507
- type: object
6508
- properties:
6509
- capture:
6510
- $ref: "#/components/schemas/Capture"
6511
- followupQuestions:
6512
- description: Example questions that would be answered by the content of this capture.
6513
- type: array
6514
- items:
6515
- type: string
6516
- required:
6517
- - capture
6442
+ $ref: "#/components/schemas/SearchAIAnswerStream"
6518
6443
  default:
6519
6444
  $ref: "#/components/responses/UnexpectedError"
6520
- "/orgs/{organizationId}/snippets":
6445
+ "/orgs/{organizationId}/sites":
6521
6446
  get:
6522
- operationId: listSnippets
6523
- summary: Lists snippets.
6524
- description: |
6525
- List snippets in an organization, newest first.
6526
- deprecated: true
6527
- x-deprecated-error-rate: 0.1
6528
- x-deprecated-sunset: 2025-02-05
6447
+ operationId: listSites
6448
+ summary: List all the sites created in an organization
6529
6449
  tags:
6530
- - organizations
6450
+ - sites
6451
+ - critical
6531
6452
  security:
6532
6453
  - user: []
6533
6454
  parameters:
6534
6455
  - $ref: "#/components/parameters/organizationId"
6535
6456
  - $ref: "#/components/parameters/listPage"
6536
6457
  - $ref: "#/components/parameters/listLimit"
6537
- - name: source
6458
+ - name: space
6459
+ in: query
6460
+ description: Identifier of the space to filter the sites by
6461
+ required: false
6462
+ schema:
6463
+ type: string
6464
+ - name: title
6538
6465
  in: query
6539
- description: If specified, only snippets from the specified source will be returned.
6466
+ description: Filter sites by their title
6467
+ required: false
6540
6468
  schema:
6541
6469
  type: string
6470
+ - name: published
6471
+ in: query
6472
+ description: Filter sites by their published status
6473
+ required: false
6474
+ schema:
6475
+ type: boolean
6476
+ - name: type
6477
+ in: query
6478
+ description: Filter by site type
6479
+ required: false
6480
+ schema:
6481
+ type: array
6482
+ items:
6483
+ $ref: "#/components/schemas/SiteType"
6542
6484
  responses:
6543
6485
  "200":
6544
6486
  description: OK
@@ -6554,17 +6496,14 @@ paths:
6554
6496
  items:
6555
6497
  type: array
6556
6498
  items:
6557
- $ref: "#/components/schemas/Snippet"
6499
+ $ref: "#/components/schemas/Site"
6558
6500
  default:
6559
6501
  $ref: "#/components/responses/UnexpectedError"
6560
6502
  post:
6561
- operationId: createSnippet
6562
- summary: Create a new snippet
6563
- deprecated: true
6564
- x-deprecated-error-rate: 0.1
6565
- x-deprecated-sunset: 2025-02-05
6503
+ operationId: createSite
6504
+ summary: Create a site in an organization
6566
6505
  tags:
6567
- - organizations
6506
+ - sites
6568
6507
  security:
6569
6508
  - user: []
6570
6509
  parameters:
@@ -6574,338 +6513,243 @@ paths:
6574
6513
  application/json:
6575
6514
  schema:
6576
6515
  type: object
6516
+ properties:
6517
+ type:
6518
+ description: The type of the site, defaults to Basic
6519
+ $ref: "#/components/schemas/SiteType"
6520
+ title:
6521
+ $ref: "#/components/schemas/SiteTitle"
6522
+ visibility:
6523
+ $ref: "#/components/schemas/SiteVisibility"
6524
+ spaces:
6525
+ oneOf:
6526
+ - type: array
6527
+ description: ID of spaces to be added to the site
6528
+ items:
6529
+ type: string
6530
+ - type: string
6531
+ description: Create a new space associated to the site
6532
+ enum:
6533
+ - sample
6534
+ - empty
6577
6535
  responses:
6578
6536
  "201":
6579
- description: Snippet created
6537
+ description: Site created
6580
6538
  headers:
6581
6539
  Location:
6582
- description: API URL for the newly created snippet
6540
+ description: API URL for the newly created site
6583
6541
  schema:
6584
6542
  type: string
6585
6543
  content:
6586
6544
  application/json:
6587
6545
  schema:
6588
- $ref: "#/components/schemas/Snippet"
6546
+ $ref: "#/components/schemas/Site"
6589
6547
  default:
6590
6548
  $ref: "#/components/responses/UnexpectedError"
6591
- "/orgs/{organizationId}/snippets/{snippetId}":
6549
+ "/orgs/{organizationId}/sites/publishing/checkout":
6592
6550
  get:
6593
- operationId: getSnippet
6594
- summary: Get a snippet by its ID
6595
- deprecated: true
6596
- x-deprecated-error-rate: 0.1
6597
- x-deprecated-sunset: 2025-02-05
6551
+ operationId: previewSitePublishCheckout
6552
+ summary: Preview checkout information upon publishing a site in the organization.
6598
6553
  tags:
6599
- - organizations
6554
+ - sites
6600
6555
  security:
6601
- - user: []
6556
+ - user-internal: []
6602
6557
  parameters:
6603
6558
  - $ref: "#/components/parameters/organizationId"
6604
- - $ref: "#/components/parameters/snippetId"
6559
+ - in: query
6560
+ name: plan
6561
+ description: The plan of the site to preview the checkout information for.
6562
+ required: true
6563
+ schema:
6564
+ $ref: "#/components/schemas/SiteType"
6605
6565
  responses:
6606
6566
  "200":
6607
6567
  description: OK
6608
6568
  content:
6609
6569
  application/json:
6610
6570
  schema:
6611
- $ref: "#/components/schemas/Snippet"
6571
+ $ref: "#/components/schemas/BillingOperationPreviewResponse"
6612
6572
  default:
6613
6573
  $ref: "#/components/responses/UnexpectedError"
6614
- delete:
6615
- operationId: deleteSnippet
6616
- summary: Delete a snippet by its ID.
6574
+ "/orgs/{organizationId}/sites/{siteId}":
6575
+ get:
6576
+ operationId: getSiteById
6577
+ summary: Get an organization site by its ID
6617
6578
  tags:
6618
- - organizations
6579
+ - sites
6619
6580
  security:
6620
6581
  - user: []
6621
6582
  parameters:
6622
6583
  - $ref: "#/components/parameters/organizationId"
6623
- - $ref: "#/components/parameters/snippetId"
6584
+ - $ref: "#/components/parameters/siteId"
6624
6585
  responses:
6625
6586
  "200":
6626
6587
  description: OK
6588
+ content:
6589
+ application/json:
6590
+ schema:
6591
+ $ref: "#/components/schemas/Site"
6592
+ "404":
6593
+ description: No matching site found
6594
+ $ref: "#/components/responses/NotFoundError"
6627
6595
  default:
6628
6596
  $ref: "#/components/responses/UnexpectedError"
6629
- put:
6630
- operationId: updateSnippet
6631
- summary: Update an existing snippet.
6632
- deprecated: true
6633
- x-deprecated-error-rate: 0.1
6634
- x-deprecated-sunset: 2025-02-05
6597
+ patch:
6598
+ operationId: updateSiteById
6599
+ summary: Update a site in an organization
6635
6600
  tags:
6636
- - organizations
6601
+ - sites
6637
6602
  security:
6638
6603
  - user: []
6639
6604
  parameters:
6640
6605
  - $ref: "#/components/parameters/organizationId"
6641
- - $ref: "#/components/parameters/snippetId"
6642
- - $ref: "#/components/parameters/ifUnmodifiedSince"
6643
- requestBody:
6644
- required: true
6645
- content:
6646
- application/json:
6647
- schema:
6648
- $ref: "#/components/schemas/UpdateSnippetSchema"
6649
- responses:
6650
- "200":
6651
- description: OK
6652
- content:
6653
- application/json:
6654
- schema:
6655
- $ref: "#/components/schemas/Snippet"
6656
- default:
6657
- $ref: "#/components/responses/UnexpectedError"
6658
- "/orgs/{organizationId}/snippets/{snippetId}/move":
6659
- post:
6660
- operationId: moveSnippet
6661
- summary: Move a snippet into a destination. The snippet will be archived in the process.
6662
- deprecated: true
6663
- x-deprecated-error-rate: 0.1
6664
- x-deprecated-sunset: 2025-02-05
6665
- tags:
6666
- - organizations
6667
- security:
6668
- - user: []
6669
- parameters:
6670
- - $ref: "#/components/parameters/organizationId"
6671
- - $ref: "#/components/parameters/snippetId"
6606
+ - $ref: "#/components/parameters/siteId"
6672
6607
  requestBody:
6673
6608
  required: true
6674
6609
  content:
6675
6610
  application/json:
6676
6611
  schema:
6677
6612
  type: object
6678
- required:
6679
- - target
6680
6613
  properties:
6681
- target:
6682
- type: object
6683
- description: Intended destination for the page
6684
- properties:
6685
- space:
6686
- description: The id of the target space
6687
- type: string
6688
- position:
6689
- type: object
6690
- properties:
6691
- parent:
6692
- description: The parent of the page in the target space. If undefined, the page will be inserted at the root of the space.
6693
- type: string
6694
- index:
6695
- description: The index of the page in the parent. If undefined, the page will be inserted at the end of the parent's current children.
6696
- type: number
6697
- required:
6698
- - space
6614
+ title:
6615
+ $ref: "#/components/schemas/SiteTitle"
6616
+ visibility:
6617
+ $ref: "#/components/schemas/SiteVisibility"
6618
+ basename:
6619
+ $ref: "#/components/schemas/SiteBasename"
6620
+ adaptiveContent:
6621
+ $ref: "#/components/schemas/SiteAdaptiveContent"
6622
+ defaultSiteSpace:
6623
+ type: string
6624
+ description: ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section.
6625
+ defaultSiteSection:
6626
+ type: string
6627
+ description: ID of the site-section to be used as the default.
6628
+ proxy:
6629
+ description: |
6630
+ Configure a proxy URL for a site. For example, you can use it to host the site on a subdirectory of your domain like `https://company.com/docs`.
6631
+ Use `null` to remove the proxy.
6632
+ oneOf:
6633
+ - $ref: "#/components/schemas/SiteProxy"
6634
+ - type: string
6635
+ nullable: true
6636
+ enum:
6637
+ - null
6699
6638
  responses:
6700
6639
  "200":
6701
- description: The snippet was successfully moved.
6640
+ description: OK
6702
6641
  content:
6703
6642
  application/json:
6704
6643
  schema:
6705
- type: object
6706
- required:
6707
- - page
6708
- properties:
6709
- page:
6710
- $ref: "#/components/schemas/RevisionPageDocument"
6711
- changeRequest:
6712
- $ref: "#/components/schemas/ChangeRequest"
6644
+ $ref: "#/components/schemas/Site"
6713
6645
  default:
6714
6646
  $ref: "#/components/responses/UnexpectedError"
6715
- get:
6716
- operationId: getSnippetSuggestedLocations
6717
- summary: Return possible snippet locations in an organization based on the current user.
6718
- deprecated: true
6719
- x-deprecated-error-rate: 0.1
6720
- x-deprecated-sunset: 2025-02-05
6647
+ delete:
6648
+ operationId: deleteSiteById
6649
+ summary: Delete a site in an organization
6721
6650
  tags:
6722
- - organizations
6651
+ - sites
6723
6652
  security:
6724
6653
  - user: []
6725
6654
  parameters:
6726
6655
  - $ref: "#/components/parameters/organizationId"
6727
- - $ref: "#/components/parameters/snippetId"
6728
- - $ref: "#/components/parameters/listPage"
6729
- - $ref: "#/components/parameters/listLimit"
6730
- - name: spaceId
6731
- in: query
6732
- description: If specified, only locations in the given space will be returned. If not specified, GitBook will suggest spaces.
6733
- schema:
6734
- type: string
6735
- - name: pageId
6736
- in: query
6737
- description: If specified, only locations under the given pageId will be returned. You must specify a spaceId too. If pageId is not specified, GitBook will suggest pages at the top level.
6738
- schema:
6739
- type: string
6740
- - name: search
6741
- in: query
6742
- description: If specified, only locations matching the search query will be returned.
6743
- schema:
6744
- type: string
6656
+ - $ref: "#/components/parameters/siteId"
6745
6657
  responses:
6746
- "200":
6747
- description: A paginated list of suggested snippet locations.
6748
- content:
6749
- application/json:
6750
- schema:
6751
- allOf:
6752
- - $ref: "#/components/schemas/List"
6753
- - type: object
6754
- required:
6755
- - items
6756
- properties:
6757
- items:
6758
- type: array
6759
- items:
6760
- type: object
6761
- required:
6762
- - space
6763
- properties:
6764
- aiPowered:
6765
- type: boolean
6766
- description: If defined and true, this location was suggested by GitBook AI.
6767
- space:
6768
- $ref: "#/components/schemas/Space"
6769
- parentPage:
6770
- description: The parent page of the suggested location.
6771
- oneOf:
6772
- - $ref: "#/components/schemas/RevisionPageDocument"
6773
- - $ref: "#/components/schemas/RevisionPageGroup"
6658
+ "205":
6659
+ description: Site has been deleted
6774
6660
  default:
6775
6661
  $ref: "#/components/responses/UnexpectedError"
6776
- "/orgs/{organizationId}/ask":
6777
- post:
6778
- operationId: askInOrganization
6779
- summary: Ask a question.
6662
+ "/orgs/{organizationId}/sites/{siteId}/published":
6663
+ get:
6664
+ operationId: getPublishedContentSite
6665
+ summary: Get the complete profile of a site in an organization to provide the published experience. It includes site, customization, structure, integration scripts etc.
6666
+ tags:
6667
+ - sites
6780
6668
  security:
6781
6669
  - user: []
6782
6670
  parameters:
6783
6671
  - $ref: "#/components/parameters/organizationId"
6784
- - $ref: "#/components/parameters/documentFormat"
6785
- - name: details
6786
- in: query
6787
- description: Return query details in the result
6788
- schema:
6789
- type: boolean
6790
- requestBody:
6791
- required: true
6792
- content:
6793
- application/json:
6794
- schema:
6795
- $ref: "#/components/schemas/SearchAIQuery"
6672
+ - $ref: "#/components/parameters/siteId"
6673
+ - $ref: "#/components/parameters/siteShareKey"
6796
6674
  responses:
6797
6675
  "200":
6798
6676
  description: OK
6799
6677
  content:
6800
6678
  application/json:
6801
6679
  schema:
6802
- type: object
6803
- properties:
6804
- answer:
6805
- $ref: "#/components/schemas/SearchAIAnswer"
6680
+ $ref: "#/components/schemas/PublishedContentSite"
6681
+ "404":
6682
+ description: No matching site found
6683
+ $ref: "#/components/responses/NotFoundError"
6806
6684
  default:
6807
6685
  $ref: "#/components/responses/UnexpectedError"
6808
- "/orgs/{organizationId}/ask/questions":
6809
- get:
6810
- operationId: getRecommendedQuestionsInOrganization
6811
- summary: Get a list of questions recommended to be asked in an organization.
6812
- parameters:
6813
- - $ref: "#/components/parameters/organizationId"
6686
+ "/orgs/{organizationId}/sites/{siteId}/publish":
6687
+ post:
6688
+ operationId: publishSite
6689
+ summary: Publishes the site to the audience defined in the site's visibility setting.
6690
+ tags:
6691
+ - sites
6814
6692
  security:
6815
6693
  - user: []
6816
- responses:
6817
- "200":
6818
- description: OK
6819
- content:
6820
- application/json:
6821
- schema:
6822
- $ref: "#/components/schemas/SearchAIRecommendedQuestions"
6823
- default:
6824
- $ref: "#/components/responses/UnexpectedError"
6825
- "/orgs/{organizationId}/ask/questions/stream":
6826
- get:
6827
- operationId: streamRecommendedQuestionsInOrganization
6828
- summary: Stream a list of questions recommended to be asked in an organization.
6829
6694
  parameters:
6830
6695
  - $ref: "#/components/parameters/organizationId"
6831
- security:
6832
- - user: []
6696
+ - $ref: "#/components/parameters/siteId"
6833
6697
  responses:
6834
6698
  "200":
6835
- description: OK
6699
+ description: Site published successfully
6836
6700
  content:
6837
- text/event-stream:
6701
+ application/json:
6838
6702
  schema:
6839
- $ref: "#/components/schemas/SearchAIRecommendedQuestionStream"
6703
+ oneOf:
6704
+ - $ref: "#/components/schemas/Site"
6705
+ - type: object
6706
+ description: User needs to checkout in order to publish the site.
6707
+ properties:
6708
+ type:
6709
+ type: string
6710
+ enum:
6711
+ - checkout
6712
+ sessionId:
6713
+ type: string
6714
+ description: Stripe payment session ID
6715
+ required:
6716
+ - type
6717
+ - sessionId
6840
6718
  default:
6841
6719
  $ref: "#/components/responses/UnexpectedError"
6842
- "/orgs/{organizationId}/ask/stream":
6843
- get:
6844
- operationId: streamAskInOrganization
6845
- summary: Ask a question to an AI across spaces that is accessible by the currently authenticated target and stream the answer as a Server-Sent Events URL.
6720
+ "/orgs/{organizationId}/sites/{siteId}/unpublish":
6721
+ post:
6722
+ operationId: unpublishSite
6723
+ summary: Unpublishes the site.
6724
+ tags:
6725
+ - sites
6846
6726
  security:
6847
6727
  - user: []
6848
6728
  parameters:
6849
6729
  - $ref: "#/components/parameters/organizationId"
6850
- - name: query
6851
- in: query
6852
- required: true
6853
- schema:
6854
- type: string
6855
- - $ref: "#/components/parameters/documentFormat"
6856
- - name: details
6857
- in: query
6858
- description: Return query details in the result
6859
- schema:
6860
- type: boolean
6730
+ - $ref: "#/components/parameters/siteId"
6861
6731
  responses:
6862
6732
  "200":
6863
- description: OK
6733
+ description: Site unpublished successfully
6864
6734
  content:
6865
- text/event-stream:
6735
+ application/json:
6866
6736
  schema:
6867
- $ref: "#/components/schemas/SearchAIAnswerStream"
6737
+ $ref: "#/components/schemas/Site"
6868
6738
  default:
6869
6739
  $ref: "#/components/responses/UnexpectedError"
6870
- "/orgs/{organizationId}/sites":
6740
+ "/orgs/{organizationId}/sites/{siteId}/share-links":
6871
6741
  get:
6872
- operationId: listSites
6873
- summary: List all the sites created in an organization
6742
+ operationId: listSiteShareLinks
6743
+ summary: List all the share links created in a site
6874
6744
  tags:
6875
6745
  - sites
6876
- - critical
6877
6746
  security:
6878
6747
  - user: []
6879
6748
  parameters:
6880
6749
  - $ref: "#/components/parameters/organizationId"
6750
+ - $ref: "#/components/parameters/siteId"
6881
6751
  - $ref: "#/components/parameters/listPage"
6882
6752
  - $ref: "#/components/parameters/listLimit"
6883
- - name: space
6884
- in: query
6885
- description: Identifier of the space to filter the sites by
6886
- required: false
6887
- schema:
6888
- type: string
6889
- - name: title
6890
- in: query
6891
- description: Filter sites by their title
6892
- required: false
6893
- schema:
6894
- type: string
6895
- - name: published
6896
- in: query
6897
- description: Filter sites by their published status
6898
- required: false
6899
- schema:
6900
- type: boolean
6901
- - name: type
6902
- in: query
6903
- description: Filter by site type
6904
- required: false
6905
- schema:
6906
- type: array
6907
- items:
6908
- $ref: "#/components/schemas/SiteType"
6909
6753
  responses:
6910
6754
  "200":
6911
6755
  description: OK
@@ -6921,107 +6765,48 @@ paths:
6921
6765
  items:
6922
6766
  type: array
6923
6767
  items:
6924
- $ref: "#/components/schemas/Site"
6768
+ $ref: "#/components/schemas/ShareLink"
6925
6769
  default:
6926
6770
  $ref: "#/components/responses/UnexpectedError"
6927
6771
  post:
6928
- operationId: createSite
6929
- summary: Create a site in an organization
6772
+ operationId: createSiteShareLink
6773
+ summary: Create a share link in a site
6930
6774
  tags:
6931
6775
  - sites
6932
6776
  security:
6933
6777
  - user: []
6934
6778
  parameters:
6935
6779
  - $ref: "#/components/parameters/organizationId"
6780
+ - $ref: "#/components/parameters/siteId"
6936
6781
  requestBody:
6782
+ required: true
6937
6783
  content:
6938
6784
  application/json:
6939
6785
  schema:
6940
6786
  type: object
6941
6787
  properties:
6942
- type:
6943
- description: The type of the site, defaults to Basic
6944
- $ref: "#/components/schemas/SiteType"
6945
- title:
6946
- $ref: "#/components/schemas/SiteTitle"
6947
- visibility:
6948
- $ref: "#/components/schemas/SiteVisibility"
6949
- spaces:
6950
- oneOf:
6951
- - type: array
6952
- description: ID of spaces to be added to the site
6953
- items:
6954
- type: string
6955
- - type: string
6956
- description: Create a new space associated to the site
6957
- enum:
6958
- - sample
6959
- - empty
6788
+ name:
6789
+ $ref: "#/components/schemas/ShareLinkName"
6790
+ required:
6791
+ - name
6960
6792
  responses:
6961
6793
  "201":
6962
- description: Site created
6794
+ description: The share link has been created
6963
6795
  headers:
6964
6796
  Location:
6965
- description: API URL for the newly created site
6797
+ description: API URL for the newly created share link
6966
6798
  schema:
6967
6799
  type: string
6968
6800
  content:
6969
6801
  application/json:
6970
6802
  schema:
6971
- $ref: "#/components/schemas/Site"
6972
- default:
6973
- $ref: "#/components/responses/UnexpectedError"
6974
- "/orgs/{organizationId}/sites/publishing/checkout":
6975
- get:
6976
- operationId: previewSitePublishCheckout
6977
- summary: Preview checkout information upon publishing a site in the organization.
6978
- tags:
6979
- - sites
6980
- security:
6981
- - user-internal: []
6982
- parameters:
6983
- - $ref: "#/components/parameters/organizationId"
6984
- - in: query
6985
- name: plan
6986
- description: The plan of the site to preview the checkout information for.
6987
- required: true
6988
- schema:
6989
- $ref: "#/components/schemas/SiteType"
6990
- responses:
6991
- "200":
6992
- description: OK
6993
- content:
6994
- application/json:
6995
- schema:
6996
- $ref: "#/components/schemas/BillingOperationPreviewResponse"
6997
- default:
6998
- $ref: "#/components/responses/UnexpectedError"
6999
- "/orgs/{organizationId}/sites/{siteId}":
7000
- get:
7001
- operationId: getSiteById
7002
- summary: Get an organization site by its ID
7003
- tags:
7004
- - sites
7005
- security:
7006
- - user: []
7007
- parameters:
7008
- - $ref: "#/components/parameters/organizationId"
7009
- - $ref: "#/components/parameters/siteId"
7010
- responses:
7011
- "200":
7012
- description: OK
7013
- content:
7014
- application/json:
7015
- schema:
7016
- $ref: "#/components/schemas/Site"
7017
- "404":
7018
- description: No matching site found
7019
- $ref: "#/components/responses/NotFoundError"
6803
+ $ref: "#/components/schemas/ShareLink"
7020
6804
  default:
7021
6805
  $ref: "#/components/responses/UnexpectedError"
6806
+ "/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}":
7022
6807
  patch:
7023
- operationId: updateSiteById
7024
- summary: Update a site in an organization
6808
+ operationId: updateSiteShareLinkById
6809
+ summary: Update the details of a site share link
7025
6810
  tags:
7026
6811
  - sites
7027
6812
  security:
@@ -7029,49 +6814,31 @@ paths:
7029
6814
  parameters:
7030
6815
  - $ref: "#/components/parameters/organizationId"
7031
6816
  - $ref: "#/components/parameters/siteId"
6817
+ - $ref: "#/components/parameters/shareLinkId"
7032
6818
  requestBody:
7033
6819
  required: true
7034
6820
  content:
7035
6821
  application/json:
7036
6822
  schema:
7037
6823
  type: object
6824
+ minProperties: 1
7038
6825
  properties:
7039
- title:
7040
- $ref: "#/components/schemas/SiteTitle"
7041
- visibility:
7042
- $ref: "#/components/schemas/SiteVisibility"
7043
- basename:
7044
- $ref: "#/components/schemas/SiteBasename"
7045
- adaptiveContent:
7046
- $ref: "#/components/schemas/SiteAdaptiveContent"
7047
- defaultSiteSpace:
7048
- type: string
7049
- description: ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section.
7050
- defaultSiteSection:
7051
- type: string
7052
- description: ID of the site-section to be used as the default.
7053
- proxy:
7054
- description: |
7055
- Configure a proxy URL for a site. For example, you can use it to host the site on a subdirectory of your domain like `https://company.com/docs`.
7056
- Use `null` to remove the proxy.
7057
- oneOf:
7058
- - $ref: "#/components/schemas/SiteProxy"
7059
- - type: string
7060
- nullable: true
7061
- enum:
7062
- - null
6826
+ active:
6827
+ type: boolean
6828
+ name:
6829
+ $ref: "#/components/schemas/ShareLinkName"
7063
6830
  responses:
7064
6831
  "200":
7065
- description: OK
6832
+ description: The site share link has been updated
7066
6833
  content:
7067
6834
  application/json:
7068
6835
  schema:
7069
- $ref: "#/components/schemas/Site"
6836
+ $ref: "#/components/schemas/ShareLink"
7070
6837
  default:
7071
6838
  $ref: "#/components/responses/UnexpectedError"
7072
6839
  delete:
7073
- operationId: deleteSiteById
7074
- summary: Delete a site in an organization
6840
+ operationId: deleteSiteShareLinkById
6841
+ summary: Deletes a site share link
7075
6842
  tags:
7076
6843
  - sites
7077
6844
  security:
@@ -7079,15 +6846,16 @@ paths:
7079
6846
  parameters:
7080
6847
  - $ref: "#/components/parameters/organizationId"
7081
6848
  - $ref: "#/components/parameters/siteId"
6849
+ - $ref: "#/components/parameters/shareLinkId"
7082
6850
  responses:
7083
6851
  "205":
7084
- description: Site has been deleted
6852
+ description: Site share link has been deleted
7085
6853
  default:
7086
6854
  $ref: "#/components/responses/UnexpectedError"
7087
- "/orgs/{organizationId}/sites/{siteId}/published":
6855
+ "/orgs/{organizationId}/sites/{siteId}/structure":
7088
6856
  get:
7089
- operationId: getPublishedContentSite
7090
- summary: Get the complete profile of a site in an organization to provide the published experience. It includes site, customization, structure, integration scripts etc.
6857
+ operationId: getSiteStructure
6858
+ summary: Get the structure of a site which includes site-sections and site-spaces
7091
6859
  tags:
7092
6860
  - sites
7093
6861
  security:
@@ -7102,70 +6870,128 @@ paths:
7102
6870
  content:
7103
6871
  application/json:
7104
6872
  schema:
7105
- $ref: "#/components/schemas/PublishedContentSite"
6873
+ $ref: "#/components/schemas/SiteStructure"
7106
6874
  "404":
7107
6875
  description: No matching site found
7108
6876
  $ref: "#/components/responses/NotFoundError"
7109
6877
  default:
7110
6878
  $ref: "#/components/responses/UnexpectedError"
7111
- "/orgs/{organizationId}/sites/{siteId}/publish":
6879
+ "/orgs/{organizationId}/sites/{siteId}/plan":
7112
6880
  post:
7113
- operationId: publishSite
7114
- summary: Publishes the site to the audience defined in the site's visibility setting.
6881
+ operationId: updateSitePlan
6882
+ summary: Update the site plan.
7115
6883
  tags:
7116
6884
  - sites
7117
6885
  security:
7118
- - user: []
6886
+ - user-internal: []
7119
6887
  parameters:
7120
6888
  - $ref: "#/components/parameters/organizationId"
7121
6889
  - $ref: "#/components/parameters/siteId"
6890
+ - $ref: "#/components/parameters/successReturnURL"
6891
+ - $ref: "#/components/parameters/cancelReturnURL"
6892
+ requestBody:
6893
+ required: true
6894
+ content:
6895
+ application/json:
6896
+ schema:
6897
+ type: object
6898
+ properties:
6899
+ plan:
6900
+ $ref: "#/components/schemas/SiteType"
6901
+ interval:
6902
+ description: Desired interval for new subscriptions. Defaults to the existing billing interval.
6903
+ $ref: "#/components/schemas/BillingInterval"
6904
+ reason:
6905
+ type: string
6906
+ description: Reason that triggered the billing upgrade
6907
+ required:
6908
+ - plan
7122
6909
  responses:
7123
6910
  "200":
7124
- description: Site published successfully
6911
+ description: OK
7125
6912
  content:
7126
6913
  application/json:
7127
6914
  schema:
7128
6915
  oneOf:
7129
- - $ref: "#/components/schemas/Site"
7130
6916
  - type: object
7131
- description: User needs to checkout in order to publish the site.
6917
+ required:
6918
+ - type
6919
+ - sessionId
7132
6920
  properties:
7133
6921
  type:
6922
+ description: User must checkout to complete the update.
7134
6923
  type: string
7135
6924
  enum:
7136
6925
  - checkout
7137
6926
  sessionId:
7138
6927
  type: string
7139
6928
  description: Stripe payment session ID
6929
+ - type: object
7140
6930
  required:
7141
6931
  - type
7142
6932
  - sessionId
6933
+ properties:
6934
+ type:
6935
+ description: User needs to go through the legacy update flow.
6936
+ type: string
6937
+ enum:
6938
+ - legacy-checkout
6939
+ sessionId:
6940
+ type: string
6941
+ description: Stripe payment session ID
6942
+ - type: object
6943
+ required:
6944
+ - type
6945
+ properties:
6946
+ type:
6947
+ description: The site plan was successfully updated.
6948
+ type: string
6949
+ enum:
6950
+ - success
6951
+ outcome:
6952
+ description: |
6953
+ * `upgraded`: Subscription was upgraded to include the site
6954
+ * `downgraded`: Subscription was downgraded by removing the site
6955
+ * `no-payment-changes`: No impact on subscription (e.g. trial, unpublished)
6956
+ type: string
6957
+ enum:
6958
+ - upgraded
6959
+ - downgraded
6960
+ - no-payment-changes
7143
6961
  default:
7144
6962
  $ref: "#/components/responses/UnexpectedError"
7145
- "/orgs/{organizationId}/sites/{siteId}/unpublish":
7146
- post:
7147
- operationId: unpublishSite
7148
- summary: Unpublishes the site.
6963
+ get:
6964
+ operationId: previewSitePlanUpdate
6965
+ summary: Preview an upgrade to a site plan, returning checkout information.
7149
6966
  tags:
7150
6967
  - sites
7151
6968
  security:
7152
- - user: []
6969
+ - user-internal: []
7153
6970
  parameters:
7154
6971
  - $ref: "#/components/parameters/organizationId"
7155
6972
  - $ref: "#/components/parameters/siteId"
6973
+ - name: plan
6974
+ in: query
6975
+ required: true
6976
+ description: The desired site plan
6977
+ schema:
6978
+ $ref: "#/components/schemas/SiteType"
7156
6979
  responses:
7157
6980
  "200":
7158
- description: Site unpublished successfully
6981
+ description: OK
7159
6982
  content:
7160
6983
  application/json:
7161
6984
  schema:
7162
- $ref: "#/components/schemas/Site"
6985
+ $ref: "#/components/schemas/BillingOperationPreviewResponse"
6986
+ "404":
6987
+ description: No matching site found
6988
+ $ref: "#/components/responses/NotFoundError"
7163
6989
  default:
7164
6990
  $ref: "#/components/responses/UnexpectedError"
7165
- "/orgs/{organizationId}/sites/{siteId}/share-links":
6991
+ "/orgs/{organizationId}/sites/{siteId}/publishing/auth":
7166
6992
  get:
7167
- operationId: listSiteShareLinks
7168
- summary: List all the share links created in a site
6993
+ operationId: getSitePublishingAuthById
6994
+ summary: Get the publishing authentication settings for a site.
7169
6995
  tags:
7170
6996
  - sites
7171
6997
  security:
@@ -7173,29 +6999,20 @@ paths:
7173
6999
  parameters:
7174
7000
  - $ref: "#/components/parameters/organizationId"
7175
7001
  - $ref: "#/components/parameters/siteId"
7176
- - $ref: "#/components/parameters/listPage"
7177
- - $ref: "#/components/parameters/listLimit"
7178
7002
  responses:
7179
7003
  "200":
7180
7004
  description: OK
7181
7005
  content:
7182
7006
  application/json:
7183
7007
  schema:
7184
- allOf:
7185
- - $ref: "#/components/schemas/List"
7186
- - type: object
7187
- required:
7188
- - items
7189
- properties:
7190
- items:
7191
- type: array
7192
- items:
7193
- $ref: "#/components/schemas/ShareLink"
7008
+ $ref: "#/components/schemas/SitePublishingAuth"
7009
+ "400":
7010
+ $ref: "#/components/responses/BadRequestError"
7194
7011
  default:
7195
7012
  $ref: "#/components/responses/UnexpectedError"
7196
- post:
7197
- operationId: createSiteShareLink
7198
- summary: Create a share link in a site
7013
+ patch:
7014
+ operationId: updateSitePublishingAuthById
7015
+ summary: Update the publishing authentication settings for a site.
7199
7016
  tags:
7200
7017
  - sites
7201
7018
  security:
@@ -7208,258 +7025,16 @@ paths:
7208
7025
  content:
7209
7026
  application/json:
7210
7027
  schema:
7211
- type: object
7212
- properties:
7213
- name:
7214
- $ref: "#/components/schemas/ShareLinkName"
7215
- required:
7216
- - name
7028
+ $ref: "#/components/schemas/SitePublishingAuthUpdate"
7217
7029
  responses:
7218
- "201":
7219
- description: The share link has been created
7220
- headers:
7221
- Location:
7222
- description: API URL for the newly created share link
7223
- schema:
7224
- type: string
7030
+ "200":
7031
+ description: OK
7225
7032
  content:
7226
7033
  application/json:
7227
7034
  schema:
7228
- $ref: "#/components/schemas/ShareLink"
7229
- default:
7230
- $ref: "#/components/responses/UnexpectedError"
7231
- "/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}":
7232
- patch:
7233
- operationId: updateSiteShareLinkById
7234
- summary: Update the details of a site share link
7235
- tags:
7236
- - sites
7237
- security:
7238
- - user: []
7239
- parameters:
7240
- - $ref: "#/components/parameters/organizationId"
7241
- - $ref: "#/components/parameters/siteId"
7242
- - $ref: "#/components/parameters/shareLinkId"
7243
- requestBody:
7244
- required: true
7245
- content:
7246
- application/json:
7247
- schema:
7248
- type: object
7249
- minProperties: 1
7250
- properties:
7251
- active:
7252
- type: boolean
7253
- name:
7254
- $ref: "#/components/schemas/ShareLinkName"
7255
- responses:
7256
- "200":
7257
- description: The site share link has been updated
7258
- content:
7259
- application/json:
7260
- schema:
7261
- $ref: "#/components/schemas/ShareLink"
7262
- default:
7263
- $ref: "#/components/responses/UnexpectedError"
7264
- delete:
7265
- operationId: deleteSiteShareLinkById
7266
- summary: Deletes a site share link
7267
- tags:
7268
- - sites
7269
- security:
7270
- - user: []
7271
- parameters:
7272
- - $ref: "#/components/parameters/organizationId"
7273
- - $ref: "#/components/parameters/siteId"
7274
- - $ref: "#/components/parameters/shareLinkId"
7275
- responses:
7276
- "205":
7277
- description: Site share link has been deleted
7278
- default:
7279
- $ref: "#/components/responses/UnexpectedError"
7280
- "/orgs/{organizationId}/sites/{siteId}/structure":
7281
- get:
7282
- operationId: getSiteStructure
7283
- summary: Get the structure of a site which includes site-sections and site-spaces
7284
- tags:
7285
- - sites
7286
- security:
7287
- - user: []
7288
- parameters:
7289
- - $ref: "#/components/parameters/organizationId"
7290
- - $ref: "#/components/parameters/siteId"
7291
- - $ref: "#/components/parameters/siteShareKey"
7292
- responses:
7293
- "200":
7294
- description: OK
7295
- content:
7296
- application/json:
7297
- schema:
7298
- $ref: "#/components/schemas/SiteStructure"
7299
- "404":
7300
- description: No matching site found
7301
- $ref: "#/components/responses/NotFoundError"
7302
- default:
7303
- $ref: "#/components/responses/UnexpectedError"
7304
- "/orgs/{organizationId}/sites/{siteId}/plan":
7305
- post:
7306
- operationId: updateSitePlan
7307
- summary: Update the site plan.
7308
- tags:
7309
- - sites
7310
- security:
7311
- - user-internal: []
7312
- parameters:
7313
- - $ref: "#/components/parameters/organizationId"
7314
- - $ref: "#/components/parameters/siteId"
7315
- - $ref: "#/components/parameters/successReturnURL"
7316
- - $ref: "#/components/parameters/cancelReturnURL"
7317
- requestBody:
7318
- required: true
7319
- content:
7320
- application/json:
7321
- schema:
7322
- type: object
7323
- properties:
7324
- plan:
7325
- $ref: "#/components/schemas/SiteType"
7326
- interval:
7327
- description: Desired interval for new subscriptions. Defaults to the existing billing interval.
7328
- $ref: "#/components/schemas/BillingInterval"
7329
- reason:
7330
- type: string
7331
- description: Reason that triggered the billing upgrade
7332
- required:
7333
- - plan
7334
- responses:
7335
- "200":
7336
- description: OK
7337
- content:
7338
- application/json:
7339
- schema:
7340
- oneOf:
7341
- - type: object
7342
- required:
7343
- - type
7344
- - sessionId
7345
- properties:
7346
- type:
7347
- description: User must checkout to complete the update.
7348
- type: string
7349
- enum:
7350
- - checkout
7351
- sessionId:
7352
- type: string
7353
- description: Stripe payment session ID
7354
- - type: object
7355
- required:
7356
- - type
7357
- - sessionId
7358
- properties:
7359
- type:
7360
- description: User needs to go through the legacy update flow.
7361
- type: string
7362
- enum:
7363
- - legacy-checkout
7364
- sessionId:
7365
- type: string
7366
- description: Stripe payment session ID
7367
- - type: object
7368
- required:
7369
- - type
7370
- properties:
7371
- type:
7372
- description: The site plan was successfully updated.
7373
- type: string
7374
- enum:
7375
- - success
7376
- outcome:
7377
- description: |
7378
- * `upgraded`: Subscription was upgraded to include the site
7379
- * `downgraded`: Subscription was downgraded by removing the site
7380
- * `no-payment-changes`: No impact on subscription (e.g. trial, unpublished)
7381
- type: string
7382
- enum:
7383
- - upgraded
7384
- - downgraded
7385
- - no-payment-changes
7386
- default:
7387
- $ref: "#/components/responses/UnexpectedError"
7388
- get:
7389
- operationId: previewSitePlanUpdate
7390
- summary: Preview an upgrade to a site plan, returning checkout information.
7391
- tags:
7392
- - sites
7393
- security:
7394
- - user-internal: []
7395
- parameters:
7396
- - $ref: "#/components/parameters/organizationId"
7397
- - $ref: "#/components/parameters/siteId"
7398
- - name: plan
7399
- in: query
7400
- required: true
7401
- description: The desired site plan
7402
- schema:
7403
- $ref: "#/components/schemas/SiteType"
7404
- responses:
7405
- "200":
7406
- description: OK
7407
- content:
7408
- application/json:
7409
- schema:
7410
- $ref: "#/components/schemas/BillingOperationPreviewResponse"
7411
- "404":
7412
- description: No matching site found
7413
- $ref: "#/components/responses/NotFoundError"
7414
- default:
7415
- $ref: "#/components/responses/UnexpectedError"
7416
- "/orgs/{organizationId}/sites/{siteId}/publishing/auth":
7417
- get:
7418
- operationId: getSitePublishingAuthById
7419
- summary: Get the publishing authentication settings for a site.
7420
- tags:
7421
- - sites
7422
- security:
7423
- - user: []
7424
- parameters:
7425
- - $ref: "#/components/parameters/organizationId"
7426
- - $ref: "#/components/parameters/siteId"
7427
- responses:
7428
- "200":
7429
- description: OK
7430
- content:
7431
- application/json:
7432
- schema:
7433
- $ref: "#/components/schemas/SitePublishingAuth"
7434
- "400":
7435
- $ref: "#/components/responses/BadRequestError"
7436
- default:
7437
- $ref: "#/components/responses/UnexpectedError"
7438
- patch:
7439
- operationId: updateSitePublishingAuthById
7440
- summary: Update the publishing authentication settings for a site.
7441
- tags:
7442
- - sites
7443
- security:
7444
- - user: []
7445
- parameters:
7446
- - $ref: "#/components/parameters/organizationId"
7447
- - $ref: "#/components/parameters/siteId"
7448
- requestBody:
7449
- required: true
7450
- content:
7451
- application/json:
7452
- schema:
7453
- $ref: "#/components/schemas/SitePublishingAuthUpdate"
7454
- responses:
7455
- "200":
7456
- description: OK
7457
- content:
7458
- application/json:
7459
- schema:
7460
- $ref: "#/components/schemas/SitePublishingAuth"
7461
- "400":
7462
- $ref: "#/components/responses/BadRequestError"
7035
+ $ref: "#/components/schemas/SitePublishingAuth"
7036
+ "400":
7037
+ $ref: "#/components/responses/BadRequestError"
7463
7038
  default:
7464
7039
  $ref: "#/components/responses/UnexpectedError"
7465
7040
  "/orgs/{organizationId}/sites/{siteId}/publishing/auth/regenerate":
@@ -7776,6 +7351,13 @@ paths:
7776
7351
  properties:
7777
7352
  title:
7778
7353
  $ref: "#/components/schemas/SiteSectionGroupTitle"
7354
+ icon:
7355
+ oneOf:
7356
+ - $ref: "#/components/schemas/Icon"
7357
+ - type: string
7358
+ nullable: true
7359
+ enum:
7360
+ - null
7779
7361
  sections:
7780
7362
  type: array
7781
7363
  items:
@@ -8306,6 +7888,14 @@ paths:
8306
7888
  styling:
8307
7889
  type: object
8308
7890
  properties:
7891
+ theme:
7892
+ description: The site theme. Set to null to reset the override.
7893
+ oneOf:
7894
+ - $ref: "#/components/schemas/CustomizationTheme"
7895
+ - type: string
7896
+ nullable: true
7897
+ enum:
7898
+ - null
8309
7899
  primaryColor:
8310
7900
  description: The primary color used for links and UI text. Set to null to reset the override.
8311
7901
  oneOf:
@@ -8315,7 +7905,7 @@ paths:
8315
7905
  enum:
8316
7906
  - null
8317
7907
  tint:
8318
- description: The tint will colour the site’s UI beyond links and buttons, such as header, sidebar and background. By default, the tint colour is the same as your Primary colour, but you can set a custom one too.
7908
+ description: The tint will color the site’s UI beyond links and buttons, such as header, sidebar and background. By default, the tint colour is the same as your Primary colour, but you can set a custom one too.
8319
7909
  oneOf:
8320
7910
  - $ref: "#/components/schemas/CustomizationTint"
8321
7911
  - type: string
@@ -9611,23 +9201,273 @@ paths:
9611
9201
  $ref: "#/components/responses/NotFoundError"
9612
9202
  default:
9613
9203
  $ref: "#/components/responses/UnexpectedError"
9614
- components:
9615
- securitySchemes:
9616
- user:
9617
- type: http
9618
- scheme: bearer
9619
- user-internal:
9620
- type: http
9621
- scheme: bearer
9622
- user-staff:
9623
- type: http
9624
- scheme: bearer
9625
- integration:
9626
- type: http
9627
- scheme: bearer
9628
- integration-installation:
9629
- type: http
9630
- scheme: bearer
9204
+ "/orgs/{organizationId}/openapi":
9205
+ get:
9206
+ operationId: listOpenAPISpecs
9207
+ summary: List all the OpenAPI specifications in the organization
9208
+ tags:
9209
+ - openapi
9210
+ security:
9211
+ - user: []
9212
+ parameters:
9213
+ - $ref: "#/components/parameters/organizationId"
9214
+ - $ref: "#/components/parameters/listPage"
9215
+ - $ref: "#/components/parameters/listLimit"
9216
+ responses:
9217
+ "200":
9218
+ description: OK
9219
+ content:
9220
+ application/json:
9221
+ schema:
9222
+ allOf:
9223
+ - $ref: "#/components/schemas/List"
9224
+ - type: object
9225
+ required:
9226
+ - items
9227
+ properties:
9228
+ items:
9229
+ type: array
9230
+ items:
9231
+ $ref: "#/components/schemas/OpenAPISpec"
9232
+ default:
9233
+ $ref: "#/components/responses/UnexpectedError"
9234
+ "/orgs/{organizationId}/openapi/{specSlug}":
9235
+ get:
9236
+ operationId: getOpenAPISpecBySlug
9237
+ summary: Get an organization OpenAPI specification by its slug
9238
+ tags:
9239
+ - openapi
9240
+ security:
9241
+ - user: []
9242
+ parameters:
9243
+ - $ref: "#/components/parameters/organizationId"
9244
+ - $ref: "#/components/parameters/openapiSpecSlug"
9245
+ responses:
9246
+ "200":
9247
+ description: OK
9248
+ content:
9249
+ application/json:
9250
+ schema:
9251
+ $ref: "#/components/schemas/OpenAPISpec"
9252
+ "404":
9253
+ description: No matching OpenAPI specification found
9254
+ $ref: "#/components/responses/NotFoundError"
9255
+ default:
9256
+ $ref: "#/components/responses/UnexpectedError"
9257
+ put:
9258
+ operationId: createOrUpdateOpenAPISpecBySlug
9259
+ summary: Create or update an organization OpenAPI specification by its slug
9260
+ tags:
9261
+ - openapi
9262
+ security:
9263
+ - user: []
9264
+ parameters:
9265
+ - $ref: "#/components/parameters/organizationId"
9266
+ - $ref: "#/components/parameters/openapiSpecSlug"
9267
+ requestBody:
9268
+ required: true
9269
+ content:
9270
+ application/json:
9271
+ schema:
9272
+ type: object
9273
+ properties:
9274
+ source:
9275
+ oneOf:
9276
+ - description: Create a specification from an URL
9277
+ type: object
9278
+ properties:
9279
+ url:
9280
+ $ref: "#/components/schemas/URL"
9281
+ required:
9282
+ - url
9283
+ - description: Create a specification from a text string
9284
+ type: object
9285
+ properties:
9286
+ text:
9287
+ description: OpenAPI specification as text
9288
+ type: string
9289
+ minLength: 1
9290
+ required:
9291
+ - text
9292
+ required:
9293
+ - source
9294
+ responses:
9295
+ "200":
9296
+ description: OpenAPI specification has been updated
9297
+ content:
9298
+ application/json:
9299
+ schema:
9300
+ $ref: "#/components/schemas/OpenAPISpec"
9301
+ "201":
9302
+ description: OpenAPI specification has been created
9303
+ content:
9304
+ application/json:
9305
+ schema:
9306
+ $ref: "#/components/schemas/OpenAPISpec"
9307
+ "400":
9308
+ $ref: "#/components/responses/BadRequestError"
9309
+ default:
9310
+ $ref: "#/components/responses/UnexpectedError"
9311
+ delete:
9312
+ operationId: deleteOpenAPISpecBySlug
9313
+ summary: Delete an organization OpenAPI specification by its slug
9314
+ tags:
9315
+ - openapi
9316
+ security:
9317
+ - user: []
9318
+ parameters:
9319
+ - $ref: "#/components/parameters/organizationId"
9320
+ - $ref: "#/components/parameters/openapiSpecSlug"
9321
+ responses:
9322
+ "205":
9323
+ description: OpenAPI specification has been deleted
9324
+ default:
9325
+ $ref: "#/components/responses/UnexpectedError"
9326
+ "/orgs/{organizationId}/openapi/{specSlug}/versions":
9327
+ get:
9328
+ operationId: listOpenAPISpecVersions
9329
+ summary: List all the OpenAPI specification versions
9330
+ tags:
9331
+ - openapi
9332
+ security:
9333
+ - user: []
9334
+ parameters:
9335
+ - $ref: "#/components/parameters/organizationId"
9336
+ - $ref: "#/components/parameters/openapiSpecSlug"
9337
+ - $ref: "#/components/parameters/listPage"
9338
+ - $ref: "#/components/parameters/listLimit"
9339
+ responses:
9340
+ "200":
9341
+ description: OK
9342
+ content:
9343
+ application/json:
9344
+ schema:
9345
+ allOf:
9346
+ - $ref: "#/components/schemas/List"
9347
+ - type: object
9348
+ required:
9349
+ - items
9350
+ properties:
9351
+ items:
9352
+ type: array
9353
+ items:
9354
+ $ref: "#/components/schemas/OpenAPISpecVersion"
9355
+ "404":
9356
+ description: No matching OpenAPI specification found
9357
+ $ref: "#/components/responses/NotFoundError"
9358
+ default:
9359
+ $ref: "#/components/responses/UnexpectedError"
9360
+ "/orgs/{organizationId}/openapi/{specSlug}/versions/latest":
9361
+ get:
9362
+ operationId: getLatestOpenAPISpecVersion
9363
+ summary: Get the latest OpenAPI specification version
9364
+ tags:
9365
+ - openapi
9366
+ security:
9367
+ - user: []
9368
+ parameters:
9369
+ - $ref: "#/components/parameters/organizationId"
9370
+ - $ref: "#/components/parameters/openapiSpecSlug"
9371
+ responses:
9372
+ "200":
9373
+ description: OK
9374
+ content:
9375
+ application/json:
9376
+ schema:
9377
+ $ref: "#/components/schemas/OpenAPISpecVersion"
9378
+ "404":
9379
+ description: No matching OpenAPI specification version found
9380
+ $ref: "#/components/responses/NotFoundError"
9381
+ default:
9382
+ $ref: "#/components/responses/UnexpectedError"
9383
+ "/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content":
9384
+ get:
9385
+ operationId: getLatestOpenAPISpecVersionContent
9386
+ summary: Get the latest OpenAPI specification version content
9387
+ tags:
9388
+ - openapi
9389
+ security:
9390
+ - user: []
9391
+ parameters:
9392
+ - $ref: "#/components/parameters/organizationId"
9393
+ - $ref: "#/components/parameters/openapiSpecSlug"
9394
+ responses:
9395
+ "200":
9396
+ description: OK
9397
+ content:
9398
+ application/json:
9399
+ schema:
9400
+ $ref: "#/components/schemas/OpenAPISpecContent"
9401
+ "404":
9402
+ description: No matching OpenAPI specification version found
9403
+ $ref: "#/components/responses/NotFoundError"
9404
+ default:
9405
+ $ref: "#/components/responses/UnexpectedError"
9406
+ "/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}":
9407
+ get:
9408
+ operationId: getOpenAPISpecVersionById
9409
+ summary: Get an OpenAPI specification version by its ID
9410
+ tags:
9411
+ - openapi
9412
+ security:
9413
+ - user: []
9414
+ parameters:
9415
+ - $ref: "#/components/parameters/organizationId"
9416
+ - $ref: "#/components/parameters/openapiSpecSlug"
9417
+ - $ref: "#/components/parameters/openapiSpecVersionId"
9418
+ responses:
9419
+ "200":
9420
+ description: OK
9421
+ content:
9422
+ application/json:
9423
+ schema:
9424
+ $ref: "#/components/schemas/OpenAPISpecVersion"
9425
+ "404":
9426
+ description: No matching OpenAPI specification version found
9427
+ $ref: "#/components/responses/NotFoundError"
9428
+ default:
9429
+ $ref: "#/components/responses/UnexpectedError"
9430
+ "/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}/content":
9431
+ get:
9432
+ operationId: getOpenAPISpecVersionContentById
9433
+ summary: Get an OpenAPI specification version content by its ID
9434
+ tags:
9435
+ - openapi
9436
+ security:
9437
+ - user: []
9438
+ parameters:
9439
+ - $ref: "#/components/parameters/organizationId"
9440
+ - $ref: "#/components/parameters/openapiSpecSlug"
9441
+ - $ref: "#/components/parameters/openapiSpecVersionId"
9442
+ responses:
9443
+ "200":
9444
+ description: OK
9445
+ content:
9446
+ application/json:
9447
+ schema:
9448
+ $ref: "#/components/schemas/OpenAPISpecContent"
9449
+ "404":
9450
+ description: No matching OpenAPI specification version found
9451
+ $ref: "#/components/responses/NotFoundError"
9452
+ default:
9453
+ $ref: "#/components/responses/UnexpectedError"
9454
+ components:
9455
+ securitySchemes:
9456
+ user:
9457
+ type: http
9458
+ scheme: bearer
9459
+ user-internal:
9460
+ type: http
9461
+ scheme: bearer
9462
+ user-staff:
9463
+ type: http
9464
+ scheme: bearer
9465
+ integration:
9466
+ type: http
9467
+ scheme: bearer
9468
+ integration-installation:
9469
+ type: http
9470
+ scheme: bearer
9631
9471
  parameters:
9632
9472
  listPage:
9633
9473
  name: page
@@ -9876,27 +9716,6 @@ components:
9876
9716
  description: The unique id of the SAML provider
9877
9717
  schema:
9878
9718
  type: string
9879
- captureId:
9880
- name: captureId
9881
- in: path
9882
- required: true
9883
- description: The unique id of a capture
9884
- schema:
9885
- type: string
9886
- snippetId:
9887
- name: snippetId
9888
- in: path
9889
- required: true
9890
- description: The unique id of a snippet
9891
- schema:
9892
- type: string
9893
- ifUnmodifiedSince:
9894
- in: header
9895
- name: If-Unmodified-Since
9896
- description: If provided, the operation will be rejected if the underlying resource has been modified since the date provided in the header.
9897
- schema:
9898
- type: string
9899
- format: date-time
9900
9719
  shareLinkId:
9901
9720
  name: shareLinkId
9902
9721
  in: path
@@ -9953,6 +9772,27 @@ components:
9953
9772
  schema:
9954
9773
  type: string
9955
9774
  required: true
9775
+ openapiSpecSlug:
9776
+ name: specSlug
9777
+ in: path
9778
+ required: true
9779
+ description: Slug of the OpenAPI specification
9780
+ schema:
9781
+ type: string
9782
+ openapiSpecVersionId:
9783
+ name: versionId
9784
+ in: path
9785
+ required: true
9786
+ description: The unique ID of the OpenAPI specification version
9787
+ schema:
9788
+ type: string
9789
+ ifUnmodifiedSince:
9790
+ in: header
9791
+ name: If-Unmodified-Since
9792
+ description: If provided, the operation will be rejected if the underlying resource has been modified since the date provided in the header.
9793
+ schema:
9794
+ type: string
9795
+ format: date-time
9956
9796
  pageFormat:
9957
9797
  $ref: "#/components/parameters/documentFormat"
9958
9798
  commentStatus:
@@ -10370,33 +10210,31 @@ components:
10370
10210
  required:
10371
10211
  - kind
10372
10212
  - space
10373
- ContentRefSnippet:
10213
+ ContentRefReusableContent:
10374
10214
  type: object
10375
10215
  properties:
10376
10216
  kind:
10377
10217
  type: string
10378
10218
  enum:
10379
- - snippet
10380
- snippet:
10381
- type: string
10382
- organization:
10219
+ - reusable-content
10220
+ reusableContent:
10383
10221
  type: string
10384
10222
  required:
10385
10223
  - kind
10386
- - snippet
10387
- - organization
10388
- ContentRefReusableContent:
10224
+ - reusableContent
10225
+ ContentRefOpenAPI:
10389
10226
  type: object
10390
10227
  properties:
10391
10228
  kind:
10392
10229
  type: string
10393
10230
  enum:
10394
- - reusable-content
10395
- reusableContent:
10231
+ - openapi
10232
+ spec:
10396
10233
  type: string
10234
+ description: Slug of the OpenAPI specification
10397
10235
  required:
10398
10236
  - kind
10399
- - reusableContent
10237
+ - spec
10400
10238
  ContentRef:
10401
10239
  description: A relative reference to content in GitBook.
10402
10240
  oneOf:
@@ -10407,8 +10245,8 @@ components:
10407
10245
  - $ref: "#/components/schemas/ContentRefUser"
10408
10246
  - $ref: "#/components/schemas/ContentRefCollection"
10409
10247
  - $ref: "#/components/schemas/ContentRefSpace"
10410
- - $ref: "#/components/schemas/ContentRefSnippet"
10411
10248
  - $ref: "#/components/schemas/ContentRefReusableContent"
10249
+ - $ref: "#/components/schemas/ContentRefOpenAPI"
10412
10250
  DocumentInlineLink:
10413
10251
  type: object
10414
10252
  properties:
@@ -11664,18 +11502,6 @@ components:
11664
11502
  required:
11665
11503
  - action
11666
11504
  - returnValue
11667
- - type: object
11668
- description: Action to complete the current flow the user is in.
11669
- properties:
11670
- action:
11671
- type: string
11672
- enum:
11673
- - "@ui.complete"
11674
- returnValue:
11675
- $ref: "#/components/schemas/PlainObject"
11676
- required:
11677
- - action
11678
- - returnValue
11679
11505
  - type: object
11680
11506
  description: Action to open an url.
11681
11507
  properties:
@@ -11885,6 +11711,7 @@ components:
11885
11711
  oneOf:
11886
11712
  - $ref: "#/components/schemas/ContentRefFile"
11887
11713
  - $ref: "#/components/schemas/ContentRefURL"
11714
+ - $ref: "#/components/schemas/ContentRefOpenAPI"
11888
11715
  expanded:
11889
11716
  type: boolean
11890
11717
  description: If true, the block is opened by default.
@@ -12244,6 +12071,7 @@ components:
12244
12071
  URL:
12245
12072
  type: string
12246
12073
  format: uri
12074
+ maxLength: 2048
12247
12075
  GitSyncProvider:
12248
12076
  type: string
12249
12077
  description: The provider of the Git Sync installation.
@@ -13730,12 +13558,21 @@ components:
13730
13558
  $ref: "#/components/schemas/OrganizationBlockReason"
13731
13559
  required:
13732
13560
  - reason
13733
- internal_isUsingSnippets:
13734
- type: boolean
13735
- description: If true, the organization is still using the deprecated snippets feature.
13736
13561
  internal_isOnNewTrial:
13737
13562
  type: boolean
13738
13563
  description: If true, the organization is on the new trial which includes sites and the Pro plan.
13564
+ internal_billingMigration:
13565
+ type: object
13566
+ properties:
13567
+ deadline:
13568
+ description: When we will upgrade the organization onto new pricing, if they haven't already.
13569
+ $ref: "#/components/schemas/Timestamp"
13570
+ discountPercent:
13571
+ description: A discount the organization may have received thanks to migrating early.
13572
+ type: number
13573
+ discountEndDate:
13574
+ description: The expiration date of the discount, after wich regular pricing resumes.
13575
+ $ref: "#/components/schemas/Timestamp"
13739
13576
  permissions:
13740
13577
  type: object
13741
13578
  description: The set of permissions for the organization
@@ -13980,512 +13817,134 @@ components:
13980
13817
  - kind
13981
13818
  - organization
13982
13819
  - space
13983
- IntegrationTitle:
13984
- type: string
13985
- description: Title of the integration
13986
- minLength: 2
13987
- maxLength: 30
13988
- IntegrationDescription:
13989
- type: string
13990
- description: Description of the integration
13991
- maxLength: 100
13992
- IntegrationSummary:
13993
- type: string
13994
- description: Long form markdown summary of the integration
13995
- maxLength: 2048
13996
- IntegrationTarget:
13997
- type: string
13998
- description: The target on which the integration can operate and needs to be configured for
13999
- enum:
14000
- - all
14001
- - site
14002
- - space
13820
+ ContentLocationReusableContent:
13821
+ type: object
13822
+ properties:
13823
+ kind:
13824
+ type: string
13825
+ enum:
13826
+ - reusable-content
13827
+ organization:
13828
+ $ref: "#/components/schemas/Organization"
13829
+ space:
13830
+ $ref: "#/components/schemas/Space"
13831
+ versionContext:
13832
+ oneOf:
13833
+ - $ref: "#/components/schemas/ContentLocationRevisionContext"
13834
+ - $ref: "#/components/schemas/ContentLocationChangeRequestContext"
13835
+ reusableContent:
13836
+ $ref: "#/components/schemas/RevisionReusableContent"
13837
+ required:
13838
+ - kind
14003
13839
  - organization
14004
- IntegrationVisibility:
14005
- type: string
14006
- enum:
14007
- - public
14008
- - private
14009
- - unlisted
14010
- IntegrationScope:
13840
+ - space
13841
+ - reusableContent
13842
+ OpenAPISpecSlug:
13843
+ description: Slug used as reference
14011
13844
  type: string
13845
+ minLength: 1
13846
+ maxLength: 100
13847
+ OpenAPISpecProcessingState:
13848
+ description: Processing state
14012
13849
  enum:
14013
- - snippets:read
14014
- - capture:write
14015
- - space:views:read
14016
- - space:content:read
14017
- - space:content:write
14018
- - space:metadata:read
14019
- - space:metadata:write
14020
- - space:script:inject
14021
- - space:script:cookies
14022
- - space:git:sync
14023
- - space:visitor:auth
14024
- - site:metadata:read
14025
- - site:views:read
14026
- - site:script:inject
14027
- - site:script:cookies
14028
- - site:visitor:auth
14029
- IntegrationScopes:
14030
- type: array
14031
- description: Permissions that should be granted to the integration
14032
- items:
14033
- $ref: "#/components/schemas/IntegrationScope"
14034
- IntegrationCategory:
14035
- type: string
13850
+ - pending
13851
+ - progress
13852
+ - complete
13853
+ OpenAPISpecProcessingErrorCode:
13854
+ description: OpenAPI processing error code
14036
13855
  enum:
14037
- - analytics
14038
- - captures
14039
- - collaboration
14040
- - content
14041
- - gitsync
14042
- - marketing
14043
- - visitor-auth
14044
- - other
14045
- IntegrationCategories:
14046
- type: array
14047
- description: Categories for which the integration is listed in the marketplace
14048
- items:
14049
- $ref: "#/components/schemas/IntegrationCategory"
14050
- IntegrationBlocks:
14051
- type: array
14052
- description: Custom blocks defined by this integration.
14053
- items:
14054
- $ref: "#/components/schemas/IntegrationBlock"
14055
- IntegrationConfigurationComponent:
13856
+ - FETCH_TIMEOUT
13857
+ - FETCH_ERROR
13858
+ - PARSE_ERROR
13859
+ OpenAPISpec:
14056
13860
  type: object
14057
- description: ContentKit component for configuration
14058
13861
  properties:
14059
- componentId:
13862
+ object:
13863
+ description: The object type, which is always "openapi-spec"
14060
13864
  type: string
14061
- description: ID of the ContentKit component defined in the integration
14062
- required:
14063
- - componentId
14064
- IntegrationContentSource:
14065
- type: object
14066
- description: Definition of a content source provided by the integration.
14067
- properties:
13865
+ enum:
13866
+ - openapi-spec
14068
13867
  id:
13868
+ description: Unique identifier
14069
13869
  type: string
14070
- description: Unique ID in the integration for the source.
14071
- title:
14072
- type: string
14073
- description: Short descriptive title for the source.
14074
- minLength: 2
14075
- maxLength: 40
14076
- description:
14077
- type: string
14078
- description: Long descriptive text for the source.
14079
- minLength: 0
14080
- maxLength: 150
14081
- icon:
14082
- type: string
14083
- description: URL of the icon to represent this source.
14084
- configuration:
14085
- $ref: "#/components/schemas/IntegrationConfigurationComponent"
13870
+ createdAt:
13871
+ description: Date of creation
13872
+ $ref: "#/components/schemas/Timestamp"
13873
+ updatedAt:
13874
+ description: Date of the last update
13875
+ $ref: "#/components/schemas/Timestamp"
13876
+ slug:
13877
+ $ref: "#/components/schemas/OpenAPISpecSlug"
13878
+ sourceURL:
13879
+ $ref: "#/components/schemas/URL"
13880
+ processingState:
13881
+ $ref: "#/components/schemas/OpenAPISpecProcessingState"
13882
+ lastProcessedAt:
13883
+ description: Date of the last processing
13884
+ $ref: "#/components/schemas/Timestamp"
13885
+ lastProcessErrorCode:
13886
+ $ref: "#/components/schemas/OpenAPISpecProcessingErrorCode"
13887
+ urls:
13888
+ type: object
13889
+ description: URLs associated with the object
13890
+ properties:
13891
+ location:
13892
+ description: URL of the OpenAPI specification in the API
13893
+ $ref: "#/components/schemas/URL"
13894
+ app:
13895
+ description: URL of the OpenAPI specification in the application
13896
+ $ref: "#/components/schemas/URL"
13897
+ required:
13898
+ - app
13899
+ - location
14086
13900
  required:
13901
+ - object
14087
13902
  - id
14088
- - title
14089
- IntegrationConfigurationSchema:
13903
+ - createdAt
13904
+ - updatedAt
13905
+ - slug
13906
+ - processingState
13907
+ - urls
13908
+ ContentLocationOpenAPI:
14090
13909
  type: object
14091
- description: Schema for a configuration
14092
13910
  properties:
14093
- properties:
14094
- type: object
14095
- additionalProperties:
14096
- allOf:
14097
- - type: object
14098
- properties:
14099
- title:
14100
- type: string
14101
- maxLength: 30
14102
- description:
14103
- type: string
14104
- maxLength: 100
14105
- - oneOf:
14106
- - type: object
14107
- properties:
14108
- type:
14109
- type: string
14110
- enum:
14111
- - string
14112
- default:
14113
- type: string
14114
- required:
14115
- - type
14116
- - type: object
14117
- properties:
14118
- type:
14119
- type: string
14120
- enum:
14121
- - number
14122
- default:
14123
- type: number
14124
- required:
14125
- - type
14126
- - type: object
14127
- properties:
14128
- type:
14129
- type: string
14130
- enum:
14131
- - boolean
14132
- default:
14133
- type: boolean
14134
- required:
14135
- - type
14136
- - type: object
14137
- properties:
14138
- type:
14139
- type: string
14140
- enum:
14141
- - button
14142
- callback_url:
14143
- type: string
14144
- button_text:
14145
- type: string
14146
- required:
14147
- - type
14148
- - callback_url
14149
- - button_text
14150
- required:
14151
- type: array
14152
- uniqueItems: true
14153
- items:
14154
- type: string
13911
+ kind:
13912
+ type: string
13913
+ enum:
13914
+ - openapi
13915
+ organization:
13916
+ $ref: "#/components/schemas/Organization"
13917
+ openAPISpec:
13918
+ $ref: "#/components/schemas/OpenAPISpec"
14155
13919
  required:
14156
- - properties
14157
- IntegrationConfiguration:
13920
+ - kind
13921
+ - organization
13922
+ - openAPISpec
13923
+ ContentLocation:
13924
+ description: An absolute reference to content in GitBook.
14158
13925
  oneOf:
14159
- - $ref: "#/components/schemas/IntegrationConfigurationSchema"
14160
- - $ref: "#/components/schemas/IntegrationConfigurationComponent"
14161
- IntegrationConfigurations:
14162
- type: object
14163
- properties:
14164
- account:
14165
- $ref: "#/components/schemas/IntegrationConfiguration"
14166
- space:
14167
- $ref: "#/components/schemas/IntegrationConfiguration"
14168
- site:
14169
- $ref: "#/components/schemas/IntegrationConfiguration"
14170
- IntegrationExternalLinks:
14171
- type: array
14172
- description: External urls configured by the developer of the integration
14173
- maxItems: 5
14174
- items:
14175
- type: object
14176
- properties:
14177
- url:
14178
- $ref: "#/components/schemas/URL"
14179
- label:
14180
- type: string
14181
- required:
14182
- - url
14183
- - label
14184
- IntegrationContentSecurityPolicy:
14185
- description: |
14186
- Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
14187
- headers when processing the script fetch event and the blocks fetch events.
14188
- oneOf:
14189
- - type: string
14190
- - type: object
14191
- properties:
14192
- base-uri:
14193
- type: string
14194
- block-all-mixed-content:
14195
- type: string
14196
- child-src:
14197
- type: string
14198
- connect-src:
14199
- type: string
14200
- default-src:
14201
- type: string
14202
- font-src:
14203
- type: string
14204
- form-action:
14205
- type: string
14206
- frame-ancestors:
14207
- type: string
14208
- frame-src:
14209
- type: string
14210
- img-src:
14211
- type: string
14212
- manifest-src:
14213
- type: string
14214
- media-src:
14215
- type: string
14216
- navigate-to:
14217
- type: string
14218
- object-src:
14219
- type: string
14220
- plugin-types:
14221
- type: string
14222
- prefetch-src:
14223
- type: string
14224
- referrer:
14225
- type: string
14226
- report-to:
14227
- type: string
14228
- report-uri:
14229
- type: string
14230
- require-sri-for:
14231
- type: string
14232
- require-trusted-types-for:
14233
- type: string
14234
- sandbox:
14235
- type: string
14236
- script-src:
14237
- type: string
14238
- script-src-attr:
14239
- type: string
14240
- script-src-elem:
14241
- type: string
14242
- style-src:
14243
- type: string
14244
- style-src-attr:
14245
- type: string
14246
- style-src-elem:
14247
- type: string
14248
- trusted-types:
14249
- type: string
14250
- upgrade-insecure-requests:
14251
- type: string
14252
- worker-src:
14253
- type: string
14254
- Integration:
14255
- type: object
14256
- properties:
14257
- object:
14258
- type: string
14259
- enum:
14260
- - integration
14261
- name:
14262
- type: string
14263
- description: Unique named identifier for the integration
14264
- version:
14265
- type: number
14266
- description: Version of the integration
14267
- title:
14268
- $ref: "#/components/schemas/IntegrationTitle"
14269
- description:
14270
- $ref: "#/components/schemas/IntegrationDescription"
14271
- summary:
14272
- $ref: "#/components/schemas/IntegrationSummary"
14273
- previewImages:
14274
- type: array
14275
- description: URLs of images to showcase the integration
14276
- maxItems: 3
14277
- items:
14278
- type: string
14279
- target:
14280
- $ref: "#/components/schemas/IntegrationTarget"
14281
- verified:
14282
- type: boolean
14283
- description: If true, the integration has been verified by the GitBook team
14284
- visibility:
14285
- $ref: "#/components/schemas/IntegrationVisibility"
14286
- scopes:
14287
- $ref: "#/components/schemas/IntegrationScopes"
14288
- categories:
14289
- $ref: "#/components/schemas/IntegrationCategories"
14290
- blocks:
14291
- $ref: "#/components/schemas/IntegrationBlocks"
14292
- contentSources:
14293
- type: array
14294
- items:
14295
- $ref: "#/components/schemas/IntegrationContentSource"
14296
- configurations:
14297
- $ref: "#/components/schemas/IntegrationConfigurations"
14298
- externalLinks:
14299
- $ref: "#/components/schemas/IntegrationExternalLinks"
14300
- owner:
14301
- $ref: "#/components/schemas/Organization"
14302
- urls:
14303
- type: object
14304
- description: URLs associated with the object
14305
- properties:
14306
- location:
14307
- type: string
14308
- description: URL of the integration in the API
14309
- format: uri
14310
- icon:
14311
- type: string
14312
- description: URL of the icon associated to the integration
14313
- format: uri
14314
- app:
14315
- type: string
14316
- description: URL of the integration in the application
14317
- format: uri
14318
- assets:
14319
- type: string
14320
- description: URL of the integration's assets.
14321
- format: uri
14322
- publicEndpoint:
14323
- type: string
14324
- description: Public HTTP endpoint for the integration
14325
- format: uri
14326
- required:
14327
- - location
14328
- - app
14329
- - assets
14330
- - publicEndpoint
14331
- permissions:
14332
- type: object
14333
- description: The set of permissions for the integration
14334
- properties:
14335
- admin:
14336
- type: boolean
14337
- required:
14338
- - admin
14339
- contentSecurityPolicy:
14340
- $ref: "#/components/schemas/IntegrationContentSecurityPolicy"
14341
- required:
14342
- - object
14343
- - name
14344
- - version
14345
- - title
14346
- - scopes
14347
- - categories
14348
- - visibility
14349
- - target
14350
- - verified
14351
- - previewImages
14352
- - externalLinks
14353
- - owner
14354
- - permissions
14355
- - urls
14356
- Snippet:
14357
- type: object
14358
- properties:
14359
- id:
14360
- type: string
14361
- description: Unique identifier for the snippet
14362
- organization:
14363
- type: string
14364
- description: ID of the organization owning this snippet
14365
- createdAt:
14366
- type: string
14367
- format: date-time
14368
- editedAt:
14369
- type: string
14370
- format: date-time
14371
- description: Timestamp of when the snippet was last edited, if it has been edited since its creation.
14372
- archived:
14373
- type: boolean
14374
- description: Whether the snippet is archived. Archived snippets don't appear in search results or in the app.
14375
- title:
14376
- type: string
14377
- description: Title describing the snippet.
14378
- maxLength: 100
14379
- source:
14380
- description: The source of the snippet.
14381
- type: object
14382
- properties:
14383
- sourceId:
14384
- type: string
14385
- description: An ID identifying the source, unique across all sources.
14386
- name:
14387
- type: string
14388
- description: A display name for the source.
14389
- externalId:
14390
- type: string
14391
- description: An ID identifying the snippet in the source system, if available.
14392
- externalUrl:
14393
- description: URL of the snippet in the source system, if available.
14394
- $ref: "#/components/schemas/URL"
14395
- required:
14396
- - sourceId
14397
- - name
14398
- contributors:
14399
- description: An array of contributors to the snippet, which can be either users or integrations. The first contributor is the one who created the snippet.
14400
- type: array
14401
- minItems: 1
14402
- items:
14403
- oneOf:
14404
- - $ref: "#/components/schemas/Integration"
14405
- - $ref: "#/components/schemas/User"
14406
- urls:
14407
- type: object
14408
- description: URLs associated with the object
14409
- properties:
14410
- location:
14411
- description: URL of the snippet in the API
14412
- $ref: "#/components/schemas/URL"
14413
- app:
14414
- description: URL of the snippet in the app
14415
- $ref: "#/components/schemas/URL"
14416
- required:
14417
- - location
14418
- - app
14419
- required:
14420
- - id
14421
- - organization
14422
- - source
14423
- - createdAt
14424
- - archived
14425
- - contributors
14426
- - urls
14427
- ContentLocationSnippet:
14428
- type: object
14429
- properties:
14430
- kind:
14431
- type: string
14432
- enum:
14433
- - snippet
14434
- organization:
14435
- $ref: "#/components/schemas/Organization"
14436
- snippet:
14437
- $ref: "#/components/schemas/Snippet"
14438
- required:
14439
- - kind
14440
- - organization
14441
- - snippet
14442
- ContentLocationReusableContent:
14443
- type: object
14444
- properties:
14445
- kind:
14446
- type: string
14447
- enum:
14448
- - reusable-content
14449
- organization:
14450
- $ref: "#/components/schemas/Organization"
14451
- space:
14452
- $ref: "#/components/schemas/Space"
14453
- versionContext:
14454
- oneOf:
14455
- - $ref: "#/components/schemas/ContentLocationRevisionContext"
14456
- - $ref: "#/components/schemas/ContentLocationChangeRequestContext"
14457
- reusableContent:
14458
- $ref: "#/components/schemas/RevisionReusableContent"
14459
- required:
14460
- - kind
14461
- - organization
14462
- - space
14463
- - reusableContent
14464
- ContentLocation:
14465
- description: An absolute reference to content in GitBook.
14466
- oneOf:
14467
- - $ref: "#/components/schemas/ContentLocationFile"
14468
- - $ref: "#/components/schemas/ContentLocationURL"
14469
- - $ref: "#/components/schemas/ContentLocationPage"
14470
- - $ref: "#/components/schemas/ContentLocationUser"
14471
- - $ref: "#/components/schemas/ContentLocationCollection"
14472
- - $ref: "#/components/schemas/ContentLocationSpace"
14473
- - $ref: "#/components/schemas/ContentLocationSnippet"
14474
- - $ref: "#/components/schemas/ContentLocationReusableContent"
14475
- discriminator:
14476
- propertyName: kind
14477
- ContentReferenceStatus:
14478
- type: string
14479
- enum:
14480
- - ok
14481
- - broken
14482
- - in-app
14483
- description: |
14484
- Text to display to represent the reference. Possible values include:
14485
- - `ok` - No problems detected for this content reference.
14486
- - `broken` - The target does not exist in the revision.
14487
- - `in-app` - The target is a URL link pointing to an internal location in the app.
14488
- ContentReferencesStats:
13926
+ - $ref: "#/components/schemas/ContentLocationFile"
13927
+ - $ref: "#/components/schemas/ContentLocationURL"
13928
+ - $ref: "#/components/schemas/ContentLocationPage"
13929
+ - $ref: "#/components/schemas/ContentLocationUser"
13930
+ - $ref: "#/components/schemas/ContentLocationCollection"
13931
+ - $ref: "#/components/schemas/ContentLocationSpace"
13932
+ - $ref: "#/components/schemas/ContentLocationReusableContent"
13933
+ - $ref: "#/components/schemas/ContentLocationOpenAPI"
13934
+ discriminator:
13935
+ propertyName: kind
13936
+ ContentReferenceStatus:
13937
+ type: string
13938
+ enum:
13939
+ - ok
13940
+ - broken
13941
+ - in-app
13942
+ description: |
13943
+ Text to display to represent the reference. Possible values include:
13944
+ - `ok` - No problems detected for this content reference.
13945
+ - `broken` - The target does not exist in the revision.
13946
+ - `in-app` - The target is a URL link pointing to an internal location in the app.
13947
+ ContentReferencesStats:
14489
13948
  type: object
14490
13949
  properties:
14491
13950
  total:
@@ -15519,319 +14978,694 @@ components:
15519
14978
  type: number
15520
14979
  description: How many changes were omitted because above the result limit
15521
14980
  required:
15522
- - changes
15523
- UpdateCommentReplySchema:
14981
+ - changes
14982
+ UpdateCommentReplySchema:
14983
+ type: object
14984
+ properties:
14985
+ body:
14986
+ description: Content of the comment.
14987
+ $ref: "#/components/schemas/Document"
14988
+ addedReactions:
14989
+ type: array
14990
+ description: Reactions to add to the comment.
14991
+ items:
14992
+ type: string
14993
+ removedReactions:
14994
+ type: array
14995
+ description: Reactions to remove from the comment.
14996
+ items:
14997
+ type: string
14998
+ Color:
14999
+ type: string
15000
+ pattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
15001
+ CustomizationThemedColor:
15002
+ type: object
15003
+ properties:
15004
+ light:
15005
+ $ref: "#/components/schemas/Color"
15006
+ dark:
15007
+ $ref: "#/components/schemas/Color"
15008
+ required:
15009
+ - light
15010
+ - dark
15011
+ CustomizationCorners:
15012
+ type: string
15013
+ enum:
15014
+ - straight
15015
+ - rounded
15016
+ CustomizationFont:
15017
+ type: string
15018
+ enum:
15019
+ - ABCFavorit
15020
+ - Inter
15021
+ - Roboto
15022
+ - RobotoSlab
15023
+ - OpenSans
15024
+ - SourceSansPro
15025
+ - Lato
15026
+ - Ubuntu
15027
+ - Raleway
15028
+ - Merriweather
15029
+ - Overpass
15030
+ - NotoSans
15031
+ - IBMPlexSerif
15032
+ - Poppins
15033
+ - FiraSans
15034
+ CustomizationBackground:
15035
+ type: string
15036
+ enum:
15037
+ - plain
15038
+ - match
15039
+ deprecated: true
15040
+ description: The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
15041
+ CustomizationLocale:
15042
+ type: string
15043
+ description: Language for the UI element
15044
+ enum:
15045
+ - en
15046
+ - fr
15047
+ - es
15048
+ - zh
15049
+ - ja
15050
+ - de
15051
+ - nl
15052
+ - no
15053
+ - pt-br
15054
+ CustomizationThemedURL:
15055
+ type: object
15056
+ properties:
15057
+ light:
15058
+ $ref: "#/components/schemas/URL"
15059
+ dark:
15060
+ $ref: "#/components/schemas/URL"
15061
+ required:
15062
+ - light
15063
+ - dark
15064
+ CustomizationHeaderPreset:
15065
+ type: string
15066
+ deprecated: true
15067
+ description: The header preset to use for the site. This is a legacy setting and the site styling theme should be used instead.
15068
+ enum:
15069
+ - default
15070
+ - bold
15071
+ - contrast
15072
+ - custom
15073
+ - none
15074
+ CustomizationContentLink:
15075
+ type: object
15076
+ properties:
15077
+ title:
15078
+ type: string
15079
+ to:
15080
+ $ref: "#/components/schemas/ContentRef"
15081
+ required:
15082
+ - title
15083
+ - to
15084
+ CustomizationHeaderItem:
15085
+ type: object
15086
+ properties:
15087
+ title:
15088
+ type: string
15089
+ style:
15090
+ type: string
15091
+ enum:
15092
+ - link
15093
+ - button-primary
15094
+ - button-secondary
15095
+ to:
15096
+ oneOf:
15097
+ - $ref: "#/components/schemas/ContentRef"
15098
+ - type: string
15099
+ nullable: true
15100
+ enum:
15101
+ - null
15102
+ links:
15103
+ type: array
15104
+ items:
15105
+ $ref: "#/components/schemas/CustomizationContentLink"
15106
+ required:
15107
+ - title
15108
+ - links
15109
+ - to
15110
+ CustomizationFooterGroup:
15524
15111
  type: object
15525
15112
  properties:
15526
- body:
15527
- description: Content of the comment.
15528
- $ref: "#/components/schemas/Document"
15529
- addedReactions:
15530
- type: array
15531
- description: Reactions to add to the comment.
15532
- items:
15533
- type: string
15534
- removedReactions:
15113
+ title:
15114
+ type: string
15115
+ links:
15535
15116
  type: array
15536
- description: Reactions to remove from the comment.
15537
15117
  items:
15538
- type: string
15539
- Color:
15118
+ $ref: "#/components/schemas/CustomizationContentLink"
15119
+ required:
15120
+ - title
15121
+ - links
15122
+ CustomizationThemeMode:
15540
15123
  type: string
15541
- pattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
15542
- CustomizationThemedColor:
15124
+ enum:
15125
+ - light
15126
+ - dark
15127
+ CustomizationSettings:
15543
15128
  type: object
15544
15129
  properties:
15545
- light:
15546
- $ref: "#/components/schemas/Color"
15547
- dark:
15548
- $ref: "#/components/schemas/Color"
15130
+ inherit:
15131
+ type: boolean
15132
+ description: Inherit customization settings from the parent collection.
15133
+ title:
15134
+ type: string
15135
+ description: Title to use for the published content. If not defined, it'll fallback to the content title.
15136
+ styling:
15137
+ type: object
15138
+ properties:
15139
+ primaryColor:
15140
+ $ref: "#/components/schemas/CustomizationThemedColor"
15141
+ corners:
15142
+ $ref: "#/components/schemas/CustomizationCorners"
15143
+ font:
15144
+ $ref: "#/components/schemas/CustomizationFont"
15145
+ background:
15146
+ $ref: "#/components/schemas/CustomizationBackground"
15147
+ required:
15148
+ - primaryColor
15149
+ - corners
15150
+ - font
15151
+ internationalization:
15152
+ type: object
15153
+ properties:
15154
+ locale:
15155
+ $ref: "#/components/schemas/CustomizationLocale"
15156
+ inherit:
15157
+ type: boolean
15158
+ description: Inherit locale from the parent collection.
15159
+ required:
15160
+ - locale
15161
+ - inherit
15162
+ favicon:
15163
+ oneOf:
15164
+ - type: object
15165
+ properties:
15166
+ icon:
15167
+ $ref: "#/components/schemas/CustomizationThemedURL"
15168
+ required:
15169
+ - icon
15170
+ - type: object
15171
+ properties:
15172
+ emoji:
15173
+ $ref: "#/components/schemas/Emoji"
15174
+ required:
15175
+ - emoji
15176
+ - type: object
15177
+ properties: {}
15178
+ additionalProperties: false
15179
+ header:
15180
+ type: object
15181
+ properties:
15182
+ preset:
15183
+ $ref: "#/components/schemas/CustomizationHeaderPreset"
15184
+ logo:
15185
+ $ref: "#/components/schemas/CustomizationThemedURL"
15186
+ backgroundColor:
15187
+ $ref: "#/components/schemas/CustomizationThemedColor"
15188
+ linkColor:
15189
+ $ref: "#/components/schemas/CustomizationThemedColor"
15190
+ links:
15191
+ type: array
15192
+ items:
15193
+ $ref: "#/components/schemas/CustomizationHeaderItem"
15194
+ required:
15195
+ - preset
15196
+ - links
15197
+ footer:
15198
+ type: object
15199
+ properties:
15200
+ logo:
15201
+ $ref: "#/components/schemas/CustomizationThemedURL"
15202
+ groups:
15203
+ type: array
15204
+ items:
15205
+ $ref: "#/components/schemas/CustomizationFooterGroup"
15206
+ copyright:
15207
+ type: string
15208
+ maxLength: 300
15209
+ required:
15210
+ - groups
15211
+ themes:
15212
+ type: object
15213
+ properties:
15214
+ default:
15215
+ $ref: "#/components/schemas/CustomizationThemeMode"
15216
+ toggeable:
15217
+ description: Should the reader be able to switch between dark and light mode
15218
+ type: boolean
15219
+ required:
15220
+ - default
15221
+ - toggeable
15222
+ pdf:
15223
+ type: object
15224
+ properties:
15225
+ enabled:
15226
+ type: boolean
15227
+ description: If true, PDF export is enabled for the published content.
15228
+ required:
15229
+ - enabled
15230
+ feedback:
15231
+ type: object
15232
+ properties:
15233
+ enabled:
15234
+ type: boolean
15235
+ description: If true, feedback gathering is enabled
15236
+ required:
15237
+ - enabled
15238
+ aiSearch:
15239
+ type: object
15240
+ properties:
15241
+ enabled:
15242
+ type: boolean
15243
+ description: If true, AI search is enabled
15244
+ required:
15245
+ - enabled
15246
+ git:
15247
+ type: object
15248
+ properties:
15249
+ showEditLink:
15250
+ type: boolean
15251
+ description: Whether the public content should show a link to edit the content on the git provider set up in the GitSync
15252
+ required:
15253
+ - showEditLink
15254
+ pagination:
15255
+ type: object
15256
+ properties:
15257
+ enabled:
15258
+ type: boolean
15259
+ description: Whether the pagination navigation should be displayed on pages.
15260
+ required:
15261
+ - enabled
15262
+ trademark:
15263
+ type: object
15264
+ properties:
15265
+ enabled:
15266
+ type: boolean
15267
+ description: Whether the GitBook trademark ("Powered by GitBook") should be visible
15268
+ required:
15269
+ - enabled
15270
+ privacyPolicy:
15271
+ type: object
15272
+ properties:
15273
+ url:
15274
+ $ref: "#/components/schemas/URL"
15275
+ socialPreview:
15276
+ type: object
15277
+ properties:
15278
+ url:
15279
+ $ref: "#/components/schemas/URL"
15549
15280
  required:
15550
- - light
15551
- - dark
15552
- CustomizationCorners:
15281
+ - inherit
15282
+ - styling
15283
+ - internationalization
15284
+ - favicon
15285
+ - header
15286
+ - footer
15287
+ - themes
15288
+ - pdf
15289
+ - feedback
15290
+ - aiSearch
15291
+ - trademark
15292
+ - pagination
15293
+ - git
15294
+ - privacyPolicy
15295
+ - socialPreview
15296
+ IntegrationTitle:
15297
+ type: string
15298
+ description: Title of the integration
15299
+ minLength: 2
15300
+ maxLength: 30
15301
+ IntegrationDescription:
15302
+ type: string
15303
+ description: Description of the integration
15304
+ maxLength: 100
15305
+ IntegrationSummary:
15306
+ type: string
15307
+ description: Long form markdown summary of the integration
15308
+ maxLength: 2048
15309
+ IntegrationTarget:
15553
15310
  type: string
15311
+ description: The target on which the integration can operate and needs to be configured for
15554
15312
  enum:
15555
- - straight
15556
- - rounded
15557
- CustomizationFont:
15313
+ - all
15314
+ - site
15315
+ - space
15316
+ - organization
15317
+ IntegrationVisibility:
15558
15318
  type: string
15559
15319
  enum:
15560
- - ABCFavorit
15561
- - Inter
15562
- - Roboto
15563
- - RobotoSlab
15564
- - OpenSans
15565
- - SourceSansPro
15566
- - Lato
15567
- - Ubuntu
15568
- - Raleway
15569
- - Merriweather
15570
- - Overpass
15571
- - NotoSans
15572
- - IBMPlexSerif
15573
- - Poppins
15574
- - FiraSans
15575
- CustomizationBackground:
15320
+ - public
15321
+ - private
15322
+ - unlisted
15323
+ IntegrationScope:
15576
15324
  type: string
15577
15325
  enum:
15578
- - plain
15579
- - match
15580
- deprecated: true
15581
- description: The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
15582
- CustomizationLocale:
15326
+ - space:views:read
15327
+ - space:content:read
15328
+ - space:content:write
15329
+ - space:metadata:read
15330
+ - space:metadata:write
15331
+ - space:script:inject
15332
+ - space:script:cookies
15333
+ - space:git:sync
15334
+ - space:visitor:auth
15335
+ - site:metadata:read
15336
+ - site:views:read
15337
+ - site:script:inject
15338
+ - site:script:cookies
15339
+ - site:visitor:auth
15340
+ - openapi:read
15341
+ - openapi:write
15342
+ IntegrationScopes:
15343
+ type: array
15344
+ description: Permissions that should be granted to the integration
15345
+ items:
15346
+ $ref: "#/components/schemas/IntegrationScope"
15347
+ IntegrationCategory:
15583
15348
  type: string
15584
- description: Language for the UI element
15585
15349
  enum:
15586
- - en
15587
- - fr
15588
- - es
15589
- - zh
15590
- - ja
15591
- - de
15592
- - nl
15593
- - no
15594
- - pt-br
15595
- CustomizationThemedURL:
15350
+ - analytics
15351
+ - collaboration
15352
+ - content
15353
+ - gitsync
15354
+ - marketing
15355
+ - visitor-auth
15356
+ - other
15357
+ IntegrationCategories:
15358
+ type: array
15359
+ description: Categories for which the integration is listed in the marketplace
15360
+ items:
15361
+ $ref: "#/components/schemas/IntegrationCategory"
15362
+ IntegrationBlocks:
15363
+ type: array
15364
+ description: Custom blocks defined by this integration.
15365
+ items:
15366
+ $ref: "#/components/schemas/IntegrationBlock"
15367
+ IntegrationConfigurationComponent:
15596
15368
  type: object
15369
+ description: ContentKit component for configuration
15597
15370
  properties:
15598
- light:
15599
- $ref: "#/components/schemas/URL"
15600
- dark:
15601
- $ref: "#/components/schemas/URL"
15371
+ componentId:
15372
+ type: string
15373
+ description: ID of the ContentKit component defined in the integration
15602
15374
  required:
15603
- - light
15604
- - dark
15605
- CustomizationHeaderPreset:
15606
- type: string
15607
- enum:
15608
- - default
15609
- - bold
15610
- - contrast
15611
- - custom
15612
- - none
15613
- CustomizationContentLink:
15375
+ - componentId
15376
+ IntegrationContentSource:
15614
15377
  type: object
15378
+ description: Definition of a content source provided by the integration.
15615
15379
  properties:
15380
+ id:
15381
+ type: string
15382
+ description: Unique ID in the integration for the source.
15616
15383
  title:
15617
15384
  type: string
15618
- to:
15619
- $ref: "#/components/schemas/ContentRef"
15385
+ description: Short descriptive title for the source.
15386
+ minLength: 2
15387
+ maxLength: 40
15388
+ description:
15389
+ type: string
15390
+ description: Long descriptive text for the source.
15391
+ minLength: 0
15392
+ maxLength: 150
15393
+ icon:
15394
+ type: string
15395
+ description: URL of the icon to represent this source.
15396
+ configuration:
15397
+ $ref: "#/components/schemas/IntegrationConfigurationComponent"
15620
15398
  required:
15399
+ - id
15621
15400
  - title
15622
- - to
15623
- CustomizationHeaderItem:
15401
+ - configuration
15402
+ IntegrationConfigurationSchema:
15624
15403
  type: object
15404
+ description: Schema for a configuration
15625
15405
  properties:
15626
- title:
15627
- type: string
15628
- style:
15629
- type: string
15630
- enum:
15631
- - link
15632
- - button-primary
15633
- - button-secondary
15634
- to:
15635
- oneOf:
15636
- - $ref: "#/components/schemas/ContentRef"
15637
- - type: string
15638
- nullable: true
15639
- enum:
15640
- - null
15641
- links:
15406
+ properties:
15407
+ type: object
15408
+ additionalProperties:
15409
+ allOf:
15410
+ - type: object
15411
+ properties:
15412
+ title:
15413
+ type: string
15414
+ maxLength: 30
15415
+ description:
15416
+ type: string
15417
+ maxLength: 100
15418
+ - oneOf:
15419
+ - type: object
15420
+ properties:
15421
+ type:
15422
+ type: string
15423
+ enum:
15424
+ - string
15425
+ default:
15426
+ type: string
15427
+ required:
15428
+ - type
15429
+ - type: object
15430
+ properties:
15431
+ type:
15432
+ type: string
15433
+ enum:
15434
+ - number
15435
+ default:
15436
+ type: number
15437
+ required:
15438
+ - type
15439
+ - type: object
15440
+ properties:
15441
+ type:
15442
+ type: string
15443
+ enum:
15444
+ - boolean
15445
+ default:
15446
+ type: boolean
15447
+ required:
15448
+ - type
15449
+ - type: object
15450
+ properties:
15451
+ type:
15452
+ type: string
15453
+ enum:
15454
+ - button
15455
+ callback_url:
15456
+ type: string
15457
+ button_text:
15458
+ type: string
15459
+ required:
15460
+ - type
15461
+ - callback_url
15462
+ - button_text
15463
+ required:
15642
15464
  type: array
15465
+ uniqueItems: true
15643
15466
  items:
15644
- $ref: "#/components/schemas/CustomizationContentLink"
15467
+ type: string
15645
15468
  required:
15646
- - title
15647
- - links
15648
- - to
15649
- CustomizationFooterGroup:
15469
+ - properties
15470
+ IntegrationConfiguration:
15471
+ oneOf:
15472
+ - $ref: "#/components/schemas/IntegrationConfigurationSchema"
15473
+ - $ref: "#/components/schemas/IntegrationConfigurationComponent"
15474
+ IntegrationConfigurations:
15475
+ type: object
15476
+ properties:
15477
+ account:
15478
+ $ref: "#/components/schemas/IntegrationConfiguration"
15479
+ space:
15480
+ $ref: "#/components/schemas/IntegrationConfiguration"
15481
+ site:
15482
+ $ref: "#/components/schemas/IntegrationConfiguration"
15483
+ IntegrationExternalLinks:
15484
+ type: array
15485
+ description: External urls configured by the developer of the integration
15486
+ maxItems: 5
15487
+ items:
15488
+ type: object
15489
+ properties:
15490
+ url:
15491
+ $ref: "#/components/schemas/URL"
15492
+ label:
15493
+ type: string
15494
+ required:
15495
+ - url
15496
+ - label
15497
+ IntegrationContentSecurityPolicy:
15498
+ description: |
15499
+ Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
15500
+ headers when processing the script fetch event and the blocks fetch events.
15501
+ oneOf:
15502
+ - type: string
15503
+ - type: object
15504
+ properties:
15505
+ base-uri:
15506
+ type: string
15507
+ block-all-mixed-content:
15508
+ type: string
15509
+ child-src:
15510
+ type: string
15511
+ connect-src:
15512
+ type: string
15513
+ default-src:
15514
+ type: string
15515
+ font-src:
15516
+ type: string
15517
+ form-action:
15518
+ type: string
15519
+ frame-ancestors:
15520
+ type: string
15521
+ frame-src:
15522
+ type: string
15523
+ img-src:
15524
+ type: string
15525
+ manifest-src:
15526
+ type: string
15527
+ media-src:
15528
+ type: string
15529
+ navigate-to:
15530
+ type: string
15531
+ object-src:
15532
+ type: string
15533
+ plugin-types:
15534
+ type: string
15535
+ prefetch-src:
15536
+ type: string
15537
+ referrer:
15538
+ type: string
15539
+ report-to:
15540
+ type: string
15541
+ report-uri:
15542
+ type: string
15543
+ require-sri-for:
15544
+ type: string
15545
+ require-trusted-types-for:
15546
+ type: string
15547
+ sandbox:
15548
+ type: string
15549
+ script-src:
15550
+ type: string
15551
+ script-src-attr:
15552
+ type: string
15553
+ script-src-elem:
15554
+ type: string
15555
+ style-src:
15556
+ type: string
15557
+ style-src-attr:
15558
+ type: string
15559
+ style-src-elem:
15560
+ type: string
15561
+ trusted-types:
15562
+ type: string
15563
+ upgrade-insecure-requests:
15564
+ type: string
15565
+ worker-src:
15566
+ type: string
15567
+ Integration:
15650
15568
  type: object
15651
15569
  properties:
15652
- title:
15570
+ object:
15653
15571
  type: string
15654
- links:
15572
+ enum:
15573
+ - integration
15574
+ name:
15575
+ type: string
15576
+ description: Unique named identifier for the integration
15577
+ version:
15578
+ type: number
15579
+ description: Version of the integration
15580
+ title:
15581
+ $ref: "#/components/schemas/IntegrationTitle"
15582
+ description:
15583
+ $ref: "#/components/schemas/IntegrationDescription"
15584
+ summary:
15585
+ $ref: "#/components/schemas/IntegrationSummary"
15586
+ previewImages:
15655
15587
  type: array
15588
+ description: URLs of images to showcase the integration
15589
+ maxItems: 3
15656
15590
  items:
15657
- $ref: "#/components/schemas/CustomizationContentLink"
15658
- required:
15659
- - title
15660
- - links
15661
- CustomizationThemeMode:
15662
- type: string
15663
- enum:
15664
- - light
15665
- - dark
15666
- CustomizationSettings:
15667
- type: object
15668
- properties:
15669
- inherit:
15591
+ type: string
15592
+ target:
15593
+ $ref: "#/components/schemas/IntegrationTarget"
15594
+ verified:
15670
15595
  type: boolean
15671
- description: Inherit customization settings from the parent collection.
15672
- title:
15673
- type: string
15674
- description: Title to use for the published content. If not defined, it'll fallback to the content title.
15675
- styling:
15676
- type: object
15677
- properties:
15678
- primaryColor:
15679
- $ref: "#/components/schemas/CustomizationThemedColor"
15680
- corners:
15681
- $ref: "#/components/schemas/CustomizationCorners"
15682
- font:
15683
- $ref: "#/components/schemas/CustomizationFont"
15684
- background:
15685
- $ref: "#/components/schemas/CustomizationBackground"
15686
- required:
15687
- - primaryColor
15688
- - corners
15689
- - font
15690
- internationalization:
15691
- type: object
15692
- properties:
15693
- locale:
15694
- $ref: "#/components/schemas/CustomizationLocale"
15695
- inherit:
15696
- type: boolean
15697
- description: Inherit locale from the parent collection.
15698
- required:
15699
- - locale
15700
- - inherit
15701
- favicon:
15702
- oneOf:
15703
- - type: object
15704
- properties:
15705
- icon:
15706
- $ref: "#/components/schemas/CustomizationThemedURL"
15707
- required:
15708
- - icon
15709
- - type: object
15710
- properties:
15711
- emoji:
15712
- $ref: "#/components/schemas/Emoji"
15713
- required:
15714
- - emoji
15715
- - type: object
15716
- properties: {}
15717
- additionalProperties: false
15718
- header:
15719
- type: object
15720
- properties:
15721
- preset:
15722
- $ref: "#/components/schemas/CustomizationHeaderPreset"
15723
- logo:
15724
- $ref: "#/components/schemas/CustomizationThemedURL"
15725
- backgroundColor:
15726
- $ref: "#/components/schemas/CustomizationThemedColor"
15727
- linkColor:
15728
- $ref: "#/components/schemas/CustomizationThemedColor"
15729
- links:
15730
- type: array
15731
- items:
15732
- $ref: "#/components/schemas/CustomizationHeaderItem"
15733
- required:
15734
- - preset
15735
- - links
15736
- footer:
15596
+ description: If true, the integration has been verified by the GitBook team
15597
+ visibility:
15598
+ $ref: "#/components/schemas/IntegrationVisibility"
15599
+ scopes:
15600
+ $ref: "#/components/schemas/IntegrationScopes"
15601
+ categories:
15602
+ $ref: "#/components/schemas/IntegrationCategories"
15603
+ blocks:
15604
+ $ref: "#/components/schemas/IntegrationBlocks"
15605
+ contentSources:
15606
+ type: array
15607
+ items:
15608
+ $ref: "#/components/schemas/IntegrationContentSource"
15609
+ configurations:
15610
+ $ref: "#/components/schemas/IntegrationConfigurations"
15611
+ externalLinks:
15612
+ $ref: "#/components/schemas/IntegrationExternalLinks"
15613
+ owner:
15614
+ $ref: "#/components/schemas/Organization"
15615
+ urls:
15737
15616
  type: object
15617
+ description: URLs associated with the object
15738
15618
  properties:
15739
- logo:
15740
- $ref: "#/components/schemas/CustomizationThemedURL"
15741
- groups:
15742
- type: array
15743
- items:
15744
- $ref: "#/components/schemas/CustomizationFooterGroup"
15745
- copyright:
15619
+ location:
15746
15620
  type: string
15747
- maxLength: 300
15748
- required:
15749
- - groups
15750
- themes:
15751
- type: object
15752
- properties:
15753
- default:
15754
- $ref: "#/components/schemas/CustomizationThemeMode"
15755
- toggeable:
15756
- description: Should the reader be able to switch between dark and light mode
15757
- type: boolean
15758
- required:
15759
- - default
15760
- - toggeable
15761
- pdf:
15762
- type: object
15763
- properties:
15764
- enabled:
15765
- type: boolean
15766
- description: If true, PDF export is enabled for the published content.
15767
- required:
15768
- - enabled
15769
- feedback:
15770
- type: object
15771
- properties:
15772
- enabled:
15773
- type: boolean
15774
- description: If true, feedback gathering is enabled
15775
- required:
15776
- - enabled
15777
- aiSearch:
15778
- type: object
15779
- properties:
15780
- enabled:
15781
- type: boolean
15782
- description: If true, AI search is enabled
15783
- required:
15784
- - enabled
15785
- git:
15786
- type: object
15787
- properties:
15788
- showEditLink:
15789
- type: boolean
15790
- description: Whether the public content should show a link to edit the content on the git provider set up in the GitSync
15791
- required:
15792
- - showEditLink
15793
- pagination:
15794
- type: object
15795
- properties:
15796
- enabled:
15797
- type: boolean
15798
- description: Whether the pagination navigation should be displayed on pages.
15621
+ description: URL of the integration in the API
15622
+ format: uri
15623
+ icon:
15624
+ type: string
15625
+ description: URL of the icon associated to the integration
15626
+ format: uri
15627
+ app:
15628
+ type: string
15629
+ description: URL of the integration in the application
15630
+ format: uri
15631
+ assets:
15632
+ type: string
15633
+ description: URL of the integration's assets.
15634
+ format: uri
15635
+ publicEndpoint:
15636
+ type: string
15637
+ description: Public HTTP endpoint for the integration
15638
+ format: uri
15799
15639
  required:
15800
- - enabled
15801
- trademark:
15640
+ - location
15641
+ - app
15642
+ - assets
15643
+ - publicEndpoint
15644
+ permissions:
15802
15645
  type: object
15646
+ description: The set of permissions for the integration
15803
15647
  properties:
15804
- enabled:
15648
+ admin:
15805
15649
  type: boolean
15806
- description: Whether the GitBook trademark ("Powered by GitBook") should be visible
15807
- required:
15808
- - enabled
15809
- privacyPolicy:
15810
- type: object
15811
- properties:
15812
- url:
15813
- $ref: "#/components/schemas/URL"
15814
- socialPreview:
15815
- type: object
15816
- properties:
15817
- url:
15818
- $ref: "#/components/schemas/URL"
15819
- required:
15820
- - inherit
15821
- - styling
15822
- - internationalization
15823
- - favicon
15824
- - header
15825
- - footer
15826
- - themes
15827
- - pdf
15828
- - feedback
15829
- - aiSearch
15830
- - trademark
15831
- - pagination
15832
- - git
15833
- - privacyPolicy
15834
- - socialPreview
15650
+ required:
15651
+ - admin
15652
+ contentSecurityPolicy:
15653
+ $ref: "#/components/schemas/IntegrationContentSecurityPolicy"
15654
+ required:
15655
+ - object
15656
+ - name
15657
+ - version
15658
+ - title
15659
+ - scopes
15660
+ - categories
15661
+ - visibility
15662
+ - target
15663
+ - verified
15664
+ - previewImages
15665
+ - externalLinks
15666
+ - owner
15667
+ - permissions
15668
+ - urls
15835
15669
  SpaceIntegrationBlocks:
15836
15670
  type: array
15837
15671
  items:
@@ -18520,6 +18354,19 @@ components:
18520
18354
  - description
18521
18355
  - periodStart
18522
18356
  - periodEnd
18357
+ discount:
18358
+ type: object
18359
+ description: Discount applied to the subscription.
18360
+ properties:
18361
+ description:
18362
+ description: The combined description of all discounts applied to the subscription.
18363
+ type: string
18364
+ amount:
18365
+ description: The total amount of all discounts applied to the subscription.
18366
+ type: number
18367
+ required:
18368
+ - amount
18369
+ - description
18523
18370
  required:
18524
18371
  - amount
18525
18372
  - amountDueToday
@@ -18602,17 +18449,31 @@ components:
18602
18449
  A list of site updates to be applied before upgrading. If a site is not present in this list, it'll be upgraded to whichever type matches its features and its published status will be unchanged. When downgrading to a lower type all relevant paid features will be disabled before applying the new type.
18603
18450
  type: array
18604
18451
  items:
18605
- type: object
18606
- properties:
18607
- id:
18608
- description: The site identifier
18609
- type: string
18610
- type:
18611
- description: The site type to migrate to
18612
- $ref: "#/components/schemas/SiteType"
18613
- required:
18614
- - id
18615
- - type
18452
+ oneOf:
18453
+ - type: object
18454
+ properties:
18455
+ id:
18456
+ description: The site identifier
18457
+ type: string
18458
+ type:
18459
+ description: The site type to migrate to
18460
+ $ref: "#/components/schemas/SiteType"
18461
+ required:
18462
+ - id
18463
+ - type
18464
+ - type: object
18465
+ properties:
18466
+ id:
18467
+ description: The site identifier
18468
+ type: string
18469
+ isPublished:
18470
+ description: Can be set to `false` to unpublish a site
18471
+ type: boolean
18472
+ enum:
18473
+ - false
18474
+ required:
18475
+ - id
18476
+ - isPublished
18616
18477
  required:
18617
18478
  - removeMembers
18618
18479
  - updateSites
@@ -18620,6 +18481,18 @@ components:
18620
18481
  - product
18621
18482
  - interval
18622
18483
  - changes
18484
+ BillingDiscount:
18485
+ type: object
18486
+ properties:
18487
+ duration:
18488
+ description: How many months the discount will last
18489
+ type: number
18490
+ percentOff:
18491
+ description: Percent that will be deducted from the subtotal of the invoice
18492
+ type: number
18493
+ required:
18494
+ - duration
18495
+ - percentOff
18623
18496
  SiteToMigrateFeature:
18624
18497
  type: string
18625
18498
  description: These are all the features we check to determine the new pricing site type.
@@ -18922,236 +18795,6 @@ components:
18922
18795
  - teams
18923
18796
  - members
18924
18797
  - teamMembers
18925
- CaptureTitle:
18926
- type: string
18927
- description: Optional title describing the capture
18928
- maxLength: 100
18929
- CaptureContext:
18930
- oneOf:
18931
- - type: string
18932
- enum:
18933
- - thread
18934
- - walkthrough
18935
- - document
18936
- Capture:
18937
- type: object
18938
- properties:
18939
- id:
18940
- type: string
18941
- description: Unique identifier for the capture
18942
- title:
18943
- $ref: "#/components/schemas/CaptureTitle"
18944
- context:
18945
- $ref: "#/components/schemas/CaptureContext"
18946
- externalId:
18947
- type: string
18948
- description: ID in the original source of the capture.
18949
- externalURL:
18950
- type: string
18951
- format: uri
18952
- description: URL of the source from which the capture originated
18953
- createdAt:
18954
- type: string
18955
- format: date-time
18956
- stoppedAt:
18957
- type: string
18958
- format: date-time
18959
- editedAt:
18960
- type: string
18961
- format: date-time
18962
- events:
18963
- description: Count of events recorded.
18964
- properties:
18965
- terminal.command:
18966
- type: integer
18967
- speech:
18968
- type: integer
18969
- thread.message:
18970
- type: integer
18971
- contributors:
18972
- description: An array of contributors to the capture. The first contributor is the one who triggered the capture (either a user or an integration).
18973
- type: array
18974
- minItems: 1
18975
- items:
18976
- oneOf:
18977
- - $ref: "#/components/schemas/Integration"
18978
- - $ref: "#/components/schemas/User"
18979
- output:
18980
- description: Output document for the capture. Is not set when capture is not finished.
18981
- $ref: "#/components/schemas/Document"
18982
- urls:
18983
- type: object
18984
- description: URLs associated with the object
18985
- properties:
18986
- location:
18987
- type: string
18988
- description: URL of the capture in the API
18989
- format: uri
18990
- app:
18991
- type: string
18992
- description: URL of the capture in the app
18993
- format: uri
18994
- required:
18995
- - location
18996
- - app
18997
- required:
18998
- - object
18999
- - id
19000
- - title
19001
- - context
19002
- - events
19003
- - createdAt
19004
- - contributors
19005
- - urls
19006
- BaseCaptureEvent:
19007
- type: object
19008
- properties:
19009
- type:
19010
- type: string
19011
- description: The type of event
19012
- timestamp:
19013
- type: string
19014
- format: date-time
19015
- description: When the event happened
19016
- source:
19017
- type: string
19018
- description: Optionally, provide the source of the event. GitBook may use this to improve the generated content.
19019
- maxLength: 50
19020
- actor:
19021
- type: object
19022
- description: Optionally, provide the actor of the event, in the context of multiple people contributing to the capture.
19023
- properties:
19024
- name:
19025
- type: string
19026
- required:
19027
- - name
19028
- required:
19029
- - type
19030
- - timestamp
19031
- CaptureTerminalCommandEvent:
19032
- allOf:
19033
- - $ref: "#/components/schemas/BaseCaptureEvent"
19034
- - type: object
19035
- properties:
19036
- type:
19037
- type: string
19038
- enum:
19039
- - terminal.command
19040
- command:
19041
- type: string
19042
- stdout:
19043
- type: string
19044
- required:
19045
- - type
19046
- - command
19047
- - stdout
19048
- CaptureSpeechEvent:
19049
- allOf:
19050
- - $ref: "#/components/schemas/BaseCaptureEvent"
19051
- - type: object
19052
- properties:
19053
- type:
19054
- type: string
19055
- enum:
19056
- - speech
19057
- required:
19058
- - type
19059
- - oneOf:
19060
- - type: object
19061
- properties:
19062
- audio:
19063
- description: WAV audio file, encoded as base64
19064
- type: string
19065
- required:
19066
- - audio
19067
- - type: object
19068
- properties:
19069
- transcript:
19070
- description: Transcript of the speech
19071
- type: string
19072
- required:
19073
- - transcript
19074
- CaptureThreadMessageEvent:
19075
- allOf:
19076
- - $ref: "#/components/schemas/BaseCaptureEvent"
19077
- - type: object
19078
- properties:
19079
- type:
19080
- type: string
19081
- enum:
19082
- - thread.message
19083
- isFirst:
19084
- type: boolean
19085
- text:
19086
- type: string
19087
- required:
19088
- - type
19089
- - text
19090
- CaptureFileAddedEvent:
19091
- allOf:
19092
- - $ref: "#/components/schemas/BaseCaptureEvent"
19093
- - type: object
19094
- properties:
19095
- type:
19096
- type: string
19097
- enum:
19098
- - file.added
19099
- filename:
19100
- type: string
19101
- fileSnapshot:
19102
- type: string
19103
- required:
19104
- - type
19105
- - filename
19106
- - fileSnapshot
19107
- CaptureFileChangedEvent:
19108
- allOf:
19109
- - $ref: "#/components/schemas/BaseCaptureEvent"
19110
- - type: object
19111
- properties:
19112
- type:
19113
- type: string
19114
- enum:
19115
- - file.changed
19116
- filename:
19117
- type: string
19118
- fileDiff:
19119
- type: string
19120
- required:
19121
- - type
19122
- - filename
19123
- - fileDiff
19124
- CaptureFileRemovedEvent:
19125
- allOf:
19126
- - $ref: "#/components/schemas/BaseCaptureEvent"
19127
- - type: object
19128
- properties:
19129
- type:
19130
- type: string
19131
- enum:
19132
- - file.removed
19133
- filename:
19134
- type: string
19135
- fileSnapshot:
19136
- type: string
19137
- required:
19138
- - type
19139
- - filename
19140
- - fileSnapshot
19141
- CaptureEvent:
19142
- oneOf:
19143
- - $ref: "#/components/schemas/CaptureTerminalCommandEvent"
19144
- - $ref: "#/components/schemas/CaptureSpeechEvent"
19145
- - $ref: "#/components/schemas/CaptureThreadMessageEvent"
19146
- - $ref: "#/components/schemas/CaptureFileAddedEvent"
19147
- - $ref: "#/components/schemas/CaptureFileChangedEvent"
19148
- - $ref: "#/components/schemas/CaptureFileRemovedEvent"
19149
- UpdateSnippetSchema:
19150
- type: object
19151
- properties:
19152
- title:
19153
- type: string
19154
- description: A new title for the snippet.
19155
18798
  BillingOperationPreviewResponse:
19156
18799
  description: |
19157
18800
  A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.
@@ -19250,7 +18893,7 @@ components:
19250
18893
  description: |
19251
18894
  - `default`: Simple list items without special styling, groups are inset with a line.
19252
18895
  - `pill`: Rounded capsule shape around selected/active items.
19253
- - `line`: Continuous line next to all items, with coloured line part for selected/active items.
18896
+ - `line`: Continuous line next to all items, with colored line part for selected/active items.
19254
18897
  enum:
19255
18898
  - default
19256
18899
  - pill
@@ -19290,6 +18933,7 @@ components:
19290
18933
  - background
19291
18934
  - list
19292
18935
  required:
18936
+ - theme
19293
18937
  - primaryColor
19294
18938
  - corners
19295
18939
  - font
@@ -21696,15 +21340,6 @@ components:
21696
21340
  - organizations
21697
21341
  - collections
21698
21342
  - spaces
21699
- SpaceBlockReason:
21700
- type: string
21701
- description: Reason for a space to be blocked
21702
- enum:
21703
- - DMCA
21704
- - THREAT_TYPE_UNSPECIFIED
21705
- - MALWARE
21706
- - SOCIAL_ENGINEERING
21707
- - UNWANTED_SOFTWARE
21708
21343
  BackOfficeSite:
21709
21344
  allOf:
21710
21345
  - $ref: "#/components/schemas/Site"
@@ -21785,6 +21420,48 @@ components:
21785
21420
  - target
21786
21421
  - redirect
21787
21422
  - $ref: "#/components/schemas/PublishedSiteContent"
21423
+ OpenAPISpecVersion:
21424
+ type: object
21425
+ properties:
21426
+ object:
21427
+ description: The object type, which is always "openapi-spec-version"
21428
+ type: string
21429
+ enum:
21430
+ - openapi-spec-version
21431
+ id:
21432
+ description: Unique identifier
21433
+ type: string
21434
+ createdAt:
21435
+ description: Date of creation
21436
+ $ref: "#/components/schemas/Timestamp"
21437
+ url:
21438
+ description: URL where the specification is accessible.
21439
+ $ref: "#/components/schemas/URL"
21440
+ urls:
21441
+ type: object
21442
+ description: URLs associated with the object
21443
+ properties:
21444
+ location:
21445
+ description: URL of the OpenAPI specification version in the API
21446
+ $ref: "#/components/schemas/URL"
21447
+ app:
21448
+ description: URL of the OpenAPI specification version in the application
21449
+ $ref: "#/components/schemas/URL"
21450
+ required:
21451
+ - app
21452
+ - location
21453
+ required:
21454
+ - object
21455
+ - id
21456
+ - url
21457
+ - urls
21458
+ OpenAPISpecContent:
21459
+ description: Filesystem representing the OpenAPI spec files and content.
21460
+ type: object
21461
+ SHA256:
21462
+ type: string
21463
+ minLength: 64
21464
+ maxLength: 64
21788
21465
  UpdateContentPublishingAuth:
21789
21466
  type: object
21790
21467
  properties:
@@ -22666,18 +22343,6 @@ components:
22666
22343
  required:
22667
22344
  - channel
22668
22345
  - organization
22669
- OrganizationCapturesChannel:
22670
- type: object
22671
- properties:
22672
- channel:
22673
- type: string
22674
- enum:
22675
- - organization-captures
22676
- organization:
22677
- type: string
22678
- required:
22679
- - channel
22680
- - organization
22681
22346
  OrganizationIntegrationsChannel:
22682
22347
  type: object
22683
22348
  properties:
@@ -22728,6 +22393,19 @@ components:
22728
22393
  required:
22729
22394
  - channel
22730
22395
  - organization
22396
+ OrganizationOpenAPISpecsChannel:
22397
+ type: object
22398
+ description: Subscription channel for changes in OpenAPI specifications in an organization.
22399
+ properties:
22400
+ channel:
22401
+ type: string
22402
+ enum:
22403
+ - organization-openapi-specs
22404
+ organization:
22405
+ type: string
22406
+ required:
22407
+ - channel
22408
+ - organization
22731
22409
  SpaceCommentsChannel:
22732
22410
  type: object
22733
22411
  properties:
@@ -23090,6 +22768,19 @@ components:
23090
22768
  required:
23091
22769
  - channel
23092
22770
  - space
22771
+ OpenAPISpecChannel:
22772
+ type: object
22773
+ description: Subscription channel for changes in OpenAPI specification.
22774
+ properties:
22775
+ channel:
22776
+ type: string
22777
+ enum:
22778
+ - openapi-spec
22779
+ openAPISpec:
22780
+ type: string
22781
+ required:
22782
+ - channel
22783
+ - openAPISpec
23093
22784
  SubscriptionChannel:
23094
22785
  description: Channel to subscribe to for realtime updates.
23095
22786
  oneOf:
@@ -23122,11 +22813,11 @@ components:
23122
22813
  - $ref: "#/components/schemas/OrganizationTeamMemberChannel"
23123
22814
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
23124
22815
  - $ref: "#/components/schemas/OrganizationCollectionsChannel"
23125
- - $ref: "#/components/schemas/OrganizationCapturesChannel"
23126
22816
  - $ref: "#/components/schemas/OrganizationIntegrationsChannel"
23127
22817
  - $ref: "#/components/schemas/OrganizationInstallationsChannel"
23128
22818
  - $ref: "#/components/schemas/OrganizationSitesChannel"
23129
22819
  - $ref: "#/components/schemas/OrganizationAIIndexationChannel"
22820
+ - $ref: "#/components/schemas/OrganizationOpenAPISpecsChannel"
23130
22821
  - $ref: "#/components/schemas/SpaceCommentsChannel"
23131
22822
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"
23132
22823
  - $ref: "#/components/schemas/CommentInfoChannel"
@@ -23153,6 +22844,7 @@ components:
23153
22844
  - $ref: "#/components/schemas/CustomHostnameChannel"
23154
22845
  - $ref: "#/components/schemas/GitSyncSettingsChannel"
23155
22846
  - $ref: "#/components/schemas/GitSyncOperationChannel"
22847
+ - $ref: "#/components/schemas/OpenAPISpecChannel"
23156
22848
  discriminator:
23157
22849
  propertyName: channel
23158
22850
  GitSyncOperationChannelData:
@@ -23338,6 +23030,8 @@ components:
23338
23030
  $ref: "#/components/schemas/_index"
23339
23031
  SiteRedirectDestinationSpace:
23340
23032
  $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
23033
+ OpenAPISpecSourceURL:
23034
+ $ref: "#/components/schemas/URL"
23341
23035
  responses:
23342
23036
  UnexpectedError:
23343
23037
  description: Unexpected Error