@gitbook/api 0.90.0 → 0.92.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
@@ -40,6 +40,10 @@ paths:
40
40
  get:
41
41
  operationId: searchContent
42
42
  summary: Search content across spaces that is accessible by the currently authenticated target
43
+ deprecated: true
44
+ x-deprecated-error-rate: 0.01
45
+ x-deprecated-sunset: 2025-02-05
46
+ x-deprecated-message: Use the endpoint for sites/organizations instead.
43
47
  tags:
44
48
  - search
45
49
  security:
@@ -76,6 +80,9 @@ paths:
76
80
  operationId: askQueryWithGet
77
81
  summary: Ask a question to an AI across spaces that is accessible by the currently authenticated target.
78
82
  deprecated: true
83
+ x-deprecated-error-rate: 0.1
84
+ x-deprecated-sunset: 2025-02-05
85
+ x-deprecated-message: Use the 'POST' endpoints for sites/organizations instead.
79
86
  security:
80
87
  - user: []
81
88
  parameters:
@@ -105,6 +112,10 @@ paths:
105
112
  post:
106
113
  operationId: askQuery
107
114
  summary: Ask a question to an AI across spaces that is accessible by the currently authenticated target.
115
+ deprecated: true
116
+ x-deprecated-error-rate: 0.1
117
+ x-deprecated-sunset: 2025-02-05
118
+ x-deprecated-message: Use the 'POST' endpoints for sites/organizations instead.
108
119
  security:
109
120
  - user: []
110
121
  parameters:
@@ -137,6 +148,8 @@ paths:
137
148
  operationId: getRecommendedQuestions
138
149
  summary: Get a list of questions recommended by AI for a list of content. Deprecated, use getRecommendedQuestionsInOrganization instead.
139
150
  deprecated: true
151
+ x-deprecated-error-rate: 0.1
152
+ x-deprecated-sunset: 2025-02-05
140
153
  security:
141
154
  - user: []
142
155
  requestBody:
@@ -491,6 +504,8 @@ paths:
491
504
  operationId: askQueryInSpaceWithGet
492
505
  summary: Ask a question to an AI within the context of the space.
493
506
  deprecated: true
507
+ x-deprecated-error-rate: 0.1
508
+ x-deprecated-sunset: 2025-02-05
494
509
  parameters:
495
510
  - name: query
496
511
  in: query
@@ -575,6 +590,9 @@ paths:
575
590
  get:
576
591
  operationId: getRecommendedQuestionsInSpace
577
592
  summary: Get a list of questions that can be asked in a space.
593
+ deprecated: true
594
+ x-deprecated-error-rate: 0.1
595
+ x-deprecated-sunset: 2025-02-05
578
596
  parameters:
579
597
  - $ref: "#/components/parameters/spaceId"
580
598
  responses:
@@ -590,6 +608,9 @@ paths:
590
608
  get:
591
609
  operationId: streamRecommendedQuestionsInSpace
592
610
  summary: Stream a list of questions that can be asked in a space.
611
+ deprecated: true
612
+ x-deprecated-error-rate: 0.1
613
+ x-deprecated-sunset: 2025-02-05
593
614
  parameters:
594
615
  - $ref: "#/components/parameters/spaceId"
595
616
  responses:
@@ -669,6 +690,9 @@ paths:
669
690
  get:
670
691
  operationId: getContentAnalyticsForSpaceById
671
692
  summary: Get content analytics for a given space.
693
+ deprecated: true
694
+ x-deprecated-error-rate: 0.1
695
+ x-deprecated-sunset: 2025-02-05
672
696
  tags:
673
697
  - analytics
674
698
  - spaces
@@ -689,6 +713,9 @@ paths:
689
713
  get:
690
714
  operationId: getSearchAnalyticsForSpaceById
691
715
  summary: Get an overview of the top search queries in a space.
716
+ deprecated: true
717
+ x-deprecated-error-rate: 0.1
718
+ x-deprecated-sunset: 2025-02-05
692
719
  tags:
693
720
  - analytics
694
721
  - spaces
@@ -715,6 +742,9 @@ paths:
715
742
  operationId: getTrafficAnalyticsForSpaceById
716
743
  summary: Get traffic page views for a given space
717
744
  description: Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.
745
+ deprecated: true
746
+ x-deprecated-error-rate: 0.1
747
+ x-deprecated-sunset: 2025-02-05
718
748
  tags:
719
749
  - analytics
720
750
  - spaces
@@ -741,6 +771,9 @@ paths:
741
771
  operationId: trackViewInSpaceById
742
772
  summary: Track a page view in a space
743
773
  description: Track a page view in a space.
774
+ deprecated: true
775
+ x-deprecated-error-rate: 0.1
776
+ x-deprecated-sunset: 2025-02-05
744
777
  tags:
745
778
  - analytics
746
779
  - spaces
@@ -1271,20 +1304,25 @@ paths:
1271
1304
  default:
1272
1305
  $ref: "#/components/responses/UnexpectedError"
1273
1306
  "/spaces/{spaceId}/content/computed/document":
1274
- get:
1307
+ post:
1275
1308
  operationId: getComputedDocument
1276
- summary: Get the document for a page in a computed content.
1309
+ summary: Generate a document for a page in a computed content.
1277
1310
  security:
1278
1311
  - user: []
1279
1312
  parameters:
1280
1313
  - $ref: "#/components/parameters/spaceId"
1281
1314
  - $ref: "#/components/parameters/documentFormat"
1282
- - name: request
1283
- in: query
1284
- required: true
1285
- description: LZ-string compressed JSON request
1286
- schema:
1287
- type: string
1315
+ requestBody:
1316
+ required: true
1317
+ content:
1318
+ application/json:
1319
+ schema:
1320
+ type: object
1321
+ properties:
1322
+ source:
1323
+ $ref: "#/components/schemas/ComputedContentSource"
1324
+ required:
1325
+ - source
1288
1326
  responses:
1289
1327
  "200":
1290
1328
  description: Document computed
@@ -1294,24 +1332,28 @@ paths:
1294
1332
  $ref: "#/components/schemas/Document"
1295
1333
  default:
1296
1334
  $ref: "#/components/responses/UnexpectedError"
1297
- "/spaces/{spaceId}/content/computed/page":
1298
- get:
1299
- operationId: getComputedPage
1300
- summary: Get the computed pages for a page in a computed content.
1335
+ "/spaces/{spaceId}/content/computed/revision":
1336
+ post:
1337
+ operationId: getComputedRevision
1338
+ summary: Get the computed content for a source in a computed content.
1301
1339
  security:
1302
1340
  - user: []
1303
1341
  parameters:
1304
1342
  - $ref: "#/components/parameters/spaceId"
1305
- - $ref: "#/components/parameters/documentFormat"
1306
- - name: request
1307
- in: query
1308
- required: true
1309
- description: LZ-string compressed JSON request
1310
- schema:
1311
- type: string
1343
+ requestBody:
1344
+ required: true
1345
+ content:
1346
+ application/json:
1347
+ schema:
1348
+ type: object
1349
+ properties:
1350
+ source:
1351
+ $ref: "#/components/schemas/ComputedContentSource"
1352
+ required:
1353
+ - source
1312
1354
  responses:
1313
1355
  "200":
1314
- description: Computed pages and their associated files
1356
+ description: Computed pages and files
1315
1357
  content:
1316
1358
  application/json:
1317
1359
  schema:
@@ -2922,9 +2964,11 @@ paths:
2922
2964
  $ref: "#/components/responses/UnexpectedError"
2923
2965
  "/spaces/{spaceId}/publishing/customization":
2924
2966
  get:
2925
- deprecated: true
2926
2967
  operationId: getSpacePublishingCustomizationById
2927
2968
  summary: Get the publishing customization configuration for a space.
2969
+ deprecated: true
2970
+ x-deprecated-error-rate: 0.1
2971
+ x-deprecated-sunset: 2025-02-05
2928
2972
  tags:
2929
2973
  - spaces
2930
2974
  security:
@@ -2943,9 +2987,11 @@ paths:
2943
2987
  default:
2944
2988
  $ref: "#/components/responses/UnexpectedError"
2945
2989
  put:
2946
- deprecated: true
2947
2990
  operationId: updateSpacePublishingCustomizationById
2948
2991
  summary: Update the publishing customization configuration for a space.
2992
+ deprecated: true
2993
+ x-deprecated-error-rate: 0.1
2994
+ x-deprecated-sunset: 2025-02-05
2949
2995
  tags:
2950
2996
  - spaces
2951
2997
  security:
@@ -5324,56 +5370,14 @@ paths:
5324
5370
  content:
5325
5371
  application/json:
5326
5372
  schema:
5327
- type: object
5328
- properties:
5329
- interval:
5330
- description: The desired billing interval
5331
- $ref: "#/components/schemas/BillingInterval"
5332
- product:
5333
- type: string
5334
- description: The new product to upgrade to
5335
- enum:
5336
- - free_2024
5337
- - plus_2024
5338
- - pro_2024
5339
- changes:
5340
- type: object
5341
- description: Changes to apply to the organization and its sites before upgrading
5342
- minProperties: 1
5343
- properties:
5344
- removeMembers:
5345
- description: A list of member identifiers to be removed
5346
- type: array
5347
- items:
5348
- type: string
5349
- updateSiteTypes:
5350
- description: A list of site type updates to be applied before upgrading. If a site is not present in this list, it'll be upgraded to whichever type matches its features and its published status will be unchanged.
5351
- type: array
5352
- items:
5353
- type: object
5354
- properties:
5355
- id:
5356
- description: The site identifier
5357
- type: string
5358
- type:
5359
- description: The new site type
5360
- type: string
5361
- enum:
5362
- - basic
5363
- - premium
5364
- - ultimate
5365
- required:
5366
- - id
5367
- - type
5368
- required:
5369
- - product
5370
- - interval
5373
+ $ref: "#/components/schemas/MigrateOrganizationParameters"
5371
5374
  responses:
5372
5375
  "205":
5373
5376
  description: Organization migrated to new pricing
5374
5377
  default:
5375
5378
  $ref: "#/components/responses/UnexpectedError"
5376
- get:
5379
+ "/orgs/{organizationId}/billing/migrate/preview":
5380
+ post:
5377
5381
  operationId: previewMigrateOrganizationPlan
5378
5382
  summary: Preview a migration of an organization to new pricing.
5379
5383
  tags:
@@ -5382,28 +5386,12 @@ paths:
5382
5386
  - user-internal: []
5383
5387
  parameters:
5384
5388
  - $ref: "#/components/parameters/organizationId"
5385
- - name: interval
5386
- in: query
5387
- required: true
5388
- description: The desired billing interval
5389
- schema:
5390
- $ref: "#/components/schemas/BillingInterval"
5391
- - name: product
5392
- in: query
5393
- required: true
5394
- description: The new product to upgrade to
5395
- schema:
5396
- type: string
5397
- enum:
5398
- - free_2024
5399
- - plus_2024
5400
- - pro_2024
5401
- - name: removedMembersCount
5402
- in: query
5403
- required: true
5404
- description: How many members have been deselected by the user
5405
- schema:
5406
- type: number
5389
+ requestBody:
5390
+ required: true
5391
+ content:
5392
+ application/json:
5393
+ schema:
5394
+ $ref: "#/components/schemas/MigrateOrganizationParameters"
5407
5395
  responses:
5408
5396
  "200":
5409
5397
  description: OK
@@ -6535,6 +6523,9 @@ paths:
6535
6523
  summary: Lists snippets.
6536
6524
  description: |
6537
6525
  List snippets in an organization, newest first.
6526
+ deprecated: true
6527
+ x-deprecated-error-rate: 0.1
6528
+ x-deprecated-sunset: 2025-02-05
6538
6529
  tags:
6539
6530
  - organizations
6540
6531
  security:
@@ -6569,6 +6560,9 @@ paths:
6569
6560
  post:
6570
6561
  operationId: createSnippet
6571
6562
  summary: Create a new snippet
6563
+ deprecated: true
6564
+ x-deprecated-error-rate: 0.1
6565
+ x-deprecated-sunset: 2025-02-05
6572
6566
  tags:
6573
6567
  - organizations
6574
6568
  security:
@@ -6598,6 +6592,9 @@ paths:
6598
6592
  get:
6599
6593
  operationId: getSnippet
6600
6594
  summary: Get a snippet by its ID
6595
+ deprecated: true
6596
+ x-deprecated-error-rate: 0.1
6597
+ x-deprecated-sunset: 2025-02-05
6601
6598
  tags:
6602
6599
  - organizations
6603
6600
  security:
@@ -6632,6 +6629,9 @@ paths:
6632
6629
  put:
6633
6630
  operationId: updateSnippet
6634
6631
  summary: Update an existing snippet.
6632
+ deprecated: true
6633
+ x-deprecated-error-rate: 0.1
6634
+ x-deprecated-sunset: 2025-02-05
6635
6635
  tags:
6636
6636
  - organizations
6637
6637
  security:
@@ -6659,6 +6659,9 @@ paths:
6659
6659
  post:
6660
6660
  operationId: moveSnippet
6661
6661
  summary: Move a snippet into a destination. The snippet will be archived in the process.
6662
+ deprecated: true
6663
+ x-deprecated-error-rate: 0.1
6664
+ x-deprecated-sunset: 2025-02-05
6662
6665
  tags:
6663
6666
  - organizations
6664
6667
  security:
@@ -6712,6 +6715,9 @@ paths:
6712
6715
  get:
6713
6716
  operationId: getSnippetSuggestedLocations
6714
6717
  summary: Return possible snippet locations in an organization based on the current user.
6718
+ deprecated: true
6719
+ x-deprecated-error-rate: 0.1
6720
+ x-deprecated-sunset: 2025-02-05
6715
6721
  tags:
6716
6722
  - organizations
6717
6723
  security:
@@ -7721,6 +7727,36 @@ paths:
7721
7727
  default:
7722
7728
  $ref: "#/components/responses/UnexpectedError"
7723
7729
  "/orgs/{organizationId}/sites/{siteId}/section-groups":
7730
+ get:
7731
+ operationId: listSiteSectionGroups
7732
+ summary: List all the section groups under a site in an organization
7733
+ tags:
7734
+ - sites
7735
+ security:
7736
+ - user: []
7737
+ parameters:
7738
+ - $ref: "#/components/parameters/organizationId"
7739
+ - $ref: "#/components/parameters/siteId"
7740
+ - $ref: "#/components/parameters/listPage"
7741
+ - $ref: "#/components/parameters/listLimit"
7742
+ responses:
7743
+ "200":
7744
+ description: OK
7745
+ content:
7746
+ application/json:
7747
+ schema:
7748
+ allOf:
7749
+ - $ref: "#/components/schemas/List"
7750
+ - type: object
7751
+ required:
7752
+ - items
7753
+ properties:
7754
+ items:
7755
+ type: array
7756
+ items:
7757
+ $ref: "#/components/schemas/SiteSectionGroup"
7758
+ default:
7759
+ $ref: "#/components/responses/UnexpectedError"
7724
7760
  post:
7725
7761
  operationId: addSectionGroupToSite
7726
7762
  summary: Add a section group to a site in an organization
@@ -7814,6 +7850,62 @@ paths:
7814
7850
  description: Site section group has been deleted
7815
7851
  default:
7816
7852
  $ref: "#/components/responses/UnexpectedError"
7853
+ "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections":
7854
+ post:
7855
+ operationId: addSectionToGroup
7856
+ summary: Add a section to a section group
7857
+ tags:
7858
+ - sites
7859
+ security:
7860
+ - user: []
7861
+ parameters:
7862
+ - $ref: "#/components/parameters/organizationId"
7863
+ - $ref: "#/components/parameters/siteId"
7864
+ - $ref: "#/components/parameters/siteSectionGroupId"
7865
+ requestBody:
7866
+ required: true
7867
+ content:
7868
+ application/json:
7869
+ schema:
7870
+ type: object
7871
+ properties:
7872
+ sectionId:
7873
+ type: string
7874
+ description: ID of the section to add to the section group
7875
+ required:
7876
+ - sectionId
7877
+ responses:
7878
+ "201":
7879
+ description: Section added to the section group
7880
+ headers:
7881
+ Location:
7882
+ description: API URL for the newly created site-section-group relationship
7883
+ schema:
7884
+ type: string
7885
+ content:
7886
+ application/json:
7887
+ schema:
7888
+ $ref: "#/components/schemas/SiteSectionGroup"
7889
+ default:
7890
+ $ref: "#/components/responses/UnexpectedError"
7891
+ "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}":
7892
+ delete:
7893
+ operationId: removeSectionFromGroup
7894
+ summary: Remove a section from a section group
7895
+ tags:
7896
+ - sites
7897
+ security:
7898
+ - user: []
7899
+ parameters:
7900
+ - $ref: "#/components/parameters/organizationId"
7901
+ - $ref: "#/components/parameters/siteId"
7902
+ - $ref: "#/components/parameters/siteSectionGroupId"
7903
+ - $ref: "#/components/parameters/siteSectionId"
7904
+ responses:
7905
+ "205":
7906
+ description: Section has been removed from the section group
7907
+ default:
7908
+ $ref: "#/components/responses/UnexpectedError"
7817
7909
  "/orgs/{organizationId}/sites/{siteId}/sections":
7818
7910
  post:
7819
7911
  operationId: addSectionToSite
@@ -7927,6 +8019,13 @@ paths:
7927
8019
  nullable: true
7928
8020
  enum:
7929
8021
  - null
8022
+ description:
8023
+ oneOf:
8024
+ - $ref: "#/components/schemas/SiteSectionDescription"
8025
+ - type: string
8026
+ nullable: true
8027
+ enum:
8028
+ - null
7930
8029
  responses:
7931
8030
  "200":
7932
8031
  description: OK
@@ -8583,6 +8682,42 @@ paths:
8583
8682
  $ref: "#/components/schemas/PageFeedback"
8584
8683
  default:
8585
8684
  $ref: "#/components/responses/UnexpectedError"
8685
+ "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/move":
8686
+ post:
8687
+ operationId: moveSiteSectionGroup
8688
+ summary: Move a site section group to a new position in the site.
8689
+ tags:
8690
+ - sites
8691
+ security:
8692
+ - user: []
8693
+ parameters:
8694
+ - $ref: "#/components/parameters/organizationId"
8695
+ - $ref: "#/components/parameters/siteId"
8696
+ - $ref: "#/components/parameters/siteSectionGroupId"
8697
+ requestBody:
8698
+ content:
8699
+ application/json:
8700
+ schema:
8701
+ type: object
8702
+ properties:
8703
+ position:
8704
+ description: The position where to move the site section group. When not provided the site section group is moved at the end of the site.
8705
+ $ref: "#/components/schemas/SiteSectionGroupMovePosition"
8706
+ responses:
8707
+ "200":
8708
+ description: Site section group moved
8709
+ content:
8710
+ application/json:
8711
+ schema:
8712
+ $ref: "#/components/schemas/SiteSectionGroup"
8713
+ "400":
8714
+ description: Invalid move site section group position provided
8715
+ $ref: "#/components/responses/BadRequestError"
8716
+ "404":
8717
+ description: No matching site section group found
8718
+ $ref: "#/components/responses/NotFoundError"
8719
+ default:
8720
+ $ref: "#/components/responses/UnexpectedError"
8586
8721
  "/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move":
8587
8722
  post:
8588
8723
  operationId: moveSiteSection
@@ -8693,6 +8828,8 @@ paths:
8693
8828
  summary: Track a page view in a site
8694
8829
  description: Track a page view in a site.
8695
8830
  deprecated: true
8831
+ x-deprecated-error-rate: 0.1
8832
+ x-deprecated-sunset: 2025-02-05
8696
8833
  tags:
8697
8834
  - analytics
8698
8835
  - sites
@@ -11747,6 +11884,7 @@ components:
11747
11884
  ref:
11748
11885
  oneOf:
11749
11886
  - $ref: "#/components/schemas/ContentRefFile"
11887
+ - $ref: "#/components/schemas/ContentRefURL"
11750
11888
  expanded:
11751
11889
  type: boolean
11752
11890
  description: If true, the block is opened by default.
@@ -11928,66 +12066,41 @@ components:
11928
12066
  properties: {}
11929
12067
  additionalProperties: false
11930
12068
  SearchAIAnswerSource:
11931
- allOf:
11932
- - type: object
11933
- properties:
11934
- type:
11935
- type: string
11936
- enum:
11937
- - page
11938
- - capture
11939
- required:
11940
- - type
11941
- - discriminator:
11942
- propertyName: type
11943
- oneOf:
11944
- - type: object
11945
- title: Page
11946
- properties:
11947
- type:
11948
- type: string
11949
- enum:
11950
- - page
11951
- page:
11952
- type: string
11953
- revision:
11954
- type: string
11955
- space:
11956
- type: string
11957
- sections:
11958
- type: array
11959
- items:
11960
- type: string
11961
- required:
11962
- - type
11963
- - page
11964
- - revision
11965
- - space
11966
- - sections
11967
- - type: object
11968
- title: Snippet
11969
- properties:
11970
- type:
11971
- type: string
11972
- enum:
11973
- - capture
11974
- captureId:
11975
- type: string
11976
- description: ID of the capture
11977
- source:
11978
- type: string
11979
- description: Source of the capture
11980
- required:
11981
- - type
11982
- - captureId
11983
- - source
12069
+ type: object
12070
+ title: Page source
12071
+ description: The source points to a page in a space.
12072
+ properties:
12073
+ type:
12074
+ type: string
12075
+ enum:
12076
+ - page
12077
+ reason:
12078
+ type: string
12079
+ description: Short explanation of how the source was used to answer.
12080
+ page:
12081
+ type: string
12082
+ description: The page ID of the source.
12083
+ revision:
12084
+ type: string
12085
+ description: The revision ID where the page was extracted from.
12086
+ space:
12087
+ type: string
12088
+ description: The space ID owning the page.
12089
+ sections:
12090
+ type: array
12091
+ items:
12092
+ type: string
12093
+ description: The IDs of the sections of the page that were used to answer the question.
12094
+ required:
12095
+ - type
12096
+ - page
12097
+ - revision
12098
+ - space
12099
+ - sections
11984
12100
  SearchAIAnswer:
11985
12101
  type: object
11986
12102
  description: Answer from AI for a question asked on a content.
11987
12103
  properties:
11988
- text:
11989
- deprecated: true
11990
- type: string
11991
12104
  answer:
11992
12105
  $ref: "#/components/schemas/Document"
11993
12106
  followupQuestions:
@@ -11999,28 +12112,6 @@ components:
11999
12112
  description: The sources used to generate the answer.
12000
12113
  items:
12001
12114
  $ref: "#/components/schemas/SearchAIAnswerSource"
12002
- pages:
12003
- type: array
12004
- deprecated: true
12005
- description: The pages used to generate the answer. Deprecated - use sources instead.
12006
- items:
12007
- type: object
12008
- properties:
12009
- page:
12010
- type: string
12011
- revision:
12012
- type: string
12013
- space:
12014
- type: string
12015
- sections:
12016
- type: array
12017
- items:
12018
- type: string
12019
- required:
12020
- - page
12021
- - revision
12022
- - space
12023
- - sections
12024
12115
  required:
12025
12116
  - pages
12026
12117
  - sources
@@ -12729,9 +12820,36 @@ components:
12729
12820
  - kind
12730
12821
  - type
12731
12822
  - target
12732
- ComputedContentDependency:
12823
+ ComputedContentDependencyRef:
12733
12824
  oneOf:
12734
12825
  - $ref: "#/components/schemas/ContentRefSpace"
12826
+ ComputedContentDependencyValue:
12827
+ description: Dependency for a computation, with its resolved value.
12828
+ oneOf:
12829
+ - type: object
12830
+ properties:
12831
+ ref:
12832
+ $ref: "#/components/schemas/ContentRefSpace"
12833
+ value:
12834
+ type: object
12835
+ nullable: true
12836
+ description: See `Space` schema component.
12837
+ properties:
12838
+ object:
12839
+ type: string
12840
+ enum:
12841
+ - space
12842
+ id:
12843
+ type: string
12844
+ revision:
12845
+ type: string
12846
+ required:
12847
+ - object
12848
+ - id
12849
+ - revision
12850
+ required:
12851
+ - ref
12852
+ - value
12735
12853
  ComputedContentSource:
12736
12854
  type: object
12737
12855
  description: Parameters for a computed content
@@ -12745,11 +12863,21 @@ components:
12745
12863
  props:
12746
12864
  description: Properties to be passed to the computation
12747
12865
  $ref: "#/components/schemas/PlainObject"
12748
- dependsOn:
12749
- type: array
12750
- description: Dependencies the computation depend on. When the dependency's targets are updated, the computation will be updated.
12751
- items:
12752
- $ref: "#/components/schemas/ComputedContentDependency"
12866
+ dependencies:
12867
+ type: object
12868
+ description: |
12869
+ Dependencies the computation depends on.
12870
+ The state of the dependencies will be passed to the computation.
12871
+ When the dependency's targets are updated, the computation will be updated.
12872
+ additionalProperties:
12873
+ oneOf:
12874
+ - type: object
12875
+ properties:
12876
+ ref:
12877
+ $ref: "#/components/schemas/ComputedContentDependencyRef"
12878
+ required:
12879
+ - ref
12880
+ - $ref: "#/components/schemas/ComputedContentDependencyValue"
12753
12881
  required:
12754
12882
  - integration
12755
12883
  - source
@@ -16619,9 +16747,15 @@ components:
16619
16747
  props:
16620
16748
  description: Properties passed to the rendering.
16621
16749
  $ref: "#/components/schemas/PlainObject"
16750
+ dependencies:
16751
+ description: Dependencies of the computation.
16752
+ type: object
16753
+ additionalProperties:
16754
+ $ref: "#/components/schemas/ComputedContentDependencyValue"
16622
16755
  required:
16623
16756
  - sourceId
16624
16757
  - props
16758
+ - dependencies
16625
16759
  ContentComputeDocumentEvent:
16626
16760
  allOf:
16627
16761
  - $ref: "#/components/schemas/ContentComputeEvent"
@@ -17841,6 +17975,11 @@ components:
17841
17975
  description: Title of the site section
17842
17976
  minLength: 2
17843
17977
  maxLength: 128
17978
+ SiteSectionDescription:
17979
+ type: string
17980
+ description: Description of the site section
17981
+ minLength: 0
17982
+ maxLength: 256
17844
17983
  SiteSectionPath:
17845
17984
  type: string
17846
17985
  description: Path to the section on the site
@@ -17914,6 +18053,8 @@ components:
17914
18053
  description: Unique identifier of the site section
17915
18054
  title:
17916
18055
  $ref: "#/components/schemas/SiteSectionTitle"
18056
+ description:
18057
+ $ref: "#/components/schemas/SiteSectionDescription"
17917
18058
  default:
17918
18059
  type: boolean
17919
18060
  description: Whether this is the default section for the site
@@ -17948,6 +18089,36 @@ components:
17948
18089
  - path
17949
18090
  - siteSpaces
17950
18091
  - urls
18092
+ SiteSectionGroupTitle:
18093
+ type: string
18094
+ description: Title of the site section group
18095
+ minLength: 1
18096
+ maxLength: 100
18097
+ SiteSectionGroup:
18098
+ type: object
18099
+ properties:
18100
+ object:
18101
+ type: string
18102
+ description: The object type, which is always "site-section-group"
18103
+ enum:
18104
+ - site-section-group
18105
+ id:
18106
+ type: string
18107
+ description: Unique identifier of the site section group
18108
+ title:
18109
+ $ref: "#/components/schemas/SiteSectionGroupTitle"
18110
+ sections:
18111
+ type: array
18112
+ description: List of site section ids that are members of the group
18113
+ items:
18114
+ $ref: "#/components/schemas/SiteSection"
18115
+ icon:
18116
+ $ref: "#/components/schemas/Icon"
18117
+ required:
18118
+ - object
18119
+ - id
18120
+ - title
18121
+ - sections
17951
18122
  SiteStructure:
17952
18123
  oneOf:
17953
18124
  - type: object
@@ -17959,7 +18130,9 @@ components:
17959
18130
  structure:
17960
18131
  type: array
17961
18132
  items:
17962
- $ref: "#/components/schemas/SiteSection"
18133
+ oneOf:
18134
+ - $ref: "#/components/schemas/SiteSection"
18135
+ - $ref: "#/components/schemas/SiteSectionGroup"
17963
18136
  required:
17964
18137
  - type
17965
18138
  - structure
@@ -18402,6 +18575,51 @@ components:
18402
18575
  - interval_changed
18403
18576
  required:
18404
18577
  - result
18578
+ MigrateOrganizationParameters:
18579
+ type: object
18580
+ properties:
18581
+ interval:
18582
+ description: The desired billing interval
18583
+ $ref: "#/components/schemas/BillingInterval"
18584
+ product:
18585
+ type: string
18586
+ description: The new product to upgrade to
18587
+ enum:
18588
+ - free_2024
18589
+ - plus_2024
18590
+ - pro_2024
18591
+ changes:
18592
+ type: object
18593
+ description: Changes to apply to the organization and its sites before upgrading
18594
+ properties:
18595
+ removeMembers:
18596
+ description: A list of member identifiers to be removed
18597
+ type: array
18598
+ items:
18599
+ type: string
18600
+ updateSites:
18601
+ description: |
18602
+ A list of site updates to be applied before upgrading. If a site is not present in this list, it'll be upgraded to whichever type matches its features and its published status will be unchanged. When downgrading to a lower type all relevant paid features will be disabled before applying the new type.
18603
+ type: array
18604
+ items:
18605
+ type: object
18606
+ properties:
18607
+ id:
18608
+ description: The site identifier
18609
+ type: string
18610
+ type:
18611
+ description: The site type to migrate to
18612
+ $ref: "#/components/schemas/SiteType"
18613
+ required:
18614
+ - id
18615
+ - type
18616
+ required:
18617
+ - removeMembers
18618
+ - updateSites
18619
+ required:
18620
+ - product
18621
+ - interval
18622
+ - changes
18405
18623
  SiteToMigrateFeature:
18406
18624
  type: string
18407
18625
  description: These are all the features we check to determine the new pricing site type.
@@ -19350,36 +19568,6 @@ components:
19350
19568
  type: string
19351
19569
  format: uri
19352
19570
  description: A fallback URL that will be used if authentication fails.
19353
- SiteSectionGroupTitle:
19354
- type: string
19355
- description: Title of the site section group
19356
- minLength: 1
19357
- maxLength: 100
19358
- SiteSectionGroup:
19359
- type: object
19360
- properties:
19361
- object:
19362
- type: string
19363
- description: The object type, which is always "site-section-group"
19364
- enum:
19365
- - site-section-group
19366
- id:
19367
- type: string
19368
- description: Unique identifier of the site section group
19369
- title:
19370
- $ref: "#/components/schemas/SiteSectionGroupTitle"
19371
- sections:
19372
- type: array
19373
- description: List of site section ids that are members of the group
19374
- items:
19375
- $ref: "#/components/schemas/SiteSection"
19376
- icon:
19377
- $ref: "#/components/schemas/Icon"
19378
- required:
19379
- - object
19380
- - id
19381
- - title
19382
- - sections
19383
19571
  SiteSearchScope:
19384
19572
  oneOf:
19385
19573
  - type: object
@@ -19430,6 +19618,28 @@ components:
19430
19618
  description: Indicates whether the site customization settings have been overridden.
19431
19619
  required:
19432
19620
  - hasOverrides
19621
+ SiteSectionGroupPointer:
19622
+ type: object
19623
+ properties:
19624
+ type:
19625
+ type: string
19626
+ enum:
19627
+ - site-section
19628
+ - site-section-group
19629
+ id:
19630
+ type: string
19631
+ description: Unique identifier for the site section
19632
+ required:
19633
+ - type
19634
+ - id
19635
+ SiteSectionGroupMovePosition:
19636
+ type: object
19637
+ description: Position at which to move the site section group.
19638
+ properties:
19639
+ before:
19640
+ $ref: "#/components/schemas/SiteSectionGroupPointer"
19641
+ after:
19642
+ $ref: "#/components/schemas/SiteSectionGroupPointer"
19433
19643
  SiteSectionPointer:
19434
19644
  type: object
19435
19645
  properties:
@@ -21646,6 +21856,14 @@ components:
21646
21856
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
21647
21857
  - $ref: "#/components/schemas/DocumentBlockStepper"
21648
21858
  - $ref: "#/components/schemas/DocumentBlockStepperStep"
21859
+ ComputedContentDependency:
21860
+ type: object
21861
+ description: Dependency for a computation, before its resolution.
21862
+ properties:
21863
+ ref:
21864
+ $ref: "#/components/schemas/ComputedContentDependencyRef"
21865
+ required:
21866
+ - ref
21649
21867
  InputPageBase:
21650
21868
  allOf:
21651
21869
  - type: object