@gitbook/api 0.37.0 → 0.39.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 +203 -8
- package/dist/index.cjs +37 -1
- package/dist/index.js +36 -1
- package/package.json +1 -1
- package/spec/openapi.json +783 -53
- package/spec/openapi.yaml +441 -12
package/spec/openapi.yaml
CHANGED
|
@@ -3084,12 +3084,9 @@ components:
|
|
|
3084
3084
|
- synced-block
|
|
3085
3085
|
syncedBlock:
|
|
3086
3086
|
type: string
|
|
3087
|
-
organization:
|
|
3088
|
-
type: string
|
|
3089
3087
|
required:
|
|
3090
3088
|
- kind
|
|
3091
3089
|
- syncedBlock
|
|
3092
|
-
- organization
|
|
3093
3090
|
ContentLocation:
|
|
3094
3091
|
description: An absolute reference to content in GitBook.
|
|
3095
3092
|
oneOf:
|
|
@@ -3126,6 +3123,8 @@ components:
|
|
|
3126
3123
|
$ref: "#/components/schemas/Space"
|
|
3127
3124
|
changeRequest:
|
|
3128
3125
|
$ref: "#/components/schemas/ChangeRequest"
|
|
3126
|
+
revision:
|
|
3127
|
+
$ref: "#/components/schemas/Revision"
|
|
3129
3128
|
file:
|
|
3130
3129
|
$ref: "#/components/schemas/RevisionFile"
|
|
3131
3130
|
required:
|
|
@@ -3148,7 +3147,13 @@ components:
|
|
|
3148
3147
|
$ref: "#/components/schemas/Space"
|
|
3149
3148
|
changeRequest:
|
|
3150
3149
|
$ref: "#/components/schemas/ChangeRequest"
|
|
3150
|
+
revision:
|
|
3151
|
+
$ref: "#/components/schemas/Revision"
|
|
3151
3152
|
anchor:
|
|
3153
|
+
description: The anchor within the page.
|
|
3154
|
+
type: string
|
|
3155
|
+
node:
|
|
3156
|
+
description: The node id within the page.
|
|
3152
3157
|
type: string
|
|
3153
3158
|
required:
|
|
3154
3159
|
- kind
|
|
@@ -4872,10 +4877,6 @@ components:
|
|
|
4872
4877
|
$ref: "#/components/schemas/URL"
|
|
4873
4878
|
required:
|
|
4874
4879
|
- location
|
|
4875
|
-
files:
|
|
4876
|
-
type: array
|
|
4877
|
-
items:
|
|
4878
|
-
$ref: "#/components/schemas/RevisionFile"
|
|
4879
4880
|
required:
|
|
4880
4881
|
- id
|
|
4881
4882
|
- organization
|
|
@@ -5840,6 +5841,7 @@ components:
|
|
|
5840
5841
|
- space:script:cookies
|
|
5841
5842
|
- space:git:sync
|
|
5842
5843
|
- space:visitor:auth
|
|
5844
|
+
- site:script:inject
|
|
5843
5845
|
- site:visitor:auth
|
|
5844
5846
|
IntegrationSearchQuery:
|
|
5845
5847
|
name: search
|
|
@@ -5974,6 +5976,12 @@ components:
|
|
|
5974
5976
|
enum:
|
|
5975
5977
|
- all
|
|
5976
5978
|
- selected
|
|
5979
|
+
IntegrationInstallationSiteSelection:
|
|
5980
|
+
type: string
|
|
5981
|
+
description: Describe whether all sites have been selected or there's a selection involved
|
|
5982
|
+
enum:
|
|
5983
|
+
- all
|
|
5984
|
+
- selected
|
|
5977
5985
|
IntegrationCategory:
|
|
5978
5986
|
type: string
|
|
5979
5987
|
enum:
|
|
@@ -5991,6 +5999,8 @@ components:
|
|
|
5991
5999
|
$ref: "#/components/schemas/IntegrationConfiguration"
|
|
5992
6000
|
space:
|
|
5993
6001
|
$ref: "#/components/schemas/IntegrationConfiguration"
|
|
6002
|
+
site:
|
|
6003
|
+
$ref: "#/components/schemas/IntegrationConfiguration"
|
|
5994
6004
|
IntegrationConfiguration:
|
|
5995
6005
|
oneOf:
|
|
5996
6006
|
- $ref: "#/components/schemas/IntegrationConfigurationSchema"
|
|
@@ -6246,6 +6256,8 @@ components:
|
|
|
6246
6256
|
$ref: "#/components/schemas/IntegrationInstallation"
|
|
6247
6257
|
spaceInstallation:
|
|
6248
6258
|
$ref: "#/components/schemas/IntegrationSpaceInstallation"
|
|
6259
|
+
siteInstallation:
|
|
6260
|
+
$ref: "#/components/schemas/IntegrationSiteInstallation"
|
|
6249
6261
|
secrets:
|
|
6250
6262
|
$ref: "#/components/schemas/IntegrationSecrets"
|
|
6251
6263
|
signingSecret:
|
|
@@ -6264,6 +6276,9 @@ components:
|
|
|
6264
6276
|
spaceInstallation:
|
|
6265
6277
|
type: string
|
|
6266
6278
|
description: Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation.
|
|
6279
|
+
siteInstallation:
|
|
6280
|
+
type: string
|
|
6281
|
+
description: Secret that can be used to verify the authenticity of incoming HTTP requests to the site installation.
|
|
6267
6282
|
required:
|
|
6268
6283
|
- integration
|
|
6269
6284
|
apiEndpoint:
|
|
@@ -6653,7 +6668,51 @@ components:
|
|
|
6653
6668
|
- $ref: "#/components/schemas/InstallationSetupEvent"
|
|
6654
6669
|
- $ref: "#/components/schemas/SpaceInstallationSetupEvent"
|
|
6655
6670
|
- $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
|
|
6656
|
-
-
|
|
6671
|
+
- allOf:
|
|
6672
|
+
- $ref: "#/components/schemas/SiteEvent"
|
|
6673
|
+
- type: object
|
|
6674
|
+
description: Event received when integration has been installed or updated on a site.
|
|
6675
|
+
properties:
|
|
6676
|
+
type:
|
|
6677
|
+
type: string
|
|
6678
|
+
enum:
|
|
6679
|
+
- site_installation_setup
|
|
6680
|
+
status:
|
|
6681
|
+
$ref: "#/components/schemas/IntegrationInstallationStatus"
|
|
6682
|
+
previous:
|
|
6683
|
+
type: object
|
|
6684
|
+
description: The state of the site installation before it was updated.
|
|
6685
|
+
properties:
|
|
6686
|
+
status:
|
|
6687
|
+
$ref: "#/components/schemas/IntegrationInstallationStatus"
|
|
6688
|
+
configuration:
|
|
6689
|
+
type: object
|
|
6690
|
+
description: The previous configuration of the site installation.
|
|
6691
|
+
required:
|
|
6692
|
+
- status
|
|
6693
|
+
required:
|
|
6694
|
+
- type
|
|
6695
|
+
- status
|
|
6696
|
+
- allOf:
|
|
6697
|
+
- $ref: "#/components/schemas/SiteEvent"
|
|
6698
|
+
- type: object
|
|
6699
|
+
description: Event received when integration has been uninstalled from a site.
|
|
6700
|
+
properties:
|
|
6701
|
+
type:
|
|
6702
|
+
type: string
|
|
6703
|
+
enum:
|
|
6704
|
+
- site_installation_deleted
|
|
6705
|
+
previous:
|
|
6706
|
+
type: object
|
|
6707
|
+
description: The state of the site installation before it was deleted.
|
|
6708
|
+
properties:
|
|
6709
|
+
configuration:
|
|
6710
|
+
type: object
|
|
6711
|
+
description: The previous configuration of the site installation.
|
|
6712
|
+
required:
|
|
6713
|
+
- type
|
|
6714
|
+
- previous
|
|
6715
|
+
- $ref: "#/components/schemas/SiteViewEvent"
|
|
6657
6716
|
- $ref: "#/components/schemas/SpaceContentUpdatedEvent"
|
|
6658
6717
|
- $ref: "#/components/schemas/SpaceGitSyncCompletedEvent"
|
|
6659
6718
|
- $ref: "#/components/schemas/SpaceGitSyncStartedEvent"
|
|
@@ -6699,6 +6758,17 @@ components:
|
|
|
6699
6758
|
description: ID of the space
|
|
6700
6759
|
required:
|
|
6701
6760
|
- spaceId
|
|
6761
|
+
SiteEvent:
|
|
6762
|
+
allOf:
|
|
6763
|
+
- $ref: "#/components/schemas/InstallationEvent"
|
|
6764
|
+
- type: object
|
|
6765
|
+
description: Common properties for all events related to a specific site.
|
|
6766
|
+
properties:
|
|
6767
|
+
siteId:
|
|
6768
|
+
type: string
|
|
6769
|
+
description: ID of the site
|
|
6770
|
+
required:
|
|
6771
|
+
- siteId
|
|
6702
6772
|
InstallationSetupEvent:
|
|
6703
6773
|
allOf:
|
|
6704
6774
|
- $ref: "#/components/schemas/InstallationEvent"
|
|
@@ -6772,6 +6842,8 @@ components:
|
|
|
6772
6842
|
- type
|
|
6773
6843
|
- previous
|
|
6774
6844
|
SpaceViewEvent:
|
|
6845
|
+
$ref: "#/components/schemas/SiteViewEvent"
|
|
6846
|
+
SiteViewEvent:
|
|
6775
6847
|
allOf:
|
|
6776
6848
|
- $ref: "#/components/schemas/SpaceEvent"
|
|
6777
6849
|
- type: object
|
|
@@ -6930,6 +7002,9 @@ components:
|
|
|
6930
7002
|
spaceId:
|
|
6931
7003
|
type: string
|
|
6932
7004
|
description: The space ID, if requests are specific to a single space
|
|
7005
|
+
siteId:
|
|
7006
|
+
type: string
|
|
7007
|
+
description: The site ID, if requests are specific to a single site
|
|
6933
7008
|
installationId:
|
|
6934
7009
|
type: string
|
|
6935
7010
|
description: The installation ID, if requests are specific to a single installation
|
|
@@ -6952,7 +7027,9 @@ components:
|
|
|
6952
7027
|
- request
|
|
6953
7028
|
FetchPublishedScriptEvent:
|
|
6954
7029
|
allOf:
|
|
6955
|
-
-
|
|
7030
|
+
- oneOf:
|
|
7031
|
+
- $ref: "#/components/schemas/SpaceEvent"
|
|
7032
|
+
- $ref: "#/components/schemas/SiteEvent"
|
|
6956
7033
|
- type: object
|
|
6957
7034
|
description: Common properties for all events related to fetching a published script from an installation
|
|
6958
7035
|
properties:
|
|
@@ -6964,7 +7041,9 @@ components:
|
|
|
6964
7041
|
- type
|
|
6965
7042
|
FetchVisitorAuthenticationEvent:
|
|
6966
7043
|
allOf:
|
|
6967
|
-
-
|
|
7044
|
+
- oneOf:
|
|
7045
|
+
- $ref: "#/components/schemas/SpaceEvent"
|
|
7046
|
+
- $ref: "#/components/schemas/SiteEvent"
|
|
6968
7047
|
- type: object
|
|
6969
7048
|
description: Common properties for all events related to visitor authentication from an installation
|
|
6970
7049
|
properties:
|
|
@@ -6980,6 +7059,7 @@ components:
|
|
|
6980
7059
|
allOf:
|
|
6981
7060
|
- oneOf:
|
|
6982
7061
|
- $ref: "#/components/schemas/SpaceEvent"
|
|
7062
|
+
- $ref: "#/components/schemas/SiteEvent"
|
|
6983
7063
|
- $ref: "#/components/schemas/InstallationEvent"
|
|
6984
7064
|
- type: object
|
|
6985
7065
|
description: Event generated when rendering a UI
|
|
@@ -7031,6 +7111,10 @@ components:
|
|
|
7031
7111
|
type: string
|
|
7032
7112
|
description: Name of the product
|
|
7033
7113
|
enum:
|
|
7114
|
+
- free_2024
|
|
7115
|
+
- plus_2024
|
|
7116
|
+
- pro_2024
|
|
7117
|
+
- enterprise_2024
|
|
7034
7118
|
- free
|
|
7035
7119
|
- plus
|
|
7036
7120
|
- pro
|
|
@@ -9706,7 +9790,6 @@ components:
|
|
|
9706
9790
|
- object
|
|
9707
9791
|
- id
|
|
9708
9792
|
- title
|
|
9709
|
-
- basename
|
|
9710
9793
|
- visibility
|
|
9711
9794
|
- createdAt
|
|
9712
9795
|
- siteSpaces
|
|
@@ -9877,6 +9960,230 @@ components:
|
|
|
9877
9960
|
- git
|
|
9878
9961
|
- privacyPolicy
|
|
9879
9962
|
- socialPreview
|
|
9963
|
+
SiteSpaceCustomizationOverrides:
|
|
9964
|
+
type: object
|
|
9965
|
+
properties:
|
|
9966
|
+
styling:
|
|
9967
|
+
type: object
|
|
9968
|
+
properties:
|
|
9969
|
+
primaryColor:
|
|
9970
|
+
description: The primary color used for links and UI text. Set to null to reset the override.
|
|
9971
|
+
oneOf:
|
|
9972
|
+
- $ref: "#/components/schemas/CustomizationThemedColor"
|
|
9973
|
+
- type: string
|
|
9974
|
+
nullable: true
|
|
9975
|
+
enum:
|
|
9976
|
+
- null
|
|
9977
|
+
corners:
|
|
9978
|
+
description: The style of the corners to use. Set to null to reset the override.
|
|
9979
|
+
oneOf:
|
|
9980
|
+
- $ref: "#/components/schemas/CustomizationCorners"
|
|
9981
|
+
- type: string
|
|
9982
|
+
nullable: true
|
|
9983
|
+
enum:
|
|
9984
|
+
- null
|
|
9985
|
+
font:
|
|
9986
|
+
description: The font family to use for the content. Set to null to reset the override.
|
|
9987
|
+
oneOf:
|
|
9988
|
+
- $ref: "#/components/schemas/CustomizationFont"
|
|
9989
|
+
- type: string
|
|
9990
|
+
nullable: true
|
|
9991
|
+
enum:
|
|
9992
|
+
- null
|
|
9993
|
+
background:
|
|
9994
|
+
description: The style of background to use. Set to null to reset the override.
|
|
9995
|
+
oneOf:
|
|
9996
|
+
- $ref: "#/components/schemas/CustomizationBackground"
|
|
9997
|
+
- type: string
|
|
9998
|
+
nullable: true
|
|
9999
|
+
enum:
|
|
10000
|
+
- null
|
|
10001
|
+
internationalization:
|
|
10002
|
+
type: object
|
|
10003
|
+
properties:
|
|
10004
|
+
locale:
|
|
10005
|
+
description: The locale to use for the non-custom elements of the UI. Set to null to reset the override.
|
|
10006
|
+
oneOf:
|
|
10007
|
+
- $ref: "#/components/schemas/CustomizationLocale"
|
|
10008
|
+
- type: string
|
|
10009
|
+
nullable: true
|
|
10010
|
+
enum:
|
|
10011
|
+
- null
|
|
10012
|
+
required:
|
|
10013
|
+
- locale
|
|
10014
|
+
favicon:
|
|
10015
|
+
description: The favicon to use. Set to null to reset the override.
|
|
10016
|
+
oneOf:
|
|
10017
|
+
- type: object
|
|
10018
|
+
properties:
|
|
10019
|
+
icon:
|
|
10020
|
+
$ref: "#/components/schemas/CustomizationThemedURL"
|
|
10021
|
+
required:
|
|
10022
|
+
- icon
|
|
10023
|
+
- type: object
|
|
10024
|
+
properties:
|
|
10025
|
+
emoji:
|
|
10026
|
+
$ref: "#/components/schemas/Emoji"
|
|
10027
|
+
required:
|
|
10028
|
+
- emoji
|
|
10029
|
+
- type: object
|
|
10030
|
+
nullable: true
|
|
10031
|
+
properties: {}
|
|
10032
|
+
additionalProperties: false
|
|
10033
|
+
header:
|
|
10034
|
+
type: object
|
|
10035
|
+
properties:
|
|
10036
|
+
preset:
|
|
10037
|
+
description: The theme preset to use. Set to null to reset the override.
|
|
10038
|
+
oneOf:
|
|
10039
|
+
- $ref: "#/components/schemas/CustomizationHeaderPreset"
|
|
10040
|
+
- type: string
|
|
10041
|
+
nullable: true
|
|
10042
|
+
enum:
|
|
10043
|
+
- null
|
|
10044
|
+
logo:
|
|
10045
|
+
description: The header logo to use. Set to null to reset the override.
|
|
10046
|
+
oneOf:
|
|
10047
|
+
- $ref: "#/components/schemas/CustomizationThemedURL"
|
|
10048
|
+
- type: string
|
|
10049
|
+
nullable: true
|
|
10050
|
+
enum:
|
|
10051
|
+
- null
|
|
10052
|
+
backgroundColor:
|
|
10053
|
+
description: The background color used in the header. Set to null to reset the override.
|
|
10054
|
+
oneOf:
|
|
10055
|
+
- $ref: "#/components/schemas/CustomizationThemedColor"
|
|
10056
|
+
- type: string
|
|
10057
|
+
nullable: true
|
|
10058
|
+
enum:
|
|
10059
|
+
- null
|
|
10060
|
+
linkColor:
|
|
10061
|
+
description: The color used by the links in the header. Set to null to reset the override.
|
|
10062
|
+
oneOf:
|
|
10063
|
+
- $ref: "#/components/schemas/CustomizationThemedColor"
|
|
10064
|
+
- type: string
|
|
10065
|
+
nullable: true
|
|
10066
|
+
enum:
|
|
10067
|
+
- null
|
|
10068
|
+
links:
|
|
10069
|
+
type: array
|
|
10070
|
+
description: The links that are displayed in the header. Set to null to reset the override.
|
|
10071
|
+
nullable: true
|
|
10072
|
+
items:
|
|
10073
|
+
$ref: "#/components/schemas/CustomizationHeaderLink"
|
|
10074
|
+
footer:
|
|
10075
|
+
type: object
|
|
10076
|
+
properties:
|
|
10077
|
+
logo:
|
|
10078
|
+
description: The logo displayed in the footer. Set to null to reset the override.
|
|
10079
|
+
oneOf:
|
|
10080
|
+
- $ref: "#/components/schemas/CustomizationThemedURL"
|
|
10081
|
+
- type: string
|
|
10082
|
+
nullable: true
|
|
10083
|
+
enum:
|
|
10084
|
+
- null
|
|
10085
|
+
groups:
|
|
10086
|
+
type: array
|
|
10087
|
+
description: The links groups that are displayed in the footer. Set to null to reset the override.
|
|
10088
|
+
nullable: true
|
|
10089
|
+
items:
|
|
10090
|
+
$ref: "#/components/schemas/CustomizationFooterGroup"
|
|
10091
|
+
copyright:
|
|
10092
|
+
type: string
|
|
10093
|
+
description: The copyright text that is displayed in the footer. Set to null to reset the override.
|
|
10094
|
+
nullable: true
|
|
10095
|
+
maxLength: 300
|
|
10096
|
+
themes:
|
|
10097
|
+
type: object
|
|
10098
|
+
properties:
|
|
10099
|
+
default:
|
|
10100
|
+
description: The theme mode default value. Set to null to reset the override.
|
|
10101
|
+
oneOf:
|
|
10102
|
+
- $ref: "#/components/schemas/CustomizationThemeMode"
|
|
10103
|
+
- type: string
|
|
10104
|
+
nullable: true
|
|
10105
|
+
enum:
|
|
10106
|
+
- null
|
|
10107
|
+
toggeable:
|
|
10108
|
+
description: Should the reader be able to switch between dark and light mode. Set to null to reset the override.
|
|
10109
|
+
type: boolean
|
|
10110
|
+
nullable: true
|
|
10111
|
+
pdf:
|
|
10112
|
+
type: object
|
|
10113
|
+
properties:
|
|
10114
|
+
enabled:
|
|
10115
|
+
type: boolean
|
|
10116
|
+
description: If true, PDF export is enabled for the published site. Set to null to reset the override.
|
|
10117
|
+
nullable: true
|
|
10118
|
+
required:
|
|
10119
|
+
- enabled
|
|
10120
|
+
feedback:
|
|
10121
|
+
type: object
|
|
10122
|
+
properties:
|
|
10123
|
+
enabled:
|
|
10124
|
+
type: boolean
|
|
10125
|
+
description: If true, feedback gathering is enabled. Set to null to reset the override.
|
|
10126
|
+
nullable: true
|
|
10127
|
+
required:
|
|
10128
|
+
- enabled
|
|
10129
|
+
aiSearch:
|
|
10130
|
+
type: object
|
|
10131
|
+
properties:
|
|
10132
|
+
enabled:
|
|
10133
|
+
type: boolean
|
|
10134
|
+
description: If true, AI search is enabled. Set to null to reset the override.
|
|
10135
|
+
nullable: true
|
|
10136
|
+
required:
|
|
10137
|
+
- enabled
|
|
10138
|
+
git:
|
|
10139
|
+
type: object
|
|
10140
|
+
properties:
|
|
10141
|
+
showEditLink:
|
|
10142
|
+
type: boolean
|
|
10143
|
+
description: Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override.
|
|
10144
|
+
nullable: true
|
|
10145
|
+
required:
|
|
10146
|
+
- showEditLink
|
|
10147
|
+
pagination:
|
|
10148
|
+
type: object
|
|
10149
|
+
properties:
|
|
10150
|
+
enabled:
|
|
10151
|
+
type: boolean
|
|
10152
|
+
description: Whether the pagination navigation should be displayed on pages. Set to null to reset the override.
|
|
10153
|
+
nullable: true
|
|
10154
|
+
required:
|
|
10155
|
+
- enabled
|
|
10156
|
+
trademark:
|
|
10157
|
+
type: object
|
|
10158
|
+
properties:
|
|
10159
|
+
enabled:
|
|
10160
|
+
type: boolean
|
|
10161
|
+
description: Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override.
|
|
10162
|
+
nullable: true
|
|
10163
|
+
required:
|
|
10164
|
+
- enabled
|
|
10165
|
+
privacyPolicy:
|
|
10166
|
+
type: object
|
|
10167
|
+
properties:
|
|
10168
|
+
url:
|
|
10169
|
+
description: The custom link to the privacy policy. Set to null to reset the override.
|
|
10170
|
+
oneOf:
|
|
10171
|
+
- $ref: "#/components/schemas/URL"
|
|
10172
|
+
- type: string
|
|
10173
|
+
nullable: true
|
|
10174
|
+
enum:
|
|
10175
|
+
- null
|
|
10176
|
+
socialPreview:
|
|
10177
|
+
type: object
|
|
10178
|
+
properties:
|
|
10179
|
+
url:
|
|
10180
|
+
description: The URL for the social preview image. Set to null to reset the override.
|
|
10181
|
+
oneOf:
|
|
10182
|
+
- $ref: "#/components/schemas/URL"
|
|
10183
|
+
- type: string
|
|
10184
|
+
nullable: true
|
|
10185
|
+
enum:
|
|
10186
|
+
- null
|
|
9880
10187
|
SiteVisibility:
|
|
9881
10188
|
type: string
|
|
9882
10189
|
description: |
|
|
@@ -11182,6 +11489,12 @@ paths:
|
|
|
11182
11489
|
properties:
|
|
11183
11490
|
subject:
|
|
11184
11491
|
$ref: "#/components/schemas/ChangeRequestSubject"
|
|
11492
|
+
status:
|
|
11493
|
+
type: string
|
|
11494
|
+
enum:
|
|
11495
|
+
- draft
|
|
11496
|
+
- open
|
|
11497
|
+
- archived
|
|
11185
11498
|
responses:
|
|
11186
11499
|
"200":
|
|
11187
11500
|
description: The change request has been updated
|
|
@@ -16289,6 +16602,36 @@ paths:
|
|
|
16289
16602
|
description: OK
|
|
16290
16603
|
default:
|
|
16291
16604
|
$ref: "#/components/responses/UnexpectedError"
|
|
16605
|
+
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content":
|
|
16606
|
+
get:
|
|
16607
|
+
operationId: getSyncedBlockContent
|
|
16608
|
+
summary: Get a synced block content
|
|
16609
|
+
tags:
|
|
16610
|
+
- organizations
|
|
16611
|
+
security:
|
|
16612
|
+
- user: []
|
|
16613
|
+
parameters:
|
|
16614
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16615
|
+
- $ref: "#/components/parameters/syncedBlockId"
|
|
16616
|
+
responses:
|
|
16617
|
+
"200":
|
|
16618
|
+
description: OK
|
|
16619
|
+
content:
|
|
16620
|
+
application/json:
|
|
16621
|
+
schema:
|
|
16622
|
+
type: object
|
|
16623
|
+
properties:
|
|
16624
|
+
document:
|
|
16625
|
+
$ref: "#/components/schemas/JSONDocument"
|
|
16626
|
+
files:
|
|
16627
|
+
type: array
|
|
16628
|
+
items:
|
|
16629
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
16630
|
+
required:
|
|
16631
|
+
- document
|
|
16632
|
+
- files
|
|
16633
|
+
default:
|
|
16634
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
16292
16635
|
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks":
|
|
16293
16636
|
get:
|
|
16294
16637
|
operationId: getSyncedBlockBacklinks
|
|
@@ -17039,6 +17382,86 @@ paths:
|
|
|
17039
17382
|
$ref: "#/components/responses/BadRequestError"
|
|
17040
17383
|
default:
|
|
17041
17384
|
$ref: "#/components/responses/UnexpectedError"
|
|
17385
|
+
patch:
|
|
17386
|
+
operationId: overrideSiteSpaceCustomizationById
|
|
17387
|
+
summary: Override the customization configuration for a site space.
|
|
17388
|
+
tags:
|
|
17389
|
+
- sites
|
|
17390
|
+
security:
|
|
17391
|
+
- user: []
|
|
17392
|
+
parameters:
|
|
17393
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17394
|
+
- $ref: "#/components/parameters/siteId"
|
|
17395
|
+
- $ref: "#/components/parameters/siteSpaceId"
|
|
17396
|
+
requestBody:
|
|
17397
|
+
required: true
|
|
17398
|
+
content:
|
|
17399
|
+
application/json:
|
|
17400
|
+
schema:
|
|
17401
|
+
description: The settings that overrides the site customization settings.
|
|
17402
|
+
$ref: "#/components/schemas/SiteSpaceCustomizationOverrides"
|
|
17403
|
+
responses:
|
|
17404
|
+
"200":
|
|
17405
|
+
description: OK
|
|
17406
|
+
content:
|
|
17407
|
+
application/json:
|
|
17408
|
+
schema:
|
|
17409
|
+
$ref: "#/components/schemas/SiteCustomizationSettings"
|
|
17410
|
+
"400":
|
|
17411
|
+
$ref: "#/components/responses/BadRequestError"
|
|
17412
|
+
default:
|
|
17413
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17414
|
+
"/orgs/{organizationId}/sites/{siteId}/permissions/aggregate":
|
|
17415
|
+
get:
|
|
17416
|
+
operationId: listPermissionsAggregateInSite
|
|
17417
|
+
summary: List permissions for all users of a site.
|
|
17418
|
+
tags:
|
|
17419
|
+
- permissions
|
|
17420
|
+
- sites
|
|
17421
|
+
security:
|
|
17422
|
+
- user: []
|
|
17423
|
+
parameters:
|
|
17424
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17425
|
+
- $ref: "#/components/parameters/siteId"
|
|
17426
|
+
- $ref: "#/components/parameters/listPage"
|
|
17427
|
+
- $ref: "#/components/parameters/listLimit"
|
|
17428
|
+
- name: role
|
|
17429
|
+
in: query
|
|
17430
|
+
description: If defined, only members with this role will be returned.
|
|
17431
|
+
schema:
|
|
17432
|
+
$ref: "#/components/schemas/MemberRole"
|
|
17433
|
+
responses:
|
|
17434
|
+
"200":
|
|
17435
|
+
description: Listing of users who can access the site.
|
|
17436
|
+
content:
|
|
17437
|
+
application/json:
|
|
17438
|
+
schema:
|
|
17439
|
+
allOf:
|
|
17440
|
+
- $ref: "#/components/schemas/List"
|
|
17441
|
+
- type: object
|
|
17442
|
+
required:
|
|
17443
|
+
- items
|
|
17444
|
+
properties:
|
|
17445
|
+
items:
|
|
17446
|
+
type: array
|
|
17447
|
+
items:
|
|
17448
|
+
type: object
|
|
17449
|
+
description: Permission of a user in a site.
|
|
17450
|
+
properties:
|
|
17451
|
+
permission:
|
|
17452
|
+
$ref: "#/components/schemas/MemberRole"
|
|
17453
|
+
user:
|
|
17454
|
+
$ref: "#/components/schemas/User"
|
|
17455
|
+
origin:
|
|
17456
|
+
description: The content or organization that enforced this permission level.
|
|
17457
|
+
oneOf:
|
|
17458
|
+
- $ref: "#/components/schemas/SpacePointer"
|
|
17459
|
+
required:
|
|
17460
|
+
- permission
|
|
17461
|
+
- user
|
|
17462
|
+
- origin
|
|
17463
|
+
default:
|
|
17464
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17042
17465
|
"/orgs/{organizationId}/seats":
|
|
17043
17466
|
get:
|
|
17044
17467
|
operationId: listSeatsInOrganizationById
|
|
@@ -17389,9 +17812,15 @@ paths:
|
|
|
17389
17812
|
type: object
|
|
17390
17813
|
properties:
|
|
17391
17814
|
spaces:
|
|
17815
|
+
deprecated: true
|
|
17816
|
+
type: array
|
|
17817
|
+
items:
|
|
17818
|
+
description: Deprecated. Use contentIds.
|
|
17819
|
+
type: string
|
|
17820
|
+
contentIds:
|
|
17392
17821
|
type: array
|
|
17393
17822
|
items:
|
|
17394
|
-
description:
|
|
17823
|
+
description: Content IDs to retrieve permissions for.
|
|
17395
17824
|
type: string
|
|
17396
17825
|
responses:
|
|
17397
17826
|
"200":
|