@gitbook/api 0.91.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.json CHANGED
@@ -68,6 +68,10 @@
68
68
  "get": {
69
69
  "operationId": "searchContent",
70
70
  "summary": "Search content across spaces that is accessible by the currently authenticated target",
71
+ "deprecated": true,
72
+ "x-deprecated-error-rate": 0.01,
73
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
74
+ "x-deprecated-message": "Use the endpoint for sites/organizations instead.",
71
75
  "tags": [
72
76
  "search"
73
77
  ],
@@ -133,6 +137,9 @@
133
137
  "operationId": "askQueryWithGet",
134
138
  "summary": "Ask a question to an AI across spaces that is accessible by the currently authenticated target.",
135
139
  "deprecated": true,
140
+ "x-deprecated-error-rate": 0.1,
141
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
142
+ "x-deprecated-message": "Use the 'POST' endpoints for sites/organizations instead.",
136
143
  "security": [
137
144
  {
138
145
  "user": []
@@ -183,6 +190,10 @@
183
190
  "post": {
184
191
  "operationId": "askQuery",
185
192
  "summary": "Ask a question to an AI across spaces that is accessible by the currently authenticated target.",
193
+ "deprecated": true,
194
+ "x-deprecated-error-rate": 0.1,
195
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
196
+ "x-deprecated-message": "Use the 'POST' endpoints for sites/organizations instead.",
186
197
  "security": [
187
198
  {
188
199
  "user": []
@@ -238,6 +249,8 @@
238
249
  "operationId": "getRecommendedQuestions",
239
250
  "summary": "Get a list of questions recommended by AI for a list of content. Deprecated, use getRecommendedQuestionsInOrganization instead.",
240
251
  "deprecated": true,
252
+ "x-deprecated-error-rate": 0.1,
253
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
241
254
  "security": [
242
255
  {
243
256
  "user": []
@@ -840,6 +853,8 @@
840
853
  "operationId": "askQueryInSpaceWithGet",
841
854
  "summary": "Ask a question to an AI within the context of the space.",
842
855
  "deprecated": true,
856
+ "x-deprecated-error-rate": 0.1,
857
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
843
858
  "parameters": [
844
859
  {
845
860
  "name": "query",
@@ -985,6 +1000,9 @@
985
1000
  "get": {
986
1001
  "operationId": "getRecommendedQuestionsInSpace",
987
1002
  "summary": "Get a list of questions that can be asked in a space.",
1003
+ "deprecated": true,
1004
+ "x-deprecated-error-rate": 0.1,
1005
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
988
1006
  "parameters": [
989
1007
  {
990
1008
  "$ref": "#/components/parameters/spaceId"
@@ -1011,6 +1029,9 @@
1011
1029
  "get": {
1012
1030
  "operationId": "streamRecommendedQuestionsInSpace",
1013
1031
  "summary": "Stream a list of questions that can be asked in a space.",
1032
+ "deprecated": true,
1033
+ "x-deprecated-error-rate": 0.1,
1034
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
1014
1035
  "parameters": [
1015
1036
  {
1016
1037
  "$ref": "#/components/parameters/spaceId"
@@ -1149,6 +1170,9 @@
1149
1170
  "get": {
1150
1171
  "operationId": "getContentAnalyticsForSpaceById",
1151
1172
  "summary": "Get content analytics for a given space.",
1173
+ "deprecated": true,
1174
+ "x-deprecated-error-rate": 0.1,
1175
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
1152
1176
  "tags": [
1153
1177
  "analytics",
1154
1178
  "spaces"
@@ -1184,6 +1208,9 @@
1184
1208
  "get": {
1185
1209
  "operationId": "getSearchAnalyticsForSpaceById",
1186
1210
  "summary": "Get an overview of the top search queries in a space.",
1211
+ "deprecated": true,
1212
+ "x-deprecated-error-rate": 0.1,
1213
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
1187
1214
  "tags": [
1188
1215
  "analytics",
1189
1216
  "spaces"
@@ -1228,6 +1255,9 @@
1228
1255
  "operationId": "getTrafficAnalyticsForSpaceById",
1229
1256
  "summary": "Get traffic page views for a given space",
1230
1257
  "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.",
1258
+ "deprecated": true,
1259
+ "x-deprecated-error-rate": 0.1,
1260
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
1231
1261
  "tags": [
1232
1262
  "analytics",
1233
1263
  "spaces"
@@ -1272,6 +1302,9 @@
1272
1302
  "operationId": "trackViewInSpaceById",
1273
1303
  "summary": "Track a page view in a space",
1274
1304
  "description": "Track a page view in a space.",
1305
+ "deprecated": true,
1306
+ "x-deprecated-error-rate": 0.1,
1307
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
1275
1308
  "tags": [
1276
1309
  "analytics",
1277
1310
  "spaces"
@@ -2263,9 +2296,9 @@
2263
2296
  }
2264
2297
  },
2265
2298
  "/spaces/{spaceId}/content/computed/document": {
2266
- "get": {
2299
+ "post": {
2267
2300
  "operationId": "getComputedDocument",
2268
- "summary": "Get the document for a page in a computed content.",
2301
+ "summary": "Generate a document for a page in a computed content.",
2269
2302
  "security": [
2270
2303
  {
2271
2304
  "user": []
@@ -2277,17 +2310,26 @@
2277
2310
  },
2278
2311
  {
2279
2312
  "$ref": "#/components/parameters/documentFormat"
2280
- },
2281
- {
2282
- "name": "request",
2283
- "in": "query",
2284
- "required": true,
2285
- "description": "LZ-string compressed JSON request",
2286
- "schema": {
2287
- "type": "string"
2288
- }
2289
2313
  }
2290
2314
  ],
2315
+ "requestBody": {
2316
+ "required": true,
2317
+ "content": {
2318
+ "application/json": {
2319
+ "schema": {
2320
+ "type": "object",
2321
+ "properties": {
2322
+ "source": {
2323
+ "$ref": "#/components/schemas/ComputedContentSource"
2324
+ }
2325
+ },
2326
+ "required": [
2327
+ "source"
2328
+ ]
2329
+ }
2330
+ }
2331
+ }
2332
+ },
2291
2333
  "responses": {
2292
2334
  "200": {
2293
2335
  "description": "Document computed",
@@ -2305,10 +2347,10 @@
2305
2347
  }
2306
2348
  }
2307
2349
  },
2308
- "/spaces/{spaceId}/content/computed/page": {
2309
- "get": {
2310
- "operationId": "getComputedPage",
2311
- "summary": "Get the computed pages for a page in a computed content.",
2350
+ "/spaces/{spaceId}/content/computed/revision": {
2351
+ "post": {
2352
+ "operationId": "getComputedRevision",
2353
+ "summary": "Get the computed content for a source in a computed content.",
2312
2354
  "security": [
2313
2355
  {
2314
2356
  "user": []
@@ -2317,23 +2359,29 @@
2317
2359
  "parameters": [
2318
2360
  {
2319
2361
  "$ref": "#/components/parameters/spaceId"
2320
- },
2321
- {
2322
- "$ref": "#/components/parameters/documentFormat"
2323
- },
2324
- {
2325
- "name": "request",
2326
- "in": "query",
2327
- "required": true,
2328
- "description": "LZ-string compressed JSON request",
2329
- "schema": {
2330
- "type": "string"
2331
- }
2332
2362
  }
2333
2363
  ],
2364
+ "requestBody": {
2365
+ "required": true,
2366
+ "content": {
2367
+ "application/json": {
2368
+ "schema": {
2369
+ "type": "object",
2370
+ "properties": {
2371
+ "source": {
2372
+ "$ref": "#/components/schemas/ComputedContentSource"
2373
+ }
2374
+ },
2375
+ "required": [
2376
+ "source"
2377
+ ]
2378
+ }
2379
+ }
2380
+ }
2381
+ },
2334
2382
  "responses": {
2335
2383
  "200": {
2336
- "description": "Computed pages and their associated files",
2384
+ "description": "Computed pages and files",
2337
2385
  "content": {
2338
2386
  "application/json": {
2339
2387
  "schema": {
@@ -5377,9 +5425,11 @@
5377
5425
  },
5378
5426
  "/spaces/{spaceId}/publishing/customization": {
5379
5427
  "get": {
5380
- "deprecated": true,
5381
5428
  "operationId": "getSpacePublishingCustomizationById",
5382
5429
  "summary": "Get the publishing customization configuration for a space.",
5430
+ "deprecated": true,
5431
+ "x-deprecated-error-rate": 0.1,
5432
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
5383
5433
  "tags": [
5384
5434
  "spaces"
5385
5435
  ],
@@ -5413,9 +5463,11 @@
5413
5463
  }
5414
5464
  },
5415
5465
  "put": {
5416
- "deprecated": true,
5417
5466
  "operationId": "updateSpacePublishingCustomizationById",
5418
5467
  "summary": "Update the publishing customization configuration for a space.",
5468
+ "deprecated": true,
5469
+ "x-deprecated-error-rate": 0.1,
5470
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
5419
5471
  "tags": [
5420
5472
  "spaces"
5421
5473
  ],
@@ -9602,66 +9654,7 @@
9602
9654
  "content": {
9603
9655
  "application/json": {
9604
9656
  "schema": {
9605
- "type": "object",
9606
- "properties": {
9607
- "interval": {
9608
- "description": "The desired billing interval",
9609
- "$ref": "#/components/schemas/BillingInterval"
9610
- },
9611
- "product": {
9612
- "type": "string",
9613
- "description": "The new product to upgrade to",
9614
- "enum": [
9615
- "free_2024",
9616
- "plus_2024",
9617
- "pro_2024"
9618
- ]
9619
- },
9620
- "changes": {
9621
- "type": "object",
9622
- "description": "Changes to apply to the organization and its sites before upgrading",
9623
- "minProperties": 1,
9624
- "properties": {
9625
- "removeMembers": {
9626
- "description": "A list of member identifiers to be removed",
9627
- "type": "array",
9628
- "items": {
9629
- "type": "string"
9630
- }
9631
- },
9632
- "updateSiteTypes": {
9633
- "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.",
9634
- "type": "array",
9635
- "items": {
9636
- "type": "object",
9637
- "properties": {
9638
- "id": {
9639
- "description": "The site identifier",
9640
- "type": "string"
9641
- },
9642
- "type": {
9643
- "description": "The new site type",
9644
- "type": "string",
9645
- "enum": [
9646
- "basic",
9647
- "premium",
9648
- "ultimate"
9649
- ]
9650
- }
9651
- },
9652
- "required": [
9653
- "id",
9654
- "type"
9655
- ]
9656
- }
9657
- }
9658
- }
9659
- }
9660
- },
9661
- "required": [
9662
- "product",
9663
- "interval"
9664
- ]
9657
+ "$ref": "#/components/schemas/MigrateOrganizationParameters"
9665
9658
  }
9666
9659
  }
9667
9660
  }
@@ -9674,8 +9667,10 @@
9674
9667
  "$ref": "#/components/responses/UnexpectedError"
9675
9668
  }
9676
9669
  }
9677
- },
9678
- "get": {
9670
+ }
9671
+ },
9672
+ "/orgs/{organizationId}/billing/migrate/preview": {
9673
+ "post": {
9679
9674
  "operationId": "previewMigrateOrganizationPlan",
9680
9675
  "summary": "Preview a migration of an organization to new pricing.",
9681
9676
  "tags": [
@@ -9689,40 +9684,18 @@
9689
9684
  "parameters": [
9690
9685
  {
9691
9686
  "$ref": "#/components/parameters/organizationId"
9692
- },
9693
- {
9694
- "name": "interval",
9695
- "in": "query",
9696
- "required": true,
9697
- "description": "The desired billing interval",
9698
- "schema": {
9699
- "$ref": "#/components/schemas/BillingInterval"
9700
- }
9701
- },
9702
- {
9703
- "name": "product",
9704
- "in": "query",
9705
- "required": true,
9706
- "description": "The new product to upgrade to",
9707
- "schema": {
9708
- "type": "string",
9709
- "enum": [
9710
- "free_2024",
9711
- "plus_2024",
9712
- "pro_2024"
9713
- ]
9714
- }
9715
- },
9716
- {
9717
- "name": "removedMembersCount",
9718
- "in": "query",
9719
- "required": true,
9720
- "description": "How many members have been deselected by the user",
9721
- "schema": {
9722
- "type": "number"
9723
- }
9724
9687
  }
9725
9688
  ],
9689
+ "requestBody": {
9690
+ "required": true,
9691
+ "content": {
9692
+ "application/json": {
9693
+ "schema": {
9694
+ "$ref": "#/components/schemas/MigrateOrganizationParameters"
9695
+ }
9696
+ }
9697
+ }
9698
+ },
9726
9699
  "responses": {
9727
9700
  "200": {
9728
9701
  "description": "OK",
@@ -11699,6 +11672,9 @@
11699
11672
  "operationId": "listSnippets",
11700
11673
  "summary": "Lists snippets.",
11701
11674
  "description": "List snippets in an organization, newest first.\n",
11675
+ "deprecated": true,
11676
+ "x-deprecated-error-rate": 0.1,
11677
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
11702
11678
  "tags": [
11703
11679
  "organizations"
11704
11680
  ],
@@ -11763,6 +11739,9 @@
11763
11739
  "post": {
11764
11740
  "operationId": "createSnippet",
11765
11741
  "summary": "Create a new snippet",
11742
+ "deprecated": true,
11743
+ "x-deprecated-error-rate": 0.1,
11744
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
11766
11745
  "tags": [
11767
11746
  "organizations"
11768
11747
  ],
@@ -11814,6 +11793,9 @@
11814
11793
  "get": {
11815
11794
  "operationId": "getSnippet",
11816
11795
  "summary": "Get a snippet by its ID",
11796
+ "deprecated": true,
11797
+ "x-deprecated-error-rate": 0.1,
11798
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
11817
11799
  "tags": [
11818
11800
  "organizations"
11819
11801
  ],
@@ -11877,6 +11859,9 @@
11877
11859
  "put": {
11878
11860
  "operationId": "updateSnippet",
11879
11861
  "summary": "Update an existing snippet.",
11862
+ "deprecated": true,
11863
+ "x-deprecated-error-rate": 0.1,
11864
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
11880
11865
  "tags": [
11881
11866
  "organizations"
11882
11867
  ],
@@ -11927,6 +11912,9 @@
11927
11912
  "post": {
11928
11913
  "operationId": "moveSnippet",
11929
11914
  "summary": "Move a snippet into a destination. The snippet will be archived in the process.",
11915
+ "deprecated": true,
11916
+ "x-deprecated-error-rate": 0.1,
11917
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
11930
11918
  "tags": [
11931
11919
  "organizations"
11932
11920
  ],
@@ -12014,6 +12002,9 @@
12014
12002
  "get": {
12015
12003
  "operationId": "getSnippetSuggestedLocations",
12016
12004
  "summary": "Return possible snippet locations in an organization based on the current user.",
12005
+ "deprecated": true,
12006
+ "x-deprecated-error-rate": 0.1,
12007
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
12017
12008
  "tags": [
12018
12009
  "organizations"
12019
12010
  ],
@@ -13805,6 +13796,65 @@
13805
13796
  }
13806
13797
  },
13807
13798
  "/orgs/{organizationId}/sites/{siteId}/section-groups": {
13799
+ "get": {
13800
+ "operationId": "listSiteSectionGroups",
13801
+ "summary": "List all the section groups under a site in an organization",
13802
+ "tags": [
13803
+ "sites"
13804
+ ],
13805
+ "security": [
13806
+ {
13807
+ "user": []
13808
+ }
13809
+ ],
13810
+ "parameters": [
13811
+ {
13812
+ "$ref": "#/components/parameters/organizationId"
13813
+ },
13814
+ {
13815
+ "$ref": "#/components/parameters/siteId"
13816
+ },
13817
+ {
13818
+ "$ref": "#/components/parameters/listPage"
13819
+ },
13820
+ {
13821
+ "$ref": "#/components/parameters/listLimit"
13822
+ }
13823
+ ],
13824
+ "responses": {
13825
+ "200": {
13826
+ "description": "OK",
13827
+ "content": {
13828
+ "application/json": {
13829
+ "schema": {
13830
+ "allOf": [
13831
+ {
13832
+ "$ref": "#/components/schemas/List"
13833
+ },
13834
+ {
13835
+ "type": "object",
13836
+ "required": [
13837
+ "items"
13838
+ ],
13839
+ "properties": {
13840
+ "items": {
13841
+ "type": "array",
13842
+ "items": {
13843
+ "$ref": "#/components/schemas/SiteSectionGroup"
13844
+ }
13845
+ }
13846
+ }
13847
+ }
13848
+ ]
13849
+ }
13850
+ }
13851
+ }
13852
+ },
13853
+ "default": {
13854
+ "$ref": "#/components/responses/UnexpectedError"
13855
+ }
13856
+ }
13857
+ },
13808
13858
  "post": {
13809
13859
  "operationId": "addSectionGroupToSite",
13810
13860
  "summary": "Add a section group to a site in an organization",
@@ -13974,6 +14024,109 @@
13974
14024
  }
13975
14025
  }
13976
14026
  },
14027
+ "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections": {
14028
+ "post": {
14029
+ "operationId": "addSectionToGroup",
14030
+ "summary": "Add a section to a section group",
14031
+ "tags": [
14032
+ "sites"
14033
+ ],
14034
+ "security": [
14035
+ {
14036
+ "user": []
14037
+ }
14038
+ ],
14039
+ "parameters": [
14040
+ {
14041
+ "$ref": "#/components/parameters/organizationId"
14042
+ },
14043
+ {
14044
+ "$ref": "#/components/parameters/siteId"
14045
+ },
14046
+ {
14047
+ "$ref": "#/components/parameters/siteSectionGroupId"
14048
+ }
14049
+ ],
14050
+ "requestBody": {
14051
+ "required": true,
14052
+ "content": {
14053
+ "application/json": {
14054
+ "schema": {
14055
+ "type": "object",
14056
+ "properties": {
14057
+ "sectionId": {
14058
+ "type": "string",
14059
+ "description": "ID of the section to add to the section group"
14060
+ }
14061
+ },
14062
+ "required": [
14063
+ "sectionId"
14064
+ ]
14065
+ }
14066
+ }
14067
+ }
14068
+ },
14069
+ "responses": {
14070
+ "201": {
14071
+ "description": "Section added to the section group",
14072
+ "headers": {
14073
+ "Location": {
14074
+ "description": "API URL for the newly created site-section-group relationship",
14075
+ "schema": {
14076
+ "type": "string"
14077
+ }
14078
+ }
14079
+ },
14080
+ "content": {
14081
+ "application/json": {
14082
+ "schema": {
14083
+ "$ref": "#/components/schemas/SiteSectionGroup"
14084
+ }
14085
+ }
14086
+ }
14087
+ },
14088
+ "default": {
14089
+ "$ref": "#/components/responses/UnexpectedError"
14090
+ }
14091
+ }
14092
+ }
14093
+ },
14094
+ "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}": {
14095
+ "delete": {
14096
+ "operationId": "removeSectionFromGroup",
14097
+ "summary": "Remove a section from a section group",
14098
+ "tags": [
14099
+ "sites"
14100
+ ],
14101
+ "security": [
14102
+ {
14103
+ "user": []
14104
+ }
14105
+ ],
14106
+ "parameters": [
14107
+ {
14108
+ "$ref": "#/components/parameters/organizationId"
14109
+ },
14110
+ {
14111
+ "$ref": "#/components/parameters/siteId"
14112
+ },
14113
+ {
14114
+ "$ref": "#/components/parameters/siteSectionGroupId"
14115
+ },
14116
+ {
14117
+ "$ref": "#/components/parameters/siteSectionId"
14118
+ }
14119
+ ],
14120
+ "responses": {
14121
+ "205": {
14122
+ "description": "Section has been removed from the section group"
14123
+ },
14124
+ "default": {
14125
+ "$ref": "#/components/responses/UnexpectedError"
14126
+ }
14127
+ }
14128
+ }
14129
+ },
13977
14130
  "/orgs/{organizationId}/sites/{siteId}/sections": {
13978
14131
  "post": {
13979
14132
  "operationId": "addSectionToSite",
@@ -14173,6 +14326,20 @@
14173
14326
  ]
14174
14327
  }
14175
14328
  ]
14329
+ },
14330
+ "description": {
14331
+ "oneOf": [
14332
+ {
14333
+ "$ref": "#/components/schemas/SiteSectionDescription"
14334
+ },
14335
+ {
14336
+ "type": "string",
14337
+ "nullable": true,
14338
+ "enum": [
14339
+ null
14340
+ ]
14341
+ }
14342
+ ]
14176
14343
  }
14177
14344
  }
14178
14345
  }
@@ -15348,6 +15515,69 @@
15348
15515
  }
15349
15516
  }
15350
15517
  },
15518
+ "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/move": {
15519
+ "post": {
15520
+ "operationId": "moveSiteSectionGroup",
15521
+ "summary": "Move a site section group to a new position in the site.",
15522
+ "tags": [
15523
+ "sites"
15524
+ ],
15525
+ "security": [
15526
+ {
15527
+ "user": []
15528
+ }
15529
+ ],
15530
+ "parameters": [
15531
+ {
15532
+ "$ref": "#/components/parameters/organizationId"
15533
+ },
15534
+ {
15535
+ "$ref": "#/components/parameters/siteId"
15536
+ },
15537
+ {
15538
+ "$ref": "#/components/parameters/siteSectionGroupId"
15539
+ }
15540
+ ],
15541
+ "requestBody": {
15542
+ "content": {
15543
+ "application/json": {
15544
+ "schema": {
15545
+ "type": "object",
15546
+ "properties": {
15547
+ "position": {
15548
+ "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.",
15549
+ "$ref": "#/components/schemas/SiteSectionGroupMovePosition"
15550
+ }
15551
+ }
15552
+ }
15553
+ }
15554
+ }
15555
+ },
15556
+ "responses": {
15557
+ "200": {
15558
+ "description": "Site section group moved",
15559
+ "content": {
15560
+ "application/json": {
15561
+ "schema": {
15562
+ "$ref": "#/components/schemas/SiteSectionGroup"
15563
+ }
15564
+ }
15565
+ }
15566
+ },
15567
+ "400": {
15568
+ "description": "Invalid move site section group position provided",
15569
+ "$ref": "#/components/responses/BadRequestError"
15570
+ },
15571
+ "404": {
15572
+ "description": "No matching site section group found",
15573
+ "$ref": "#/components/responses/NotFoundError"
15574
+ },
15575
+ "default": {
15576
+ "$ref": "#/components/responses/UnexpectedError"
15577
+ }
15578
+ }
15579
+ }
15580
+ },
15351
15581
  "/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}/move": {
15352
15582
  "post": {
15353
15583
  "operationId": "moveSiteSection",
@@ -15542,6 +15772,8 @@
15542
15772
  "summary": "Track a page view in a site",
15543
15773
  "description": "Track a page view in a site.",
15544
15774
  "deprecated": true,
15775
+ "x-deprecated-error-rate": 0.1,
15776
+ "x-deprecated-sunset": "2025-02-05T00:00:00.000Z",
15545
15777
  "tags": [
15546
15778
  "analytics",
15547
15779
  "sites"
@@ -20372,6 +20604,9 @@
20372
20604
  "oneOf": [
20373
20605
  {
20374
20606
  "$ref": "#/components/schemas/ContentRefFile"
20607
+ },
20608
+ {
20609
+ "$ref": "#/components/schemas/ContentRefURL"
20375
20610
  }
20376
20611
  ]
20377
20612
  },
@@ -21764,13 +21999,54 @@
21764
21999
  }
21765
22000
  ]
21766
22001
  },
21767
- "ComputedContentDependency": {
22002
+ "ComputedContentDependencyRef": {
21768
22003
  "oneOf": [
21769
22004
  {
21770
22005
  "$ref": "#/components/schemas/ContentRefSpace"
21771
22006
  }
21772
22007
  ]
21773
22008
  },
22009
+ "ComputedContentDependencyValue": {
22010
+ "description": "Dependency for a computation, with its resolved value.",
22011
+ "oneOf": [
22012
+ {
22013
+ "type": "object",
22014
+ "properties": {
22015
+ "ref": {
22016
+ "$ref": "#/components/schemas/ContentRefSpace"
22017
+ },
22018
+ "value": {
22019
+ "type": "object",
22020
+ "nullable": true,
22021
+ "description": "See `Space` schema component.",
22022
+ "properties": {
22023
+ "object": {
22024
+ "type": "string",
22025
+ "enum": [
22026
+ "space"
22027
+ ]
22028
+ },
22029
+ "id": {
22030
+ "type": "string"
22031
+ },
22032
+ "revision": {
22033
+ "type": "string"
22034
+ }
22035
+ },
22036
+ "required": [
22037
+ "object",
22038
+ "id",
22039
+ "revision"
22040
+ ]
22041
+ }
22042
+ },
22043
+ "required": [
22044
+ "ref",
22045
+ "value"
22046
+ ]
22047
+ }
22048
+ ]
22049
+ },
21774
22050
  "ComputedContentSource": {
21775
22051
  "type": "object",
21776
22052
  "description": "Parameters for a computed content",
@@ -21787,11 +22063,26 @@
21787
22063
  "description": "Properties to be passed to the computation",
21788
22064
  "$ref": "#/components/schemas/PlainObject"
21789
22065
  },
21790
- "dependsOn": {
21791
- "type": "array",
21792
- "description": "Dependencies the computation depend on. When the dependency's targets are updated, the computation will be updated.",
21793
- "items": {
21794
- "$ref": "#/components/schemas/ComputedContentDependency"
22066
+ "dependencies": {
22067
+ "type": "object",
22068
+ "description": "Dependencies the computation depends on.\nThe state of the dependencies will be passed to the computation.\nWhen the dependency's targets are updated, the computation will be updated.\n",
22069
+ "additionalProperties": {
22070
+ "oneOf": [
22071
+ {
22072
+ "type": "object",
22073
+ "properties": {
22074
+ "ref": {
22075
+ "$ref": "#/components/schemas/ComputedContentDependencyRef"
22076
+ }
22077
+ },
22078
+ "required": [
22079
+ "ref"
22080
+ ]
22081
+ },
22082
+ {
22083
+ "$ref": "#/components/schemas/ComputedContentDependencyValue"
22084
+ }
22085
+ ]
21795
22086
  }
21796
22087
  }
21797
22088
  },
@@ -27515,11 +27806,19 @@
27515
27806
  "props": {
27516
27807
  "description": "Properties passed to the rendering.",
27517
27808
  "$ref": "#/components/schemas/PlainObject"
27809
+ },
27810
+ "dependencies": {
27811
+ "description": "Dependencies of the computation.",
27812
+ "type": "object",
27813
+ "additionalProperties": {
27814
+ "$ref": "#/components/schemas/ComputedContentDependencyValue"
27815
+ }
27518
27816
  }
27519
27817
  },
27520
27818
  "required": [
27521
27819
  "sourceId",
27522
- "props"
27820
+ "props",
27821
+ "dependencies"
27523
27822
  ]
27524
27823
  }
27525
27824
  ]
@@ -29438,6 +29737,12 @@
29438
29737
  "minLength": 2,
29439
29738
  "maxLength": 128
29440
29739
  },
29740
+ "SiteSectionDescription": {
29741
+ "type": "string",
29742
+ "description": "Description of the site section",
29743
+ "minLength": 0,
29744
+ "maxLength": 256
29745
+ },
29441
29746
  "SiteSectionPath": {
29442
29747
  "type": "string",
29443
29748
  "description": "Path to the section on the site",
@@ -29535,6 +29840,9 @@
29535
29840
  "title": {
29536
29841
  "$ref": "#/components/schemas/SiteSectionTitle"
29537
29842
  },
29843
+ "description": {
29844
+ "$ref": "#/components/schemas/SiteSectionDescription"
29845
+ },
29538
29846
  "default": {
29539
29847
  "type": "boolean",
29540
29848
  "description": "Whether this is the default section for the site"
@@ -29583,6 +29891,47 @@
29583
29891
  "urls"
29584
29892
  ]
29585
29893
  },
29894
+ "SiteSectionGroupTitle": {
29895
+ "type": "string",
29896
+ "description": "Title of the site section group",
29897
+ "minLength": 1,
29898
+ "maxLength": 100
29899
+ },
29900
+ "SiteSectionGroup": {
29901
+ "type": "object",
29902
+ "properties": {
29903
+ "object": {
29904
+ "type": "string",
29905
+ "description": "The object type, which is always \"site-section-group\"",
29906
+ "enum": [
29907
+ "site-section-group"
29908
+ ]
29909
+ },
29910
+ "id": {
29911
+ "type": "string",
29912
+ "description": "Unique identifier of the site section group"
29913
+ },
29914
+ "title": {
29915
+ "$ref": "#/components/schemas/SiteSectionGroupTitle"
29916
+ },
29917
+ "sections": {
29918
+ "type": "array",
29919
+ "description": "List of site section ids that are members of the group",
29920
+ "items": {
29921
+ "$ref": "#/components/schemas/SiteSection"
29922
+ }
29923
+ },
29924
+ "icon": {
29925
+ "$ref": "#/components/schemas/Icon"
29926
+ }
29927
+ },
29928
+ "required": [
29929
+ "object",
29930
+ "id",
29931
+ "title",
29932
+ "sections"
29933
+ ]
29934
+ },
29586
29935
  "SiteStructure": {
29587
29936
  "oneOf": [
29588
29937
  {
@@ -29597,7 +29946,14 @@
29597
29946
  "structure": {
29598
29947
  "type": "array",
29599
29948
  "items": {
29600
- "$ref": "#/components/schemas/SiteSection"
29949
+ "oneOf": [
29950
+ {
29951
+ "$ref": "#/components/schemas/SiteSection"
29952
+ },
29953
+ {
29954
+ "$ref": "#/components/schemas/SiteSectionGroup"
29955
+ }
29956
+ ]
29601
29957
  }
29602
29958
  }
29603
29959
  },
@@ -30269,6 +30625,67 @@
30269
30625
  }
30270
30626
  ]
30271
30627
  },
30628
+ "MigrateOrganizationParameters": {
30629
+ "type": "object",
30630
+ "properties": {
30631
+ "interval": {
30632
+ "description": "The desired billing interval",
30633
+ "$ref": "#/components/schemas/BillingInterval"
30634
+ },
30635
+ "product": {
30636
+ "type": "string",
30637
+ "description": "The new product to upgrade to",
30638
+ "enum": [
30639
+ "free_2024",
30640
+ "plus_2024",
30641
+ "pro_2024"
30642
+ ]
30643
+ },
30644
+ "changes": {
30645
+ "type": "object",
30646
+ "description": "Changes to apply to the organization and its sites before upgrading",
30647
+ "properties": {
30648
+ "removeMembers": {
30649
+ "description": "A list of member identifiers to be removed",
30650
+ "type": "array",
30651
+ "items": {
30652
+ "type": "string"
30653
+ }
30654
+ },
30655
+ "updateSites": {
30656
+ "description": "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.\n",
30657
+ "type": "array",
30658
+ "items": {
30659
+ "type": "object",
30660
+ "properties": {
30661
+ "id": {
30662
+ "description": "The site identifier",
30663
+ "type": "string"
30664
+ },
30665
+ "type": {
30666
+ "description": "The site type to migrate to",
30667
+ "$ref": "#/components/schemas/SiteType"
30668
+ }
30669
+ },
30670
+ "required": [
30671
+ "id",
30672
+ "type"
30673
+ ]
30674
+ }
30675
+ }
30676
+ },
30677
+ "required": [
30678
+ "removeMembers",
30679
+ "updateSites"
30680
+ ]
30681
+ }
30682
+ },
30683
+ "required": [
30684
+ "product",
30685
+ "interval",
30686
+ "changes"
30687
+ ]
30688
+ },
30272
30689
  "SiteToMigrateFeature": {
30273
30690
  "type": "string",
30274
30691
  "description": "These are all the features we check to determine the new pricing site type.",
@@ -31662,47 +32079,6 @@
31662
32079
  }
31663
32080
  ]
31664
32081
  },
31665
- "SiteSectionGroupTitle": {
31666
- "type": "string",
31667
- "description": "Title of the site section group",
31668
- "minLength": 1,
31669
- "maxLength": 100
31670
- },
31671
- "SiteSectionGroup": {
31672
- "type": "object",
31673
- "properties": {
31674
- "object": {
31675
- "type": "string",
31676
- "description": "The object type, which is always \"site-section-group\"",
31677
- "enum": [
31678
- "site-section-group"
31679
- ]
31680
- },
31681
- "id": {
31682
- "type": "string",
31683
- "description": "Unique identifier of the site section group"
31684
- },
31685
- "title": {
31686
- "$ref": "#/components/schemas/SiteSectionGroupTitle"
31687
- },
31688
- "sections": {
31689
- "type": "array",
31690
- "description": "List of site section ids that are members of the group",
31691
- "items": {
31692
- "$ref": "#/components/schemas/SiteSection"
31693
- }
31694
- },
31695
- "icon": {
31696
- "$ref": "#/components/schemas/Icon"
31697
- }
31698
- },
31699
- "required": [
31700
- "object",
31701
- "id",
31702
- "title",
31703
- "sections"
31704
- ]
31705
- },
31706
32082
  "SiteSearchScope": {
31707
32083
  "oneOf": [
31708
32084
  {
@@ -31785,6 +32161,38 @@
31785
32161
  }
31786
32162
  ]
31787
32163
  },
32164
+ "SiteSectionGroupPointer": {
32165
+ "type": "object",
32166
+ "properties": {
32167
+ "type": {
32168
+ "type": "string",
32169
+ "enum": [
32170
+ "site-section",
32171
+ "site-section-group"
32172
+ ]
32173
+ },
32174
+ "id": {
32175
+ "type": "string",
32176
+ "description": "Unique identifier for the site section"
32177
+ }
32178
+ },
32179
+ "required": [
32180
+ "type",
32181
+ "id"
32182
+ ]
32183
+ },
32184
+ "SiteSectionGroupMovePosition": {
32185
+ "type": "object",
32186
+ "description": "Position at which to move the site section group.",
32187
+ "properties": {
32188
+ "before": {
32189
+ "$ref": "#/components/schemas/SiteSectionGroupPointer"
32190
+ },
32191
+ "after": {
32192
+ "$ref": "#/components/schemas/SiteSectionGroupPointer"
32193
+ }
32194
+ }
32195
+ },
31788
32196
  "SiteSectionPointer": {
31789
32197
  "type": "object",
31790
32198
  "properties": {
@@ -35251,6 +35659,18 @@
35251
35659
  }
35252
35660
  ]
35253
35661
  },
35662
+ "ComputedContentDependency": {
35663
+ "type": "object",
35664
+ "description": "Dependency for a computation, before its resolution.",
35665
+ "properties": {
35666
+ "ref": {
35667
+ "$ref": "#/components/schemas/ComputedContentDependencyRef"
35668
+ }
35669
+ },
35670
+ "required": [
35671
+ "ref"
35672
+ ]
35673
+ },
35254
35674
  "InputPageBase": {
35255
35675
  "allOf": [
35256
35676
  {