@gitbook/api 0.20.1 → 0.22.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
@@ -79,6 +79,12 @@ components:
79
79
  - all
80
80
  - open
81
81
  - resolved
82
+ commentTargetPage:
83
+ name: targetPage
84
+ in: query
85
+ description: The target page of the comment
86
+ schema:
87
+ type: string
82
88
  spaceId:
83
89
  name: spaceId
84
90
  in: path
@@ -216,6 +222,13 @@ components:
216
222
  description: The id of the content audit relation
217
223
  schema:
218
224
  type: string
225
+ visitorId:
226
+ name: visitorId
227
+ in: path
228
+ required: true
229
+ description: The id of the visitor
230
+ schema:
231
+ type: string
219
232
  backofficeHostname:
220
233
  name: hostname
221
234
  in: path
@@ -2824,6 +2837,8 @@ components:
2824
2837
  parent:
2825
2838
  type: string
2826
2839
  description: ID of the parent collection.
2840
+ gitSync:
2841
+ $ref: "#/components/schemas/GitSyncState"
2827
2842
  required:
2828
2843
  - object
2829
2844
  - id
@@ -2985,6 +3000,13 @@ components:
2985
3000
  type: string
2986
3001
  enum:
2987
3002
  - document
3003
+ urls:
3004
+ required:
3005
+ - app
3006
+ properties:
3007
+ app:
3008
+ description: Location of the page in the app
3009
+ $ref: "#/components/schemas/URL"
2988
3010
  slug:
2989
3011
  description: Page's slug in its direct parent
2990
3012
  type: string
@@ -3011,6 +3033,7 @@ components:
3011
3033
  required:
3012
3034
  - kind
3013
3035
  - type
3036
+ - urls
3014
3037
  - slug
3015
3038
  - path
3016
3039
  - pages
@@ -3674,56 +3697,6 @@ components:
3674
3697
  newSourceHostname:
3675
3698
  type: string
3676
3699
  description: The new hostname if the source organization needed to change hostname.
3677
- OrganizationDirectorySyncGroup:
3678
- type: object
3679
- required:
3680
- - id
3681
- - idp_id
3682
- - directory_id
3683
- - name
3684
- properties:
3685
- id:
3686
- type: string
3687
- description: The unique identifier of this group in WorkOS. Not the unique ID from GitBook.
3688
- idp_id:
3689
- type: string
3690
- description: The identity provider's unique ID for this group, should be used to generate the team's unique ID when syncing the groups.
3691
- directory_id:
3692
- type: string
3693
- description: The unique ID of the directory this group is owned by in WorkOS. Is not a unique ID from our database.
3694
- name:
3695
- type: string
3696
- description: The name of the group from the identity provider, it should always be set according to the WorkOS documentation.
3697
- teamKey:
3698
- type: string
3699
- description: The unique ID of the GitBook team already synced to this group, if applicable.
3700
- OrganizationDirectorySyncGroupTeamStatus:
3701
- anyOf:
3702
- - type: object
3703
- required:
3704
- - success
3705
- - group_id
3706
- - team_id
3707
- properties:
3708
- success:
3709
- type: boolean
3710
- enum:
3711
- - true
3712
- group_id:
3713
- type: string
3714
- team_id:
3715
- type: string
3716
- - type: object
3717
- required:
3718
- - success
3719
- - error
3720
- properties:
3721
- success:
3722
- type: boolean
3723
- enum:
3724
- - false
3725
- error:
3726
- type: string
3727
3700
  OrganizationTarget:
3728
3701
  type: object
3729
3702
  required:
@@ -4081,6 +4054,9 @@ components:
4081
4054
  type: string
4082
4055
  format: date-time
4083
4056
  description: Timestamp of when the snippet was last edited, if it has been edited since its creation.
4057
+ archived:
4058
+ type: boolean
4059
+ description: Whether the snippet is archived. Archived snippets don't appear in search results or in the app.
4084
4060
  title:
4085
4061
  type: string
4086
4062
  description: Title describing the snippet.
@@ -4129,6 +4105,7 @@ components:
4129
4105
  - id
4130
4106
  - source
4131
4107
  - createdAt
4108
+ - archived
4132
4109
  - contributors
4133
4110
  - urls
4134
4111
  UpdateSnippetSchema:
@@ -4783,10 +4760,9 @@ components:
4783
4760
  type: string
4784
4761
  description: Unique identifier for the collection
4785
4762
  title:
4786
- type: string
4787
- description: Title of the collection
4788
- minLength: 0
4789
- maxLength: 50
4763
+ $ref: "#/components/schemas/CollectionTitle"
4764
+ description:
4765
+ $ref: "#/components/schemas/CollectionDescription"
4790
4766
  path:
4791
4767
  type: string
4792
4768
  description: Path in the published URL
@@ -4828,6 +4804,16 @@ components:
4828
4804
  - organization
4829
4805
  - visibility
4830
4806
  - urls
4807
+ CollectionTitle:
4808
+ type: string
4809
+ description: Title of the collection
4810
+ minLength: 0
4811
+ maxLength: 50
4812
+ CollectionDescription:
4813
+ type: string
4814
+ description: Description of the collection
4815
+ minLength: 0
4816
+ maxLength: 100
4831
4817
  Integration:
4832
4818
  type: object
4833
4819
  properties:
@@ -5440,6 +5426,21 @@ components:
5440
5426
  type: array
5441
5427
  items:
5442
5428
  $ref: "#/components/schemas/IntegrationBlock"
5429
+ SpaceIntegrationScript:
5430
+ type: object
5431
+ properties:
5432
+ script:
5433
+ description: Script URL to load.
5434
+ $ref: "#/components/schemas/URL"
5435
+ contentSecurityPolicy:
5436
+ description: Content Security Policy to secure the loading of this script.
5437
+ type: string
5438
+ cookies:
5439
+ type: boolean
5440
+ description: If true, the script will potentially load use cookies and visitors should be aware.
5441
+ required:
5442
+ - script
5443
+ - cookies
5443
5444
  UpsertEntity:
5444
5445
  type: object
5445
5446
  description: Entity to create or update in an integration's installation.
@@ -7355,6 +7356,7 @@ components:
7355
7356
  - $ref: "#/components/schemas/UserOrganizationsChannel"
7356
7357
  - $ref: "#/components/schemas/UserProfileChannel"
7357
7358
  - $ref: "#/components/schemas/ChangeRequestReviewsChannel"
7359
+ - $ref: "#/components/schemas/CollectionChannel"
7358
7360
  - $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
7359
7361
  - type: object
7360
7362
  properties:
@@ -7594,6 +7596,18 @@ components:
7594
7596
  required:
7595
7597
  - channel
7596
7598
  - user
7599
+ CollectionChannel:
7600
+ type: object
7601
+ properties:
7602
+ channel:
7603
+ type: string
7604
+ enum:
7605
+ - collection
7606
+ collection:
7607
+ type: string
7608
+ required:
7609
+ - channel
7610
+ - collection
7597
7611
  CollectionPublishingCustomizationChannel:
7598
7612
  type: object
7599
7613
  properties:
@@ -8268,6 +8282,46 @@ components:
8268
8282
  required:
8269
8283
  - light
8270
8284
  - dark
8285
+ PageFeedback:
8286
+ type: object
8287
+ properties:
8288
+ object:
8289
+ type: string
8290
+ description: Type of Object, always equal to "page-feedback"
8291
+ enum:
8292
+ - page-feedback
8293
+ visitorId:
8294
+ type: string
8295
+ rating:
8296
+ $ref: "#/components/schemas/PageFeedbackRating"
8297
+ createdAt:
8298
+ $ref: "#/components/schemas/Date"
8299
+ revision:
8300
+ type: string
8301
+ description: ID of the revision when the rating was created
8302
+ urls:
8303
+ type: object
8304
+ description: URLs associated with the object
8305
+ properties:
8306
+ location:
8307
+ type: string
8308
+ description: URL of the page feedback in the API
8309
+ format: uri
8310
+ required:
8311
+ - location
8312
+ required:
8313
+ - object
8314
+ - visitorId
8315
+ - rating
8316
+ - createdAt
8317
+ - revision
8318
+ - urls
8319
+ PageFeedbackRating:
8320
+ type: string
8321
+ enum:
8322
+ - bad
8323
+ - ok
8324
+ - good
8271
8325
  responses:
8272
8326
  UnexpectedError:
8273
8327
  description: Unexpected Error
@@ -8421,7 +8475,8 @@ paths:
8421
8475
  /search/questions:
8422
8476
  post:
8423
8477
  operationId: getRecommendedQuestions
8424
- summary: Get a list of questions recommended by AI for a list of content.
8478
+ summary: Get a list of questions recommended by AI for a list of content. Deprecated, use getRecommendedQuestionsInOrganization instead.
8479
+ deprecated: true
8425
8480
  security:
8426
8481
  - user: []
8427
8482
  requestBody:
@@ -8536,6 +8591,20 @@ paths:
8536
8591
  $ref: "#/components/schemas/Space"
8537
8592
  default:
8538
8593
  $ref: "#/components/responses/UnexpectedError"
8594
+ delete:
8595
+ operationId: deleteSpaceById
8596
+ summary: Soft-deletes a space. Soft-deleted spaces will be permanently removed after 7 days.
8597
+ tags:
8598
+ - spaces
8599
+ security:
8600
+ - user: []
8601
+ parameters:
8602
+ - $ref: "#/components/parameters/spaceId"
8603
+ responses:
8604
+ "205":
8605
+ description: Space has been deleted
8606
+ default:
8607
+ $ref: "#/components/responses/UnexpectedError"
8539
8608
  "/spaces/{spaceId}/hive/token":
8540
8609
  post:
8541
8610
  operationId: generateSpaceHiveReadAccessToken
@@ -8577,6 +8646,25 @@ paths:
8577
8646
  $ref: "#/components/schemas/Space"
8578
8647
  default:
8579
8648
  $ref: "#/components/responses/UnexpectedError"
8649
+ "/spaces/{spaceId}/restore":
8650
+ post:
8651
+ operationId: restoreSpace
8652
+ summary: Restore a recently soft-deleted space.
8653
+ tags:
8654
+ - spaces
8655
+ security:
8656
+ - user: []
8657
+ parameters:
8658
+ - $ref: "#/components/parameters/spaceId"
8659
+ responses:
8660
+ "200":
8661
+ description: Space restored
8662
+ content:
8663
+ application/json:
8664
+ schema:
8665
+ $ref: "#/components/schemas/Space"
8666
+ default:
8667
+ $ref: "#/components/responses/UnexpectedError"
8580
8668
  "/spaces/{spaceId}/search":
8581
8669
  get:
8582
8670
  operationId: searchSpaceContent
@@ -9355,8 +9443,10 @@ paths:
9355
9443
  - $ref: "#/components/parameters/changeRequestId"
9356
9444
  - $ref: "#/components/parameters/listPage"
9357
9445
  - $ref: "#/components/parameters/listLimit"
9446
+ - $ref: "#/components/parameters/listOrder"
9358
9447
  - $ref: "#/components/parameters/pageFormat"
9359
9448
  - $ref: "#/components/parameters/commentStatus"
9449
+ - $ref: "#/components/parameters/commentTargetPage"
9360
9450
  responses:
9361
9451
  "200":
9362
9452
  description: OK
@@ -9999,8 +10089,10 @@ paths:
9999
10089
  - $ref: "#/components/parameters/spaceId"
10000
10090
  - $ref: "#/components/parameters/listPage"
10001
10091
  - $ref: "#/components/parameters/listLimit"
10092
+ - $ref: "#/components/parameters/listOrder"
10002
10093
  - $ref: "#/components/parameters/commentStatus"
10003
10094
  - $ref: "#/components/parameters/pageFormat"
10095
+ - $ref: "#/components/parameters/commentTargetPage"
10004
10096
  responses:
10005
10097
  "200":
10006
10098
  description: OK
@@ -10374,6 +10466,29 @@ paths:
10374
10466
  $ref: "#/components/responses/NotFoundError"
10375
10467
  default:
10376
10468
  $ref: "#/components/responses/UnexpectedError"
10469
+ "/spaces/{spaceId}/integration-scripts":
10470
+ get:
10471
+ operationId: listSpaceIntegrationScripts
10472
+ summary: List the scripts to embed in published content for a space.
10473
+ tags:
10474
+ - spaces
10475
+ security:
10476
+ - user: []
10477
+ parameters:
10478
+ - $ref: "#/components/parameters/spaceId"
10479
+ responses:
10480
+ "200":
10481
+ description: OK
10482
+ content:
10483
+ application/json:
10484
+ schema:
10485
+ type: array
10486
+ items:
10487
+ $ref: "#/components/schemas/SpaceIntegrationScript"
10488
+ "400":
10489
+ $ref: "#/components/responses/BadRequestError"
10490
+ default:
10491
+ $ref: "#/components/responses/UnexpectedError"
10377
10492
  "/spaces/{spaceId}/custom-fields":
10378
10493
  get:
10379
10494
  operationId: getSpaceCustomFields
@@ -10413,6 +10528,69 @@ paths:
10413
10528
  description: Custom fields updated
10414
10529
  default:
10415
10530
  $ref: "#/components/responses/UnexpectedError"
10531
+ "/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}":
10532
+ get:
10533
+ operationId: getPageFeedback
10534
+ summary: Get a page feedback by a visitor.
10535
+ tags:
10536
+ - spaces
10537
+ security:
10538
+ - user: []
10539
+ parameters:
10540
+ - $ref: "#/components/parameters/spaceId"
10541
+ - $ref: "#/components/parameters/pageId"
10542
+ - $ref: "#/components/parameters/visitorId"
10543
+ responses:
10544
+ "200":
10545
+ description: OK
10546
+ content:
10547
+ application/json:
10548
+ schema:
10549
+ $ref: "#/components/schemas/PageFeedback"
10550
+ default:
10551
+ $ref: "#/components/responses/UnexpectedError"
10552
+ put:
10553
+ operationId: createPageFeedback
10554
+ summary: Create a page feedback by a visitor.
10555
+ tags:
10556
+ - spaces
10557
+ security:
10558
+ - user: []
10559
+ parameters:
10560
+ - $ref: "#/components/parameters/spaceId"
10561
+ - $ref: "#/components/parameters/pageId"
10562
+ - $ref: "#/components/parameters/visitorId"
10563
+ requestBody:
10564
+ required: true
10565
+ content:
10566
+ application/json:
10567
+ schema:
10568
+ type: object
10569
+ properties:
10570
+ rating:
10571
+ $ref: "#/components/schemas/PageFeedbackRating"
10572
+ required:
10573
+ - rating
10574
+ responses:
10575
+ "200":
10576
+ description: Feedback updated
10577
+ content:
10578
+ application/json:
10579
+ schema:
10580
+ $ref: "#/components/schemas/PageFeedback"
10581
+ "201":
10582
+ description: Feedback created
10583
+ headers:
10584
+ Location:
10585
+ description: URL for the feedback
10586
+ schema:
10587
+ type: string
10588
+ content:
10589
+ application/json:
10590
+ schema:
10591
+ $ref: "#/components/schemas/PageFeedback"
10592
+ default:
10593
+ $ref: "#/components/responses/UnexpectedError"
10416
10594
  "/collections/{collectionId}":
10417
10595
  get:
10418
10596
  operationId: getCollectionById
@@ -10450,6 +10628,10 @@ paths:
10450
10628
  properties:
10451
10629
  visibility:
10452
10630
  $ref: "#/components/schemas/ContentVisibility"
10631
+ title:
10632
+ $ref: "#/components/schemas/CollectionTitle"
10633
+ description:
10634
+ $ref: "#/components/schemas/CollectionDescription"
10453
10635
  responses:
10454
10636
  "200":
10455
10637
  description: The collection has been updated
@@ -10459,6 +10641,20 @@ paths:
10459
10641
  $ref: "#/components/schemas/Collection"
10460
10642
  default:
10461
10643
  $ref: "#/components/responses/UnexpectedError"
10644
+ delete:
10645
+ operationId: deleteCollectionById
10646
+ summary: Deletes a collection
10647
+ tags:
10648
+ - collections
10649
+ security:
10650
+ - user: []
10651
+ parameters:
10652
+ - $ref: "#/components/parameters/collectionId"
10653
+ responses:
10654
+ "205":
10655
+ description: Collection has been deleted
10656
+ default:
10657
+ $ref: "#/components/responses/UnexpectedError"
10462
10658
  "/collections/{collectionId}/spaces":
10463
10659
  get:
10464
10660
  operationId: listSpacesInCollectionById
@@ -12126,6 +12322,7 @@ paths:
12126
12322
  space:
12127
12323
  $ref: "#/components/schemas/Space"
12128
12324
  gitSync:
12325
+ deprecated: true
12129
12326
  $ref: "#/components/schemas/GitSyncState"
12130
12327
  required:
12131
12328
  - space
@@ -12204,129 +12401,6 @@ paths:
12204
12401
  $ref: "#/components/schemas/Collection"
12205
12402
  default:
12206
12403
  $ref: "#/components/responses/UnexpectedError"
12207
- "/orgs/{organizationId}/dsync":
12208
- post:
12209
- operationId: setupDirectorySync
12210
- summary: Set up Directory Sync in an organization.
12211
- tags:
12212
- - organizations
12213
- - dsync
12214
- security:
12215
- - user-internal: []
12216
- parameters:
12217
- - $ref: "#/components/parameters/organizationId"
12218
- responses:
12219
- "200":
12220
- description: Directory Sync has been properly initialized for the organization.
12221
- content:
12222
- application/json:
12223
- schema:
12224
- type: object
12225
- required:
12226
- - setupUrl
12227
- properties:
12228
- setupUrl:
12229
- description: The URL to navigate to to continue Directory Sync setup.
12230
- type: string
12231
- default:
12232
- $ref: "#/components/responses/UnexpectedError"
12233
- "/orgs/{organizationId}/dsync/groups":
12234
- get:
12235
- operationId: listDirectorySyncGroups
12236
- summary: Lists the groups exposed to the synced Directory on an organization.
12237
- tags:
12238
- - organizations
12239
- - dsync
12240
- security:
12241
- - user-internal: []
12242
- parameters:
12243
- - $ref: "#/components/parameters/organizationId"
12244
- responses:
12245
- "200":
12246
- description: |
12247
- A list of all of a Directory's group configured for the given identity provider.
12248
- Only groups pushed to the SCIM sync will be listed in this result.
12249
- content:
12250
- application/json:
12251
- schema:
12252
- type: object
12253
- description: All the groups.
12254
- required:
12255
- - groups
12256
- properties:
12257
- groups:
12258
- type: array
12259
- items:
12260
- $ref: "#/components/schemas/OrganizationDirectorySyncGroup"
12261
- default:
12262
- $ref: "#/components/responses/UnexpectedError"
12263
- "/orgs/{organizationId}/dsync/teams":
12264
- post:
12265
- operationId: syncDirectorySyncGroupsToTeams
12266
- summary: Syncs a list of group/team unique identifiers pairs together.
12267
- description: |
12268
- Each pair will lead the team being synced to the group (unless it is already synced to another) and the members of the group will then be synced to the team.
12269
- Each sync is independent, the endpoint will still succeed if some of the syncs fail.
12270
- Check the response to know more about the success or failure of the entire sync.
12271
- tags:
12272
- - organizations
12273
- - dsync
12274
- security:
12275
- - user-internal: []
12276
- parameters:
12277
- - $ref: "#/components/parameters/organizationId"
12278
- requestBody:
12279
- required: true
12280
- content:
12281
- application/json:
12282
- schema:
12283
- type: object
12284
- description: |
12285
- Parameters for syncing a list of Directory Sync groups to a GitBook team, syncing all members of those groups to the assigned teams.
12286
- The endpoint can be used for one or many groups to team syncs.
12287
- required:
12288
- - to_sync
12289
- properties:
12290
- to_sync:
12291
- type: array
12292
- description: |
12293
- A list of groups to teams pairs to sync.
12294
- The group_id is required and the team_id is optional.
12295
- If the latter is omitted, a new team will be created from the group's data.
12296
- items:
12297
- type: object
12298
- required:
12299
- - group_id
12300
- properties:
12301
- group_id:
12302
- type: string
12303
- description: The unique identifier of the group for the given identity provider.
12304
- team_id:
12305
- type: string
12306
- description: The unique identifier of the team for the given identity provider.
12307
- responses:
12308
- "200":
12309
- description: |
12310
- A list of the results of the synchronization.
12311
- This will return regardless of the status of the sync.
12312
- Check the content to know if the sync was successful.
12313
- content:
12314
- application/json:
12315
- schema:
12316
- type: object
12317
- required:
12318
- - synced
12319
- properties:
12320
- synced:
12321
- type: array
12322
- description: |
12323
- The list of synced pairs, mapped to the original pairs given to the sync parameters.
12324
- Either the group_id and team_id will be defined, or the error will be defined to describe why it failed.
12325
- Use the success parameter to know if the pair sync was sucessful or not.
12326
- items:
12327
- $ref: "#/components/schemas/OrganizationDirectorySyncGroupTeamStatus"
12328
- default:
12329
- $ref: "#/components/responses/UnexpectedError"
12330
12404
  "/orgs/{organizationId}/custom-fields":
12331
12405
  get:
12332
12406
  operationId: listOrganizationCustomFields
@@ -13142,6 +13216,113 @@ paths:
13142
13216
  $ref: "#/components/schemas/Snippet"
13143
13217
  default:
13144
13218
  $ref: "#/components/responses/UnexpectedError"
13219
+ "/orgs/{organizationId}/snippets/{snippetId}/move":
13220
+ post:
13221
+ operationId: moveSnippet
13222
+ summary: Move a snippet into a destination. The snippet will be archived in the process.
13223
+ tags:
13224
+ - organizations
13225
+ security:
13226
+ - user: []
13227
+ parameters:
13228
+ - $ref: "#/components/parameters/organizationId"
13229
+ - $ref: "#/components/parameters/snippetId"
13230
+ requestBody:
13231
+ required: true
13232
+ content:
13233
+ application/json:
13234
+ schema:
13235
+ type: object
13236
+ required:
13237
+ - target
13238
+ properties:
13239
+ target:
13240
+ type: object
13241
+ description: Intended destination for the page
13242
+ properties:
13243
+ space:
13244
+ description: The id of the target space
13245
+ type: string
13246
+ position:
13247
+ type: object
13248
+ properties:
13249
+ parent:
13250
+ description: The parent of the page in the target space. If undefined, the page will be inserted at the root of the space.
13251
+ type: string
13252
+ index:
13253
+ description: The index of the page in the parent. If undefined, the page will be inserted at the end of the parent's current children.
13254
+ type: number
13255
+ required:
13256
+ - space
13257
+ responses:
13258
+ "200":
13259
+ description: The snippet was successfully moved.
13260
+ content:
13261
+ application/json:
13262
+ schema:
13263
+ type: object
13264
+ required:
13265
+ - page
13266
+ properties:
13267
+ page:
13268
+ $ref: "#/components/schemas/RevisionPageDocument"
13269
+ changeRequest:
13270
+ $ref: "#/components/schemas/ChangeRequest"
13271
+ default:
13272
+ $ref: "#/components/responses/UnexpectedError"
13273
+ get:
13274
+ operationId: getSnippetSuggestedLocations
13275
+ summary: Return possible snippet locations in an organization based on the current user.
13276
+ tags:
13277
+ - organizations
13278
+ security:
13279
+ - user: []
13280
+ parameters:
13281
+ - $ref: "#/components/parameters/organizationId"
13282
+ - $ref: "#/components/parameters/snippetId"
13283
+ - $ref: "#/components/parameters/listPage"
13284
+ - $ref: "#/components/parameters/listLimit"
13285
+ - name: spaceId
13286
+ in: query
13287
+ description: If specified, only locations in the given space will be returned. If not specified, GitBook will suggest spaces.
13288
+ schema:
13289
+ type: string
13290
+ - name: pageId
13291
+ in: query
13292
+ description: If specified, only locations under the given pageId will be returned. You must specify a spaceId too. If pageId is not specified, GitBook will suggest pages at the top level.
13293
+ schema:
13294
+ type: string
13295
+ responses:
13296
+ "200":
13297
+ description: A paginated list of suggested snippet locations.
13298
+ content:
13299
+ application/json:
13300
+ schema:
13301
+ allOf:
13302
+ - $ref: "#/components/schemas/List"
13303
+ - type: object
13304
+ required:
13305
+ - items
13306
+ properties:
13307
+ items:
13308
+ type: array
13309
+ items:
13310
+ type: object
13311
+ required:
13312
+ - space
13313
+ properties:
13314
+ aiPowered:
13315
+ type: boolean
13316
+ description: If defined and true, this location was suggested by GitBook AI.
13317
+ space:
13318
+ $ref: "#/components/schemas/Space"
13319
+ parentPage:
13320
+ description: The parent page of the suggested location.
13321
+ oneOf:
13322
+ - $ref: "#/components/schemas/RevisionPageDocument"
13323
+ - $ref: "#/components/schemas/RevisionPageGroup"
13324
+ default:
13325
+ $ref: "#/components/responses/UnexpectedError"
13145
13326
  "/orgs/{organizationId}/ask":
13146
13327
  post:
13147
13328
  operationId: askInOrganization
@@ -13168,6 +13349,23 @@ paths:
13168
13349
  $ref: "#/components/schemas/SearchAIAnswer"
13169
13350
  default:
13170
13351
  $ref: "#/components/responses/UnexpectedError"
13352
+ "/orgs/{organizationId}/ask/questions":
13353
+ get:
13354
+ operationId: getRecommendedQuestionsInOrganization
13355
+ summary: Get a list of questions recommended to be asked in an organization.
13356
+ parameters:
13357
+ - $ref: "#/components/parameters/organizationId"
13358
+ security:
13359
+ - user: []
13360
+ responses:
13361
+ "200":
13362
+ description: OK
13363
+ content:
13364
+ application/json:
13365
+ schema:
13366
+ $ref: "#/components/schemas/SearchAIRecommendedQuestions"
13367
+ default:
13368
+ $ref: "#/components/responses/UnexpectedError"
13171
13369
  "/orgs/{organizationId}/insights/audit-relations":
13172
13370
  get:
13173
13371
  operationId: listContentAuditRelations