@gitbook/api 0.20.1 → 0.21.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.json CHANGED
@@ -117,6 +117,14 @@
117
117
  ]
118
118
  }
119
119
  },
120
+ "commentTargetPage": {
121
+ "name": "targetPage",
122
+ "in": "query",
123
+ "description": "The target page of the comment",
124
+ "schema": {
125
+ "type": "string"
126
+ }
127
+ },
120
128
  "spaceId": {
121
129
  "name": "spaceId",
122
130
  "in": "path",
@@ -297,6 +305,15 @@
297
305
  "type": "string"
298
306
  }
299
307
  },
308
+ "visitorId": {
309
+ "name": "visitorId",
310
+ "in": "path",
311
+ "required": true,
312
+ "description": "The id of the visitor",
313
+ "schema": {
314
+ "type": "string"
315
+ }
316
+ },
300
317
  "backofficeHostname": {
301
318
  "name": "hostname",
302
319
  "in": "path",
@@ -4586,6 +4603,17 @@
4586
4603
  "document"
4587
4604
  ]
4588
4605
  },
4606
+ "urls": {
4607
+ "required": [
4608
+ "app"
4609
+ ],
4610
+ "properties": {
4611
+ "app": {
4612
+ "description": "Location of the page in the app",
4613
+ "$ref": "#/components/schemas/URL"
4614
+ }
4615
+ }
4616
+ },
4589
4617
  "slug": {
4590
4618
  "description": "Page's slug in its direct parent",
4591
4619
  "type": "string"
@@ -4627,6 +4655,7 @@
4627
4655
  "required": [
4628
4656
  "kind",
4629
4657
  "type",
4658
+ "urls",
4630
4659
  "slug",
4631
4660
  "path",
4632
4661
  "pages",
@@ -5602,81 +5631,6 @@
5602
5631
  }
5603
5632
  }
5604
5633
  },
5605
- "OrganizationDirectorySyncGroup": {
5606
- "type": "object",
5607
- "required": [
5608
- "id",
5609
- "idp_id",
5610
- "directory_id",
5611
- "name"
5612
- ],
5613
- "properties": {
5614
- "id": {
5615
- "type": "string",
5616
- "description": "The unique identifier of this group in WorkOS. Not the unique ID from GitBook."
5617
- },
5618
- "idp_id": {
5619
- "type": "string",
5620
- "description": "The identity provider's unique ID for this group, should be used to generate the team's unique ID when syncing the groups."
5621
- },
5622
- "directory_id": {
5623
- "type": "string",
5624
- "description": "The unique ID of the directory this group is owned by in WorkOS. Is not a unique ID from our database."
5625
- },
5626
- "name": {
5627
- "type": "string",
5628
- "description": "The name of the group from the identity provider, it should always be set according to the WorkOS documentation."
5629
- },
5630
- "teamKey": {
5631
- "type": "string",
5632
- "description": "The unique ID of the GitBook team already synced to this group, if applicable."
5633
- }
5634
- }
5635
- },
5636
- "OrganizationDirectorySyncGroupTeamStatus": {
5637
- "anyOf": [
5638
- {
5639
- "type": "object",
5640
- "required": [
5641
- "success",
5642
- "group_id",
5643
- "team_id"
5644
- ],
5645
- "properties": {
5646
- "success": {
5647
- "type": "boolean",
5648
- "enum": [
5649
- true
5650
- ]
5651
- },
5652
- "group_id": {
5653
- "type": "string"
5654
- },
5655
- "team_id": {
5656
- "type": "string"
5657
- }
5658
- }
5659
- },
5660
- {
5661
- "type": "object",
5662
- "required": [
5663
- "success",
5664
- "error"
5665
- ],
5666
- "properties": {
5667
- "success": {
5668
- "type": "boolean",
5669
- "enum": [
5670
- false
5671
- ]
5672
- },
5673
- "error": {
5674
- "type": "string"
5675
- }
5676
- }
5677
- }
5678
- ]
5679
- },
5680
5634
  "OrganizationTarget": {
5681
5635
  "type": "object",
5682
5636
  "required": [
@@ -6223,6 +6177,10 @@
6223
6177
  "format": "date-time",
6224
6178
  "description": "Timestamp of when the snippet was last edited, if it has been edited since its creation."
6225
6179
  },
6180
+ "archived": {
6181
+ "type": "boolean",
6182
+ "description": "Whether the snippet is archived. Archived snippets don't appear in search results or in the app."
6183
+ },
6226
6184
  "title": {
6227
6185
  "type": "string",
6228
6186
  "description": "Title describing the snippet.",
@@ -6292,6 +6250,7 @@
6292
6250
  "id",
6293
6251
  "source",
6294
6252
  "createdAt",
6253
+ "archived",
6295
6254
  "contributors",
6296
6255
  "urls"
6297
6256
  ]
@@ -8160,6 +8119,27 @@
8160
8119
  }
8161
8120
  }
8162
8121
  },
8122
+ "SpaceIntegrationScript": {
8123
+ "type": "object",
8124
+ "properties": {
8125
+ "script": {
8126
+ "description": "Script URL to load.",
8127
+ "$ref": "#/components/schemas/URL"
8128
+ },
8129
+ "contentSecurityPolicy": {
8130
+ "description": "Content Security Policy to secure the loading of this script.",
8131
+ "type": "string"
8132
+ },
8133
+ "cookies": {
8134
+ "type": "boolean",
8135
+ "description": "If true, the script will potentially load use cookies and visitors should be aware."
8136
+ }
8137
+ },
8138
+ "required": [
8139
+ "script",
8140
+ "cookies"
8141
+ ]
8142
+ },
8163
8143
  "UpsertEntity": {
8164
8144
  "type": "object",
8165
8145
  "description": "Entity to create or update in an integration's installation.",
@@ -12580,6 +12560,61 @@
12580
12560
  "light",
12581
12561
  "dark"
12582
12562
  ]
12563
+ },
12564
+ "PageFeedback": {
12565
+ "type": "object",
12566
+ "properties": {
12567
+ "object": {
12568
+ "type": "string",
12569
+ "description": "Type of Object, always equal to \"page-feedback\"",
12570
+ "enum": [
12571
+ "page-feedback"
12572
+ ]
12573
+ },
12574
+ "visitorId": {
12575
+ "type": "string"
12576
+ },
12577
+ "rating": {
12578
+ "$ref": "#/components/schemas/PageFeedbackRating"
12579
+ },
12580
+ "createdAt": {
12581
+ "$ref": "#/components/schemas/Date"
12582
+ },
12583
+ "revision": {
12584
+ "type": "string",
12585
+ "description": "ID of the revision when the rating was created"
12586
+ },
12587
+ "urls": {
12588
+ "type": "object",
12589
+ "description": "URLs associated with the object",
12590
+ "properties": {
12591
+ "location": {
12592
+ "type": "string",
12593
+ "description": "URL of the page feedback in the API",
12594
+ "format": "uri"
12595
+ }
12596
+ },
12597
+ "required": [
12598
+ "location"
12599
+ ]
12600
+ }
12601
+ },
12602
+ "required": [
12603
+ "object",
12604
+ "visitorId",
12605
+ "rating",
12606
+ "createdAt",
12607
+ "revision",
12608
+ "urls"
12609
+ ]
12610
+ },
12611
+ "PageFeedbackRating": {
12612
+ "type": "string",
12613
+ "enum": [
12614
+ "bad",
12615
+ "ok",
12616
+ "good"
12617
+ ]
12583
12618
  }
12584
12619
  },
12585
12620
  "responses": {
@@ -12836,7 +12871,8 @@
12836
12871
  "/search/questions": {
12837
12872
  "post": {
12838
12873
  "operationId": "getRecommendedQuestions",
12839
- "summary": "Get a list of questions recommended by AI for a list of content.",
12874
+ "summary": "Get a list of questions recommended by AI for a list of content. Deprecated, use getRecommendedQuestionsInOrganization instead.",
12875
+ "deprecated": true,
12840
12876
  "security": [
12841
12877
  {
12842
12878
  "user": []
@@ -14493,11 +14529,17 @@
14493
14529
  {
14494
14530
  "$ref": "#/components/parameters/listLimit"
14495
14531
  },
14532
+ {
14533
+ "$ref": "#/components/parameters/listOrder"
14534
+ },
14496
14535
  {
14497
14536
  "$ref": "#/components/parameters/pageFormat"
14498
14537
  },
14499
14538
  {
14500
14539
  "$ref": "#/components/parameters/commentStatus"
14540
+ },
14541
+ {
14542
+ "$ref": "#/components/parameters/commentTargetPage"
14501
14543
  }
14502
14544
  ],
14503
14545
  "responses": {
@@ -15725,11 +15767,17 @@
15725
15767
  {
15726
15768
  "$ref": "#/components/parameters/listLimit"
15727
15769
  },
15770
+ {
15771
+ "$ref": "#/components/parameters/listOrder"
15772
+ },
15728
15773
  {
15729
15774
  "$ref": "#/components/parameters/commentStatus"
15730
15775
  },
15731
15776
  {
15732
15777
  "$ref": "#/components/parameters/pageFormat"
15778
+ },
15779
+ {
15780
+ "$ref": "#/components/parameters/commentTargetPage"
15733
15781
  }
15734
15782
  ],
15735
15783
  "responses": {
@@ -16416,6 +16464,46 @@
16416
16464
  }
16417
16465
  }
16418
16466
  },
16467
+ "/spaces/{spaceId}/integration-scripts": {
16468
+ "get": {
16469
+ "operationId": "listSpaceIntegrationScripts",
16470
+ "summary": "List the scripts to embed in published content for a space.",
16471
+ "tags": [
16472
+ "spaces"
16473
+ ],
16474
+ "security": [
16475
+ {
16476
+ "user": []
16477
+ }
16478
+ ],
16479
+ "parameters": [
16480
+ {
16481
+ "$ref": "#/components/parameters/spaceId"
16482
+ }
16483
+ ],
16484
+ "responses": {
16485
+ "200": {
16486
+ "description": "OK",
16487
+ "content": {
16488
+ "application/json": {
16489
+ "schema": {
16490
+ "type": "array",
16491
+ "items": {
16492
+ "$ref": "#/components/schemas/SpaceIntegrationScript"
16493
+ }
16494
+ }
16495
+ }
16496
+ }
16497
+ },
16498
+ "400": {
16499
+ "$ref": "#/components/responses/BadRequestError"
16500
+ },
16501
+ "default": {
16502
+ "$ref": "#/components/responses/UnexpectedError"
16503
+ }
16504
+ }
16505
+ }
16506
+ },
16419
16507
  "/spaces/{spaceId}/custom-fields": {
16420
16508
  "get": {
16421
16509
  "operationId": "getSpaceCustomFields",
@@ -16485,12 +16573,12 @@
16485
16573
  }
16486
16574
  }
16487
16575
  },
16488
- "/collections/{collectionId}": {
16576
+ "/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}": {
16489
16577
  "get": {
16490
- "operationId": "getCollectionById",
16491
- "summary": "Get the details about a collection using its ID",
16578
+ "operationId": "getPageFeedback",
16579
+ "summary": "Get a page feedback by a visitor.",
16492
16580
  "tags": [
16493
- "collections"
16581
+ "spaces"
16494
16582
  ],
16495
16583
  "security": [
16496
16584
  {
@@ -16499,7 +16587,13 @@
16499
16587
  ],
16500
16588
  "parameters": [
16501
16589
  {
16502
- "$ref": "#/components/parameters/collectionId"
16590
+ "$ref": "#/components/parameters/spaceId"
16591
+ },
16592
+ {
16593
+ "$ref": "#/components/parameters/pageId"
16594
+ },
16595
+ {
16596
+ "$ref": "#/components/parameters/visitorId"
16503
16597
  }
16504
16598
  ],
16505
16599
  "responses": {
@@ -16508,7 +16602,7 @@
16508
16602
  "content": {
16509
16603
  "application/json": {
16510
16604
  "schema": {
16511
- "$ref": "#/components/schemas/Collection"
16605
+ "$ref": "#/components/schemas/PageFeedback"
16512
16606
  }
16513
16607
  }
16514
16608
  }
@@ -16518,11 +16612,11 @@
16518
16612
  }
16519
16613
  }
16520
16614
  },
16521
- "patch": {
16522
- "operationId": "updateCollectionById",
16523
- "summary": "Update the details of a collection",
16615
+ "put": {
16616
+ "operationId": "createPageFeedback",
16617
+ "summary": "Create a page feedback by a visitor.",
16524
16618
  "tags": [
16525
- "collections"
16619
+ "spaces"
16526
16620
  ],
16527
16621
  "security": [
16528
16622
  {
@@ -16531,7 +16625,13 @@
16531
16625
  ],
16532
16626
  "parameters": [
16533
16627
  {
16534
- "$ref": "#/components/parameters/collectionId"
16628
+ "$ref": "#/components/parameters/spaceId"
16629
+ },
16630
+ {
16631
+ "$ref": "#/components/parameters/pageId"
16632
+ },
16633
+ {
16634
+ "$ref": "#/components/parameters/visitorId"
16535
16635
  }
16536
16636
  ],
16537
16637
  "requestBody": {
@@ -16541,21 +16641,42 @@
16541
16641
  "schema": {
16542
16642
  "type": "object",
16543
16643
  "properties": {
16544
- "visibility": {
16545
- "$ref": "#/components/schemas/ContentVisibility"
16644
+ "rating": {
16645
+ "$ref": "#/components/schemas/PageFeedbackRating"
16546
16646
  }
16547
- }
16647
+ },
16648
+ "required": [
16649
+ "rating"
16650
+ ]
16548
16651
  }
16549
16652
  }
16550
16653
  }
16551
16654
  },
16552
16655
  "responses": {
16553
16656
  "200": {
16554
- "description": "The collection has been updated",
16657
+ "description": "Feedback updated",
16555
16658
  "content": {
16556
16659
  "application/json": {
16557
16660
  "schema": {
16558
- "$ref": "#/components/schemas/Collection"
16661
+ "$ref": "#/components/schemas/PageFeedback"
16662
+ }
16663
+ }
16664
+ }
16665
+ },
16666
+ "201": {
16667
+ "description": "Feedback created",
16668
+ "headers": {
16669
+ "Location": {
16670
+ "description": "URL for the feedback",
16671
+ "schema": {
16672
+ "type": "string"
16673
+ }
16674
+ }
16675
+ },
16676
+ "content": {
16677
+ "application/json": {
16678
+ "schema": {
16679
+ "$ref": "#/components/schemas/PageFeedback"
16559
16680
  }
16560
16681
  }
16561
16682
  }
@@ -16566,10 +16687,10 @@
16566
16687
  }
16567
16688
  }
16568
16689
  },
16569
- "/collections/{collectionId}/spaces": {
16690
+ "/collections/{collectionId}": {
16570
16691
  "get": {
16571
- "operationId": "listSpacesInCollectionById",
16572
- "summary": "List all the spaces in a collection by its ID.",
16692
+ "operationId": "getCollectionById",
16693
+ "summary": "Get the details about a collection using its ID",
16573
16694
  "tags": [
16574
16695
  "collections"
16575
16696
  ],
@@ -16581,12 +16702,6 @@
16581
16702
  "parameters": [
16582
16703
  {
16583
16704
  "$ref": "#/components/parameters/collectionId"
16584
- },
16585
- {
16586
- "$ref": "#/components/parameters/listPage"
16587
- },
16588
- {
16589
- "$ref": "#/components/parameters/listLimit"
16590
16705
  }
16591
16706
  ],
16592
16707
  "responses": {
@@ -16595,23 +16710,110 @@
16595
16710
  "content": {
16596
16711
  "application/json": {
16597
16712
  "schema": {
16598
- "allOf": [
16599
- {
16600
- "$ref": "#/components/schemas/List"
16601
- },
16602
- {
16603
- "type": "object",
16604
- "required": [
16605
- "items"
16606
- ],
16607
- "properties": {
16608
- "items": {
16609
- "type": "array",
16610
- "items": {
16611
- "$ref": "#/components/schemas/Space"
16612
- }
16613
- }
16614
- }
16713
+ "$ref": "#/components/schemas/Collection"
16714
+ }
16715
+ }
16716
+ }
16717
+ },
16718
+ "default": {
16719
+ "$ref": "#/components/responses/UnexpectedError"
16720
+ }
16721
+ }
16722
+ },
16723
+ "patch": {
16724
+ "operationId": "updateCollectionById",
16725
+ "summary": "Update the details of a collection",
16726
+ "tags": [
16727
+ "collections"
16728
+ ],
16729
+ "security": [
16730
+ {
16731
+ "user": []
16732
+ }
16733
+ ],
16734
+ "parameters": [
16735
+ {
16736
+ "$ref": "#/components/parameters/collectionId"
16737
+ }
16738
+ ],
16739
+ "requestBody": {
16740
+ "required": true,
16741
+ "content": {
16742
+ "application/json": {
16743
+ "schema": {
16744
+ "type": "object",
16745
+ "properties": {
16746
+ "visibility": {
16747
+ "$ref": "#/components/schemas/ContentVisibility"
16748
+ }
16749
+ }
16750
+ }
16751
+ }
16752
+ }
16753
+ },
16754
+ "responses": {
16755
+ "200": {
16756
+ "description": "The collection has been updated",
16757
+ "content": {
16758
+ "application/json": {
16759
+ "schema": {
16760
+ "$ref": "#/components/schemas/Collection"
16761
+ }
16762
+ }
16763
+ }
16764
+ },
16765
+ "default": {
16766
+ "$ref": "#/components/responses/UnexpectedError"
16767
+ }
16768
+ }
16769
+ }
16770
+ },
16771
+ "/collections/{collectionId}/spaces": {
16772
+ "get": {
16773
+ "operationId": "listSpacesInCollectionById",
16774
+ "summary": "List all the spaces in a collection by its ID.",
16775
+ "tags": [
16776
+ "collections"
16777
+ ],
16778
+ "security": [
16779
+ {
16780
+ "user": []
16781
+ }
16782
+ ],
16783
+ "parameters": [
16784
+ {
16785
+ "$ref": "#/components/parameters/collectionId"
16786
+ },
16787
+ {
16788
+ "$ref": "#/components/parameters/listPage"
16789
+ },
16790
+ {
16791
+ "$ref": "#/components/parameters/listLimit"
16792
+ }
16793
+ ],
16794
+ "responses": {
16795
+ "200": {
16796
+ "description": "OK",
16797
+ "content": {
16798
+ "application/json": {
16799
+ "schema": {
16800
+ "allOf": [
16801
+ {
16802
+ "$ref": "#/components/schemas/List"
16803
+ },
16804
+ {
16805
+ "type": "object",
16806
+ "required": [
16807
+ "items"
16808
+ ],
16809
+ "properties": {
16810
+ "items": {
16811
+ "type": "array",
16812
+ "items": {
16813
+ "$ref": "#/components/schemas/Space"
16814
+ }
16815
+ }
16816
+ }
16615
16817
  }
16616
16818
  ]
16617
16819
  }
@@ -19640,181 +19842,6 @@
19640
19842
  }
19641
19843
  }
19642
19844
  },
19643
- "/orgs/{organizationId}/dsync": {
19644
- "post": {
19645
- "operationId": "setupDirectorySync",
19646
- "summary": "Set up Directory Sync in an organization.",
19647
- "tags": [
19648
- "organizations",
19649
- "dsync"
19650
- ],
19651
- "security": [
19652
- {
19653
- "user-internal": []
19654
- }
19655
- ],
19656
- "parameters": [
19657
- {
19658
- "$ref": "#/components/parameters/organizationId"
19659
- }
19660
- ],
19661
- "responses": {
19662
- "200": {
19663
- "description": "Directory Sync has been properly initialized for the organization.",
19664
- "content": {
19665
- "application/json": {
19666
- "schema": {
19667
- "type": "object",
19668
- "required": [
19669
- "setupUrl"
19670
- ],
19671
- "properties": {
19672
- "setupUrl": {
19673
- "description": "The URL to navigate to to continue Directory Sync setup.",
19674
- "type": "string"
19675
- }
19676
- }
19677
- }
19678
- }
19679
- }
19680
- },
19681
- "default": {
19682
- "$ref": "#/components/responses/UnexpectedError"
19683
- }
19684
- }
19685
- }
19686
- },
19687
- "/orgs/{organizationId}/dsync/groups": {
19688
- "get": {
19689
- "operationId": "listDirectorySyncGroups",
19690
- "summary": "Lists the groups exposed to the synced Directory on an organization.",
19691
- "tags": [
19692
- "organizations",
19693
- "dsync"
19694
- ],
19695
- "security": [
19696
- {
19697
- "user-internal": []
19698
- }
19699
- ],
19700
- "parameters": [
19701
- {
19702
- "$ref": "#/components/parameters/organizationId"
19703
- }
19704
- ],
19705
- "responses": {
19706
- "200": {
19707
- "description": "A list of all of a Directory's group configured for the given identity provider.\nOnly groups pushed to the SCIM sync will be listed in this result.\n",
19708
- "content": {
19709
- "application/json": {
19710
- "schema": {
19711
- "type": "object",
19712
- "description": "All the groups.",
19713
- "required": [
19714
- "groups"
19715
- ],
19716
- "properties": {
19717
- "groups": {
19718
- "type": "array",
19719
- "items": {
19720
- "$ref": "#/components/schemas/OrganizationDirectorySyncGroup"
19721
- }
19722
- }
19723
- }
19724
- }
19725
- }
19726
- }
19727
- },
19728
- "default": {
19729
- "$ref": "#/components/responses/UnexpectedError"
19730
- }
19731
- }
19732
- }
19733
- },
19734
- "/orgs/{organizationId}/dsync/teams": {
19735
- "post": {
19736
- "operationId": "syncDirectorySyncGroupsToTeams",
19737
- "summary": "Syncs a list of group/team unique identifiers pairs together.",
19738
- "description": "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.\nEach sync is independent, the endpoint will still succeed if some of the syncs fail.\nCheck the response to know more about the success or failure of the entire sync.\n",
19739
- "tags": [
19740
- "organizations",
19741
- "dsync"
19742
- ],
19743
- "security": [
19744
- {
19745
- "user-internal": []
19746
- }
19747
- ],
19748
- "parameters": [
19749
- {
19750
- "$ref": "#/components/parameters/organizationId"
19751
- }
19752
- ],
19753
- "requestBody": {
19754
- "required": true,
19755
- "content": {
19756
- "application/json": {
19757
- "schema": {
19758
- "type": "object",
19759
- "description": "Parameters for syncing a list of Directory Sync groups to a GitBook team, syncing all members of those groups to the assigned teams.\nThe endpoint can be used for one or many groups to team syncs.\n",
19760
- "required": [
19761
- "to_sync"
19762
- ],
19763
- "properties": {
19764
- "to_sync": {
19765
- "type": "array",
19766
- "description": "A list of groups to teams pairs to sync.\nThe group_id is required and the team_id is optional.\nIf the latter is omitted, a new team will be created from the group's data.\n",
19767
- "items": {
19768
- "type": "object",
19769
- "required": [
19770
- "group_id"
19771
- ],
19772
- "properties": {
19773
- "group_id": {
19774
- "type": "string",
19775
- "description": "The unique identifier of the group for the given identity provider."
19776
- },
19777
- "team_id": {
19778
- "type": "string",
19779
- "description": "The unique identifier of the team for the given identity provider."
19780
- }
19781
- }
19782
- }
19783
- }
19784
- }
19785
- }
19786
- }
19787
- }
19788
- },
19789
- "responses": {
19790
- "200": {
19791
- "description": "A list of the results of the synchronization.\nThis will return regardless of the status of the sync.\nCheck the content to know if the sync was successful.\n",
19792
- "content": {
19793
- "application/json": {
19794
- "schema": {
19795
- "type": "object",
19796
- "required": [
19797
- "synced"
19798
- ],
19799
- "properties": {
19800
- "synced": {
19801
- "type": "array",
19802
- "description": "The list of synced pairs, mapped to the original pairs given to the sync parameters.\nEither the group_id and team_id will be defined, or the error will be defined to describe why it failed.\nUse the success parameter to know if the pair sync was sucessful or not.\n",
19803
- "items": {
19804
- "$ref": "#/components/schemas/OrganizationDirectorySyncGroupTeamStatus"
19805
- }
19806
- }
19807
- }
19808
- }
19809
- }
19810
- }
19811
- },
19812
- "default": {
19813
- "$ref": "#/components/responses/UnexpectedError"
19814
- }
19815
- }
19816
- }
19817
- },
19818
19845
  "/orgs/{organizationId}/custom-fields": {
19819
19846
  "get": {
19820
19847
  "operationId": "listOrganizationCustomFields",
@@ -21278,6 +21305,95 @@
21278
21305
  }
21279
21306
  }
21280
21307
  },
21308
+ "/orgs/{organizationId}/snippets/{snippetId}/move": {
21309
+ "post": {
21310
+ "operationId": "moveSnippet",
21311
+ "summary": "Move a snippet into a destination. The snippet will be archived in the process.",
21312
+ "tags": [
21313
+ "organizations"
21314
+ ],
21315
+ "security": [
21316
+ {
21317
+ "user": []
21318
+ }
21319
+ ],
21320
+ "parameters": [
21321
+ {
21322
+ "$ref": "#/components/parameters/organizationId"
21323
+ },
21324
+ {
21325
+ "$ref": "#/components/parameters/snippetId"
21326
+ }
21327
+ ],
21328
+ "requestBody": {
21329
+ "required": true,
21330
+ "content": {
21331
+ "application/json": {
21332
+ "schema": {
21333
+ "type": "object",
21334
+ "required": [
21335
+ "target"
21336
+ ],
21337
+ "properties": {
21338
+ "target": {
21339
+ "type": "object",
21340
+ "description": "Intended destination for the page",
21341
+ "properties": {
21342
+ "space": {
21343
+ "description": "The id of the target space",
21344
+ "type": "string"
21345
+ },
21346
+ "position": {
21347
+ "type": "object",
21348
+ "properties": {
21349
+ "parent": {
21350
+ "description": "The parent of the page in the target space. If undefined, the page will be inserted at the root of the space.",
21351
+ "type": "string"
21352
+ },
21353
+ "index": {
21354
+ "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.",
21355
+ "type": "number"
21356
+ }
21357
+ }
21358
+ }
21359
+ },
21360
+ "required": [
21361
+ "space"
21362
+ ]
21363
+ }
21364
+ }
21365
+ }
21366
+ }
21367
+ }
21368
+ },
21369
+ "responses": {
21370
+ "200": {
21371
+ "description": "The snippet was successfully moved.",
21372
+ "content": {
21373
+ "application/json": {
21374
+ "schema": {
21375
+ "type": "object",
21376
+ "required": [
21377
+ "page"
21378
+ ],
21379
+ "properties": {
21380
+ "page": {
21381
+ "$ref": "#/components/schemas/RevisionPageDocument"
21382
+ },
21383
+ "changeRequest": {
21384
+ "$ref": "#/components/schemas/ChangeRequest"
21385
+ }
21386
+ }
21387
+ }
21388
+ }
21389
+ }
21390
+ },
21391
+ "default": {
21392
+ "$ref": "#/components/responses/UnexpectedError"
21393
+ }
21394
+ }
21395
+ }
21396
+ },
21281
21397
  "/orgs/{organizationId}/ask": {
21282
21398
  "post": {
21283
21399
  "operationId": "askInOrganization",
@@ -21324,6 +21440,37 @@
21324
21440
  }
21325
21441
  }
21326
21442
  },
21443
+ "/orgs/{organizationId}/ask/questions": {
21444
+ "get": {
21445
+ "operationId": "getRecommendedQuestionsInOrganization",
21446
+ "summary": "Get a list of questions recommended to be asked in an organization.",
21447
+ "parameters": [
21448
+ {
21449
+ "$ref": "#/components/parameters/organizationId"
21450
+ }
21451
+ ],
21452
+ "security": [
21453
+ {
21454
+ "user": []
21455
+ }
21456
+ ],
21457
+ "responses": {
21458
+ "200": {
21459
+ "description": "OK",
21460
+ "content": {
21461
+ "application/json": {
21462
+ "schema": {
21463
+ "$ref": "#/components/schemas/SearchAIRecommendedQuestions"
21464
+ }
21465
+ }
21466
+ }
21467
+ },
21468
+ "default": {
21469
+ "$ref": "#/components/responses/UnexpectedError"
21470
+ }
21471
+ }
21472
+ }
21473
+ },
21327
21474
  "/orgs/{organizationId}/insights/audit-relations": {
21328
21475
  "get": {
21329
21476
  "operationId": "listContentAuditRelations",