@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/dist/client.d.ts +180 -63
- package/dist/index.cjs +47 -11
- package/dist/index.js +47 -11
- package/package.json +1 -1
- package/spec/openapi.json +593 -173
- package/spec/openapi.yaml +391 -126
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
|
-
|
|
1307
|
+
post:
|
|
1275
1308
|
operationId: getComputedDocument
|
|
1276
|
-
summary:
|
|
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
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
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/
|
|
1298
|
-
|
|
1299
|
-
operationId:
|
|
1300
|
-
summary: Get the computed
|
|
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
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
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.
|
|
@@ -12682,9 +12820,36 @@ components:
|
|
|
12682
12820
|
- kind
|
|
12683
12821
|
- type
|
|
12684
12822
|
- target
|
|
12685
|
-
|
|
12823
|
+
ComputedContentDependencyRef:
|
|
12686
12824
|
oneOf:
|
|
12687
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
|
|
12688
12853
|
ComputedContentSource:
|
|
12689
12854
|
type: object
|
|
12690
12855
|
description: Parameters for a computed content
|
|
@@ -12698,11 +12863,21 @@ components:
|
|
|
12698
12863
|
props:
|
|
12699
12864
|
description: Properties to be passed to the computation
|
|
12700
12865
|
$ref: "#/components/schemas/PlainObject"
|
|
12701
|
-
|
|
12702
|
-
type:
|
|
12703
|
-
description:
|
|
12704
|
-
|
|
12705
|
-
|
|
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"
|
|
12706
12881
|
required:
|
|
12707
12882
|
- integration
|
|
12708
12883
|
- source
|
|
@@ -16572,9 +16747,15 @@ components:
|
|
|
16572
16747
|
props:
|
|
16573
16748
|
description: Properties passed to the rendering.
|
|
16574
16749
|
$ref: "#/components/schemas/PlainObject"
|
|
16750
|
+
dependencies:
|
|
16751
|
+
description: Dependencies of the computation.
|
|
16752
|
+
type: object
|
|
16753
|
+
additionalProperties:
|
|
16754
|
+
$ref: "#/components/schemas/ComputedContentDependencyValue"
|
|
16575
16755
|
required:
|
|
16576
16756
|
- sourceId
|
|
16577
16757
|
- props
|
|
16758
|
+
- dependencies
|
|
16578
16759
|
ContentComputeDocumentEvent:
|
|
16579
16760
|
allOf:
|
|
16580
16761
|
- $ref: "#/components/schemas/ContentComputeEvent"
|
|
@@ -17794,6 +17975,11 @@ components:
|
|
|
17794
17975
|
description: Title of the site section
|
|
17795
17976
|
minLength: 2
|
|
17796
17977
|
maxLength: 128
|
|
17978
|
+
SiteSectionDescription:
|
|
17979
|
+
type: string
|
|
17980
|
+
description: Description of the site section
|
|
17981
|
+
minLength: 0
|
|
17982
|
+
maxLength: 256
|
|
17797
17983
|
SiteSectionPath:
|
|
17798
17984
|
type: string
|
|
17799
17985
|
description: Path to the section on the site
|
|
@@ -17867,6 +18053,8 @@ components:
|
|
|
17867
18053
|
description: Unique identifier of the site section
|
|
17868
18054
|
title:
|
|
17869
18055
|
$ref: "#/components/schemas/SiteSectionTitle"
|
|
18056
|
+
description:
|
|
18057
|
+
$ref: "#/components/schemas/SiteSectionDescription"
|
|
17870
18058
|
default:
|
|
17871
18059
|
type: boolean
|
|
17872
18060
|
description: Whether this is the default section for the site
|
|
@@ -17901,6 +18089,36 @@ components:
|
|
|
17901
18089
|
- path
|
|
17902
18090
|
- siteSpaces
|
|
17903
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
|
|
17904
18122
|
SiteStructure:
|
|
17905
18123
|
oneOf:
|
|
17906
18124
|
- type: object
|
|
@@ -17912,7 +18130,9 @@ components:
|
|
|
17912
18130
|
structure:
|
|
17913
18131
|
type: array
|
|
17914
18132
|
items:
|
|
17915
|
-
|
|
18133
|
+
oneOf:
|
|
18134
|
+
- $ref: "#/components/schemas/SiteSection"
|
|
18135
|
+
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
17916
18136
|
required:
|
|
17917
18137
|
- type
|
|
17918
18138
|
- structure
|
|
@@ -18355,6 +18575,51 @@ components:
|
|
|
18355
18575
|
- interval_changed
|
|
18356
18576
|
required:
|
|
18357
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
|
|
18358
18623
|
SiteToMigrateFeature:
|
|
18359
18624
|
type: string
|
|
18360
18625
|
description: These are all the features we check to determine the new pricing site type.
|
|
@@ -19303,36 +19568,6 @@ components:
|
|
|
19303
19568
|
type: string
|
|
19304
19569
|
format: uri
|
|
19305
19570
|
description: A fallback URL that will be used if authentication fails.
|
|
19306
|
-
SiteSectionGroupTitle:
|
|
19307
|
-
type: string
|
|
19308
|
-
description: Title of the site section group
|
|
19309
|
-
minLength: 1
|
|
19310
|
-
maxLength: 100
|
|
19311
|
-
SiteSectionGroup:
|
|
19312
|
-
type: object
|
|
19313
|
-
properties:
|
|
19314
|
-
object:
|
|
19315
|
-
type: string
|
|
19316
|
-
description: The object type, which is always "site-section-group"
|
|
19317
|
-
enum:
|
|
19318
|
-
- site-section-group
|
|
19319
|
-
id:
|
|
19320
|
-
type: string
|
|
19321
|
-
description: Unique identifier of the site section group
|
|
19322
|
-
title:
|
|
19323
|
-
$ref: "#/components/schemas/SiteSectionGroupTitle"
|
|
19324
|
-
sections:
|
|
19325
|
-
type: array
|
|
19326
|
-
description: List of site section ids that are members of the group
|
|
19327
|
-
items:
|
|
19328
|
-
$ref: "#/components/schemas/SiteSection"
|
|
19329
|
-
icon:
|
|
19330
|
-
$ref: "#/components/schemas/Icon"
|
|
19331
|
-
required:
|
|
19332
|
-
- object
|
|
19333
|
-
- id
|
|
19334
|
-
- title
|
|
19335
|
-
- sections
|
|
19336
19571
|
SiteSearchScope:
|
|
19337
19572
|
oneOf:
|
|
19338
19573
|
- type: object
|
|
@@ -19383,6 +19618,28 @@ components:
|
|
|
19383
19618
|
description: Indicates whether the site customization settings have been overridden.
|
|
19384
19619
|
required:
|
|
19385
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"
|
|
19386
19643
|
SiteSectionPointer:
|
|
19387
19644
|
type: object
|
|
19388
19645
|
properties:
|
|
@@ -21599,6 +21856,14 @@ components:
|
|
|
21599
21856
|
- $ref: "#/components/schemas/DocumentBlockReusableContent"
|
|
21600
21857
|
- $ref: "#/components/schemas/DocumentBlockStepper"
|
|
21601
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
|
|
21602
21867
|
InputPageBase:
|
|
21603
21868
|
allOf:
|
|
21604
21869
|
- type: object
|