@gitbook/api 0.59.0 → 0.61.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
@@ -7522,28 +7519,78 @@ paths:
7522
7519
  $ref: "#/components/schemas/UserSitePermission"
7523
7520
  default:
7524
7521
  $ref: "#/components/responses/UnexpectedError"
7525
- "/orgs/{organizationId}/sites/{siteId}/insights/track_view":
7522
+ "/orgs/{organizationId}/sites/{siteId}/insights/track_view":
7523
+ post:
7524
+ operationId: trackViewInSiteById
7525
+ summary: Track a page view in a site
7526
+ description: Track a page view in a site.
7527
+ tags:
7528
+ - analytics
7529
+ - sites
7530
+ parameters:
7531
+ - $ref: "#/components/parameters/organizationId"
7532
+ - $ref: "#/components/parameters/siteId"
7533
+ responses:
7534
+ "204":
7535
+ description: Page view has been tracked.
7536
+ default:
7537
+ $ref: "#/components/responses/UnexpectedError"
7538
+ requestBody:
7539
+ required: true
7540
+ content:
7541
+ application/json:
7542
+ schema:
7543
+ $ref: "#/components/schemas/SiteTrackPageView"
7544
+ "/orgs/{organizationId}/sites/{siteId}/ads":
7545
+ post:
7546
+ operationId: updateSiteAdsById
7547
+ summary: Enable, disable, or submit for review Ads on a site.
7548
+ tags:
7549
+ - sites
7550
+ security:
7551
+ - user: []
7552
+ parameters:
7553
+ - $ref: "#/components/parameters/organizationId"
7554
+ - $ref: "#/components/parameters/siteId"
7555
+ requestBody:
7556
+ required: false
7557
+ content:
7558
+ application/json:
7559
+ schema:
7560
+ type: object
7561
+ properties:
7562
+ status:
7563
+ type: string
7564
+ enum:
7565
+ - in-review
7566
+ - disabled
7567
+ topic:
7568
+ $ref: "#/components/schemas/SiteAdsTopic"
7569
+ responses:
7570
+ "204":
7571
+ description: OK
7572
+ default:
7573
+ $ref: "#/components/responses/UnexpectedError"
7574
+ "/orgs/{organizationId}/sites/{siteId}/ads/stats":
7526
7575
  post:
7527
- operationId: trackViewInSiteById
7528
- summary: Track a page view in a site
7529
- description: Track a page view in a site.
7576
+ operationId: getSiteAdsStatsById
7577
+ summary: Get the stats about Ads on a site.
7530
7578
  tags:
7531
- - analytics
7532
7579
  - sites
7580
+ security:
7581
+ - user: []
7533
7582
  parameters:
7534
7583
  - $ref: "#/components/parameters/organizationId"
7535
7584
  - $ref: "#/components/parameters/siteId"
7536
7585
  responses:
7537
- "204":
7538
- description: Page view has been tracked.
7586
+ "200":
7587
+ description: OK
7588
+ content:
7589
+ application/json:
7590
+ schema:
7591
+ $ref: "#/components/schemas/SiteAdsStats"
7539
7592
  default:
7540
7593
  $ref: "#/components/responses/UnexpectedError"
7541
- requestBody:
7542
- required: true
7543
- content:
7544
- application/json:
7545
- schema:
7546
- $ref: "#/components/schemas/SiteTrackPageView"
7547
7594
  "/custom-hostnames/{hostname}":
7548
7595
  get:
7549
7596
  operationId: getCustomHostname
@@ -7675,6 +7722,100 @@ paths:
7675
7722
  $ref: "#/components/responses/ConflictError"
7676
7723
  default:
7677
7724
  $ref: "#/components/responses/UnexpectedError"
7725
+ /ads/sites:
7726
+ get:
7727
+ operationId: adsListSites
7728
+ summary: List all the sites with ads configured
7729
+ tags:
7730
+ - ads
7731
+ parameters:
7732
+ - $ref: "#/components/parameters/listPage"
7733
+ - $ref: "#/components/parameters/listLimit"
7734
+ - $ref: "#/components/parameters/xGitBookPartnerKey"
7735
+ responses:
7736
+ "200":
7737
+ description: OK
7738
+ content:
7739
+ application/json:
7740
+ schema:
7741
+ allOf:
7742
+ - $ref: "#/components/schemas/List"
7743
+ - type: object
7744
+ required:
7745
+ - items
7746
+ properties:
7747
+ items:
7748
+ type: array
7749
+ items:
7750
+ type: object
7751
+ required:
7752
+ - id
7753
+ - url
7754
+ - email
7755
+ - topic
7756
+ properties:
7757
+ id:
7758
+ type: string
7759
+ url:
7760
+ type: string
7761
+ email:
7762
+ type: string
7763
+ topic:
7764
+ $ref: "#/components/schemas/SiteAdsTopic"
7765
+ default:
7766
+ $ref: "#/components/responses/UnexpectedError"
7767
+ "/ads/sites/{siteId}":
7768
+ patch:
7769
+ operationId: adsUpdateSite
7770
+ summary: Update the Ads configuration for a site
7771
+ tags:
7772
+ - ads
7773
+ parameters:
7774
+ - $ref: "#/components/parameters/siteId"
7775
+ - $ref: "#/components/parameters/xGitBookPartnerKey"
7776
+ requestBody:
7777
+ required: true
7778
+ content:
7779
+ application/json:
7780
+ schema:
7781
+ oneOf:
7782
+ - type: object
7783
+ required:
7784
+ - status
7785
+ - zoneId
7786
+ - reportingId
7787
+ properties:
7788
+ status:
7789
+ type: string
7790
+ enum:
7791
+ - live
7792
+ zoneId:
7793
+ type: string
7794
+ description: ID of the zone
7795
+ reportingId:
7796
+ type: string
7797
+ description: ID to fetch reporting data
7798
+ - type: object
7799
+ required:
7800
+ - status
7801
+ properties:
7802
+ status:
7803
+ type: string
7804
+ enum:
7805
+ - rejected
7806
+ - type: object
7807
+ required:
7808
+ - status
7809
+ properties:
7810
+ status:
7811
+ type: string
7812
+ enum:
7813
+ - pending
7814
+ responses:
7815
+ "204":
7816
+ description: OK
7817
+ default:
7818
+ $ref: "#/components/responses/UnexpectedError"
7678
7819
  /internal/hive/token:
7679
7820
  post:
7680
7821
  operationId: generateHiveAccessToken
@@ -7801,9 +7942,7 @@ paths:
7801
7942
  content:
7802
7943
  application/json:
7803
7944
  schema:
7804
- oneOf:
7805
- - $ref: "#/components/schemas/PublishedContentLookup"
7806
- - $ref: "#/components/schemas/PublishedSiteContentLookup"
7945
+ $ref: "#/components/schemas/PublishedSiteContentLookup"
7807
7946
  "404":
7808
7947
  description: No content found for the URL.
7809
7948
  $ref: "#/components/responses/NotFoundError"
@@ -7877,6 +8016,13 @@ components:
7877
8016
  description: For sites published via share-links, the share key is useful to resolve published URLs.
7878
8017
  schema:
7879
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
7880
8026
  revisionMetadata:
7881
8027
  name: metadata
7882
8028
  in: query
@@ -8034,18 +8180,18 @@ components:
8034
8180
  description: The unique id of the organization
8035
8181
  schema:
8036
8182
  type: string
8037
- teamId:
8038
- name: teamId
8183
+ inviteId:
8184
+ name: inviteId
8039
8185
  in: path
8040
8186
  required: true
8041
- description: The unique ID of the Team
8187
+ description: The unique id of the invite
8042
8188
  schema:
8043
8189
  type: string
8044
- inviteId:
8045
- name: inviteId
8190
+ samlProviderId:
8191
+ name: samlProviderId
8046
8192
  in: path
8047
8193
  required: true
8048
- description: The unique id of the invite
8194
+ description: The unique id of the SAML provider
8049
8195
  schema:
8050
8196
  type: string
8051
8197
  captureId:
@@ -8076,13 +8222,6 @@ components:
8076
8222
  description: The unique id of a synced block
8077
8223
  schema:
8078
8224
  type: string
8079
- relationId:
8080
- name: relationId
8081
- in: path
8082
- required: true
8083
- description: The id of the content audit relation
8084
- schema:
8085
- type: string
8086
8225
  siteCustomizationUnmasked:
8087
8226
  name: unmasked
8088
8227
  in: query
@@ -8105,6 +8244,12 @@ components:
8105
8244
  description: The custom hostname, for example "docs.gitbook.com"
8106
8245
  schema:
8107
8246
  type: string
8247
+ xGitBookPartnerKey:
8248
+ in: header
8249
+ name: X-GitBook-Partner-Key
8250
+ schema:
8251
+ type: string
8252
+ required: true
8108
8253
  pageFormat:
8109
8254
  $ref: "#/components/parameters/documentFormat"
8110
8255
  commentStatus:
@@ -11124,6 +11269,20 @@ components:
11124
11269
  - visitor
11125
11270
  - url
11126
11271
  - referrer
11272
+ InviteEmailsUsersTeamsToSpace:
11273
+ type: object
11274
+ properties:
11275
+ teams:
11276
+ type: array
11277
+ items:
11278
+ type: string
11279
+ description: The ID of the team to be invited
11280
+ role:
11281
+ description: Role to set on the team.
11282
+ $ref: "#/components/schemas/MemberRoleOrGuest"
11283
+ required:
11284
+ - teams
11285
+ - role
11127
11286
  RevisionPageGroup:
11128
11287
  allOf:
11129
11288
  - $ref: "#/components/schemas/RevisionPageBase"
@@ -11532,9 +11691,6 @@ components:
11532
11691
  ai:
11533
11692
  description: If true, the organization is configured to use all our AI features.
11534
11693
  type: boolean
11535
- aiInsights:
11536
- description: If true, the organization is configured to run content audits on any space update
11537
- type: boolean
11538
11694
  urls:
11539
11695
  type: object
11540
11696
  description: URLs associated with the object
@@ -12224,6 +12380,15 @@ components:
12224
12380
  type: string
12225
12381
  description: Title describing the synced block.
12226
12382
  maxLength: 100
12383
+ usage:
12384
+ type: object
12385
+ description: Usage of synced block
12386
+ properties:
12387
+ spaces:
12388
+ description: Number of spaces where the synced block is used in
12389
+ type: integer
12390
+ required:
12391
+ - spaces
12227
12392
  urls:
12228
12393
  type: object
12229
12394
  description: URLs associated with the object
@@ -12238,6 +12403,7 @@ components:
12238
12403
  - organization
12239
12404
  - source
12240
12405
  - createdAt
12406
+ - usage
12241
12407
  - urls
12242
12408
  ContentLocationSyncedBlock:
12243
12409
  type: object
@@ -13077,6 +13243,7 @@ components:
13077
13243
  - zh
13078
13244
  - ja
13079
13245
  - de
13246
+ - nl
13080
13247
  - pt-br
13081
13248
  CustomizationThemedURL:
13082
13249
  type: object
@@ -13301,35 +13468,6 @@ components:
13301
13468
  - git
13302
13469
  - privacyPolicy
13303
13470
  - socialPreview
13304
- ContentPublishingAuth:
13305
- type: object
13306
- properties:
13307
- object:
13308
- type: string
13309
- description: Type of Object, always equals to "publishing-auth"
13310
- enum:
13311
- - publishing-auth
13312
- id:
13313
- type: string
13314
- description: Unique identifier for the content.
13315
- privateKey:
13316
- type: string
13317
- description: Private key used to sign JWT tokens.
13318
- fallbackURL:
13319
- type: string
13320
- format: uri
13321
- description: URL to redirect to when the visitor auth secret is invalid.
13322
- required:
13323
- - object
13324
- - id
13325
- - privateKey
13326
- UpdateContentPublishingAuth:
13327
- type: object
13328
- properties:
13329
- fallbackURL:
13330
- type: string
13331
- format: uri
13332
- description: A fallback URL that will be used if authentication fails.
13333
13471
  SpaceIntegrationBlocks:
13334
13472
  type: array
13335
13473
  items:
@@ -15472,6 +15610,26 @@ components:
15472
15610
  $ref: "#/components/schemas/BillingProduct"
15473
15611
  interval:
15474
15612
  $ref: "#/components/schemas/BillingInterval"
15613
+ exclude:
15614
+ type: object
15615
+ description: Members to remove or sites to unpublish before upgrading
15616
+ minProperties: 1
15617
+ properties:
15618
+ members:
15619
+ type: array
15620
+ items:
15621
+ type: string
15622
+ description: A list of member identifiers to be removed
15623
+ premiumSites:
15624
+ type: array
15625
+ items:
15626
+ type: string
15627
+ description: A list of premium site identifiers to be unpublished
15628
+ audienceSites:
15629
+ type: array
15630
+ items:
15631
+ type: string
15632
+ description: A list of audience site identifiers to be unpublished
15475
15633
  reason:
15476
15634
  type: string
15477
15635
  description: Reason that triggered the billing upgrade
@@ -15622,6 +15780,80 @@ components:
15622
15780
  - description
15623
15781
  - enabled
15624
15782
  - stage
15783
+ SAMLProviderLabel:
15784
+ type: string
15785
+ minLength: 1
15786
+ maxLength: 30
15787
+ SAMLProviderEntityID:
15788
+ type: string
15789
+ maxLength: 1024
15790
+ SAMLProviderCertificate:
15791
+ type: string
15792
+ maxLength: 10000
15793
+ OrganizationSAMLProvider:
15794
+ type: object
15795
+ properties:
15796
+ object:
15797
+ type: string
15798
+ description: Type of Object, always equals to "saml-provider"
15799
+ enum:
15800
+ - saml-provider
15801
+ id:
15802
+ type: string
15803
+ description: Unique identifier for the provider.
15804
+ label:
15805
+ $ref: "#/components/schemas/SAMLProviderLabel"
15806
+ ssoURL:
15807
+ $ref: "#/components/schemas/URL"
15808
+ entityID:
15809
+ $ref: "#/components/schemas/SAMLProviderEntityID"
15810
+ certificate:
15811
+ $ref: "#/components/schemas/SAMLProviderCertificate"
15812
+ defaultTeam:
15813
+ $ref: "#/components/schemas/OrganizationTeam"
15814
+ defaultRole:
15815
+ $ref: "#/components/schemas/MemberRoleOrGuest"
15816
+ createdAt:
15817
+ description: Date at which the provider was created.
15818
+ $ref: "#/components/schemas/Timestamp"
15819
+ service:
15820
+ description: Metadata about the service provider.
15821
+ properties:
15822
+ acsURL:
15823
+ type: string
15824
+ description: Assertion Consumer Service (ACS) URL
15825
+ format: uri
15826
+ startURL:
15827
+ type: string
15828
+ description: Start URL for the Identity Provider
15829
+ format: uri
15830
+ entityID:
15831
+ $ref: "#/components/schemas/SAMLProviderEntityID"
15832
+ required:
15833
+ - acsURL
15834
+ - startURL
15835
+ - entityID
15836
+ urls:
15837
+ type: object
15838
+ description: URLs associated with the object
15839
+ properties:
15840
+ location:
15841
+ type: string
15842
+ description: URL of the SAML Provider in the API
15843
+ format: uri
15844
+ required:
15845
+ - location
15846
+ required:
15847
+ - object
15848
+ - id
15849
+ - label
15850
+ - ssoURL
15851
+ - entityID
15852
+ - certificate
15853
+ - defaultRole
15854
+ - createdAt
15855
+ - service
15856
+ - urls
15625
15857
  OrganizationUsageSpaces:
15626
15858
  type: object
15627
15859
  description: Spaces usage metrics of an organization
@@ -15961,107 +16193,37 @@ components:
15961
16193
  properties:
15962
16194
  type:
15963
16195
  type: string
15964
- enum:
15965
- - file.removed
15966
- filename:
15967
- type: string
15968
- fileSnapshot:
15969
- type: string
15970
- required:
15971
- - type
15972
- - filename
15973
- - fileSnapshot
15974
- CaptureEvent:
15975
- oneOf:
15976
- - $ref: "#/components/schemas/CaptureTerminalCommandEvent"
15977
- - $ref: "#/components/schemas/CaptureSpeechEvent"
15978
- - $ref: "#/components/schemas/CaptureThreadMessageEvent"
15979
- - $ref: "#/components/schemas/CaptureFileAddedEvent"
15980
- - $ref: "#/components/schemas/CaptureFileChangedEvent"
15981
- - $ref: "#/components/schemas/CaptureFileRemovedEvent"
15982
- UpdateSnippetSchema:
15983
- type: object
15984
- properties:
15985
- title:
15986
- type: string
15987
- description: A new title for the snippet.
15988
- ContentAuditRelationStatus:
15989
- description: Status of the audit relation to filter on
15990
- type: string
15991
- enum:
15992
- - pending
15993
- - rejected
15994
- ContentAuditRelationType:
15995
- description: The type of the relation between the sources
15996
- type: string
15997
- enum:
15998
- - contradiction
15999
- - duplicate
16000
- ContentAuditSourceSection:
16001
- type: object
16002
- description: A GitBook section source
16003
- properties:
16004
- id:
16005
- type: string
16006
- type:
16007
- type: string
16008
- enum:
16009
- - section
16010
- space:
16011
- $ref: "#/components/schemas/Space"
16012
- page:
16013
- $ref: "#/components/schemas/RevisionPageDocument"
16014
- required:
16015
- - id
16016
- - type
16017
- - space
16018
- - page
16019
- ContentAuditSource:
16196
+ enum:
16197
+ - file.removed
16198
+ filename:
16199
+ type: string
16200
+ fileSnapshot:
16201
+ type: string
16202
+ required:
16203
+ - type
16204
+ - filename
16205
+ - fileSnapshot
16206
+ CaptureEvent:
16020
16207
  oneOf:
16021
- - $ref: "#/components/schemas/ContentAuditSourceSection"
16022
- ContentAuditRelation:
16208
+ - $ref: "#/components/schemas/CaptureTerminalCommandEvent"
16209
+ - $ref: "#/components/schemas/CaptureSpeechEvent"
16210
+ - $ref: "#/components/schemas/CaptureThreadMessageEvent"
16211
+ - $ref: "#/components/schemas/CaptureFileAddedEvent"
16212
+ - $ref: "#/components/schemas/CaptureFileChangedEvent"
16213
+ - $ref: "#/components/schemas/CaptureFileRemovedEvent"
16214
+ UpdateSnippetSchema:
16023
16215
  type: object
16024
- description: Content audit relation
16025
16216
  properties:
16026
- id:
16027
- type: string
16028
- sources:
16029
- description: The sources that are related
16030
- type: array
16031
- items:
16032
- $ref: "#/components/schemas/ContentAuditSource"
16033
- type:
16034
- description: The type of the relation between the sources
16035
- $ref: "#/components/schemas/ContentAuditRelationType"
16036
- reason:
16217
+ title:
16037
16218
  type: string
16038
- description: A human readable description of the reason for the relation
16039
- status:
16040
- description: The status of the relation
16041
- $ref: "#/components/schemas/ContentAuditRelationStatus"
16042
- createdAt:
16043
- description: The date at which the relation was created
16044
- $ref: "#/components/schemas/Timestamp"
16045
- required:
16046
- - id
16047
- - sources
16048
- - type
16049
- - status
16050
- - createdAt
16051
- ContentAuditRelationStatusUpdate:
16052
- type: object
16053
- properties:
16054
- status:
16055
- $ref: "#/components/schemas/ContentAuditRelationStatus"
16056
- required:
16057
- - status
16219
+ description: A new title for the snippet.
16058
16220
  SiteType:
16059
16221
  type: string
16060
16222
  description: The type of the site
16061
16223
  enum:
16062
16224
  - basic
16063
- - standard
16064
16225
  - premium
16226
+ - audience
16065
16227
  - legacy-basic
16066
16228
  - legacy-premium
16067
16229
  SiteTitle:
@@ -16091,15 +16253,62 @@ components:
16091
16253
  - unlisted
16092
16254
  - share-link
16093
16255
  - visitor-auth
16094
- SiteAdsConfig:
16095
- type: object
16096
- description: The configuration for serving ads in the site
16097
- properties:
16098
- zone:
16099
- type: string
16100
- description: The ad network zone ID
16101
- required:
16102
- - zone
16256
+ SiteAdsTopic:
16257
+ type: string
16258
+ description: Topic of the content
16259
+ enum:
16260
+ - webdev
16261
+ - crypto
16262
+ SiteAds:
16263
+ oneOf:
16264
+ - type: object
16265
+ required:
16266
+ - status
16267
+ - submittable
16268
+ properties:
16269
+ status:
16270
+ type: string
16271
+ enum:
16272
+ - pending
16273
+ submittable:
16274
+ type: boolean
16275
+ description: True if the user can submit the site for review.
16276
+ - type: object
16277
+ required:
16278
+ - status
16279
+ - topic
16280
+ - accountEmail
16281
+ properties:
16282
+ status:
16283
+ type: string
16284
+ enum:
16285
+ - in-review
16286
+ topic:
16287
+ $ref: "#/components/schemas/SiteAdsTopic"
16288
+ - type: object
16289
+ required:
16290
+ - status
16291
+ properties:
16292
+ status:
16293
+ type: string
16294
+ enum:
16295
+ - rejected
16296
+ - type: object
16297
+ required:
16298
+ - status
16299
+ - topic
16300
+ - zoneId
16301
+ properties:
16302
+ status:
16303
+ type: string
16304
+ enum:
16305
+ - live
16306
+ - disabled
16307
+ topic:
16308
+ $ref: "#/components/schemas/SiteAdsTopic"
16309
+ zoneId:
16310
+ type: string
16311
+ description: The ad network zone ID
16103
16312
  Site:
16104
16313
  type: object
16105
16314
  properties:
@@ -16129,7 +16338,7 @@ components:
16129
16338
  type: string
16130
16339
  format: date-time
16131
16340
  ads:
16132
- $ref: "#/components/schemas/SiteAdsConfig"
16341
+ $ref: "#/components/schemas/SiteAds"
16133
16342
  urls:
16134
16343
  type: object
16135
16344
  description: URLs associated with the object
@@ -16160,6 +16369,63 @@ components:
16160
16369
  - siteSpaces
16161
16370
  - defaultSpace
16162
16371
  - urls
16372
+ BillingOperationPreviewResponse:
16373
+ description: |
16374
+ 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.
16375
+ oneOf:
16376
+ - type: object
16377
+ properties:
16378
+ type:
16379
+ description: User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes.
16380
+ type: string
16381
+ enum:
16382
+ - go-ahead
16383
+ required:
16384
+ - type
16385
+ - type: object
16386
+ properties:
16387
+ type:
16388
+ description: By going ahead with this operation, the user will be starting a trial in GitBook.
16389
+ type: string
16390
+ enum:
16391
+ - trial-available
16392
+ required:
16393
+ - type
16394
+ - type: object
16395
+ properties:
16396
+ type:
16397
+ description: User must checkout to complete the operation.
16398
+ type: string
16399
+ enum:
16400
+ - checkout
16401
+ invoice:
16402
+ $ref: "#/components/schemas/BillingInvoicePreview"
16403
+ required:
16404
+ - type
16405
+ - type: object
16406
+ properties:
16407
+ type:
16408
+ description: User cannot proceed with the operation due to lack of permissions.
16409
+ type: string
16410
+ enum:
16411
+ - no-permissions
16412
+ required:
16413
+ - type
16414
+ - type: object
16415
+ properties:
16416
+ type:
16417
+ description: User needs to go through the legacy upgrade flow.
16418
+ type: string
16419
+ enum:
16420
+ - legacy-upgrade
16421
+ plan:
16422
+ description: The plan the user must upgrade to.
16423
+ $ref: "#/components/schemas/BillingProduct"
16424
+ invoice:
16425
+ $ref: "#/components/schemas/BillingInvoicePreview"
16426
+ required:
16427
+ - type
16428
+ - plan
16163
16429
  SitePublishingAuth:
16164
16430
  allOf:
16165
16431
  - oneOf:
@@ -16776,6 +17042,32 @@ components:
16776
17042
  - url
16777
17043
  - referrer
16778
17044
  - spaceId
17045
+ SiteAdsStats:
17046
+ type: object
17047
+ required:
17048
+ - impressions
17049
+ - clicks
17050
+ - revenue
17051
+ - account
17052
+ properties:
17053
+ impressions:
17054
+ type: number
17055
+ clicks:
17056
+ type: number
17057
+ revenue:
17058
+ type: string
17059
+ account:
17060
+ type: object
17061
+ properties:
17062
+ email:
17063
+ type: string
17064
+ description: Email address on the Ads platform.
17065
+ url:
17066
+ type: string
17067
+ description: URL to configure payout.
17068
+ required:
17069
+ - email
17070
+ - url
16779
17071
  CustomHostnameDnsStatus:
16780
17072
  type: string
16781
17073
  enum:
@@ -17010,50 +17302,6 @@ components:
17010
17302
  required:
17011
17303
  - id
17012
17304
  - searchKey
17013
- UserRiskEvaluation:
17014
- type: object
17015
- description: The GitBook User risk evaluation.
17016
- properties:
17017
- wasRisky:
17018
- description: True if the user was originally considered as risky
17019
- type: boolean
17020
- isRisky:
17021
- description: True if the user is currently considered as risky
17022
- type: boolean
17023
- isVerified:
17024
- description: True if the user went through the verification process
17025
- type: boolean
17026
- riskScore:
17027
- description: Risk score of the user
17028
- type: number
17029
- completedSteps:
17030
- description: Number of verification steps completed by the user
17031
- type: number
17032
- expectedSteps:
17033
- description: Total number of verification steps expected
17034
- type: number
17035
- googleLogin:
17036
- description: User completed the Google Account verification step
17037
- type: boolean
17038
- githubLogin:
17039
- description: User completed the GitHub Account verification step
17040
- type: boolean
17041
- emailVerified:
17042
- description: User completed the Email verification step
17043
- type: boolean
17044
- activeDaysRemaining:
17045
- type: number
17046
- required:
17047
- - wasRisky
17048
- - isRisky
17049
- - isVerified
17050
- - riskScore
17051
- - completedSteps
17052
- - expectedSteps
17053
- - googleLogin
17054
- - githubLogin
17055
- - emailVerified
17056
- - activeDaysRemaining
17057
17305
  FirebaseUserInfo:
17058
17306
  type: object
17059
17307
  description: The User Firebase Auth Info.
@@ -17078,8 +17326,6 @@ components:
17078
17326
  properties:
17079
17327
  id:
17080
17328
  type: string
17081
- riskEvaluation:
17082
- $ref: "#/components/schemas/UserRiskEvaluation"
17083
17329
  authProviders:
17084
17330
  type: array
17085
17331
  items:
@@ -17092,7 +17338,6 @@ components:
17092
17338
  type: boolean
17093
17339
  required:
17094
17340
  - id
17095
- - riskEvaluation
17096
17341
  - authProviders
17097
17342
  - createdAt
17098
17343
  - lastSignInAt
@@ -17223,49 +17468,6 @@ components:
17223
17468
  description: ID of the organization owning this site
17224
17469
  required:
17225
17470
  - organization
17226
- PublishedContentLookup:
17227
- oneOf:
17228
- - type: object
17229
- title: Redirect
17230
- properties:
17231
- target:
17232
- type: string
17233
- description: Type of target for the redirect
17234
- enum:
17235
- - application
17236
- - content
17237
- - external
17238
- redirect:
17239
- $ref: "#/components/schemas/URL"
17240
- required:
17241
- - target
17242
- - redirect
17243
- - type: object
17244
- title: Content
17245
- properties:
17246
- space:
17247
- type: string
17248
- description: ID of the space matching.
17249
- changeRequest:
17250
- type: string
17251
- description: Identifier of the change request being previewed in this URL.
17252
- revision:
17253
- type: string
17254
- description: Identifier of the revision being previewed in this URL.
17255
- pathname:
17256
- type: string
17257
- description: Path of the content relative to the space
17258
- basePath:
17259
- type: string
17260
- description: Prefix of the path in the URL dedicated to the space
17261
- apiToken:
17262
- type: string
17263
- description: Short-lived API token to fetch content related to the space in the context of the URL.
17264
- required:
17265
- - space
17266
- - pathname
17267
- - basePath
17268
- - apiToken
17269
17471
  PublishedSiteContentLookup:
17270
17472
  oneOf:
17271
17473
  - type: object
@@ -17324,6 +17526,13 @@ components:
17324
17526
  - basePath
17325
17527
  - apiToken
17326
17528
  - organization
17529
+ UpdateContentPublishingAuth:
17530
+ type: object
17531
+ properties:
17532
+ fallbackURL:
17533
+ type: string
17534
+ format: uri
17535
+ description: A fallback URL that will be used if authentication fails.
17327
17536
  TriggerContentIndexingContext:
17328
17537
  type: object
17329
17538
  description: The context to send when triggering a content indexing.
@@ -17337,6 +17546,28 @@ components:
17337
17546
  required:
17338
17547
  - spaceId
17339
17548
  - force
17549
+ ContentPublishingAuth:
17550
+ type: object
17551
+ properties:
17552
+ object:
17553
+ type: string
17554
+ description: Type of Object, always equals to "publishing-auth"
17555
+ enum:
17556
+ - publishing-auth
17557
+ id:
17558
+ type: string
17559
+ description: Unique identifier for the content.
17560
+ privateKey:
17561
+ type: string
17562
+ description: Private key used to sign JWT tokens.
17563
+ fallbackURL:
17564
+ type: string
17565
+ format: uri
17566
+ description: URL to redirect to when the visitor auth secret is invalid.
17567
+ required:
17568
+ - object
17569
+ - id
17570
+ - privateKey
17340
17571
  DocumentBlock:
17341
17572
  oneOf:
17342
17573
  - $ref: "#/components/schemas/DocumentBlockParagraph"
@@ -17446,6 +17677,14 @@ components:
17446
17677
  - integration
17447
17678
  - signingSecrets
17448
17679
  - secrets
17680
+ BillingTrialStatus:
17681
+ type: string
17682
+ enum:
17683
+ - notapplicable
17684
+ - none
17685
+ - active
17686
+ - ended
17687
+ - expired
17449
17688
  APIIntegrationScope:
17450
17689
  type: string
17451
17690
  enum:
@@ -17721,6 +17960,18 @@ components:
17721
17960
  - channel
17722
17961
  - organization
17723
17962
  - user
17963
+ OrganizationSAMLChannel:
17964
+ type: object
17965
+ properties:
17966
+ channel:
17967
+ type: string
17968
+ enum:
17969
+ - organization-saml
17970
+ organization:
17971
+ type: string
17972
+ required:
17973
+ - channel
17974
+ - organization
17724
17975
  OrganizationTeamsChannel:
17725
17976
  type: object
17726
17977
  properties:
@@ -17818,62 +18069,63 @@ components:
17818
18069
  required:
17819
18070
  - channel
17820
18071
  - organization
17821
- OrganizationContentAuditsChannel:
18072
+ OrganizationIntegrationsChannel:
17822
18073
  type: object
17823
18074
  properties:
17824
18075
  channel:
17825
18076
  type: string
17826
18077
  enum:
17827
- - organization-content-audits
18078
+ - organization-integrations
17828
18079
  organization:
17829
18080
  type: string
17830
18081
  required:
17831
18082
  - channel
17832
18083
  - organization
17833
- OrganizationIntegrationsChannel:
18084
+ OrganizationInstallationsChannel:
17834
18085
  type: object
17835
18086
  properties:
17836
18087
  channel:
17837
18088
  type: string
17838
18089
  enum:
17839
- - organization-integrations
18090
+ - organization-installations
17840
18091
  organization:
17841
18092
  type: string
17842
18093
  required:
17843
18094
  - channel
17844
18095
  - organization
17845
- OrganizationInstallationsChannel:
18096
+ OrganizationSitesChannel:
17846
18097
  type: object
18098
+ description: Subscription channel for changes in sites in an organization.
17847
18099
  properties:
17848
18100
  channel:
17849
18101
  type: string
17850
18102
  enum:
17851
- - organization-installations
18103
+ - organization-sites
17852
18104
  organization:
17853
18105
  type: string
17854
18106
  required:
17855
18107
  - channel
17856
18108
  - organization
17857
- OrganizationSitesChannel:
18109
+ OrganizationExperimentalFeaturesChannel:
17858
18110
  type: object
17859
- description: Subscription channel for changes in sites in an organization.
17860
18111
  properties:
17861
18112
  channel:
17862
18113
  type: string
17863
18114
  enum:
17864
- - organization-sites
18115
+ - organization-experimental-features
17865
18116
  organization:
17866
18117
  type: string
17867
18118
  required:
17868
18119
  - channel
17869
18120
  - organization
17870
- OrganizationExperimentalFeaturesChannel:
18121
+ OrganizationSyncedBlocksChannel:
17871
18122
  type: object
18123
+ description: Subscription channel for changes in synced blocks in an organization.
17872
18124
  properties:
17873
18125
  channel:
17874
18126
  type: string
17875
18127
  enum:
17876
- - organization-experimental-features
18128
+ - organization-synced-blocks
17877
18129
  organization:
17878
18130
  type: string
17879
18131
  required:
@@ -18210,6 +18462,7 @@ components:
18210
18462
  - $ref: "#/components/schemas/OrganizationInfoChannel"
18211
18463
  - $ref: "#/components/schemas/OrganizationMembersChannel"
18212
18464
  - $ref: "#/components/schemas/OrganizationMemberChannel"
18465
+ - $ref: "#/components/schemas/OrganizationSAMLChannel"
18213
18466
  - $ref: "#/components/schemas/OrganizationTeamsChannel"
18214
18467
  - $ref: "#/components/schemas/OrganizationTeamChannel"
18215
18468
  - $ref: "#/components/schemas/OrganizationTeamMembersChannel"
@@ -18217,11 +18470,11 @@ components:
18217
18470
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
18218
18471
  - $ref: "#/components/schemas/OrganizationCollectionsChannel"
18219
18472
  - $ref: "#/components/schemas/OrganizationCapturesChannel"
18220
- - $ref: "#/components/schemas/OrganizationContentAuditsChannel"
18221
18473
  - $ref: "#/components/schemas/OrganizationIntegrationsChannel"
18222
18474
  - $ref: "#/components/schemas/OrganizationInstallationsChannel"
18223
18475
  - $ref: "#/components/schemas/OrganizationSitesChannel"
18224
18476
  - $ref: "#/components/schemas/OrganizationExperimentalFeaturesChannel"
18477
+ - $ref: "#/components/schemas/OrganizationSyncedBlocksChannel"
18225
18478
  - $ref: "#/components/schemas/OrganizationSyncedBlockChannel"
18226
18479
  - $ref: "#/components/schemas/CommentsChannel"
18227
18480
  - $ref: "#/components/schemas/CommentInfoChannel"
@@ -18245,6 +18498,15 @@ components:
18245
18498
  - $ref: "#/components/schemas/CustomHostnameChannel"
18246
18499
  discriminator:
18247
18500
  propertyName: channel
18501
+ SiteAdsStatus:
18502
+ type: string
18503
+ description: The status of ads on the site
18504
+ enum:
18505
+ - pending
18506
+ - in-review
18507
+ - live
18508
+ - rejected
18509
+ - disabled
18248
18510
  Seat:
18249
18511
  type: object
18250
18512
  properties: