@gitbook/api 0.60.0 → 0.62.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
@@ -245,11 +245,6 @@ paths:
245
245
  $ref: "#/components/schemas/SpaceEditMode"
246
246
  title:
247
247
  $ref: "#/components/schemas/SpaceTitle"
248
- visibility:
249
- $ref: "#/components/schemas/ContentVisibility"
250
- visitorAuth:
251
- $ref: "#/components/schemas/VisitorAuth"
252
- description: The integration property, if set, is ignored.
253
248
  defaultLevel:
254
249
  $ref: "#/components/schemas/DefaultLevel"
255
250
  - oneOf:
@@ -779,6 +774,52 @@ paths:
779
774
  application/json:
780
775
  schema:
781
776
  $ref: "#/components/schemas/SpaceTrackPageView"
777
+ "/spaces/{spaceId}/permissions":
778
+ post:
779
+ operationId: inviteToSpace
780
+ summary: Invite to a space (only teams supported for now)
781
+ tags:
782
+ - spaces
783
+ security:
784
+ - user: []
785
+ parameters:
786
+ - $ref: "#/components/parameters/spaceId"
787
+ responses:
788
+ "204":
789
+ description: OK
790
+ "404":
791
+ description: No team with the provided Id
792
+ $ref: "#/components/responses/NotFoundError"
793
+ default:
794
+ $ref: "#/components/responses/UnexpectedError"
795
+ requestBody:
796
+ required: true
797
+ content:
798
+ application/json:
799
+ schema:
800
+ $ref: "#/components/schemas/InviteEmailsUsersTeamsToSpace"
801
+ "/spaces/{spaceId}/permissions/teams/{teamId}":
802
+ delete:
803
+ operationId: removeTeamFromSpace
804
+ summary: Remove a team from a space
805
+ tags:
806
+ - spaces
807
+ security:
808
+ - user: []
809
+ parameters:
810
+ - $ref: "#/components/parameters/spaceId"
811
+ - $ref: "#/components/parameters/teamId"
812
+ responses:
813
+ "205":
814
+ description: The team has been removed from the space
815
+ "400":
816
+ description: Team does not have access to space
817
+ $ref: "#/components/responses/BadRequestError"
818
+ "404":
819
+ description: No team found with the given ID
820
+ $ref: "#/components/responses/NotFoundError"
821
+ default:
822
+ $ref: "#/components/responses/UnexpectedError"
782
823
  "/spaces/{spaceId}/content":
783
824
  get:
784
825
  operationId: getCurrentRevision
@@ -2550,79 +2591,6 @@ paths:
2550
2591
  $ref: "#/components/responses/BadRequestError"
2551
2592
  default:
2552
2593
  $ref: "#/components/responses/UnexpectedError"
2553
- "/spaces/{spaceId}/publishing/auth":
2554
- get:
2555
- operationId: getSpacePublishingAuthById
2556
- summary: Get the publishing authentication configuration for a space.
2557
- tags:
2558
- - spaces
2559
- security:
2560
- - user: []
2561
- parameters:
2562
- - $ref: "#/components/parameters/spaceId"
2563
- responses:
2564
- "200":
2565
- description: OK
2566
- content:
2567
- application/json:
2568
- schema:
2569
- $ref: "#/components/schemas/ContentPublishingAuth"
2570
- "400":
2571
- $ref: "#/components/responses/BadRequestError"
2572
- default:
2573
- $ref: "#/components/responses/UnexpectedError"
2574
- post:
2575
- operationId: updateSpacePublishingAuthById
2576
- summary: Update the publishing authentication configuration for a space.
2577
- tags:
2578
- - spaces
2579
- security:
2580
- - user: []
2581
- parameters:
2582
- - $ref: "#/components/parameters/spaceId"
2583
- requestBody:
2584
- required: true
2585
- content:
2586
- application/json:
2587
- schema:
2588
- $ref: "#/components/schemas/UpdateContentPublishingAuth"
2589
- responses:
2590
- "200":
2591
- description: OK
2592
- content:
2593
- application/json:
2594
- schema:
2595
- $ref: "#/components/schemas/ContentPublishingAuth"
2596
- "400":
2597
- $ref: "#/components/responses/BadRequestError"
2598
- default:
2599
- $ref: "#/components/responses/UnexpectedError"
2600
- "/spaces/{spaceId}/publishing/preview":
2601
- get:
2602
- operationId: getSpacePublishingPreviewById
2603
- summary: Get a URL to preview the published content of a space. The URL will be valid for 1 hour.
2604
- tags:
2605
- - spaces
2606
- security:
2607
- - user: []
2608
- parameters:
2609
- - $ref: "#/components/parameters/spaceId"
2610
- responses:
2611
- "200":
2612
- description: OK
2613
- content:
2614
- application/json:
2615
- schema:
2616
- type: object
2617
- properties:
2618
- url:
2619
- $ref: "#/components/schemas/URL"
2620
- required:
2621
- - url
2622
- "400":
2623
- $ref: "#/components/responses/BadRequestError"
2624
- default:
2625
- $ref: "#/components/responses/UnexpectedError"
2626
2594
  "/spaces/{spaceId}/integrations":
2627
2595
  get:
2628
2596
  operationId: listSpaceIntegrations
@@ -3165,53 +3133,6 @@ paths:
3165
3133
  $ref: "#/components/schemas/UserContentPermission"
3166
3134
  default:
3167
3135
  $ref: "#/components/responses/UnexpectedError"
3168
- "/collections/{collectionId}/publishing/auth":
3169
- get:
3170
- operationId: getCollectionPublishingAuthById
3171
- summary: Get the publishing authentication configuration for a collection.
3172
- tags:
3173
- - collections
3174
- security:
3175
- - user: []
3176
- parameters:
3177
- - $ref: "#/components/parameters/collectionId"
3178
- responses:
3179
- "200":
3180
- description: OK
3181
- content:
3182
- application/json:
3183
- schema:
3184
- $ref: "#/components/schemas/ContentPublishingAuth"
3185
- "400":
3186
- $ref: "#/components/responses/BadRequestError"
3187
- default:
3188
- $ref: "#/components/responses/UnexpectedError"
3189
- post:
3190
- operationId: updateCollectionPublishingAuthById
3191
- summary: Update the publishing authentication configuration for a collection.
3192
- tags:
3193
- - collections
3194
- security:
3195
- - user: []
3196
- parameters:
3197
- - $ref: "#/components/parameters/collectionId"
3198
- requestBody:
3199
- required: true
3200
- content:
3201
- application/json:
3202
- schema:
3203
- $ref: "#/components/schemas/UpdateContentPublishingAuth"
3204
- responses:
3205
- "200":
3206
- description: OK
3207
- content:
3208
- application/json:
3209
- schema:
3210
- $ref: "#/components/schemas/ContentPublishingAuth"
3211
- "400":
3212
- $ref: "#/components/responses/BadRequestError"
3213
- default:
3214
- $ref: "#/components/responses/UnexpectedError"
3215
3136
  "/collections/{collectionId}/publishing/customization":
3216
3137
  get:
3217
3138
  operationId: getCollectionPublishingCustomizationById
@@ -4188,8 +4109,6 @@ paths:
4188
4109
  type: boolean
4189
4110
  ai:
4190
4111
  type: boolean
4191
- aiInsights:
4192
- type: boolean
4193
4112
  responses:
4194
4113
  "200":
4195
4114
  description: The organization has been updated
@@ -4231,6 +4150,15 @@ paths:
4231
4150
  description: A query to filter the member list (displayName and email)
4232
4151
  schema:
4233
4152
  type: string
4153
+ - name: sort
4154
+ in: query
4155
+ description: The property to sort the results by. When sorting by lastSeenAt, only active members will be listed.
4156
+ schema:
4157
+ type: string
4158
+ default: joinedAt
4159
+ enum:
4160
+ - joinedAt
4161
+ - lastSeenAt
4234
4162
  responses:
4235
4163
  "200":
4236
4164
  description: OK
@@ -4869,6 +4797,52 @@ paths:
4869
4797
  $ref: "#/components/schemas/BillingPortal"
4870
4798
  default:
4871
4799
  $ref: "#/components/responses/UnexpectedError"
4800
+ "/orgs/{organizationId}/billing/preview":
4801
+ get:
4802
+ operationId: previewBillingInvoice
4803
+ summary: Generates a billing invoice preview for organizations without an active subscription
4804
+ tags:
4805
+ - organizations
4806
+ security:
4807
+ - user-internal: []
4808
+ parameters:
4809
+ - $ref: "#/components/parameters/organizationId"
4810
+ - name: interval
4811
+ in: query
4812
+ required: true
4813
+ description: The desired billing interval plan
4814
+ schema:
4815
+ $ref: "#/components/schemas/BillingInterval"
4816
+ - name: product
4817
+ in: query
4818
+ required: true
4819
+ description: The desired core plan
4820
+ schema:
4821
+ $ref: "#/components/schemas/BillingProduct"
4822
+ - name: members
4823
+ in: query
4824
+ description: The desired amount of members in the organization
4825
+ schema:
4826
+ type: number
4827
+ - name: premiumSites
4828
+ in: query
4829
+ description: The desired amount of published premium sites
4830
+ schema:
4831
+ type: number
4832
+ - name: audienceSites
4833
+ in: query
4834
+ description: The desired amount of published audience sites
4835
+ schema:
4836
+ type: number
4837
+ responses:
4838
+ "200":
4839
+ description: OK
4840
+ content:
4841
+ application/json:
4842
+ schema:
4843
+ $ref: "#/components/schemas/BillingInvoicePreview"
4844
+ default:
4845
+ $ref: "#/components/responses/UnexpectedError"
4872
4846
  "/orgs/{organizationId}/request_upgrade":
4873
4847
  post:
4874
4848
  operationId: requestOrganizationUpgrade
@@ -5433,97 +5407,249 @@ paths:
5433
5407
  description: OK
5434
5408
  default:
5435
5409
  $ref: "#/components/responses/UnexpectedError"
5436
- "/orgs/{organizationId}/usage":
5410
+ "/orgs/{organizationId}/saml":
5437
5411
  get:
5438
- operationId: getUsageForOrganizationById
5439
- summary: Get all usage metrics for an organization
5412
+ operationId: listSAMLProvidersInOrganizationById
5413
+ summary: List organization SAML providers
5414
+ description: |
5415
+ Lists SAML providers configured for the specified organization.
5440
5416
  tags:
5441
5417
  - organizations
5442
- - usage
5443
5418
  security:
5444
- - user-internal: []
5419
+ - user: []
5445
5420
  parameters:
5446
5421
  - $ref: "#/components/parameters/organizationId"
5422
+ - $ref: "#/components/parameters/listPage"
5423
+ - $ref: "#/components/parameters/listLimit"
5447
5424
  responses:
5448
5425
  "200":
5449
5426
  description: OK
5450
5427
  content:
5451
5428
  application/json:
5452
5429
  schema:
5453
- $ref: "#/components/schemas/OrganizationUsage"
5430
+ allOf:
5431
+ - $ref: "#/components/schemas/List"
5432
+ - type: object
5433
+ required:
5434
+ - items
5435
+ properties:
5436
+ items:
5437
+ type: array
5438
+ items:
5439
+ $ref: "#/components/schemas/OrganizationSAMLProvider"
5454
5440
  default:
5455
5441
  $ref: "#/components/responses/UnexpectedError"
5456
- "/orgs/{organizationId}/usage/collections":
5457
- get:
5458
- operationId: getCollectionsUsageForOrganizationById
5459
- summary: Get collections usage metrics for an organization
5442
+ post:
5443
+ operationId: createOrganizationSAMLProvider
5444
+ summary: Create a new SAML provider in an orgamization
5460
5445
  tags:
5461
5446
  - organizations
5462
- - usage
5463
5447
  security:
5464
- - user-internal: []
5448
+ - user: []
5465
5449
  parameters:
5466
5450
  - $ref: "#/components/parameters/organizationId"
5451
+ requestBody:
5452
+ required: true
5453
+ content:
5454
+ application/json:
5455
+ schema:
5456
+ type: object
5457
+ properties:
5458
+ label:
5459
+ $ref: "#/components/schemas/SAMLProviderLabel"
5460
+ entityID:
5461
+ $ref: "#/components/schemas/SAMLProviderEntityID"
5462
+ certificate:
5463
+ $ref: "#/components/schemas/SAMLProviderCertificate"
5464
+ ssoURL:
5465
+ $ref: "#/components/schemas/URL"
5466
+ defaultTeam:
5467
+ type: string
5468
+ defaultRole:
5469
+ $ref: "#/components/schemas/MemberRoleOrGuest"
5470
+ required:
5471
+ - label
5467
5472
  responses:
5468
- "200":
5469
- description: OK
5473
+ "201":
5474
+ description: SAML Provider created
5475
+ headers:
5476
+ Location:
5477
+ description: API URL for the newly created SAML Provider
5478
+ schema:
5479
+ type: string
5470
5480
  content:
5471
5481
  application/json:
5472
5482
  schema:
5473
- type: object
5474
- properties:
5475
- collections:
5476
- $ref: "#/components/schemas/OrganizationUsageCollections"
5477
- required:
5478
- - collections
5483
+ $ref: "#/components/schemas/OrganizationSAMLProvider"
5479
5484
  default:
5480
5485
  $ref: "#/components/responses/UnexpectedError"
5481
- "/orgs/{organizationId}/usage/spaces":
5486
+ "/orgs/{organizationId}/saml/{samlProviderId}":
5482
5487
  get:
5483
- operationId: getSpacesUsageForOrganizationById
5484
- summary: Get spaces usage metrics for an organization
5488
+ operationId: getOrganizationSAMLProviderById
5489
+ summary: Get a SAML provider in an organization by its ID
5485
5490
  tags:
5486
5491
  - organizations
5487
- - usage
5488
5492
  security:
5489
- - user-internal: []
5493
+ - user: []
5490
5494
  parameters:
5491
5495
  - $ref: "#/components/parameters/organizationId"
5496
+ - $ref: "#/components/parameters/samlProviderId"
5492
5497
  responses:
5493
5498
  "200":
5494
5499
  description: OK
5495
5500
  content:
5496
5501
  application/json:
5497
5502
  schema:
5498
- type: object
5499
- properties:
5500
- spaces:
5501
- $ref: "#/components/schemas/OrganizationUsageSpaces"
5502
- required:
5503
- - spaces
5503
+ $ref: "#/components/schemas/OrganizationSAMLProvider"
5504
+ "404":
5505
+ description: No matching provider found
5506
+ $ref: "#/components/responses/NotFoundError"
5504
5507
  default:
5505
5508
  $ref: "#/components/responses/UnexpectedError"
5506
- "/orgs/{organizationId}/usage/sites":
5507
- get:
5508
- operationId: getSitesUsageForOrganizationById
5509
- summary: Get sites usage metrics for an organization
5509
+ patch:
5510
+ operationId: updateOrganizationSAMLProvider
5511
+ summary: Update a SAML provider in an organization
5510
5512
  tags:
5511
5513
  - organizations
5512
- - usage
5513
5514
  security:
5514
- - user-internal: []
5515
+ - user: []
5515
5516
  parameters:
5516
5517
  - $ref: "#/components/parameters/organizationId"
5517
- responses:
5518
- "200":
5519
- description: OK
5520
- content:
5521
- application/json:
5522
- schema:
5523
- type: object
5524
- properties:
5525
- sites:
5526
- $ref: "#/components/schemas/OrganizationUsageSites"
5518
+ - $ref: "#/components/parameters/samlProviderId"
5519
+ requestBody:
5520
+ required: true
5521
+ content:
5522
+ application/json:
5523
+ schema:
5524
+ type: object
5525
+ properties:
5526
+ label:
5527
+ $ref: "#/components/schemas/SAMLProviderLabel"
5528
+ entityID:
5529
+ $ref: "#/components/schemas/SAMLProviderEntityID"
5530
+ certificate:
5531
+ $ref: "#/components/schemas/SAMLProviderCertificate"
5532
+ ssoURL:
5533
+ $ref: "#/components/schemas/URL"
5534
+ defaultTeam:
5535
+ type: string
5536
+ defaultRole:
5537
+ $ref: "#/components/schemas/MemberRoleOrGuest"
5538
+ responses:
5539
+ "200":
5540
+ description: SAML provider has been updated
5541
+ content:
5542
+ application/json:
5543
+ schema:
5544
+ $ref: "#/components/schemas/OrganizationSAMLProvider"
5545
+ default:
5546
+ $ref: "#/components/responses/UnexpectedError"
5547
+ delete:
5548
+ operationId: deleteOrganizationSAMLProvider
5549
+ summary: Delete a SAML provider in an organization
5550
+ tags:
5551
+ - organizations
5552
+ security:
5553
+ - user: []
5554
+ parameters:
5555
+ - $ref: "#/components/parameters/organizationId"
5556
+ - $ref: "#/components/parameters/samlProviderId"
5557
+ responses:
5558
+ "204":
5559
+ description: SAML provider has been deleted
5560
+ default:
5561
+ $ref: "#/components/responses/UnexpectedError"
5562
+ "/orgs/{organizationId}/usage":
5563
+ get:
5564
+ operationId: getUsageForOrganizationById
5565
+ summary: Get all usage metrics for an organization
5566
+ tags:
5567
+ - organizations
5568
+ - usage
5569
+ security:
5570
+ - user-internal: []
5571
+ parameters:
5572
+ - $ref: "#/components/parameters/organizationId"
5573
+ responses:
5574
+ "200":
5575
+ description: OK
5576
+ content:
5577
+ application/json:
5578
+ schema:
5579
+ $ref: "#/components/schemas/OrganizationUsage"
5580
+ default:
5581
+ $ref: "#/components/responses/UnexpectedError"
5582
+ "/orgs/{organizationId}/usage/collections":
5583
+ get:
5584
+ operationId: getCollectionsUsageForOrganizationById
5585
+ summary: Get collections usage metrics for an organization
5586
+ tags:
5587
+ - organizations
5588
+ - usage
5589
+ security:
5590
+ - user-internal: []
5591
+ parameters:
5592
+ - $ref: "#/components/parameters/organizationId"
5593
+ responses:
5594
+ "200":
5595
+ description: OK
5596
+ content:
5597
+ application/json:
5598
+ schema:
5599
+ type: object
5600
+ properties:
5601
+ collections:
5602
+ $ref: "#/components/schemas/OrganizationUsageCollections"
5603
+ required:
5604
+ - collections
5605
+ default:
5606
+ $ref: "#/components/responses/UnexpectedError"
5607
+ "/orgs/{organizationId}/usage/spaces":
5608
+ get:
5609
+ operationId: getSpacesUsageForOrganizationById
5610
+ summary: Get spaces usage metrics for an organization
5611
+ tags:
5612
+ - organizations
5613
+ - usage
5614
+ security:
5615
+ - user-internal: []
5616
+ parameters:
5617
+ - $ref: "#/components/parameters/organizationId"
5618
+ responses:
5619
+ "200":
5620
+ description: OK
5621
+ content:
5622
+ application/json:
5623
+ schema:
5624
+ type: object
5625
+ properties:
5626
+ spaces:
5627
+ $ref: "#/components/schemas/OrganizationUsageSpaces"
5628
+ required:
5629
+ - spaces
5630
+ default:
5631
+ $ref: "#/components/responses/UnexpectedError"
5632
+ "/orgs/{organizationId}/usage/sites":
5633
+ get:
5634
+ operationId: getSitesUsageForOrganizationById
5635
+ summary: Get sites usage metrics for an organization
5636
+ tags:
5637
+ - organizations
5638
+ - usage
5639
+ security:
5640
+ - user-internal: []
5641
+ parameters:
5642
+ - $ref: "#/components/parameters/organizationId"
5643
+ responses:
5644
+ "200":
5645
+ description: OK
5646
+ content:
5647
+ application/json:
5648
+ schema:
5649
+ type: object
5650
+ properties:
5651
+ sites:
5652
+ $ref: "#/components/schemas/OrganizationUsageSites"
5527
5653
  required:
5528
5654
  - sites
5529
5655
  default:
@@ -6013,6 +6139,35 @@ paths:
6013
6139
  default:
6014
6140
  $ref: "#/components/responses/UnexpectedError"
6015
6141
  "/orgs/{organizationId}/synced-blocks":
6142
+ get:
6143
+ operationId: listSyncedBlocks
6144
+ summary: List all the synced blocks created in an organization
6145
+ tags:
6146
+ - organizations
6147
+ security:
6148
+ - user: []
6149
+ parameters:
6150
+ - $ref: "#/components/parameters/organizationId"
6151
+ - $ref: "#/components/parameters/listPage"
6152
+ - $ref: "#/components/parameters/listLimit"
6153
+ responses:
6154
+ "200":
6155
+ description: OK
6156
+ content:
6157
+ application/json:
6158
+ schema:
6159
+ allOf:
6160
+ - $ref: "#/components/schemas/List"
6161
+ - type: object
6162
+ required:
6163
+ - items
6164
+ properties:
6165
+ items:
6166
+ type: array
6167
+ items:
6168
+ $ref: "#/components/schemas/SyncedBlock"
6169
+ default:
6170
+ $ref: "#/components/responses/UnexpectedError"
6016
6171
  post:
6017
6172
  operationId: createSyncedBlock
6018
6173
  summary: Create a new synced block
@@ -6156,6 +6311,37 @@ paths:
6156
6311
  $ref: "#/components/schemas/ContentLocation"
6157
6312
  default:
6158
6313
  $ref: "#/components/responses/UnexpectedError"
6314
+ "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/usage/spaces":
6315
+ get:
6316
+ operationId: listSyncedBlockSpaces
6317
+ summary: Get a list of spaces that reference this synced block.
6318
+ tags:
6319
+ - organizations
6320
+ security:
6321
+ - user: []
6322
+ parameters:
6323
+ - $ref: "#/components/parameters/organizationId"
6324
+ - $ref: "#/components/parameters/syncedBlockId"
6325
+ - $ref: "#/components/parameters/listPage"
6326
+ - $ref: "#/components/parameters/listLimit"
6327
+ responses:
6328
+ "200":
6329
+ description: OK
6330
+ content:
6331
+ application/json:
6332
+ schema:
6333
+ allOf:
6334
+ - $ref: "#/components/schemas/List"
6335
+ - type: object
6336
+ required:
6337
+ - items
6338
+ properties:
6339
+ items:
6340
+ type: array
6341
+ items:
6342
+ $ref: "#/components/schemas/Space"
6343
+ default:
6344
+ $ref: "#/components/responses/UnexpectedError"
6159
6345
  "/orgs/{organizationId}/ask":
6160
6346
  post:
6161
6347
  operationId: askInOrganization
@@ -6250,163 +6436,36 @@ paths:
6250
6436
  $ref: "#/components/schemas/SearchAIAnswerStream"
6251
6437
  default:
6252
6438
  $ref: "#/components/responses/UnexpectedError"
6253
- "/orgs/{organizationId}/insights/audit-relations":
6439
+ "/orgs/{organizationId}/sites":
6254
6440
  get:
6255
- operationId: listContentAuditRelations
6256
- summary: List the content relations for in a given organization.
6441
+ operationId: listSites
6442
+ summary: List all the sites created in an organization
6257
6443
  tags:
6258
- - ai
6259
- - spaces
6444
+ - sites
6260
6445
  security:
6261
6446
  - user: []
6262
6447
  parameters:
6263
6448
  - $ref: "#/components/parameters/organizationId"
6264
6449
  - $ref: "#/components/parameters/listPage"
6265
6450
  - $ref: "#/components/parameters/listLimit"
6266
- - name: status
6267
- in: query
6268
- required: false
6269
- description: Status of the audit relation to filter on
6270
- schema:
6271
- default: pending
6272
- oneOf:
6273
- - $ref: "#/components/schemas/ContentAuditRelationStatus"
6274
- - type: string
6275
- enum:
6276
- - all
6277
6451
  - name: space
6278
6452
  in: query
6453
+ description: Identifier of the space to filter the sites by
6279
6454
  required: false
6280
- description: Space concerned by the relation
6281
6455
  schema:
6282
6456
  type: string
6283
- - name: type
6457
+ - name: title
6284
6458
  in: query
6459
+ description: Filter sites by their title
6285
6460
  required: false
6286
- description: Type of the audit relation to filter on
6287
- schema:
6288
- default: all
6289
- oneOf:
6290
- - $ref: "#/components/schemas/ContentAuditRelationType"
6291
- - type: string
6292
- enum:
6293
- - all
6294
- responses:
6295
- "200":
6296
- description: Content audit relations
6297
- content:
6298
- application/json:
6299
- schema:
6300
- allOf:
6301
- - $ref: "#/components/schemas/List"
6302
- - type: object
6303
- required:
6304
- - items
6305
- properties:
6306
- items:
6307
- type: array
6308
- items:
6309
- $ref: "#/components/schemas/ContentAuditRelation"
6310
- default:
6311
- $ref: "#/components/responses/UnexpectedError"
6312
- "/orgs/{organizationId}/insights/audit-relations/{relationId}":
6313
- get:
6314
- operationId: getContentAuditRelationById
6315
- summary: Get an audit relation by ID
6316
- tags:
6317
- - organizations
6318
- security:
6319
- - user: []
6320
- parameters:
6321
- - $ref: "#/components/parameters/organizationId"
6322
- - $ref: "#/components/parameters/relationId"
6323
- responses:
6324
- "200":
6325
- description: OK
6326
- content:
6327
- application/json:
6328
- schema:
6329
- $ref: "#/components/schemas/ContentAuditRelation"
6330
- "404":
6331
- description: No matching content relation found for given ID
6332
- $ref: "#/components/responses/NotFoundError"
6333
- default:
6334
- $ref: "#/components/responses/UnexpectedError"
6335
- patch:
6336
- operationId: updateContentAuditRelationStatusById
6337
- summary: Update an audit relation status
6338
- tags:
6339
- - organizations
6340
- security:
6341
- - user: []
6342
- parameters:
6343
- - $ref: "#/components/parameters/organizationId"
6344
- - $ref: "#/components/parameters/relationId"
6345
- requestBody:
6346
- required: true
6347
- content:
6348
- application/json:
6349
- schema:
6350
- $ref: "#/components/schemas/ContentAuditRelationStatusUpdate"
6351
- responses:
6352
- "200":
6353
- description: OK
6354
- content:
6355
- application/json:
6356
- schema:
6357
- $ref: "#/components/schemas/ContentAuditRelation"
6358
- "404":
6359
- description: No matching content relation found for given ID
6360
- $ref: "#/components/responses/NotFoundError"
6361
- default:
6362
- $ref: "#/components/responses/UnexpectedError"
6363
- "/orgs/{organizationId}/insights/audit-sources/{sourceId}/content":
6364
- get:
6365
- operationId: getContentAuditSourceContentById
6366
- summary: Get the content of an audit source
6367
- tags:
6368
- - organizations
6369
- security:
6370
- - user: []
6371
- parameters:
6372
- - $ref: "#/components/parameters/organizationId"
6373
- - name: sourceId
6374
- in: path
6375
- required: true
6376
- description: The id of the content audit source
6377
6461
  schema:
6378
6462
  type: string
6379
- - $ref: "#/components/parameters/documentFormat"
6380
- responses:
6381
- "200":
6382
- description: OK
6383
- content:
6384
- application/json:
6385
- schema:
6386
- $ref: "#/components/schemas/Document"
6387
- "404":
6388
- description: No matching content source found for given ID
6389
- $ref: "#/components/responses/NotFoundError"
6390
- default:
6391
- $ref: "#/components/responses/UnexpectedError"
6392
- "/orgs/{organizationId}/sites":
6393
- get:
6394
- operationId: listSites
6395
- summary: List all the sites created in an organization
6396
- tags:
6397
- - sites
6398
- security:
6399
- - user: []
6400
- parameters:
6401
- - $ref: "#/components/parameters/organizationId"
6402
- - $ref: "#/components/parameters/listPage"
6403
- - $ref: "#/components/parameters/listLimit"
6404
- - name: space
6463
+ - name: published
6405
6464
  in: query
6406
- description: Identifier of the space to filter the sites by
6465
+ description: Filter sites by their published status
6407
6466
  required: false
6408
6467
  schema:
6409
- type: string
6468
+ type: boolean
6410
6469
  responses:
6411
6470
  "200":
6412
6471
  description: OK
@@ -6472,6 +6531,31 @@ paths:
6472
6531
  $ref: "#/components/schemas/Site"
6473
6532
  default:
6474
6533
  $ref: "#/components/responses/UnexpectedError"
6534
+ "/orgs/{organizationId}/sites/publishing/checkout":
6535
+ get:
6536
+ operationId: previewSitePublishCheckout
6537
+ summary: Preview checkout information upon publishing a site in the organization.
6538
+ tags:
6539
+ - sites
6540
+ security:
6541
+ - user-internal: []
6542
+ parameters:
6543
+ - $ref: "#/components/parameters/organizationId"
6544
+ - in: query
6545
+ name: plan
6546
+ description: The plan of the site to preview the checkout information for.
6547
+ required: true
6548
+ schema:
6549
+ $ref: "#/components/schemas/SiteType"
6550
+ responses:
6551
+ "200":
6552
+ description: OK
6553
+ content:
6554
+ application/json:
6555
+ schema:
6556
+ $ref: "#/components/schemas/BillingOperationPreviewResponse"
6557
+ default:
6558
+ $ref: "#/components/responses/UnexpectedError"
6475
6559
  "/orgs/{organizationId}/sites/{siteId}":
6476
6560
  get:
6477
6561
  operationId: getSiteById
@@ -6815,99 +6899,7 @@ paths:
6815
6899
  content:
6816
6900
  application/json:
6817
6901
  schema:
6818
- oneOf:
6819
- - type: object
6820
- properties:
6821
- type:
6822
- description: User can go ahead with the update without any billing.
6823
- type: string
6824
- enum:
6825
- - update
6826
- required:
6827
- - type
6828
- - type: object
6829
- properties:
6830
- type:
6831
- description: User must checkout to complete the update.
6832
- type: string
6833
- enum:
6834
- - checkout
6835
- required:
6836
- - type
6837
- - type: object
6838
- properties:
6839
- type:
6840
- description: User cannot proceed with the update due to lack of permissions.
6841
- type: string
6842
- enum:
6843
- - no-permissions
6844
- required:
6845
- - type
6846
- - type: object
6847
- properties:
6848
- type:
6849
- description: User needs to go through the legacy update flow.
6850
- type: string
6851
- enum:
6852
- - legacy-upgrade
6853
- plan:
6854
- description: The plan the user must upgrade to.
6855
- $ref: "#/components/schemas/BillingProduct"
6856
- invoice:
6857
- $ref: "#/components/schemas/BillingInvoicePreview"
6858
- required:
6859
- - type
6860
- - plan
6861
- "404":
6862
- description: No matching site found
6863
- $ref: "#/components/responses/NotFoundError"
6864
- default:
6865
- $ref: "#/components/responses/UnexpectedError"
6866
- "/orgs/{organizationId}/sites/{siteId}/publishing/checkout":
6867
- get:
6868
- operationId: previewSitePublish
6869
- summary: Preview publishing a site, returning checkout information.
6870
- tags:
6871
- - sites
6872
- security:
6873
- - user-internal: []
6874
- parameters:
6875
- - $ref: "#/components/parameters/organizationId"
6876
- - $ref: "#/components/parameters/siteId"
6877
- responses:
6878
- "200":
6879
- description: OK
6880
- content:
6881
- application/json:
6882
- schema:
6883
- oneOf:
6884
- - type: object
6885
- properties:
6886
- type:
6887
- description: User can publish the site without any billing.
6888
- type: string
6889
- enum:
6890
- - publish
6891
- required:
6892
- - type
6893
- - type: object
6894
- properties:
6895
- type:
6896
- description: User must complete a checkout before publishing.
6897
- type: string
6898
- enum:
6899
- - checkout
6900
- required:
6901
- - type
6902
- - type: object
6903
- properties:
6904
- type:
6905
- description: User cannot publish due to lack of permissions.
6906
- type: string
6907
- enum:
6908
- - no-permissions
6909
- required:
6910
- - type
6902
+ $ref: "#/components/schemas/BillingOperationPreviewResponse"
6911
6903
  "404":
6912
6904
  description: No matching site found
6913
6905
  $ref: "#/components/responses/NotFoundError"
@@ -7194,6 +7186,11 @@ paths:
7194
7186
  - $ref: "#/components/parameters/siteShareKey"
7195
7187
  - $ref: "#/components/parameters/listPage"
7196
7188
  - $ref: "#/components/parameters/listLimit"
7189
+ - name: default
7190
+ in: query
7191
+ description: If true, only the default site space will be returned. If false, only the non-default site spaces are returned. If undefined, all site spaces are returned.
7192
+ schema:
7193
+ type: boolean
7197
7194
  responses:
7198
7195
  "200":
7199
7196
  description: OK
@@ -7574,6 +7571,26 @@ paths:
7574
7571
  description: OK
7575
7572
  default:
7576
7573
  $ref: "#/components/responses/UnexpectedError"
7574
+ "/orgs/{organizationId}/sites/{siteId}/ads/stats":
7575
+ post:
7576
+ operationId: getSiteAdsStatsById
7577
+ summary: Get the stats about Ads on a site.
7578
+ tags:
7579
+ - sites
7580
+ security:
7581
+ - user: []
7582
+ parameters:
7583
+ - $ref: "#/components/parameters/organizationId"
7584
+ - $ref: "#/components/parameters/siteId"
7585
+ responses:
7586
+ "200":
7587
+ description: OK
7588
+ content:
7589
+ application/json:
7590
+ schema:
7591
+ $ref: "#/components/schemas/SiteAdsStats"
7592
+ default:
7593
+ $ref: "#/components/responses/UnexpectedError"
7577
7594
  "/custom-hostnames/{hostname}":
7578
7595
  get:
7579
7596
  operationId: getCustomHostname
@@ -7733,15 +7750,18 @@ paths:
7733
7750
  type: object
7734
7751
  required:
7735
7752
  - id
7736
- - ads
7737
7753
  - url
7754
+ - email
7755
+ - topic
7738
7756
  properties:
7739
7757
  id:
7740
7758
  type: string
7741
7759
  url:
7742
7760
  type: string
7743
- ads:
7744
- $ref: "#/components/schemas/SiteAds"
7761
+ email:
7762
+ type: string
7763
+ topic:
7764
+ $ref: "#/components/schemas/SiteAdsTopic"
7745
7765
  default:
7746
7766
  $ref: "#/components/responses/UnexpectedError"
7747
7767
  "/ads/sites/{siteId}":
@@ -7750,8 +7770,6 @@ paths:
7750
7770
  summary: Update the Ads configuration for a site
7751
7771
  tags:
7752
7772
  - ads
7753
- security:
7754
- - user: []
7755
7773
  parameters:
7756
7774
  - $ref: "#/components/parameters/siteId"
7757
7775
  - $ref: "#/components/parameters/xGitBookPartnerKey"
@@ -7924,9 +7942,7 @@ paths:
7924
7942
  content:
7925
7943
  application/json:
7926
7944
  schema:
7927
- oneOf:
7928
- - $ref: "#/components/schemas/PublishedContentLookup"
7929
- - $ref: "#/components/schemas/PublishedSiteContentLookup"
7945
+ $ref: "#/components/schemas/PublishedSiteContentLookup"
7930
7946
  "404":
7931
7947
  description: No content found for the URL.
7932
7948
  $ref: "#/components/responses/NotFoundError"
@@ -8000,6 +8016,13 @@ components:
8000
8016
  description: For sites published via share-links, the share key is useful to resolve published URLs.
8001
8017
  schema:
8002
8018
  type: string
8019
+ teamId:
8020
+ name: teamId
8021
+ in: path
8022
+ required: true
8023
+ description: The unique ID of the Team
8024
+ schema:
8025
+ type: string
8003
8026
  revisionMetadata:
8004
8027
  name: metadata
8005
8028
  in: query
@@ -8157,18 +8180,18 @@ components:
8157
8180
  description: The unique id of the organization
8158
8181
  schema:
8159
8182
  type: string
8160
- teamId:
8161
- name: teamId
8183
+ inviteId:
8184
+ name: inviteId
8162
8185
  in: path
8163
8186
  required: true
8164
- description: The unique ID of the Team
8187
+ description: The unique id of the invite
8165
8188
  schema:
8166
8189
  type: string
8167
- inviteId:
8168
- name: inviteId
8190
+ samlProviderId:
8191
+ name: samlProviderId
8169
8192
  in: path
8170
8193
  required: true
8171
- description: The unique id of the invite
8194
+ description: The unique id of the SAML provider
8172
8195
  schema:
8173
8196
  type: string
8174
8197
  captureId:
@@ -8199,13 +8222,6 @@ components:
8199
8222
  description: The unique id of a synced block
8200
8223
  schema:
8201
8224
  type: string
8202
- relationId:
8203
- name: relationId
8204
- in: path
8205
- required: true
8206
- description: The id of the content audit relation
8207
- schema:
8208
- type: string
8209
8225
  siteCustomizationUnmasked:
8210
8226
  name: unmasked
8211
8227
  in: query
@@ -10998,6 +11014,15 @@ components:
10998
11014
  hidden:
10999
11015
  type: boolean
11000
11016
  description: If true, the page is not displayed in the navigation, while still being accessible.
11017
+ default: false
11018
+ noIndex:
11019
+ type: boolean
11020
+ description: If true, the page is not indexable in the search and ask features.
11021
+ default: false
11022
+ noRobotsIndex:
11023
+ type: boolean
11024
+ description: If true, the page is not indexable by search engine robots.
11025
+ default: false
11001
11026
  required:
11002
11027
  - kind
11003
11028
  - type
@@ -11024,6 +11049,10 @@ components:
11024
11049
  $ref: "#/components/schemas/ContentRef"
11025
11050
  href:
11026
11051
  type: string
11052
+ hidden:
11053
+ type: boolean
11054
+ description: If true, the page is not displayed in the navigation, while still being accessible.
11055
+ default: false
11027
11056
  required:
11028
11057
  - kind
11029
11058
  - type
@@ -11253,6 +11282,20 @@ components:
11253
11282
  - visitor
11254
11283
  - url
11255
11284
  - referrer
11285
+ InviteEmailsUsersTeamsToSpace:
11286
+ type: object
11287
+ properties:
11288
+ teams:
11289
+ type: array
11290
+ items:
11291
+ type: string
11292
+ description: The ID of the team to be invited
11293
+ role:
11294
+ description: Role to set on the team.
11295
+ $ref: "#/components/schemas/MemberRoleOrGuest"
11296
+ required:
11297
+ - teams
11298
+ - role
11256
11299
  RevisionPageGroup:
11257
11300
  allOf:
11258
11301
  - $ref: "#/components/schemas/RevisionPageBase"
@@ -11276,6 +11319,15 @@ components:
11276
11319
  hidden:
11277
11320
  type: boolean
11278
11321
  description: If true, the page is not displayed in the navigation, while still being accessible.
11322
+ default: false
11323
+ noIndex:
11324
+ type: boolean
11325
+ description: If true, the page is not indexable in the search and ask features.
11326
+ default: false
11327
+ noRobotsIndex:
11328
+ type: boolean
11329
+ description: If true, the page is not indexable by search engine robots.
11330
+ default: false
11279
11331
  pages:
11280
11332
  type: array
11281
11333
  items:
@@ -11661,9 +11713,6 @@ components:
11661
11713
  ai:
11662
11714
  description: If true, the organization is configured to use all our AI features.
11663
11715
  type: boolean
11664
- aiInsights:
11665
- description: If true, the organization is configured to run content audits on any space update
11666
- type: boolean
11667
11716
  urls:
11668
11717
  type: object
11669
11718
  description: URLs associated with the object
@@ -12353,6 +12402,15 @@ components:
12353
12402
  type: string
12354
12403
  description: Title describing the synced block.
12355
12404
  maxLength: 100
12405
+ usage:
12406
+ type: object
12407
+ description: Usage of synced block
12408
+ properties:
12409
+ spaces:
12410
+ description: Number of spaces where the synced block is used in
12411
+ type: integer
12412
+ required:
12413
+ - spaces
12356
12414
  urls:
12357
12415
  type: object
12358
12416
  description: URLs associated with the object
@@ -12367,6 +12425,7 @@ components:
12367
12425
  - organization
12368
12426
  - source
12369
12427
  - createdAt
12428
+ - usage
12370
12429
  - urls
12371
12430
  ContentLocationSyncedBlock:
12372
12431
  type: object
@@ -13206,6 +13265,7 @@ components:
13206
13265
  - zh
13207
13266
  - ja
13208
13267
  - de
13268
+ - nl
13209
13269
  - pt-br
13210
13270
  CustomizationThemedURL:
13211
13271
  type: object
@@ -13430,35 +13490,6 @@ components:
13430
13490
  - git
13431
13491
  - privacyPolicy
13432
13492
  - socialPreview
13433
- ContentPublishingAuth:
13434
- type: object
13435
- properties:
13436
- object:
13437
- type: string
13438
- description: Type of Object, always equals to "publishing-auth"
13439
- enum:
13440
- - publishing-auth
13441
- id:
13442
- type: string
13443
- description: Unique identifier for the content.
13444
- privateKey:
13445
- type: string
13446
- description: Private key used to sign JWT tokens.
13447
- fallbackURL:
13448
- type: string
13449
- format: uri
13450
- description: URL to redirect to when the visitor auth secret is invalid.
13451
- required:
13452
- - object
13453
- - id
13454
- - privateKey
13455
- UpdateContentPublishingAuth:
13456
- type: object
13457
- properties:
13458
- fallbackURL:
13459
- type: string
13460
- format: uri
13461
- description: A fallback URL that will be used if authentication fails.
13462
13493
  SpaceIntegrationBlocks:
13463
13494
  type: array
13464
13495
  items:
@@ -15601,6 +15632,26 @@ components:
15601
15632
  $ref: "#/components/schemas/BillingProduct"
15602
15633
  interval:
15603
15634
  $ref: "#/components/schemas/BillingInterval"
15635
+ exclude:
15636
+ type: object
15637
+ description: Members to remove or sites to unpublish before upgrading
15638
+ minProperties: 1
15639
+ properties:
15640
+ members:
15641
+ type: array
15642
+ items:
15643
+ type: string
15644
+ description: A list of member identifiers to be removed
15645
+ premiumSites:
15646
+ type: array
15647
+ items:
15648
+ type: string
15649
+ description: A list of premium site identifiers to be unpublished
15650
+ audienceSites:
15651
+ type: array
15652
+ items:
15653
+ type: string
15654
+ description: A list of audience site identifiers to be unpublished
15604
15655
  reason:
15605
15656
  type: string
15606
15657
  description: Reason that triggered the billing upgrade
@@ -15743,14 +15794,88 @@ components:
15743
15794
  stage:
15744
15795
  type: string
15745
15796
  enum:
15746
- - alpha
15747
- - beta
15797
+ - alpha
15798
+ - beta
15799
+ required:
15800
+ - id
15801
+ - title
15802
+ - description
15803
+ - enabled
15804
+ - stage
15805
+ SAMLProviderLabel:
15806
+ type: string
15807
+ minLength: 1
15808
+ maxLength: 30
15809
+ SAMLProviderEntityID:
15810
+ type: string
15811
+ maxLength: 1024
15812
+ SAMLProviderCertificate:
15813
+ type: string
15814
+ maxLength: 10000
15815
+ OrganizationSAMLProvider:
15816
+ type: object
15817
+ properties:
15818
+ object:
15819
+ type: string
15820
+ description: Type of Object, always equals to "saml-provider"
15821
+ enum:
15822
+ - saml-provider
15823
+ id:
15824
+ type: string
15825
+ description: Unique identifier for the provider.
15826
+ label:
15827
+ $ref: "#/components/schemas/SAMLProviderLabel"
15828
+ ssoURL:
15829
+ $ref: "#/components/schemas/URL"
15830
+ entityID:
15831
+ $ref: "#/components/schemas/SAMLProviderEntityID"
15832
+ certificate:
15833
+ $ref: "#/components/schemas/SAMLProviderCertificate"
15834
+ defaultTeam:
15835
+ $ref: "#/components/schemas/OrganizationTeam"
15836
+ defaultRole:
15837
+ $ref: "#/components/schemas/MemberRoleOrGuest"
15838
+ createdAt:
15839
+ description: Date at which the provider was created.
15840
+ $ref: "#/components/schemas/Timestamp"
15841
+ service:
15842
+ description: Metadata about the service provider.
15843
+ properties:
15844
+ acsURL:
15845
+ type: string
15846
+ description: Assertion Consumer Service (ACS) URL
15847
+ format: uri
15848
+ startURL:
15849
+ type: string
15850
+ description: Start URL for the Identity Provider
15851
+ format: uri
15852
+ entityID:
15853
+ $ref: "#/components/schemas/SAMLProviderEntityID"
15854
+ required:
15855
+ - acsURL
15856
+ - startURL
15857
+ - entityID
15858
+ urls:
15859
+ type: object
15860
+ description: URLs associated with the object
15861
+ properties:
15862
+ location:
15863
+ type: string
15864
+ description: URL of the SAML Provider in the API
15865
+ format: uri
15866
+ required:
15867
+ - location
15748
15868
  required:
15869
+ - object
15749
15870
  - id
15750
- - title
15751
- - description
15752
- - enabled
15753
- - stage
15871
+ - label
15872
+ - ssoURL
15873
+ - entityID
15874
+ - certificate
15875
+ - defaultRole
15876
+ - createdAt
15877
+ - service
15878
+ - urls
15754
15879
  OrganizationUsageSpaces:
15755
15880
  type: object
15756
15881
  description: Spaces usage metrics of an organization
@@ -16114,83 +16239,13 @@ components:
16114
16239
  title:
16115
16240
  type: string
16116
16241
  description: A new title for the snippet.
16117
- ContentAuditRelationStatus:
16118
- description: Status of the audit relation to filter on
16119
- type: string
16120
- enum:
16121
- - pending
16122
- - rejected
16123
- ContentAuditRelationType:
16124
- description: The type of the relation between the sources
16125
- type: string
16126
- enum:
16127
- - contradiction
16128
- - duplicate
16129
- ContentAuditSourceSection:
16130
- type: object
16131
- description: A GitBook section source
16132
- properties:
16133
- id:
16134
- type: string
16135
- type:
16136
- type: string
16137
- enum:
16138
- - section
16139
- space:
16140
- $ref: "#/components/schemas/Space"
16141
- page:
16142
- $ref: "#/components/schemas/RevisionPageDocument"
16143
- required:
16144
- - id
16145
- - type
16146
- - space
16147
- - page
16148
- ContentAuditSource:
16149
- oneOf:
16150
- - $ref: "#/components/schemas/ContentAuditSourceSection"
16151
- ContentAuditRelation:
16152
- type: object
16153
- description: Content audit relation
16154
- properties:
16155
- id:
16156
- type: string
16157
- sources:
16158
- description: The sources that are related
16159
- type: array
16160
- items:
16161
- $ref: "#/components/schemas/ContentAuditSource"
16162
- type:
16163
- description: The type of the relation between the sources
16164
- $ref: "#/components/schemas/ContentAuditRelationType"
16165
- reason:
16166
- type: string
16167
- description: A human readable description of the reason for the relation
16168
- status:
16169
- description: The status of the relation
16170
- $ref: "#/components/schemas/ContentAuditRelationStatus"
16171
- createdAt:
16172
- description: The date at which the relation was created
16173
- $ref: "#/components/schemas/Timestamp"
16174
- required:
16175
- - id
16176
- - sources
16177
- - type
16178
- - status
16179
- - createdAt
16180
- ContentAuditRelationStatusUpdate:
16181
- type: object
16182
- properties:
16183
- status:
16184
- $ref: "#/components/schemas/ContentAuditRelationStatus"
16185
- required:
16186
- - status
16187
16242
  SiteType:
16188
16243
  type: string
16189
16244
  description: The type of the site
16190
16245
  enum:
16191
16246
  - basic
16192
- - standard
16193
16247
  - premium
16248
+ - audience
16194
16249
  - legacy-basic
16195
16250
  - legacy-premium
16196
16251
  SiteTitle:
@@ -16252,9 +16307,6 @@ components:
16252
16307
  - in-review
16253
16308
  topic:
16254
16309
  $ref: "#/components/schemas/SiteAdsTopic"
16255
- accountEmail:
16256
- type: string
16257
- description: The email address linked to the Ads partner account
16258
16310
  - type: object
16259
16311
  required:
16260
16312
  - status
@@ -16268,7 +16320,6 @@ components:
16268
16320
  - status
16269
16321
  - topic
16270
16322
  - zoneId
16271
- - accountEmail
16272
16323
  properties:
16273
16324
  status:
16274
16325
  type: string
@@ -16280,9 +16331,6 @@ components:
16280
16331
  zoneId:
16281
16332
  type: string
16282
16333
  description: The ad network zone ID
16283
- accountEmail:
16284
- type: string
16285
- description: The email address linked to the Ads partner account
16286
16334
  Site:
16287
16335
  type: object
16288
16336
  properties:
@@ -16343,6 +16391,63 @@ components:
16343
16391
  - siteSpaces
16344
16392
  - defaultSpace
16345
16393
  - urls
16394
+ BillingOperationPreviewResponse:
16395
+ description: |
16396
+ 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.
16397
+ oneOf:
16398
+ - type: object
16399
+ properties:
16400
+ type:
16401
+ description: User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes.
16402
+ type: string
16403
+ enum:
16404
+ - go-ahead
16405
+ required:
16406
+ - type
16407
+ - type: object
16408
+ properties:
16409
+ type:
16410
+ description: By going ahead with this operation, the user will be starting a trial in GitBook.
16411
+ type: string
16412
+ enum:
16413
+ - trial-available
16414
+ required:
16415
+ - type
16416
+ - type: object
16417
+ properties:
16418
+ type:
16419
+ description: User must checkout to complete the operation.
16420
+ type: string
16421
+ enum:
16422
+ - checkout
16423
+ invoice:
16424
+ $ref: "#/components/schemas/BillingInvoicePreview"
16425
+ required:
16426
+ - type
16427
+ - type: object
16428
+ properties:
16429
+ type:
16430
+ description: User cannot proceed with the operation due to lack of permissions.
16431
+ type: string
16432
+ enum:
16433
+ - no-permissions
16434
+ required:
16435
+ - type
16436
+ - type: object
16437
+ properties:
16438
+ type:
16439
+ description: User needs to go through the legacy upgrade flow.
16440
+ type: string
16441
+ enum:
16442
+ - legacy-upgrade
16443
+ plan:
16444
+ description: The plan the user must upgrade to.
16445
+ $ref: "#/components/schemas/BillingProduct"
16446
+ invoice:
16447
+ $ref: "#/components/schemas/BillingInvoicePreview"
16448
+ required:
16449
+ - type
16450
+ - plan
16346
16451
  SitePublishingAuth:
16347
16452
  allOf:
16348
16453
  - oneOf:
@@ -16959,6 +17064,32 @@ components:
16959
17064
  - url
16960
17065
  - referrer
16961
17066
  - spaceId
17067
+ SiteAdsStats:
17068
+ type: object
17069
+ required:
17070
+ - impressions
17071
+ - clicks
17072
+ - revenue
17073
+ - account
17074
+ properties:
17075
+ impressions:
17076
+ type: number
17077
+ clicks:
17078
+ type: number
17079
+ revenue:
17080
+ type: string
17081
+ account:
17082
+ type: object
17083
+ properties:
17084
+ email:
17085
+ type: string
17086
+ description: Email address on the Ads platform.
17087
+ url:
17088
+ type: string
17089
+ description: URL to configure payout.
17090
+ required:
17091
+ - email
17092
+ - url
16962
17093
  CustomHostnameDnsStatus:
16963
17094
  type: string
16964
17095
  enum:
@@ -17193,50 +17324,6 @@ components:
17193
17324
  required:
17194
17325
  - id
17195
17326
  - searchKey
17196
- UserRiskEvaluation:
17197
- type: object
17198
- description: The GitBook User risk evaluation.
17199
- properties:
17200
- wasRisky:
17201
- description: True if the user was originally considered as risky
17202
- type: boolean
17203
- isRisky:
17204
- description: True if the user is currently considered as risky
17205
- type: boolean
17206
- isVerified:
17207
- description: True if the user went through the verification process
17208
- type: boolean
17209
- riskScore:
17210
- description: Risk score of the user
17211
- type: number
17212
- completedSteps:
17213
- description: Number of verification steps completed by the user
17214
- type: number
17215
- expectedSteps:
17216
- description: Total number of verification steps expected
17217
- type: number
17218
- googleLogin:
17219
- description: User completed the Google Account verification step
17220
- type: boolean
17221
- githubLogin:
17222
- description: User completed the GitHub Account verification step
17223
- type: boolean
17224
- emailVerified:
17225
- description: User completed the Email verification step
17226
- type: boolean
17227
- activeDaysRemaining:
17228
- type: number
17229
- required:
17230
- - wasRisky
17231
- - isRisky
17232
- - isVerified
17233
- - riskScore
17234
- - completedSteps
17235
- - expectedSteps
17236
- - googleLogin
17237
- - githubLogin
17238
- - emailVerified
17239
- - activeDaysRemaining
17240
17327
  FirebaseUserInfo:
17241
17328
  type: object
17242
17329
  description: The User Firebase Auth Info.
@@ -17261,8 +17348,6 @@ components:
17261
17348
  properties:
17262
17349
  id:
17263
17350
  type: string
17264
- riskEvaluation:
17265
- $ref: "#/components/schemas/UserRiskEvaluation"
17266
17351
  authProviders:
17267
17352
  type: array
17268
17353
  items:
@@ -17275,7 +17360,6 @@ components:
17275
17360
  type: boolean
17276
17361
  required:
17277
17362
  - id
17278
- - riskEvaluation
17279
17363
  - authProviders
17280
17364
  - createdAt
17281
17365
  - lastSignInAt
@@ -17406,49 +17490,6 @@ components:
17406
17490
  description: ID of the organization owning this site
17407
17491
  required:
17408
17492
  - organization
17409
- PublishedContentLookup:
17410
- oneOf:
17411
- - type: object
17412
- title: Redirect
17413
- properties:
17414
- target:
17415
- type: string
17416
- description: Type of target for the redirect
17417
- enum:
17418
- - application
17419
- - content
17420
- - external
17421
- redirect:
17422
- $ref: "#/components/schemas/URL"
17423
- required:
17424
- - target
17425
- - redirect
17426
- - type: object
17427
- title: Content
17428
- properties:
17429
- space:
17430
- type: string
17431
- description: ID of the space matching.
17432
- changeRequest:
17433
- type: string
17434
- description: Identifier of the change request being previewed in this URL.
17435
- revision:
17436
- type: string
17437
- description: Identifier of the revision being previewed in this URL.
17438
- pathname:
17439
- type: string
17440
- description: Path of the content relative to the space
17441
- basePath:
17442
- type: string
17443
- description: Prefix of the path in the URL dedicated to the space
17444
- apiToken:
17445
- type: string
17446
- description: Short-lived API token to fetch content related to the space in the context of the URL.
17447
- required:
17448
- - space
17449
- - pathname
17450
- - basePath
17451
- - apiToken
17452
17493
  PublishedSiteContentLookup:
17453
17494
  oneOf:
17454
17495
  - type: object
@@ -17507,6 +17548,13 @@ components:
17507
17548
  - basePath
17508
17549
  - apiToken
17509
17550
  - organization
17551
+ UpdateContentPublishingAuth:
17552
+ type: object
17553
+ properties:
17554
+ fallbackURL:
17555
+ type: string
17556
+ format: uri
17557
+ description: A fallback URL that will be used if authentication fails.
17510
17558
  TriggerContentIndexingContext:
17511
17559
  type: object
17512
17560
  description: The context to send when triggering a content indexing.
@@ -17520,6 +17568,28 @@ components:
17520
17568
  required:
17521
17569
  - spaceId
17522
17570
  - force
17571
+ ContentPublishingAuth:
17572
+ type: object
17573
+ properties:
17574
+ object:
17575
+ type: string
17576
+ description: Type of Object, always equals to "publishing-auth"
17577
+ enum:
17578
+ - publishing-auth
17579
+ id:
17580
+ type: string
17581
+ description: Unique identifier for the content.
17582
+ privateKey:
17583
+ type: string
17584
+ description: Private key used to sign JWT tokens.
17585
+ fallbackURL:
17586
+ type: string
17587
+ format: uri
17588
+ description: URL to redirect to when the visitor auth secret is invalid.
17589
+ required:
17590
+ - object
17591
+ - id
17592
+ - privateKey
17523
17593
  DocumentBlock:
17524
17594
  oneOf:
17525
17595
  - $ref: "#/components/schemas/DocumentBlockParagraph"
@@ -17629,6 +17699,14 @@ components:
17629
17699
  - integration
17630
17700
  - signingSecrets
17631
17701
  - secrets
17702
+ BillingTrialStatus:
17703
+ type: string
17704
+ enum:
17705
+ - notapplicable
17706
+ - none
17707
+ - active
17708
+ - ended
17709
+ - expired
17632
17710
  APIIntegrationScope:
17633
17711
  type: string
17634
17712
  enum:
@@ -17904,6 +17982,18 @@ components:
17904
17982
  - channel
17905
17983
  - organization
17906
17984
  - user
17985
+ OrganizationSAMLChannel:
17986
+ type: object
17987
+ properties:
17988
+ channel:
17989
+ type: string
17990
+ enum:
17991
+ - organization-saml
17992
+ organization:
17993
+ type: string
17994
+ required:
17995
+ - channel
17996
+ - organization
17907
17997
  OrganizationTeamsChannel:
17908
17998
  type: object
17909
17999
  properties:
@@ -18001,62 +18091,63 @@ components:
18001
18091
  required:
18002
18092
  - channel
18003
18093
  - organization
18004
- OrganizationContentAuditsChannel:
18094
+ OrganizationIntegrationsChannel:
18005
18095
  type: object
18006
18096
  properties:
18007
18097
  channel:
18008
18098
  type: string
18009
18099
  enum:
18010
- - organization-content-audits
18100
+ - organization-integrations
18011
18101
  organization:
18012
18102
  type: string
18013
18103
  required:
18014
18104
  - channel
18015
18105
  - organization
18016
- OrganizationIntegrationsChannel:
18106
+ OrganizationInstallationsChannel:
18017
18107
  type: object
18018
18108
  properties:
18019
18109
  channel:
18020
18110
  type: string
18021
18111
  enum:
18022
- - organization-integrations
18112
+ - organization-installations
18023
18113
  organization:
18024
18114
  type: string
18025
18115
  required:
18026
18116
  - channel
18027
18117
  - organization
18028
- OrganizationInstallationsChannel:
18118
+ OrganizationSitesChannel:
18029
18119
  type: object
18120
+ description: Subscription channel for changes in sites in an organization.
18030
18121
  properties:
18031
18122
  channel:
18032
18123
  type: string
18033
18124
  enum:
18034
- - organization-installations
18125
+ - organization-sites
18035
18126
  organization:
18036
18127
  type: string
18037
18128
  required:
18038
18129
  - channel
18039
18130
  - organization
18040
- OrganizationSitesChannel:
18131
+ OrganizationExperimentalFeaturesChannel:
18041
18132
  type: object
18042
- description: Subscription channel for changes in sites in an organization.
18043
18133
  properties:
18044
18134
  channel:
18045
18135
  type: string
18046
18136
  enum:
18047
- - organization-sites
18137
+ - organization-experimental-features
18048
18138
  organization:
18049
18139
  type: string
18050
18140
  required:
18051
18141
  - channel
18052
18142
  - organization
18053
- OrganizationExperimentalFeaturesChannel:
18143
+ OrganizationSyncedBlocksChannel:
18054
18144
  type: object
18145
+ description: Subscription channel for changes in synced blocks in an organization.
18055
18146
  properties:
18056
18147
  channel:
18057
18148
  type: string
18058
18149
  enum:
18059
- - organization-experimental-features
18150
+ - organization-synced-blocks
18060
18151
  organization:
18061
18152
  type: string
18062
18153
  required:
@@ -18393,6 +18484,7 @@ components:
18393
18484
  - $ref: "#/components/schemas/OrganizationInfoChannel"
18394
18485
  - $ref: "#/components/schemas/OrganizationMembersChannel"
18395
18486
  - $ref: "#/components/schemas/OrganizationMemberChannel"
18487
+ - $ref: "#/components/schemas/OrganizationSAMLChannel"
18396
18488
  - $ref: "#/components/schemas/OrganizationTeamsChannel"
18397
18489
  - $ref: "#/components/schemas/OrganizationTeamChannel"
18398
18490
  - $ref: "#/components/schemas/OrganizationTeamMembersChannel"
@@ -18400,11 +18492,11 @@ components:
18400
18492
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
18401
18493
  - $ref: "#/components/schemas/OrganizationCollectionsChannel"
18402
18494
  - $ref: "#/components/schemas/OrganizationCapturesChannel"
18403
- - $ref: "#/components/schemas/OrganizationContentAuditsChannel"
18404
18495
  - $ref: "#/components/schemas/OrganizationIntegrationsChannel"
18405
18496
  - $ref: "#/components/schemas/OrganizationInstallationsChannel"
18406
18497
  - $ref: "#/components/schemas/OrganizationSitesChannel"
18407
18498
  - $ref: "#/components/schemas/OrganizationExperimentalFeaturesChannel"
18499
+ - $ref: "#/components/schemas/OrganizationSyncedBlocksChannel"
18408
18500
  - $ref: "#/components/schemas/OrganizationSyncedBlockChannel"
18409
18501
  - $ref: "#/components/schemas/CommentsChannel"
18410
18502
  - $ref: "#/components/schemas/CommentInfoChannel"