@gitbook/api 0.110.0 → 0.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/spec/openapi.yaml CHANGED
@@ -3641,6 +3641,45 @@ paths:
3641
3641
  type: array
3642
3642
  items:
3643
3643
  $ref: "#/components/schemas/IntegrationSpaceInstallation"
3644
+ "/integrations/{integrationName}/sites":
3645
+ get:
3646
+ operationId: listIntegrationSiteInstallations
3647
+ summary: List all integration site installations
3648
+ tags:
3649
+ - integrations
3650
+ security:
3651
+ - integration: []
3652
+ parameters:
3653
+ - $ref: "#/components/parameters/integrationName"
3654
+ - $ref: "#/components/parameters/listPage"
3655
+ - $ref: "#/components/parameters/listLimit"
3656
+ - name: externalId
3657
+ in: query
3658
+ description: External ID to filter by
3659
+ schema:
3660
+ type: string
3661
+ - name: extended
3662
+ in: query
3663
+ description: If true, returns the site object in each items. If false, returns the site ID in each items.
3664
+ schema:
3665
+ type: boolean
3666
+ default: false
3667
+ responses:
3668
+ "200":
3669
+ description: OK
3670
+ content:
3671
+ application/json:
3672
+ schema:
3673
+ allOf:
3674
+ - $ref: "#/components/schemas/List"
3675
+ - type: object
3676
+ required:
3677
+ - items
3678
+ properties:
3679
+ items:
3680
+ type: array
3681
+ items:
3682
+ $ref: "#/components/schemas/IntegrationSiteInstallation"
3644
3683
  "/integrations/{integrationName}/dev":
3645
3684
  put:
3646
3685
  operationId: setIntegrationDevelopmentMode
@@ -10062,6 +10101,9 @@ components:
10062
10101
  - reusable-content
10063
10102
  reusableContent:
10064
10103
  type: string
10104
+ space:
10105
+ type: string
10106
+ description: The space in which the reusable content is defined. If undefined, the reusable content is assumed to be in the same space as the content reference.
10065
10107
  required:
10066
10108
  - kind
10067
10109
  - reusableContent
@@ -11519,7 +11561,9 @@ components:
11519
11561
  - false
11520
11562
  data:
11521
11563
  type: object
11522
- properties: {}
11564
+ properties:
11565
+ fullWidth:
11566
+ type: boolean
11523
11567
  additionalProperties: false
11524
11568
  required:
11525
11569
  - object
@@ -11679,6 +11723,58 @@ components:
11679
11723
  - type
11680
11724
  - data
11681
11725
  - isVoid
11726
+ OpenAPIWebhookPointer:
11727
+ type: object
11728
+ description: Pointer to a webhook in the OpenAPI spec.
11729
+ properties:
11730
+ name:
11731
+ type: string
11732
+ description: Name of the webhook in the OpenAPI spec.
11733
+ method:
11734
+ type: string
11735
+ description: HTTP method of the webhook in the OpenAPI spec.
11736
+ required:
11737
+ - name
11738
+ - method
11739
+ DocumentBlockOpenAPIWebhook:
11740
+ type: object
11741
+ properties:
11742
+ object:
11743
+ type: string
11744
+ enum:
11745
+ - block
11746
+ type:
11747
+ type: string
11748
+ enum:
11749
+ - openapi-webhook
11750
+ key:
11751
+ type: string
11752
+ data:
11753
+ allOf:
11754
+ - $ref: "#/components/schemas/OpenAPIWebhookPointer"
11755
+ - type: object
11756
+ properties:
11757
+ ref:
11758
+ $ref: "#/components/schemas/ContentRefOpenAPI"
11759
+ required:
11760
+ - ref
11761
+ isVoid:
11762
+ type: boolean
11763
+ enum:
11764
+ - true
11765
+ meta:
11766
+ type: object
11767
+ properties:
11768
+ id:
11769
+ description: Unique ID to be used in an URL for the block.
11770
+ type: string
11771
+ required:
11772
+ - id
11773
+ required:
11774
+ - object
11775
+ - type
11776
+ - data
11777
+ - isVoid
11682
11778
  DocumentBlockStepperStep:
11683
11779
  type: object
11684
11780
  properties:
@@ -11776,6 +11872,7 @@ components:
11776
11872
  - $ref: "#/components/schemas/DocumentBlockOpenAPI"
11777
11873
  - $ref: "#/components/schemas/DocumentBlockOpenAPIOperation"
11778
11874
  - $ref: "#/components/schemas/DocumentBlockOpenAPISchemas"
11875
+ - $ref: "#/components/schemas/DocumentBlockOpenAPIWebhook"
11779
11876
  - $ref: "#/components/schemas/DocumentBlockContentRef"
11780
11877
  - $ref: "#/components/schemas/DocumentBlockIntegration"
11781
11878
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
@@ -11870,6 +11967,7 @@ components:
11870
11967
  - $ref: "#/components/schemas/DocumentBlockOpenAPI"
11871
11968
  - $ref: "#/components/schemas/DocumentBlockOpenAPIOperation"
11872
11969
  - $ref: "#/components/schemas/DocumentBlockOpenAPISchemas"
11970
+ - $ref: "#/components/schemas/DocumentBlockOpenAPIWebhook"
11873
11971
  - $ref: "#/components/schemas/DocumentBlockContentRef"
11874
11972
  - $ref: "#/components/schemas/DocumentBlockIntegration"
11875
11973
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
@@ -12756,7 +12854,6 @@ components:
12756
12854
  - notion
12757
12855
  - quip
12758
12856
  - google-docs
12759
- - open-api
12760
12857
  ImportContent:
12761
12858
  type: object
12762
12859
  properties:
@@ -15859,190 +15956,460 @@ components:
15859
15956
  - $ref: "#/components/schemas/Space"
15860
15957
  required:
15861
15958
  - space
15862
- ContentKitIcon:
15959
+ SiteType:
15863
15960
  type: string
15961
+ description: The type of the site
15864
15962
  enum:
15865
- - close
15866
- - edit
15867
- - github
15868
- - gitlab
15869
- - maximize
15870
- - email
15871
- - settings
15872
- - search
15873
- - delete
15874
- - star
15875
- - warning
15876
- - link
15877
- - link-external
15878
- - eye
15879
- - lock
15880
- ContentKitConfirm:
15881
- type: object
15882
- description: A confirm object that defines an optional confirmation dialog after the input is clicked.
15883
- properties:
15884
- title:
15885
- type: string
15886
- description: A text value that defines the dialog's title.
15887
- maxLength: 100
15888
- text:
15889
- type: string
15890
- description: A text value that defines the explanatory text that appears in the confirm dialog.
15891
- maxLength: 300
15892
- confirm:
15893
- type: string
15894
- description: A text value to define the text of the button that confirms the action.
15895
- maxLength: 30
15896
- style:
15897
- type: string
15898
- enum:
15899
- - primary
15900
- - danger
15901
- required:
15902
- - title
15903
- - text
15904
- - confirm
15905
- ContentKitButton:
15963
+ - basic
15964
+ - premium
15965
+ - ultimate
15966
+ - sponsored
15967
+ - legacy-basic
15968
+ - legacy-premium
15969
+ SiteTitle:
15970
+ type: string
15971
+ description: Title of the site
15972
+ minLength: 2
15973
+ maxLength: 128
15974
+ SiteHostname:
15975
+ type: string
15976
+ description: Custom hostname for the site, for e.g. docs.mycompany.com
15977
+ pattern: ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
15978
+ maxLength: 512
15979
+ SiteBasename:
15980
+ type: string
15981
+ description: Basename for the site. For e.g. api
15982
+ minLength: 1
15983
+ maxLength: 100
15984
+ SiteProxyOrigin:
15985
+ type: string
15986
+ description: Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.
15987
+ pattern: ^([\w-]+\.)*[\w-]+\.[a-zA-Z]{2,}(\/[\w-]+)+$
15988
+ maxLength: 512
15989
+ SiteProxy:
15906
15990
  type: object
15907
- description: Pressable button triggering an action.
15908
15991
  properties:
15909
- type:
15910
- type: string
15911
- enum:
15912
- - button
15913
- style:
15914
- type: string
15915
- enum:
15916
- - primary
15917
- - secondary
15918
- - danger
15919
- onPress:
15920
- $ref: "#/components/schemas/ContentKitAction"
15921
- icon:
15922
- $ref: "#/components/schemas/ContentKitIcon"
15923
- trailingIcon:
15924
- $ref: "#/components/schemas/ContentKitIcon"
15925
- label:
15926
- type: string
15927
- tooltip:
15992
+ origin:
15993
+ $ref: "#/components/schemas/SiteProxyOrigin"
15994
+ target:
15928
15995
  type: string
15929
- confirm:
15930
- $ref: "#/components/schemas/ContentKitConfirm"
15931
- disabled:
15932
- type: boolean
15996
+ description: The target URL to which the requests at the origin URL should be proxied to.
15933
15997
  required:
15934
- - type
15935
- - onPress
15936
- ContentKitTextInput:
15998
+ - origin
15999
+ - target
16000
+ SiteVisibility:
16001
+ type: string
16002
+ description: |
16003
+ The visibility setting of the site determines the audience of the site.
16004
+ * `public`: Anyone can access the site, and the site is indexed by search engines.
16005
+ * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
16006
+ * `share-link`: Anyone with a secret token in the url can access the site.
16007
+ * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
16008
+ enum:
16009
+ - public
16010
+ - unlisted
16011
+ - share-link
16012
+ - visitor-auth
16013
+ SiteAdaptiveContent:
15937
16014
  type: object
15938
- description: Text input to prompt the user.
15939
16015
  properties:
15940
- type:
15941
- type: string
15942
- enum:
15943
- - textinput
15944
- disabled:
15945
- type: boolean
15946
- state:
15947
- description: State binding. The value of the input will be stored as a property in the state named after this ID.
15948
- type: string
15949
- initialValue:
15950
- description: Text value to initialize the input with.
15951
- type: string
15952
- placeholder:
15953
- description: Text that appears in the form control when it has no value set
15954
- type: string
15955
- multiline:
16016
+ enabled:
15956
16017
  type: boolean
15957
- inputType:
15958
- type: string
15959
- enum:
15960
- - text
15961
- - password
15962
- - email
15963
- default: text
16018
+ description: Whether adaptive content should be enabled on the site.
15964
16019
  required:
15965
- - type
15966
- - state
15967
- ContentKitDescendantElement:
15968
- description: Any element that can be used as children.
16020
+ - enabled
16021
+ SiteAdsTopic:
16022
+ type: string
16023
+ description: Topic of the content
16024
+ enum:
16025
+ - webdev
16026
+ - crypto
16027
+ SiteAds:
15969
16028
  oneOf:
15970
- - $ref: "#/components/schemas/ContentKitButton"
15971
- - $ref: "#/components/schemas/ContentKitTextInput"
15972
- - $ref: "#/components/schemas/ContentKitHStack"
15973
- - $ref: "#/components/schemas/ContentKitVStack"
15974
- - $ref: "#/components/schemas/ContentKitBox"
15975
- - $ref: "#/components/schemas/ContentKitDivider"
15976
- - $ref: "#/components/schemas/ContentKitWebFrame"
15977
- - $ref: "#/components/schemas/ContentKitCodeBlock"
15978
- - $ref: "#/components/schemas/ContentKitMarkdown"
15979
- - $ref: "#/components/schemas/ContentKitCard"
15980
- - $ref: "#/components/schemas/ContentKitImage"
15981
- - $ref: "#/components/schemas/ContentKitInput"
15982
- - $ref: "#/components/schemas/ContentKitSelect"
15983
- - $ref: "#/components/schemas/ContentKitSwitch"
15984
- - $ref: "#/components/schemas/ContentKitCheckbox"
15985
- - $ref: "#/components/schemas/ContentKitRadio"
15986
- - $ref: "#/components/schemas/ContentKitText"
15987
- - $ref: "#/components/schemas/ContentKitHint"
15988
- - $ref: "#/components/schemas/ContentKitLink"
15989
- - $ref: "#/components/schemas/ContentKitStepperStep"
15990
- discriminator:
15991
- propertyName: type
15992
- ContentKitHStack:
16029
+ - type: object
16030
+ required:
16031
+ - status
16032
+ - submittable
16033
+ properties:
16034
+ status:
16035
+ type: string
16036
+ enum:
16037
+ - pending
16038
+ submittable:
16039
+ type: boolean
16040
+ description: True if the user can submit the site for review.
16041
+ - type: object
16042
+ required:
16043
+ - status
16044
+ - topic
16045
+ - accountEmail
16046
+ properties:
16047
+ status:
16048
+ type: string
16049
+ enum:
16050
+ - in-review
16051
+ topic:
16052
+ $ref: "#/components/schemas/SiteAdsTopic"
16053
+ - type: object
16054
+ required:
16055
+ - status
16056
+ properties:
16057
+ status:
16058
+ type: string
16059
+ enum:
16060
+ - rejected
16061
+ reason:
16062
+ type: string
16063
+ description: Reason for the rejection
16064
+ - type: object
16065
+ required:
16066
+ - status
16067
+ - topic
16068
+ - zoneId
16069
+ properties:
16070
+ status:
16071
+ type: string
16072
+ enum:
16073
+ - live
16074
+ - disabled
16075
+ topic:
16076
+ $ref: "#/components/schemas/SiteAdsTopic"
16077
+ zoneId:
16078
+ type: string
16079
+ description: The ad network zone ID
16080
+ SiteCustomizationFeature:
16081
+ type: string
16082
+ description: A list of all premium customizations.
16083
+ enum:
16084
+ - header-logo
16085
+ - theme-preset
16086
+ - premium-fonts
16087
+ - custom-icons
16088
+ - footer-logo
16089
+ - footer-links
16090
+ - footer-copyright
16091
+ - semantic-colors
16092
+ SiteFeature:
16093
+ oneOf:
16094
+ - type: object
16095
+ description: A site feature and the plan it is available on.
16096
+ properties:
16097
+ id:
16098
+ description: The feature identifier, matching the feature table keys in the pricing definition
16099
+ type: string
16100
+ enum:
16101
+ - sites-sections
16102
+ - sites-visitor-authentication
16103
+ - sites-adaptive-content
16104
+ - sites-redirects
16105
+ - sites-custom-domain
16106
+ - sites-ai-search
16107
+ - sites-pdf-export
16108
+ - sites-page-feedback
16109
+ - sites-unlisted-visibility
16110
+ - sites-share-links
16111
+ - sites-custom-fonts
16112
+ plan:
16113
+ $ref: "#/components/schemas/SiteType"
16114
+ frozen:
16115
+ description: A frozen feature is still enabled but cannot be changed or modified.
16116
+ type: boolean
16117
+ required:
16118
+ - id
16119
+ - plan
16120
+ - frozen
16121
+ - type: object
16122
+ description: The advanced customizations feature, carrying also which individual customization are used
16123
+ properties:
16124
+ id:
16125
+ description: The feature identifier, always set to `sites-advanced-customization`
16126
+ type: string
16127
+ enum:
16128
+ - sites-advanced-customization
16129
+ plan:
16130
+ $ref: "#/components/schemas/SiteType"
16131
+ frozen:
16132
+ description: A frozen feature is still enabled but cannot be changed or modified.
16133
+ type: boolean
16134
+ customizations:
16135
+ description: A list of the actual advanced customizations used
16136
+ type: array
16137
+ items:
16138
+ $ref: "#/components/schemas/SiteCustomizationFeature"
16139
+ required:
16140
+ - id
16141
+ - plan
16142
+ - frozen
16143
+ - customizations
16144
+ Site:
15993
16145
  type: object
15994
- description: Horizontal stack of boxes.
15995
16146
  properties:
15996
- type:
16147
+ object:
15997
16148
  type: string
15998
16149
  enum:
15999
- - hstack
16000
- align:
16150
+ - site
16151
+ id:
16001
16152
  type: string
16002
- default: start
16003
- enum:
16004
- - start
16005
- - center
16006
- - end
16007
- children:
16008
- type: array
16009
- items:
16010
- $ref: "#/components/schemas/ContentKitDescendantElement"
16011
- required:
16012
- - type
16013
- - children
16014
- ContentKitVStack:
16015
- type: object
16016
- description: Vertical stack of boxes.
16017
- properties:
16153
+ description: Unique identifier of the site
16018
16154
  type:
16155
+ $ref: "#/components/schemas/SiteType"
16156
+ title:
16157
+ $ref: "#/components/schemas/SiteTitle"
16158
+ hostname:
16159
+ $ref: "#/components/schemas/SiteHostname"
16160
+ basename:
16161
+ $ref: "#/components/schemas/SiteBasename"
16162
+ proxy:
16163
+ $ref: "#/components/schemas/SiteProxy"
16164
+ visibility:
16165
+ $ref: "#/components/schemas/SiteVisibility"
16166
+ published:
16167
+ type: boolean
16168
+ description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
16169
+ siteSpaces:
16170
+ type: number
16171
+ createdAt:
16019
16172
  type: string
16020
- enum:
16021
- - vstack
16022
- align:
16023
- type: string
16024
- default: start
16025
- enum:
16026
- - start
16027
- - center
16028
- - end
16029
- children:
16173
+ format: date-time
16174
+ adaptiveContent:
16175
+ $ref: "#/components/schemas/SiteAdaptiveContent"
16176
+ ads:
16177
+ $ref: "#/components/schemas/SiteAds"
16178
+ features:
16179
+ description: |
16180
+ A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.
16030
16181
  type: array
16031
16182
  items:
16032
- $ref: "#/components/schemas/ContentKitDescendantElement"
16183
+ $ref: "#/components/schemas/SiteFeature"
16184
+ urls:
16185
+ type: object
16186
+ description: URLs associated with the object
16187
+ properties:
16188
+ location:
16189
+ type: string
16190
+ description: URL of the site in the API
16191
+ format: uri
16192
+ app:
16193
+ type: string
16194
+ description: URL of the site in the application
16195
+ format: uri
16196
+ published:
16197
+ type: string
16198
+ description: URL of the published version of the site. Only defined when site is published.
16199
+ format: uri
16200
+ required:
16201
+ - app
16202
+ - location
16033
16203
  required:
16204
+ - object
16205
+ - id
16034
16206
  - type
16035
- - children
16036
- ContentKitBox:
16207
+ - title
16208
+ - visibility
16209
+ - published
16210
+ - createdAt
16211
+ - siteSpaces
16212
+ - defaultSpace
16213
+ - features
16214
+ - urls
16215
+ IntegrationSiteInstallation:
16216
+ allOf:
16217
+ - $ref: "#/components/schemas/IntegrationContentInstallationBase"
16218
+ - type: object
16219
+ properties:
16220
+ site:
16221
+ description: The site the integration is installed on. Using the string value is deprecated in favor of site.id
16222
+ oneOf:
16223
+ - type: string
16224
+ - $ref: "#/components/schemas/Site"
16225
+ required:
16226
+ - site
16227
+ ContentKitIcon:
16228
+ type: string
16229
+ enum:
16230
+ - close
16231
+ - edit
16232
+ - github
16233
+ - gitlab
16234
+ - maximize
16235
+ - email
16236
+ - settings
16237
+ - search
16238
+ - delete
16239
+ - star
16240
+ - warning
16241
+ - link
16242
+ - link-external
16243
+ - eye
16244
+ - lock
16245
+ - check
16246
+ - check-circle
16247
+ ContentKitConfirm:
16037
16248
  type: object
16249
+ description: A confirm object that defines an optional confirmation dialog after the input is clicked.
16038
16250
  properties:
16039
- type:
16251
+ title:
16040
16252
  type: string
16041
- enum:
16042
- - box
16043
- grow:
16044
- description: specifies how much of the remaining space in the container should be assigned to the element
16045
- type: number
16253
+ description: A text value that defines the dialog's title.
16254
+ maxLength: 100
16255
+ text:
16256
+ type: string
16257
+ description: A text value that defines the explanatory text that appears in the confirm dialog.
16258
+ maxLength: 300
16259
+ confirm:
16260
+ type: string
16261
+ description: A text value to define the text of the button that confirms the action.
16262
+ maxLength: 30
16263
+ style:
16264
+ type: string
16265
+ enum:
16266
+ - primary
16267
+ - danger
16268
+ required:
16269
+ - title
16270
+ - text
16271
+ - confirm
16272
+ ContentKitButton:
16273
+ type: object
16274
+ description: Pressable button triggering an action.
16275
+ properties:
16276
+ type:
16277
+ type: string
16278
+ enum:
16279
+ - button
16280
+ style:
16281
+ type: string
16282
+ enum:
16283
+ - primary
16284
+ - secondary
16285
+ - danger
16286
+ onPress:
16287
+ $ref: "#/components/schemas/ContentKitAction"
16288
+ icon:
16289
+ $ref: "#/components/schemas/ContentKitIcon"
16290
+ trailingIcon:
16291
+ $ref: "#/components/schemas/ContentKitIcon"
16292
+ label:
16293
+ type: string
16294
+ tooltip:
16295
+ type: string
16296
+ confirm:
16297
+ $ref: "#/components/schemas/ContentKitConfirm"
16298
+ disabled:
16299
+ type: boolean
16300
+ required:
16301
+ - type
16302
+ - onPress
16303
+ ContentKitTextInput:
16304
+ type: object
16305
+ description: Text input to prompt the user.
16306
+ properties:
16307
+ type:
16308
+ type: string
16309
+ enum:
16310
+ - textinput
16311
+ disabled:
16312
+ type: boolean
16313
+ state:
16314
+ description: State binding. The value of the input will be stored as a property in the state named after this ID.
16315
+ type: string
16316
+ initialValue:
16317
+ description: Text value to initialize the input with.
16318
+ type: string
16319
+ placeholder:
16320
+ description: Text that appears in the form control when it has no value set
16321
+ type: string
16322
+ multiline:
16323
+ type: boolean
16324
+ inputType:
16325
+ type: string
16326
+ enum:
16327
+ - text
16328
+ - password
16329
+ - email
16330
+ default: text
16331
+ required:
16332
+ - type
16333
+ - state
16334
+ ContentKitDescendantElement:
16335
+ description: Any element that can be used as children.
16336
+ oneOf:
16337
+ - $ref: "#/components/schemas/ContentKitButton"
16338
+ - $ref: "#/components/schemas/ContentKitTextInput"
16339
+ - $ref: "#/components/schemas/ContentKitHStack"
16340
+ - $ref: "#/components/schemas/ContentKitVStack"
16341
+ - $ref: "#/components/schemas/ContentKitBox"
16342
+ - $ref: "#/components/schemas/ContentKitDivider"
16343
+ - $ref: "#/components/schemas/ContentKitWebFrame"
16344
+ - $ref: "#/components/schemas/ContentKitCodeBlock"
16345
+ - $ref: "#/components/schemas/ContentKitMarkdown"
16346
+ - $ref: "#/components/schemas/ContentKitCard"
16347
+ - $ref: "#/components/schemas/ContentKitImage"
16348
+ - $ref: "#/components/schemas/ContentKitInput"
16349
+ - $ref: "#/components/schemas/ContentKitSelect"
16350
+ - $ref: "#/components/schemas/ContentKitSwitch"
16351
+ - $ref: "#/components/schemas/ContentKitCheckbox"
16352
+ - $ref: "#/components/schemas/ContentKitRadio"
16353
+ - $ref: "#/components/schemas/ContentKitText"
16354
+ - $ref: "#/components/schemas/ContentKitHint"
16355
+ - $ref: "#/components/schemas/ContentKitLink"
16356
+ - $ref: "#/components/schemas/ContentKitStepperStep"
16357
+ discriminator:
16358
+ propertyName: type
16359
+ ContentKitHStack:
16360
+ type: object
16361
+ description: Horizontal stack of boxes.
16362
+ properties:
16363
+ type:
16364
+ type: string
16365
+ enum:
16366
+ - hstack
16367
+ align:
16368
+ type: string
16369
+ default: start
16370
+ enum:
16371
+ - start
16372
+ - center
16373
+ - end
16374
+ children:
16375
+ type: array
16376
+ items:
16377
+ $ref: "#/components/schemas/ContentKitDescendantElement"
16378
+ required:
16379
+ - type
16380
+ - children
16381
+ ContentKitVStack:
16382
+ type: object
16383
+ description: Vertical stack of boxes.
16384
+ properties:
16385
+ type:
16386
+ type: string
16387
+ enum:
16388
+ - vstack
16389
+ align:
16390
+ type: string
16391
+ default: start
16392
+ enum:
16393
+ - start
16394
+ - center
16395
+ - end
16396
+ children:
16397
+ type: array
16398
+ items:
16399
+ $ref: "#/components/schemas/ContentKitDescendantElement"
16400
+ required:
16401
+ - type
16402
+ - children
16403
+ ContentKitBox:
16404
+ type: object
16405
+ properties:
16406
+ type:
16407
+ type: string
16408
+ enum:
16409
+ - box
16410
+ grow:
16411
+ description: specifies how much of the remaining space in the container should be assigned to the element
16412
+ type: number
16046
16413
  children:
16047
16414
  type: array
16048
16415
  items:
@@ -16530,469 +16897,201 @@ components:
16530
16897
  $ref: "#/components/schemas/ContentKitAction"
16531
16898
  confirm:
16532
16899
  $ref: "#/components/schemas/ContentKitConfirm"
16533
- required:
16534
- - label
16535
- - onPress
16536
- ContentKitBlock:
16537
- type: object
16538
- description: Higher level element to represent a custom block.
16539
- properties:
16540
- type:
16541
- type: string
16542
- enum:
16543
- - block
16544
- children:
16545
- type: array
16546
- items:
16547
- $ref: "#/components/schemas/ContentKitDescendantElement"
16548
- controls:
16549
- type: array
16550
- items:
16551
- oneOf:
16552
- - $ref: "#/components/schemas/ContentKitBlockControl"
16553
- - type: array
16554
- items:
16555
- $ref: "#/components/schemas/ContentKitBlockControl"
16556
- required:
16557
- - type
16558
- - children
16559
- ContentKitModal:
16560
- type: object
16561
- description: Overlay modal.
16562
- properties:
16563
- type:
16564
- type: string
16565
- enum:
16566
- - modal
16567
- title:
16568
- type: string
16569
- subtitle:
16570
- type: array
16571
- items:
16572
- $ref: "#/components/schemas/ContentKitInlineElement"
16573
- size:
16574
- type: string
16575
- enum:
16576
- - medium
16577
- - xlarge
16578
- - fullscreen
16579
- returnValue:
16580
- description: Data passed back to the parent view when the modal is closed. These data are accessible in the "@ui.modal.close"
16581
- type: object
16582
- children:
16583
- type: array
16584
- items:
16585
- $ref: "#/components/schemas/ContentKitDescendantElement"
16586
- submit:
16587
- $ref: "#/components/schemas/ContentKitButton"
16588
- required:
16589
- - type
16590
- - children
16591
- ContentKitStepper:
16592
- type: object
16593
- properties:
16594
- type:
16595
- type: string
16596
- enum:
16597
- - stepper
16598
- activeStep:
16599
- type: string
16600
- description: id of the currently active step
16601
- onStepChange:
16602
- $ref: "#/components/schemas/ContentKitAction"
16603
- onComplete:
16604
- $ref: "#/components/schemas/ContentKitAction"
16605
- children:
16606
- type: array
16607
- items:
16608
- $ref: "#/components/schemas/ContentKitStepperStep"
16609
- minItems: 1
16610
- required:
16611
- - type
16612
- - activeStep
16613
- - onStepChange
16614
- - onComplete
16615
- - children
16616
- ContentKitConfiguration:
16617
- type: object
16618
- description: Higher level element to define a configuration block. Does not add any UI elements or wrappers. Must be used as a top level element for any configuration component.
16619
- properties:
16620
- type:
16621
- type: string
16622
- enum:
16623
- - configuration
16624
- children:
16625
- oneOf:
16626
- - type: array
16627
- items:
16628
- $ref: "#/components/schemas/ContentKitStepper"
16629
- minItems: 1
16630
- maxItems: 1
16631
- - type: array
16632
- items:
16633
- $ref: "#/components/schemas/ContentKitDescendantElement"
16634
- minItems: 1
16635
- required:
16636
- - type
16637
- - children
16638
- ContentKitRootElement:
16639
- description: Element used as root
16640
- oneOf:
16641
- - $ref: "#/components/schemas/ContentKitBlock"
16642
- - $ref: "#/components/schemas/ContentKitModal"
16643
- - $ref: "#/components/schemas/ContentKitConfiguration"
16644
- discriminator:
16645
- propertyName: type
16646
- ContentKitRenderOutputElement:
16647
- type: object
16648
- description: Output of type element in the lifecycle of the component.
16649
- properties:
16650
- type:
16651
- type: string
16652
- enum:
16653
- - element
16654
- element:
16655
- $ref: "#/components/schemas/ContentKitRootElement"
16656
- state:
16657
- type: object
16658
- props:
16659
- $ref: "#/components/schemas/PlainObject"
16660
- required:
16661
- - element
16662
- - state
16663
- - props
16664
- ContentKitRenderOutputComplete:
16665
- type: object
16666
- description: Output of completed lifecycle of the component.
16667
- properties:
16668
- type:
16669
- type: string
16670
- enum:
16671
- - complete
16672
- returnValue:
16673
- type: object
16674
- required:
16675
- - type
16676
- ContentKitRenderOutput:
16677
- type: object
16678
- description: Output of the integration when rendering a UI.
16679
- oneOf:
16680
- - $ref: "#/components/schemas/ContentKitRenderOutputElement"
16681
- - $ref: "#/components/schemas/ContentKitRenderOutputComplete"
16682
- RenderIntegrationUI:
16683
- type: object
16684
- properties:
16685
- componentId:
16686
- type: string
16687
- description: ID of the component to render in the integration.
16688
- props:
16689
- description: Current properties of the UI.
16690
- $ref: "#/components/schemas/PlainObject"
16691
- state:
16692
- type: object
16693
- description: Current local state of the UI.
16694
- context:
16695
- $ref: "#/components/schemas/ContentKitContext"
16696
- action:
16697
- $ref: "#/components/schemas/ContentKitAction"
16698
- required:
16699
- - componentId
16700
- - props
16701
- - context
16702
- UpdateIntegrationInstallation:
16703
- type: object
16704
- properties:
16705
- externalIds:
16706
- $ref: "#/components/schemas/IntegrationInstallationExternalIds"
16707
- configuration:
16708
- $ref: "#/components/schemas/IntegrationInstallationConfiguration"
16709
- space_selection:
16710
- $ref: "#/components/schemas/IntegrationInstallationSpaceSelection"
16711
- site_selection:
16712
- $ref: "#/components/schemas/IntegrationInstallationSiteSelection"
16713
- APITemporaryToken:
16714
- type: object
16715
- properties:
16716
- token:
16717
- type: string
16718
- description: Temporary access token to authenticate with the API
16719
- required:
16720
- - token
16721
- UpdateIntegrationSpaceInstallation:
16722
- type: object
16723
- properties:
16724
- externalIds:
16725
- $ref: "#/components/schemas/IntegrationInstallationExternalIds"
16726
- configuration:
16727
- $ref: "#/components/schemas/IntegrationInstallationConfiguration"
16728
- SiteType:
16729
- type: string
16730
- description: The type of the site
16731
- enum:
16732
- - basic
16733
- - premium
16734
- - ultimate
16735
- - sponsored
16736
- - legacy-basic
16737
- - legacy-premium
16738
- SiteTitle:
16739
- type: string
16740
- description: Title of the site
16741
- minLength: 2
16742
- maxLength: 128
16743
- SiteHostname:
16744
- type: string
16745
- description: Custom hostname for the site, for e.g. docs.mycompany.com
16746
- pattern: ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
16747
- maxLength: 512
16748
- SiteBasename:
16749
- type: string
16750
- description: Basename for the site. For e.g. api
16751
- minLength: 1
16752
- maxLength: 100
16753
- SiteProxyOrigin:
16754
- type: string
16755
- description: Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.
16756
- pattern: ^([\w-]+\.)*[\w-]+\.[a-zA-Z]{2,}(\/[\w-]+)+$
16757
- maxLength: 512
16758
- SiteProxy:
16759
- type: object
16760
- properties:
16761
- origin:
16762
- $ref: "#/components/schemas/SiteProxyOrigin"
16763
- target:
16764
- type: string
16765
- description: The target URL to which the requests at the origin URL should be proxied to.
16766
- required:
16767
- - origin
16768
- - target
16769
- SiteVisibility:
16770
- type: string
16771
- description: |
16772
- The visibility setting of the site determines the audience of the site.
16773
- * `public`: Anyone can access the site, and the site is indexed by search engines.
16774
- * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
16775
- * `share-link`: Anyone with a secret token in the url can access the site.
16776
- * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
16777
- enum:
16778
- - public
16779
- - unlisted
16780
- - share-link
16781
- - visitor-auth
16782
- SiteAdaptiveContent:
16783
- type: object
16784
- properties:
16785
- enabled:
16786
- type: boolean
16787
- description: Whether adaptive content should be enabled on the site.
16788
- required:
16789
- - enabled
16790
- SiteAdsTopic:
16791
- type: string
16792
- description: Topic of the content
16793
- enum:
16794
- - webdev
16795
- - crypto
16796
- SiteAds:
16797
- oneOf:
16798
- - type: object
16799
- required:
16800
- - status
16801
- - submittable
16802
- properties:
16803
- status:
16804
- type: string
16805
- enum:
16806
- - pending
16807
- submittable:
16808
- type: boolean
16809
- description: True if the user can submit the site for review.
16810
- - type: object
16811
- required:
16812
- - status
16813
- - topic
16814
- - accountEmail
16815
- properties:
16816
- status:
16817
- type: string
16818
- enum:
16819
- - in-review
16820
- topic:
16821
- $ref: "#/components/schemas/SiteAdsTopic"
16822
- - type: object
16823
- required:
16824
- - status
16825
- properties:
16826
- status:
16827
- type: string
16828
- enum:
16829
- - rejected
16830
- reason:
16831
- type: string
16832
- description: Reason for the rejection
16833
- - type: object
16834
- required:
16835
- - status
16836
- - topic
16837
- - zoneId
16838
- properties:
16839
- status:
16840
- type: string
16841
- enum:
16842
- - live
16843
- - disabled
16844
- topic:
16845
- $ref: "#/components/schemas/SiteAdsTopic"
16846
- zoneId:
16847
- type: string
16848
- description: The ad network zone ID
16849
- SiteCustomizationFeature:
16850
- type: string
16851
- description: A list of all premium customizations.
16852
- enum:
16853
- - header-logo
16854
- - theme-preset
16855
- - premium-fonts
16856
- - custom-icons
16857
- - footer-logo
16858
- - footer-links
16859
- - footer-copyright
16860
- - semantic-colors
16861
- SiteFeature:
16862
- oneOf:
16863
- - type: object
16864
- description: A site feature and the plan it is available on.
16865
- properties:
16866
- id:
16867
- description: The feature identifier, matching the feature table keys in the pricing definition
16868
- type: string
16869
- enum:
16870
- - sites-sections
16871
- - sites-visitor-authentication
16872
- - sites-adaptive-content
16873
- - sites-redirects
16874
- - sites-custom-domain
16875
- - sites-ai-search
16876
- - sites-pdf-export
16877
- - sites-page-feedback
16878
- - sites-unlisted-visibility
16879
- - sites-share-links
16880
- - sites-custom-fonts
16881
- plan:
16882
- $ref: "#/components/schemas/SiteType"
16883
- frozen:
16884
- description: A frozen feature is still enabled but cannot be changed or modified.
16885
- type: boolean
16886
- required:
16887
- - id
16888
- - plan
16889
- - frozen
16890
- - type: object
16891
- description: The advanced customizations feature, carrying also which individual customization are used
16892
- properties:
16893
- id:
16894
- description: The feature identifier, always set to `sites-advanced-customization`
16895
- type: string
16896
- enum:
16897
- - sites-advanced-customization
16898
- plan:
16899
- $ref: "#/components/schemas/SiteType"
16900
- frozen:
16901
- description: A frozen feature is still enabled but cannot be changed or modified.
16902
- type: boolean
16903
- customizations:
16904
- description: A list of the actual advanced customizations used
16905
- type: array
16906
- items:
16907
- $ref: "#/components/schemas/SiteCustomizationFeature"
16908
- required:
16909
- - id
16910
- - plan
16911
- - frozen
16912
- - customizations
16913
- Site:
16900
+ required:
16901
+ - label
16902
+ - onPress
16903
+ ContentKitBlock:
16914
16904
  type: object
16905
+ description: Higher level element to represent a custom block.
16915
16906
  properties:
16916
- object:
16907
+ type:
16917
16908
  type: string
16918
16909
  enum:
16919
- - site
16920
- id:
16921
- type: string
16922
- description: Unique identifier of the site
16910
+ - block
16911
+ children:
16912
+ type: array
16913
+ items:
16914
+ $ref: "#/components/schemas/ContentKitDescendantElement"
16915
+ controls:
16916
+ type: array
16917
+ items:
16918
+ oneOf:
16919
+ - $ref: "#/components/schemas/ContentKitBlockControl"
16920
+ - type: array
16921
+ items:
16922
+ $ref: "#/components/schemas/ContentKitBlockControl"
16923
+ required:
16924
+ - type
16925
+ - children
16926
+ ContentKitModal:
16927
+ type: object
16928
+ description: Overlay modal.
16929
+ properties:
16923
16930
  type:
16924
- $ref: "#/components/schemas/SiteType"
16931
+ type: string
16932
+ enum:
16933
+ - modal
16925
16934
  title:
16926
- $ref: "#/components/schemas/SiteTitle"
16927
- hostname:
16928
- $ref: "#/components/schemas/SiteHostname"
16929
- basename:
16930
- $ref: "#/components/schemas/SiteBasename"
16931
- proxy:
16932
- $ref: "#/components/schemas/SiteProxy"
16933
- visibility:
16934
- $ref: "#/components/schemas/SiteVisibility"
16935
- published:
16936
- type: boolean
16937
- description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
16938
- siteSpaces:
16939
- type: number
16940
- createdAt:
16941
16935
  type: string
16942
- format: date-time
16943
- adaptiveContent:
16944
- $ref: "#/components/schemas/SiteAdaptiveContent"
16945
- ads:
16946
- $ref: "#/components/schemas/SiteAds"
16947
- features:
16948
- description: |
16949
- A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.
16936
+ subtitle:
16950
16937
  type: array
16951
16938
  items:
16952
- $ref: "#/components/schemas/SiteFeature"
16953
- urls:
16939
+ $ref: "#/components/schemas/ContentKitInlineElement"
16940
+ size:
16941
+ type: string
16942
+ enum:
16943
+ - medium
16944
+ - xlarge
16945
+ - fullscreen
16946
+ returnValue:
16947
+ description: Data passed back to the parent view when the modal is closed. These data are accessible in the "@ui.modal.close"
16954
16948
  type: object
16955
- description: URLs associated with the object
16956
- properties:
16957
- location:
16958
- type: string
16959
- description: URL of the site in the API
16960
- format: uri
16961
- app:
16962
- type: string
16963
- description: URL of the site in the application
16964
- format: uri
16965
- published:
16966
- type: string
16967
- description: URL of the published version of the site. Only defined when site is published.
16968
- format: uri
16969
- required:
16970
- - app
16971
- - location
16949
+ children:
16950
+ type: array
16951
+ items:
16952
+ $ref: "#/components/schemas/ContentKitDescendantElement"
16953
+ submit:
16954
+ $ref: "#/components/schemas/ContentKitButton"
16972
16955
  required:
16973
- - object
16974
- - id
16975
16956
  - type
16976
- - title
16977
- - visibility
16978
- - published
16979
- - createdAt
16980
- - siteSpaces
16981
- - defaultSpace
16982
- - features
16983
- - urls
16984
- IntegrationSiteInstallation:
16985
- allOf:
16986
- - $ref: "#/components/schemas/IntegrationContentInstallationBase"
16987
- - type: object
16988
- properties:
16989
- site:
16990
- description: The site the integration is installed on. Using the string value is deprecated in favor of site.id
16991
- oneOf:
16992
- - type: string
16993
- - $ref: "#/components/schemas/Site"
16994
- required:
16995
- - site
16957
+ - children
16958
+ ContentKitStepper:
16959
+ type: object
16960
+ properties:
16961
+ type:
16962
+ type: string
16963
+ enum:
16964
+ - stepper
16965
+ activeStep:
16966
+ type: string
16967
+ description: id of the currently active step
16968
+ onStepChange:
16969
+ $ref: "#/components/schemas/ContentKitAction"
16970
+ onComplete:
16971
+ $ref: "#/components/schemas/ContentKitAction"
16972
+ children:
16973
+ type: array
16974
+ items:
16975
+ $ref: "#/components/schemas/ContentKitStepperStep"
16976
+ minItems: 1
16977
+ required:
16978
+ - type
16979
+ - activeStep
16980
+ - onStepChange
16981
+ - onComplete
16982
+ - children
16983
+ ContentKitConfiguration:
16984
+ type: object
16985
+ description: Higher level element to define a configuration block. Does not add any UI elements or wrappers. Must be used as a top level element for any configuration component.
16986
+ properties:
16987
+ type:
16988
+ type: string
16989
+ enum:
16990
+ - configuration
16991
+ children:
16992
+ oneOf:
16993
+ - type: array
16994
+ items:
16995
+ $ref: "#/components/schemas/ContentKitStepper"
16996
+ minItems: 1
16997
+ maxItems: 1
16998
+ - type: array
16999
+ items:
17000
+ $ref: "#/components/schemas/ContentKitDescendantElement"
17001
+ minItems: 1
17002
+ required:
17003
+ - type
17004
+ - children
17005
+ ContentKitRootElement:
17006
+ description: Element used as root
17007
+ oneOf:
17008
+ - $ref: "#/components/schemas/ContentKitBlock"
17009
+ - $ref: "#/components/schemas/ContentKitModal"
17010
+ - $ref: "#/components/schemas/ContentKitConfiguration"
17011
+ discriminator:
17012
+ propertyName: type
17013
+ ContentKitRenderOutputElement:
17014
+ type: object
17015
+ description: Output of type element in the lifecycle of the component.
17016
+ properties:
17017
+ type:
17018
+ type: string
17019
+ enum:
17020
+ - element
17021
+ element:
17022
+ $ref: "#/components/schemas/ContentKitRootElement"
17023
+ state:
17024
+ type: object
17025
+ props:
17026
+ $ref: "#/components/schemas/PlainObject"
17027
+ required:
17028
+ - element
17029
+ - state
17030
+ - props
17031
+ ContentKitRenderOutputComplete:
17032
+ type: object
17033
+ description: Output of completed lifecycle of the component.
17034
+ properties:
17035
+ type:
17036
+ type: string
17037
+ enum:
17038
+ - complete
17039
+ returnValue:
17040
+ type: object
17041
+ required:
17042
+ - type
17043
+ ContentKitRenderOutput:
17044
+ type: object
17045
+ description: Output of the integration when rendering a UI.
17046
+ oneOf:
17047
+ - $ref: "#/components/schemas/ContentKitRenderOutputElement"
17048
+ - $ref: "#/components/schemas/ContentKitRenderOutputComplete"
17049
+ RenderIntegrationUI:
17050
+ type: object
17051
+ properties:
17052
+ componentId:
17053
+ type: string
17054
+ description: ID of the component to render in the integration.
17055
+ props:
17056
+ description: Current properties of the UI.
17057
+ $ref: "#/components/schemas/PlainObject"
17058
+ state:
17059
+ type: object
17060
+ description: Current local state of the UI.
17061
+ context:
17062
+ $ref: "#/components/schemas/ContentKitContext"
17063
+ action:
17064
+ $ref: "#/components/schemas/ContentKitAction"
17065
+ required:
17066
+ - componentId
17067
+ - props
17068
+ - context
17069
+ UpdateIntegrationInstallation:
17070
+ type: object
17071
+ properties:
17072
+ externalIds:
17073
+ $ref: "#/components/schemas/IntegrationInstallationExternalIds"
17074
+ configuration:
17075
+ $ref: "#/components/schemas/IntegrationInstallationConfiguration"
17076
+ space_selection:
17077
+ $ref: "#/components/schemas/IntegrationInstallationSpaceSelection"
17078
+ site_selection:
17079
+ $ref: "#/components/schemas/IntegrationInstallationSiteSelection"
17080
+ APITemporaryToken:
17081
+ type: object
17082
+ properties:
17083
+ token:
17084
+ type: string
17085
+ description: Temporary access token to authenticate with the API
17086
+ required:
17087
+ - token
17088
+ UpdateIntegrationSpaceInstallation:
17089
+ type: object
17090
+ properties:
17091
+ externalIds:
17092
+ $ref: "#/components/schemas/IntegrationInstallationExternalIds"
17093
+ configuration:
17094
+ $ref: "#/components/schemas/IntegrationInstallationConfiguration"
16996
17095
  UpdateIntegrationSiteInstallation:
16997
17096
  type: object
16998
17097
  properties:
@@ -18165,11 +18264,7 @@ components:
18165
18264
  location:
18166
18265
  description: URL of the OpenAPI specification version in the API
18167
18266
  $ref: "#/components/schemas/URL"
18168
- app:
18169
- description: URL of the OpenAPI specification version in the application
18170
- $ref: "#/components/schemas/URL"
18171
18267
  required:
18172
- - app
18173
18268
  - location
18174
18269
  required:
18175
18270
  - object