@gitbook/api 0.43.0 → 0.45.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 +172 -30
- package/dist/index.cjs +38 -5
- package/dist/index.js +38 -5
- package/package.json +1 -1
- package/spec/openapi.json +507 -81
- package/spec/openapi.yaml +323 -50
package/spec/openapi.json
CHANGED
|
@@ -558,6 +558,67 @@
|
|
|
558
558
|
"referrer"
|
|
559
559
|
]
|
|
560
560
|
},
|
|
561
|
+
"RequestSiteTrackPageView": {
|
|
562
|
+
"type": "object",
|
|
563
|
+
"properties": {
|
|
564
|
+
"pageId": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"description": "Unique identifier of the page."
|
|
567
|
+
},
|
|
568
|
+
"spaceId": {
|
|
569
|
+
"type": "string",
|
|
570
|
+
"description": "Unique identifier of the space."
|
|
571
|
+
},
|
|
572
|
+
"visitor": {
|
|
573
|
+
"type": "object",
|
|
574
|
+
"description": "Analytics info on the GitBook's content visitor.",
|
|
575
|
+
"properties": {
|
|
576
|
+
"anonymousId": {
|
|
577
|
+
"type": "string",
|
|
578
|
+
"description": "GitBook's unique identifier of the visitor."
|
|
579
|
+
},
|
|
580
|
+
"cookies": {
|
|
581
|
+
"type": "object",
|
|
582
|
+
"description": "The visitors cookies.",
|
|
583
|
+
"additionalProperties": {
|
|
584
|
+
"type": "string"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"ip": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"description": "IP address of the visitor.\nIf undefined, it'll default to the IP executing the request.\n"
|
|
590
|
+
},
|
|
591
|
+
"userAgent": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"description": "User-agent of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent\n"
|
|
594
|
+
},
|
|
595
|
+
"language": {
|
|
596
|
+
"type": "string",
|
|
597
|
+
"description": "Language of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/language\n"
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
"required": [
|
|
601
|
+
"anonymousId",
|
|
602
|
+
"cookies",
|
|
603
|
+
"userAgent"
|
|
604
|
+
]
|
|
605
|
+
},
|
|
606
|
+
"url": {
|
|
607
|
+
"type": "string",
|
|
608
|
+
"description": "The GitBook content's URL visited (including URL params)."
|
|
609
|
+
},
|
|
610
|
+
"referrer": {
|
|
611
|
+
"type": "string",
|
|
612
|
+
"description": "The URL of referrer that linked to the page."
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
"required": [
|
|
616
|
+
"visitor",
|
|
617
|
+
"url",
|
|
618
|
+
"referrer",
|
|
619
|
+
"spaceId"
|
|
620
|
+
]
|
|
621
|
+
},
|
|
561
622
|
"RequestPublishIntegration": {
|
|
562
623
|
"type": "object",
|
|
563
624
|
"properties": {
|
|
@@ -1402,6 +1463,25 @@
|
|
|
1402
1463
|
"type",
|
|
1403
1464
|
"html"
|
|
1404
1465
|
]
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
"type": "object",
|
|
1469
|
+
"title": "Integration",
|
|
1470
|
+
"properties": {
|
|
1471
|
+
"type": {
|
|
1472
|
+
"type": "string",
|
|
1473
|
+
"enum": [
|
|
1474
|
+
"integration"
|
|
1475
|
+
]
|
|
1476
|
+
},
|
|
1477
|
+
"block": {
|
|
1478
|
+
"$ref": "#/components/schemas/IntegrationBlock"
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1481
|
+
"required": [
|
|
1482
|
+
"type",
|
|
1483
|
+
"block"
|
|
1484
|
+
]
|
|
1405
1485
|
}
|
|
1406
1486
|
]
|
|
1407
1487
|
}
|
|
@@ -8796,6 +8876,7 @@
|
|
|
8796
8876
|
"space:script:cookies",
|
|
8797
8877
|
"space:git:sync",
|
|
8798
8878
|
"space:visitor:auth",
|
|
8879
|
+
"site:views:read",
|
|
8799
8880
|
"site:script:inject",
|
|
8800
8881
|
"site:script:cookies",
|
|
8801
8882
|
"site:visitor:auth"
|
|
@@ -9177,6 +9258,9 @@
|
|
|
9177
9258
|
"space_selection": {
|
|
9178
9259
|
"$ref": "#/components/schemas/IntegrationInstallationSpaceSelection"
|
|
9179
9260
|
},
|
|
9261
|
+
"site_selection": {
|
|
9262
|
+
"$ref": "#/components/schemas/IntegrationInstallationSiteSelection"
|
|
9263
|
+
},
|
|
9180
9264
|
"spaces": {
|
|
9181
9265
|
"type": "number",
|
|
9182
9266
|
"description": "Count of spaces, the installation is managing"
|
|
@@ -9228,6 +9312,7 @@
|
|
|
9228
9312
|
"id",
|
|
9229
9313
|
"status",
|
|
9230
9314
|
"space_selection",
|
|
9315
|
+
"site_selection",
|
|
9231
9316
|
"spaces",
|
|
9232
9317
|
"configuration",
|
|
9233
9318
|
"urls",
|
|
@@ -10047,79 +10132,13 @@
|
|
|
10047
10132
|
"$ref": "#/components/schemas/SpaceInstallationDeletedEvent"
|
|
10048
10133
|
},
|
|
10049
10134
|
{
|
|
10050
|
-
"
|
|
10051
|
-
{
|
|
10052
|
-
"$ref": "#/components/schemas/SiteEvent"
|
|
10053
|
-
},
|
|
10054
|
-
{
|
|
10055
|
-
"type": "object",
|
|
10056
|
-
"description": "Event received when integration has been installed or updated on a site.",
|
|
10057
|
-
"properties": {
|
|
10058
|
-
"type": {
|
|
10059
|
-
"type": "string",
|
|
10060
|
-
"enum": [
|
|
10061
|
-
"site_installation_setup"
|
|
10062
|
-
]
|
|
10063
|
-
},
|
|
10064
|
-
"status": {
|
|
10065
|
-
"$ref": "#/components/schemas/IntegrationInstallationStatus"
|
|
10066
|
-
},
|
|
10067
|
-
"previous": {
|
|
10068
|
-
"type": "object",
|
|
10069
|
-
"description": "The state of the site installation before it was updated.",
|
|
10070
|
-
"properties": {
|
|
10071
|
-
"status": {
|
|
10072
|
-
"$ref": "#/components/schemas/IntegrationInstallationStatus"
|
|
10073
|
-
},
|
|
10074
|
-
"configuration": {
|
|
10075
|
-
"type": "object",
|
|
10076
|
-
"description": "The previous configuration of the site installation."
|
|
10077
|
-
}
|
|
10078
|
-
},
|
|
10079
|
-
"required": [
|
|
10080
|
-
"status"
|
|
10081
|
-
]
|
|
10082
|
-
}
|
|
10083
|
-
},
|
|
10084
|
-
"required": [
|
|
10085
|
-
"type",
|
|
10086
|
-
"status"
|
|
10087
|
-
]
|
|
10088
|
-
}
|
|
10089
|
-
]
|
|
10135
|
+
"$ref": "#/components/schemas/SiteInstallationSetupEvent"
|
|
10090
10136
|
},
|
|
10091
10137
|
{
|
|
10092
|
-
"
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
{
|
|
10097
|
-
"type": "object",
|
|
10098
|
-
"description": "Event received when integration has been uninstalled from a site.",
|
|
10099
|
-
"properties": {
|
|
10100
|
-
"type": {
|
|
10101
|
-
"type": "string",
|
|
10102
|
-
"enum": [
|
|
10103
|
-
"site_installation_deleted"
|
|
10104
|
-
]
|
|
10105
|
-
},
|
|
10106
|
-
"previous": {
|
|
10107
|
-
"type": "object",
|
|
10108
|
-
"description": "The state of the site installation before it was deleted.",
|
|
10109
|
-
"properties": {
|
|
10110
|
-
"configuration": {
|
|
10111
|
-
"type": "object",
|
|
10112
|
-
"description": "The previous configuration of the site installation."
|
|
10113
|
-
}
|
|
10114
|
-
}
|
|
10115
|
-
}
|
|
10116
|
-
},
|
|
10117
|
-
"required": [
|
|
10118
|
-
"type",
|
|
10119
|
-
"previous"
|
|
10120
|
-
]
|
|
10121
|
-
}
|
|
10122
|
-
]
|
|
10138
|
+
"$ref": "#/components/schemas/SiteInstallationDeletedEvent"
|
|
10139
|
+
},
|
|
10140
|
+
{
|
|
10141
|
+
"$ref": "#/components/schemas/SpaceViewEvent"
|
|
10123
10142
|
},
|
|
10124
10143
|
{
|
|
10125
10144
|
"$ref": "#/components/schemas/SiteViewEvent"
|
|
@@ -10348,10 +10367,82 @@
|
|
|
10348
10367
|
}
|
|
10349
10368
|
]
|
|
10350
10369
|
},
|
|
10351
|
-
"
|
|
10352
|
-
"
|
|
10370
|
+
"SiteInstallationSetupEvent": {
|
|
10371
|
+
"allOf": [
|
|
10372
|
+
{
|
|
10373
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10374
|
+
},
|
|
10375
|
+
{
|
|
10376
|
+
"type": "object",
|
|
10377
|
+
"description": "Event received when integration has been installed or updated on a site.",
|
|
10378
|
+
"properties": {
|
|
10379
|
+
"type": {
|
|
10380
|
+
"type": "string",
|
|
10381
|
+
"enum": [
|
|
10382
|
+
"site_installation_setup"
|
|
10383
|
+
]
|
|
10384
|
+
},
|
|
10385
|
+
"status": {
|
|
10386
|
+
"$ref": "#/components/schemas/IntegrationInstallationStatus"
|
|
10387
|
+
},
|
|
10388
|
+
"previous": {
|
|
10389
|
+
"type": "object",
|
|
10390
|
+
"description": "The state of the site installation before it was updated.",
|
|
10391
|
+
"properties": {
|
|
10392
|
+
"status": {
|
|
10393
|
+
"$ref": "#/components/schemas/IntegrationInstallationStatus"
|
|
10394
|
+
},
|
|
10395
|
+
"configuration": {
|
|
10396
|
+
"type": "object",
|
|
10397
|
+
"description": "The previous configuration of the site installation."
|
|
10398
|
+
}
|
|
10399
|
+
},
|
|
10400
|
+
"required": [
|
|
10401
|
+
"status"
|
|
10402
|
+
]
|
|
10403
|
+
}
|
|
10404
|
+
},
|
|
10405
|
+
"required": [
|
|
10406
|
+
"type",
|
|
10407
|
+
"status"
|
|
10408
|
+
]
|
|
10409
|
+
}
|
|
10410
|
+
]
|
|
10353
10411
|
},
|
|
10354
|
-
"
|
|
10412
|
+
"SiteInstallationDeletedEvent": {
|
|
10413
|
+
"allOf": [
|
|
10414
|
+
{
|
|
10415
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10416
|
+
},
|
|
10417
|
+
{
|
|
10418
|
+
"type": "object",
|
|
10419
|
+
"description": "Event received when integration has been uninstalled from a site.",
|
|
10420
|
+
"properties": {
|
|
10421
|
+
"type": {
|
|
10422
|
+
"type": "string",
|
|
10423
|
+
"enum": [
|
|
10424
|
+
"site_installation_deleted"
|
|
10425
|
+
]
|
|
10426
|
+
},
|
|
10427
|
+
"previous": {
|
|
10428
|
+
"type": "object",
|
|
10429
|
+
"description": "The state of the site installation before it was deleted.",
|
|
10430
|
+
"properties": {
|
|
10431
|
+
"configuration": {
|
|
10432
|
+
"type": "object",
|
|
10433
|
+
"description": "The previous configuration of the site installation."
|
|
10434
|
+
}
|
|
10435
|
+
}
|
|
10436
|
+
}
|
|
10437
|
+
},
|
|
10438
|
+
"required": [
|
|
10439
|
+
"type",
|
|
10440
|
+
"previous"
|
|
10441
|
+
]
|
|
10442
|
+
}
|
|
10443
|
+
]
|
|
10444
|
+
},
|
|
10445
|
+
"SpaceViewEvent": {
|
|
10355
10446
|
"allOf": [
|
|
10356
10447
|
{
|
|
10357
10448
|
"$ref": "#/components/schemas/SpaceEvent"
|
|
@@ -10423,6 +10514,83 @@
|
|
|
10423
10514
|
}
|
|
10424
10515
|
]
|
|
10425
10516
|
},
|
|
10517
|
+
"SiteViewEvent": {
|
|
10518
|
+
"allOf": [
|
|
10519
|
+
{
|
|
10520
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10521
|
+
},
|
|
10522
|
+
{
|
|
10523
|
+
"type": "object",
|
|
10524
|
+
"description": "Event received when a page has been visited on a site.",
|
|
10525
|
+
"properties": {
|
|
10526
|
+
"type": {
|
|
10527
|
+
"type": "string",
|
|
10528
|
+
"enum": [
|
|
10529
|
+
"site_view"
|
|
10530
|
+
]
|
|
10531
|
+
},
|
|
10532
|
+
"spaceId": {
|
|
10533
|
+
"type": "string",
|
|
10534
|
+
"description": "Unique identifier of the visited space in the site."
|
|
10535
|
+
},
|
|
10536
|
+
"pageId": {
|
|
10537
|
+
"type": "string",
|
|
10538
|
+
"description": "Unique identifier of the visited page."
|
|
10539
|
+
},
|
|
10540
|
+
"visitor": {
|
|
10541
|
+
"type": "object",
|
|
10542
|
+
"description": "Analytics info on the GitBook's content visitor.",
|
|
10543
|
+
"properties": {
|
|
10544
|
+
"anonymousId": {
|
|
10545
|
+
"type": "string",
|
|
10546
|
+
"description": "GitBook's unique identifier of the visitor."
|
|
10547
|
+
},
|
|
10548
|
+
"cookies": {
|
|
10549
|
+
"type": "object",
|
|
10550
|
+
"description": "The visitors cookies.",
|
|
10551
|
+
"additionalProperties": {
|
|
10552
|
+
"type": "string"
|
|
10553
|
+
}
|
|
10554
|
+
},
|
|
10555
|
+
"userAgent": {
|
|
10556
|
+
"type": "string",
|
|
10557
|
+
"description": "User-agent of the visitor."
|
|
10558
|
+
},
|
|
10559
|
+
"ip": {
|
|
10560
|
+
"type": "string",
|
|
10561
|
+
"description": "IP address of the visitor."
|
|
10562
|
+
},
|
|
10563
|
+
"language": {
|
|
10564
|
+
"type": "string",
|
|
10565
|
+
"description": "Language of the visitor."
|
|
10566
|
+
}
|
|
10567
|
+
},
|
|
10568
|
+
"required": [
|
|
10569
|
+
"anonymousId",
|
|
10570
|
+
"cookies",
|
|
10571
|
+
"userAgent",
|
|
10572
|
+
"ip"
|
|
10573
|
+
]
|
|
10574
|
+
},
|
|
10575
|
+
"url": {
|
|
10576
|
+
"type": "string",
|
|
10577
|
+
"description": "The GitBook content's URL visited (including URL params)."
|
|
10578
|
+
},
|
|
10579
|
+
"referrer": {
|
|
10580
|
+
"type": "string",
|
|
10581
|
+
"description": "The URL of referrer that linked to the page."
|
|
10582
|
+
}
|
|
10583
|
+
},
|
|
10584
|
+
"required": [
|
|
10585
|
+
"type",
|
|
10586
|
+
"visitor",
|
|
10587
|
+
"url",
|
|
10588
|
+
"referrer",
|
|
10589
|
+
"spaceId"
|
|
10590
|
+
]
|
|
10591
|
+
}
|
|
10592
|
+
]
|
|
10593
|
+
},
|
|
10426
10594
|
"SpaceContentUpdatedEvent": {
|
|
10427
10595
|
"allOf": [
|
|
10428
10596
|
{
|
|
@@ -10782,15 +10950,14 @@
|
|
|
10782
10950
|
"free_2024",
|
|
10783
10951
|
"plus_2024",
|
|
10784
10952
|
"pro_2024",
|
|
10785
|
-
"
|
|
10953
|
+
"enterprise",
|
|
10786
10954
|
"free",
|
|
10787
10955
|
"plus",
|
|
10788
10956
|
"pro",
|
|
10789
10957
|
"team",
|
|
10790
10958
|
"business",
|
|
10791
10959
|
"legacy",
|
|
10792
|
-
"startup"
|
|
10793
|
-
"enterprise"
|
|
10960
|
+
"startup"
|
|
10794
10961
|
]
|
|
10795
10962
|
},
|
|
10796
10963
|
"BillingUpgrade": {
|
|
@@ -11461,6 +11628,9 @@
|
|
|
11461
11628
|
{
|
|
11462
11629
|
"$ref": "#/components/schemas/ContentKitContextConfigurationSpace"
|
|
11463
11630
|
},
|
|
11631
|
+
{
|
|
11632
|
+
"$ref": "#/components/schemas/ContentKitContextConfigurationSite"
|
|
11633
|
+
},
|
|
11464
11634
|
{
|
|
11465
11635
|
"$ref": "#/components/schemas/ContentKitContextDocument"
|
|
11466
11636
|
}
|
|
@@ -11520,6 +11690,33 @@
|
|
|
11520
11690
|
}
|
|
11521
11691
|
]
|
|
11522
11692
|
},
|
|
11693
|
+
"ContentKitContextConfigurationSite": {
|
|
11694
|
+
"allOf": [
|
|
11695
|
+
{
|
|
11696
|
+
"$ref": "#/components/schemas/ContentKitContextBase"
|
|
11697
|
+
},
|
|
11698
|
+
{
|
|
11699
|
+
"type": "object",
|
|
11700
|
+
"description": "Context while rendering in a site-installation's configuration.",
|
|
11701
|
+
"properties": {
|
|
11702
|
+
"type": {
|
|
11703
|
+
"type": "string",
|
|
11704
|
+
"enum": [
|
|
11705
|
+
"configuration_site"
|
|
11706
|
+
]
|
|
11707
|
+
},
|
|
11708
|
+
"siteId": {
|
|
11709
|
+
"type": "string",
|
|
11710
|
+
"description": "ID of the site the site-installation configuration is in."
|
|
11711
|
+
}
|
|
11712
|
+
},
|
|
11713
|
+
"required": [
|
|
11714
|
+
"type",
|
|
11715
|
+
"siteId"
|
|
11716
|
+
]
|
|
11717
|
+
}
|
|
11718
|
+
]
|
|
11719
|
+
},
|
|
11523
11720
|
"ContentKitContextDocument": {
|
|
11524
11721
|
"allOf": [
|
|
11525
11722
|
{
|
|
@@ -13118,6 +13315,9 @@
|
|
|
13118
13315
|
{
|
|
13119
13316
|
"$ref": "#/components/schemas/SiteCustomizationChannel"
|
|
13120
13317
|
},
|
|
13318
|
+
{
|
|
13319
|
+
"$ref": "#/components/schemas/SiteIntegrationsChannel"
|
|
13320
|
+
},
|
|
13121
13321
|
{
|
|
13122
13322
|
"$ref": "#/components/schemas/SiteSpaceChannel"
|
|
13123
13323
|
},
|
|
@@ -13950,6 +14150,24 @@
|
|
|
13950
14150
|
"site"
|
|
13951
14151
|
]
|
|
13952
14152
|
},
|
|
14153
|
+
"SiteIntegrationsChannel": {
|
|
14154
|
+
"type": "object",
|
|
14155
|
+
"properties": {
|
|
14156
|
+
"channel": {
|
|
14157
|
+
"type": "string",
|
|
14158
|
+
"enum": [
|
|
14159
|
+
"site-integrations"
|
|
14160
|
+
]
|
|
14161
|
+
},
|
|
14162
|
+
"site": {
|
|
14163
|
+
"type": "string"
|
|
14164
|
+
}
|
|
14165
|
+
},
|
|
14166
|
+
"required": [
|
|
14167
|
+
"channel",
|
|
14168
|
+
"site"
|
|
14169
|
+
]
|
|
14170
|
+
},
|
|
13953
14171
|
"SitePublishingAuthChannel": {
|
|
13954
14172
|
"type": "object",
|
|
13955
14173
|
"properties": {
|
|
@@ -14744,12 +14962,24 @@
|
|
|
14744
14962
|
},
|
|
14745
14963
|
"active": {
|
|
14746
14964
|
"type": "boolean"
|
|
14965
|
+
},
|
|
14966
|
+
"urls": {
|
|
14967
|
+
"type": "object",
|
|
14968
|
+
"description": "URLs associated with the object",
|
|
14969
|
+
"properties": {
|
|
14970
|
+
"published": {
|
|
14971
|
+
"type": "string",
|
|
14972
|
+
"description": "URL of the published version of the share-link.",
|
|
14973
|
+
"format": "uri"
|
|
14974
|
+
}
|
|
14975
|
+
}
|
|
14747
14976
|
}
|
|
14748
14977
|
},
|
|
14749
14978
|
"required": [
|
|
14750
14979
|
"object",
|
|
14751
14980
|
"id",
|
|
14752
|
-
"createdAt"
|
|
14981
|
+
"createdAt",
|
|
14982
|
+
"urls"
|
|
14753
14983
|
]
|
|
14754
14984
|
},
|
|
14755
14985
|
"ShareLinkName": {
|
|
@@ -15650,7 +15880,8 @@
|
|
|
15650
15880
|
"type": "string",
|
|
15651
15881
|
"enum": [
|
|
15652
15882
|
"basic",
|
|
15653
|
-
"premium"
|
|
15883
|
+
"premium",
|
|
15884
|
+
"premium_va"
|
|
15654
15885
|
]
|
|
15655
15886
|
},
|
|
15656
15887
|
"SiteSubscription": {
|
|
@@ -16625,6 +16856,49 @@
|
|
|
16625
16856
|
}
|
|
16626
16857
|
}
|
|
16627
16858
|
},
|
|
16859
|
+
"/spaces/{spaceId}/embed": {
|
|
16860
|
+
"get": {
|
|
16861
|
+
"operationId": "getEmbedByUrlInSpace",
|
|
16862
|
+
"summary": "Resolve a URL to an embed in a given space",
|
|
16863
|
+
"tags": [
|
|
16864
|
+
"spaces"
|
|
16865
|
+
],
|
|
16866
|
+
"security": [
|
|
16867
|
+
{
|
|
16868
|
+
"user": []
|
|
16869
|
+
}
|
|
16870
|
+
],
|
|
16871
|
+
"parameters": [
|
|
16872
|
+
{
|
|
16873
|
+
"$ref": "#/components/parameters/spaceId"
|
|
16874
|
+
},
|
|
16875
|
+
{
|
|
16876
|
+
"name": "url",
|
|
16877
|
+
"in": "query",
|
|
16878
|
+
"required": true,
|
|
16879
|
+
"description": "URL to resolve",
|
|
16880
|
+
"schema": {
|
|
16881
|
+
"type": "string"
|
|
16882
|
+
}
|
|
16883
|
+
}
|
|
16884
|
+
],
|
|
16885
|
+
"responses": {
|
|
16886
|
+
"200": {
|
|
16887
|
+
"description": "OK",
|
|
16888
|
+
"content": {
|
|
16889
|
+
"application/json": {
|
|
16890
|
+
"schema": {
|
|
16891
|
+
"$ref": "#/components/schemas/Embed"
|
|
16892
|
+
}
|
|
16893
|
+
}
|
|
16894
|
+
}
|
|
16895
|
+
},
|
|
16896
|
+
"default": {
|
|
16897
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
16898
|
+
}
|
|
16899
|
+
}
|
|
16900
|
+
}
|
|
16901
|
+
},
|
|
16628
16902
|
"/spaces/{spaceId}/search": {
|
|
16629
16903
|
"get": {
|
|
16630
16904
|
"operationId": "searchSpaceContent",
|
|
@@ -27934,7 +28208,7 @@
|
|
|
27934
28208
|
},
|
|
27935
28209
|
"/orgs/{organizationId}/sites/{siteId}/publishing/auth": {
|
|
27936
28210
|
"get": {
|
|
27937
|
-
"operationId": "
|
|
28211
|
+
"operationId": "getSitePublishingAuthById",
|
|
27938
28212
|
"summary": "Get the publishing authentication settings for a site.",
|
|
27939
28213
|
"tags": [
|
|
27940
28214
|
"sites"
|
|
@@ -27972,7 +28246,7 @@
|
|
|
27972
28246
|
}
|
|
27973
28247
|
},
|
|
27974
28248
|
"patch": {
|
|
27975
|
-
"operationId": "
|
|
28249
|
+
"operationId": "updateSitePublishingAuthById",
|
|
27976
28250
|
"summary": "Update the publishing authentication settings for a site.",
|
|
27977
28251
|
"tags": [
|
|
27978
28252
|
"sites"
|
|
@@ -28020,6 +28294,62 @@
|
|
|
28020
28294
|
}
|
|
28021
28295
|
}
|
|
28022
28296
|
},
|
|
28297
|
+
"/orgs/{organizationId}/sites/{siteId}/publishing/preview": {
|
|
28298
|
+
"get": {
|
|
28299
|
+
"operationId": "getSitePublishingPreviewById",
|
|
28300
|
+
"summary": "Get a URL to preview the published content of a site. The URL will be valid for 1 hour.",
|
|
28301
|
+
"tags": [
|
|
28302
|
+
"sites"
|
|
28303
|
+
],
|
|
28304
|
+
"security": [
|
|
28305
|
+
{
|
|
28306
|
+
"user": []
|
|
28307
|
+
}
|
|
28308
|
+
],
|
|
28309
|
+
"parameters": [
|
|
28310
|
+
{
|
|
28311
|
+
"$ref": "#/components/parameters/organizationId"
|
|
28312
|
+
},
|
|
28313
|
+
{
|
|
28314
|
+
"$ref": "#/components/parameters/siteId"
|
|
28315
|
+
},
|
|
28316
|
+
{
|
|
28317
|
+
"name": "siteSpace",
|
|
28318
|
+
"in": "query",
|
|
28319
|
+
"description": "ID of the site-space to preview. If not provided, the default site-space will be used.",
|
|
28320
|
+
"schema": {
|
|
28321
|
+
"type": "string"
|
|
28322
|
+
}
|
|
28323
|
+
}
|
|
28324
|
+
],
|
|
28325
|
+
"responses": {
|
|
28326
|
+
"200": {
|
|
28327
|
+
"description": "OK",
|
|
28328
|
+
"content": {
|
|
28329
|
+
"application/json": {
|
|
28330
|
+
"schema": {
|
|
28331
|
+
"type": "object",
|
|
28332
|
+
"properties": {
|
|
28333
|
+
"url": {
|
|
28334
|
+
"$ref": "#/components/schemas/URL"
|
|
28335
|
+
}
|
|
28336
|
+
},
|
|
28337
|
+
"required": [
|
|
28338
|
+
"url"
|
|
28339
|
+
]
|
|
28340
|
+
}
|
|
28341
|
+
}
|
|
28342
|
+
}
|
|
28343
|
+
},
|
|
28344
|
+
"400": {
|
|
28345
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
28346
|
+
},
|
|
28347
|
+
"default": {
|
|
28348
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
28349
|
+
}
|
|
28350
|
+
}
|
|
28351
|
+
}
|
|
28352
|
+
},
|
|
28023
28353
|
"/orgs/{organizationId}/sites/{siteId}/customization": {
|
|
28024
28354
|
"get": {
|
|
28025
28355
|
"operationId": "getSiteCustomizationById",
|
|
@@ -28113,6 +28443,7 @@
|
|
|
28113
28443
|
"operationId": "listSiteIntegrationScripts",
|
|
28114
28444
|
"summary": "List the scripts to embed in published content for a site.",
|
|
28115
28445
|
"tags": [
|
|
28446
|
+
"integrations",
|
|
28116
28447
|
"sites"
|
|
28117
28448
|
],
|
|
28118
28449
|
"security": [
|
|
@@ -28151,6 +28482,65 @@
|
|
|
28151
28482
|
}
|
|
28152
28483
|
}
|
|
28153
28484
|
},
|
|
28485
|
+
"/orgs/{organizationId}/sites/{siteId}/integrations": {
|
|
28486
|
+
"get": {
|
|
28487
|
+
"operationId": "listSiteIntegrations",
|
|
28488
|
+
"summary": "List integrations enabled in a site.",
|
|
28489
|
+
"tags": [
|
|
28490
|
+
"integrations",
|
|
28491
|
+
"sites"
|
|
28492
|
+
],
|
|
28493
|
+
"security": [
|
|
28494
|
+
{
|
|
28495
|
+
"user": []
|
|
28496
|
+
}
|
|
28497
|
+
],
|
|
28498
|
+
"parameters": [
|
|
28499
|
+
{
|
|
28500
|
+
"$ref": "#/components/parameters/organizationId"
|
|
28501
|
+
},
|
|
28502
|
+
{
|
|
28503
|
+
"$ref": "#/components/parameters/siteId"
|
|
28504
|
+
},
|
|
28505
|
+
{
|
|
28506
|
+
"$ref": "#/components/schemas/IntegrationSearchQuery"
|
|
28507
|
+
}
|
|
28508
|
+
],
|
|
28509
|
+
"responses": {
|
|
28510
|
+
"200": {
|
|
28511
|
+
"description": "Listing of integrations enabled in the site.",
|
|
28512
|
+
"content": {
|
|
28513
|
+
"application/json": {
|
|
28514
|
+
"schema": {
|
|
28515
|
+
"allOf": [
|
|
28516
|
+
{
|
|
28517
|
+
"$ref": "#/components/schemas/List"
|
|
28518
|
+
},
|
|
28519
|
+
{
|
|
28520
|
+
"type": "object",
|
|
28521
|
+
"required": [
|
|
28522
|
+
"items"
|
|
28523
|
+
],
|
|
28524
|
+
"properties": {
|
|
28525
|
+
"items": {
|
|
28526
|
+
"type": "array",
|
|
28527
|
+
"items": {
|
|
28528
|
+
"$ref": "#/components/schemas/Integration"
|
|
28529
|
+
}
|
|
28530
|
+
}
|
|
28531
|
+
}
|
|
28532
|
+
}
|
|
28533
|
+
]
|
|
28534
|
+
}
|
|
28535
|
+
}
|
|
28536
|
+
}
|
|
28537
|
+
},
|
|
28538
|
+
"default": {
|
|
28539
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
28540
|
+
}
|
|
28541
|
+
}
|
|
28542
|
+
}
|
|
28543
|
+
},
|
|
28154
28544
|
"/orgs/{organizationId}/sites/{siteId}/spaces": {
|
|
28155
28545
|
"post": {
|
|
28156
28546
|
"operationId": "addSpaceToSite",
|
|
@@ -28610,6 +29000,42 @@
|
|
|
28610
29000
|
}
|
|
28611
29001
|
}
|
|
28612
29002
|
},
|
|
29003
|
+
"/orgs/{organizationId}/sites/{siteId}/insights/track_view": {
|
|
29004
|
+
"post": {
|
|
29005
|
+
"operationId": "trackViewInSiteById",
|
|
29006
|
+
"description": "Track a page view in a site.",
|
|
29007
|
+
"tags": [
|
|
29008
|
+
"analytics",
|
|
29009
|
+
"sites"
|
|
29010
|
+
],
|
|
29011
|
+
"parameters": [
|
|
29012
|
+
{
|
|
29013
|
+
"$ref": "#/components/parameters/organizationId"
|
|
29014
|
+
},
|
|
29015
|
+
{
|
|
29016
|
+
"$ref": "#/components/parameters/siteId"
|
|
29017
|
+
}
|
|
29018
|
+
],
|
|
29019
|
+
"responses": {
|
|
29020
|
+
"204": {
|
|
29021
|
+
"description": "Page view has been tracked."
|
|
29022
|
+
},
|
|
29023
|
+
"default": {
|
|
29024
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
29025
|
+
}
|
|
29026
|
+
},
|
|
29027
|
+
"requestBody": {
|
|
29028
|
+
"required": true,
|
|
29029
|
+
"content": {
|
|
29030
|
+
"application/json": {
|
|
29031
|
+
"schema": {
|
|
29032
|
+
"$ref": "#/components/schemas/RequestSiteTrackPageView"
|
|
29033
|
+
}
|
|
29034
|
+
}
|
|
29035
|
+
}
|
|
29036
|
+
}
|
|
29037
|
+
}
|
|
29038
|
+
},
|
|
28613
29039
|
"/custom-hostnames/{hostname}": {
|
|
28614
29040
|
"get": {
|
|
28615
29041
|
"operationId": "getCustomHostname",
|