@gitbook/api 0.105.0 → 0.107.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
@@ -68,6 +68,9 @@ tags:
68
68
  - name: custom-hostnames
69
69
  x-page-title: Custom hostnames
70
70
  x-page-description: Configure and manage custom hostnames for your docs sites.
71
+ - name: email-domains
72
+ x-page-title: Email domains
73
+ x-page-description: Configure and manage email domains for organizations.
71
74
  - name: ads
72
75
  x-page-title: Ads
73
76
  x-page-description: Manage advertisement settings and placements.
@@ -1037,7 +1040,7 @@ paths:
1037
1040
  type: object
1038
1041
  properties:
1039
1042
  source:
1040
- $ref: "#/components/schemas/ComputedContentSource"
1043
+ $ref: "#/components/schemas/ComputedContentSourceDocument"
1041
1044
  seed:
1042
1045
  type: string
1043
1046
  description: Seed to use for the generation of IDs.
@@ -1071,7 +1074,7 @@ paths:
1071
1074
  type: object
1072
1075
  properties:
1073
1076
  source:
1074
- $ref: "#/components/schemas/ComputedContentSource"
1077
+ $ref: "#/components/schemas/ComputedContentSourceRevision"
1075
1078
  seed:
1076
1079
  type: string
1077
1080
  description: Seed to use for the generation of IDs.
@@ -5662,6 +5665,40 @@ paths:
5662
5665
  $ref: "#/components/schemas/OpenAPISpec"
5663
5666
  default:
5664
5667
  $ref: "#/components/responses/UnexpectedError"
5668
+ post:
5669
+ operationId: createOpenAPISpec
5670
+ summary: Create an organization OpenAPI specification
5671
+ tags:
5672
+ - openapi
5673
+ security:
5674
+ - user: []
5675
+ parameters:
5676
+ - $ref: "#/components/parameters/organizationId"
5677
+ requestBody:
5678
+ required: true
5679
+ content:
5680
+ application/json:
5681
+ schema:
5682
+ type: object
5683
+ properties:
5684
+ slug:
5685
+ $ref: "#/components/schemas/OpenAPISpecSlug"
5686
+ source:
5687
+ $ref: "#/components/schemas/OpenAPISpecSource"
5688
+ required:
5689
+ - source
5690
+ - slug
5691
+ responses:
5692
+ "201":
5693
+ description: OpenAPI specification has been created
5694
+ content:
5695
+ application/json:
5696
+ schema:
5697
+ $ref: "#/components/schemas/OpenAPISpec"
5698
+ "400":
5699
+ $ref: "#/components/responses/BadRequestError"
5700
+ default:
5701
+ $ref: "#/components/responses/UnexpectedError"
5665
5702
  "/orgs/{organizationId}/openapi/{specSlug}":
5666
5703
  get:
5667
5704
  operationId: getOpenAPISpecBySlug
@@ -5703,23 +5740,7 @@ paths:
5703
5740
  type: object
5704
5741
  properties:
5705
5742
  source:
5706
- oneOf:
5707
- - description: Create a specification from an URL
5708
- type: object
5709
- properties:
5710
- url:
5711
- $ref: "#/components/schemas/URL"
5712
- required:
5713
- - url
5714
- - description: Create a specification from a text string
5715
- type: object
5716
- properties:
5717
- text:
5718
- description: OpenAPI specification as text
5719
- type: string
5720
- minLength: 1
5721
- required:
5722
- - text
5743
+ $ref: "#/components/schemas/OpenAPISpecSource"
5723
5744
  required:
5724
5745
  - source
5725
5746
  responses:
@@ -5882,6 +5903,258 @@ paths:
5882
5903
  $ref: "#/components/responses/NotFoundError"
5883
5904
  default:
5884
5905
  $ref: "#/components/responses/UnexpectedError"
5906
+ "/orgs/{organizationId}/translations":
5907
+ get:
5908
+ operationId: listTranslationSettings
5909
+ summary: List all the translation settings in the organization
5910
+ tags:
5911
+ - translations
5912
+ security:
5913
+ - user: []
5914
+ parameters:
5915
+ - $ref: "#/components/parameters/organizationId"
5916
+ - $ref: "#/components/parameters/listPage"
5917
+ - $ref: "#/components/parameters/listLimit"
5918
+ responses:
5919
+ "200":
5920
+ description: OK
5921
+ content:
5922
+ application/json:
5923
+ schema:
5924
+ allOf:
5925
+ - $ref: "#/components/schemas/List"
5926
+ - type: object
5927
+ required:
5928
+ - items
5929
+ properties:
5930
+ items:
5931
+ type: array
5932
+ items:
5933
+ $ref: "#/components/schemas/TranslationSettings"
5934
+ default:
5935
+ $ref: "#/components/responses/UnexpectedError"
5936
+ post:
5937
+ operationId: createTranslationSettings
5938
+ summary: Create translation settings in the organization
5939
+ tags:
5940
+ - translations
5941
+ security:
5942
+ - user: []
5943
+ parameters:
5944
+ - $ref: "#/components/parameters/organizationId"
5945
+ requestBody:
5946
+ required: true
5947
+ content:
5948
+ application/json:
5949
+ schema:
5950
+ type: object
5951
+ properties:
5952
+ title:
5953
+ type: string
5954
+ description: The title of the translation settings
5955
+ required:
5956
+ - title
5957
+ responses:
5958
+ "201":
5959
+ description: Translation settings has been created
5960
+ content:
5961
+ application/json:
5962
+ schema:
5963
+ $ref: "#/components/schemas/TranslationSettings"
5964
+ "400":
5965
+ $ref: "#/components/responses/BadRequestError"
5966
+ default:
5967
+ $ref: "#/components/responses/UnexpectedError"
5968
+ "/orgs/{organizationId}/translations/{translationSettingsId}":
5969
+ get:
5970
+ operationId: getTranslationSettings
5971
+ summary: Get an organization translation settings by its id
5972
+ tags:
5973
+ - translations
5974
+ security:
5975
+ - user: []
5976
+ parameters:
5977
+ - $ref: "#/components/parameters/organizationId"
5978
+ - $ref: "#/components/parameters/translationSettingsId"
5979
+ responses:
5980
+ "200":
5981
+ description: OK
5982
+ content:
5983
+ application/json:
5984
+ schema:
5985
+ $ref: "#/components/schemas/TranslationSettings"
5986
+ "404":
5987
+ description: No matching translation settings found
5988
+ $ref: "#/components/responses/NotFoundError"
5989
+ default:
5990
+ $ref: "#/components/responses/UnexpectedError"
5991
+ put:
5992
+ operationId: updateTranslationSettings
5993
+ summary: Update an organization translation settings by its id
5994
+ tags:
5995
+ - translations
5996
+ security:
5997
+ - user: []
5998
+ parameters:
5999
+ - $ref: "#/components/parameters/organizationId"
6000
+ - $ref: "#/components/parameters/translationSettingsId"
6001
+ requestBody:
6002
+ required: true
6003
+ content:
6004
+ application/json:
6005
+ schema:
6006
+ type: object
6007
+ properties:
6008
+ title:
6009
+ type: string
6010
+ description: The title of the translation settings
6011
+ required:
6012
+ - title
6013
+ responses:
6014
+ "200":
6015
+ description: Translation settings has been updated
6016
+ content:
6017
+ application/json:
6018
+ schema:
6019
+ $ref: "#/components/schemas/TranslationSettings"
6020
+ "400":
6021
+ $ref: "#/components/responses/BadRequestError"
6022
+ default:
6023
+ $ref: "#/components/responses/UnexpectedError"
6024
+ delete:
6025
+ operationId: deleteTranslationSettings
6026
+ summary: Delete an organization translation settings by its id
6027
+ tags:
6028
+ - translations
6029
+ security:
6030
+ - user: []
6031
+ parameters:
6032
+ - $ref: "#/components/parameters/organizationId"
6033
+ - $ref: "#/components/parameters/translationSettingsId"
6034
+ responses:
6035
+ "205":
6036
+ description: Translation settings has been deleted
6037
+ default:
6038
+ $ref: "#/components/responses/UnexpectedError"
6039
+ "/orgs/{organizationId}/translations/{translationSettingsId}/languages":
6040
+ get:
6041
+ operationId: listTranslationLanguages
6042
+ summary: List languages in translation settings
6043
+ tags:
6044
+ - translations
6045
+ security:
6046
+ - user: []
6047
+ parameters:
6048
+ - $ref: "#/components/parameters/organizationId"
6049
+ - $ref: "#/components/parameters/translationSettingsId"
6050
+ - $ref: "#/components/parameters/listPage"
6051
+ - $ref: "#/components/parameters/listLimit"
6052
+ responses:
6053
+ "200":
6054
+ description: OK
6055
+ content:
6056
+ application/json:
6057
+ schema:
6058
+ allOf:
6059
+ - $ref: "#/components/schemas/List"
6060
+ - type: object
6061
+ required:
6062
+ - items
6063
+ properties:
6064
+ items:
6065
+ type: array
6066
+ items:
6067
+ $ref: "#/components/schemas/TranslationLanguageSettings"
6068
+ "404":
6069
+ description: No matching translation settings found
6070
+ $ref: "#/components/responses/NotFoundError"
6071
+ default:
6072
+ $ref: "#/components/responses/UnexpectedError"
6073
+ "/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}":
6074
+ get:
6075
+ operationId: getTranslationLanguage
6076
+ summary: Get language settings from translation
6077
+ tags:
6078
+ - translations
6079
+ security:
6080
+ - user: []
6081
+ parameters:
6082
+ - $ref: "#/components/parameters/organizationId"
6083
+ - $ref: "#/components/parameters/translationSettingsId"
6084
+ - $ref: "#/components/parameters/translationLanguage"
6085
+ responses:
6086
+ "200":
6087
+ description: OK
6088
+ content:
6089
+ application/json:
6090
+ schema:
6091
+ $ref: "#/components/schemas/TranslationLanguageSettings"
6092
+ "404":
6093
+ description: No matching translation language settings found
6094
+ $ref: "#/components/responses/NotFoundError"
6095
+ default:
6096
+ $ref: "#/components/responses/UnexpectedError"
6097
+ put:
6098
+ operationId: createOrUpdateTranslationLanguage
6099
+ summary: Create or update language settings in translation
6100
+ tags:
6101
+ - translations
6102
+ security:
6103
+ - user: []
6104
+ parameters:
6105
+ - $ref: "#/components/parameters/organizationId"
6106
+ - $ref: "#/components/parameters/translationSettingsId"
6107
+ - $ref: "#/components/parameters/translationLanguage"
6108
+ requestBody:
6109
+ required: true
6110
+ content:
6111
+ application/json:
6112
+ schema:
6113
+ type: object
6114
+ properties:
6115
+ instructions:
6116
+ $ref: "#/components/schemas/JSONDocument"
6117
+ required:
6118
+ - instructions
6119
+ responses:
6120
+ "200":
6121
+ description: Language settings successfully updated
6122
+ content:
6123
+ application/json:
6124
+ schema:
6125
+ $ref: "#/components/schemas/TranslationLanguageSettings"
6126
+ "201":
6127
+ description: Language settings successfully created
6128
+ content:
6129
+ application/json:
6130
+ schema:
6131
+ $ref: "#/components/schemas/TranslationLanguageSettings"
6132
+ "400":
6133
+ $ref: "#/components/responses/BadRequestError"
6134
+ "404":
6135
+ description: No matching translation language settings found
6136
+ $ref: "#/components/responses/NotFoundError"
6137
+ default:
6138
+ $ref: "#/components/responses/UnexpectedError"
6139
+ delete:
6140
+ operationId: deleteTranslationLanguage
6141
+ summary: Remove language from translation
6142
+ tags:
6143
+ - translations
6144
+ security:
6145
+ - user: []
6146
+ parameters:
6147
+ - $ref: "#/components/parameters/organizationId"
6148
+ - $ref: "#/components/parameters/translationSettingsId"
6149
+ - $ref: "#/components/parameters/translationLanguage"
6150
+ responses:
6151
+ "205":
6152
+ description: Language successfully removed
6153
+ "404":
6154
+ description: No matching translation language settings found
6155
+ $ref: "#/components/responses/NotFoundError"
6156
+ default:
6157
+ $ref: "#/components/responses/UnexpectedError"
5885
6158
  "/orgs/{organizationId}/storage/upload":
5886
6159
  post:
5887
6160
  operationId: generateStorageUploadURL
@@ -8241,6 +8514,32 @@ paths:
8241
8514
  description: Custom hostname has been removed
8242
8515
  default:
8243
8516
  $ref: "#/components/responses/UnexpectedError"
8517
+ "/email-domains/{emailDomain}/orgs":
8518
+ get:
8519
+ operationId: getOrganizationsForEmailDomain
8520
+ summary: Get all organizations by email domain.
8521
+ tags:
8522
+ - email-domains
8523
+ security:
8524
+ - user-internal: []
8525
+ parameters:
8526
+ - $ref: "#/components/parameters/emailDomain"
8527
+ responses:
8528
+ "200":
8529
+ description: OK
8530
+ content:
8531
+ application/json:
8532
+ schema:
8533
+ type: object
8534
+ properties:
8535
+ organizations:
8536
+ type: array
8537
+ items:
8538
+ $ref: "#/components/schemas/Organization"
8539
+ required:
8540
+ - organizaitons
8541
+ default:
8542
+ $ref: "#/components/responses/UnexpectedError"
8244
8543
  /ads/sites:
8245
8544
  get:
8246
8545
  operationId: adsListSites
@@ -8791,6 +9090,20 @@ components:
8791
9090
  description: The unique ID of the OpenAPI specification version
8792
9091
  schema:
8793
9092
  type: string
9093
+ translationSettingsId:
9094
+ name: translationSettingsId
9095
+ in: path
9096
+ required: true
9097
+ description: The unique id of the translation settings
9098
+ schema:
9099
+ type: string
9100
+ translationLanguage:
9101
+ name: translationLanguage
9102
+ in: path
9103
+ required: true
9104
+ description: The language of the translation
9105
+ schema:
9106
+ $ref: "#/components/schemas/TranslationLanguage"
8794
9107
  fontId:
8795
9108
  name: fontId
8796
9109
  in: path
@@ -8858,6 +9171,13 @@ components:
8858
9171
  description: The custom hostname, for example "docs.gitbook.com"
8859
9172
  schema:
8860
9173
  type: string
9174
+ emailDomain:
9175
+ name: emailDomain
9176
+ in: path
9177
+ required: true
9178
+ description: Email domain
9179
+ schema:
9180
+ type: string
8861
9181
  xGitBookPartnerKey:
8862
9182
  in: header
8863
9183
  name: X-GitBook-Partner-Key
@@ -11123,6 +11443,7 @@ components:
11123
11443
  items:
11124
11444
  oneOf:
11125
11445
  - $ref: "#/components/schemas/DocumentBlocksEssentials"
11446
+ - $ref: "#/components/schemas/DocumentBlockImages"
11126
11447
  - $ref: "#/components/schemas/DocumentBlockCode"
11127
11448
  - $ref: "#/components/schemas/DocumentBlockTable"
11128
11449
  - $ref: "#/components/schemas/DocumentBlockHint"
@@ -11496,6 +11817,10 @@ components:
11496
11817
  type: object
11497
11818
  description: Pointer to schemas in the OpenAPI spec.
11498
11819
  properties:
11820
+ grouped:
11821
+ type: boolean
11822
+ description: Whether the schemas are grouped or not.
11823
+ default: true
11499
11824
  schemas:
11500
11825
  type: array
11501
11826
  description: List of schemas name from the OpenAPI spec.
@@ -11804,7 +12129,7 @@ components:
11804
12129
  description: Defined when the page was generated by a computed content.
11805
12130
  properties:
11806
12131
  computed:
11807
- $ref: "#/components/schemas/ComputedContentSource"
12132
+ $ref: "#/components/schemas/ComputedContentSourceDocument"
11808
12133
  computedSeed:
11809
12134
  type: string
11810
12135
  description: Seed to use for the generation of IDs.
@@ -11818,97 +12143,276 @@ components:
11818
12143
  description: ID of the document with the page body. If undefined, the page is empty.
11819
12144
  RevisionPageLink:
11820
12145
  allOf:
11821
- - $ref: "#/components/schemas/RevisionPageBase"
12146
+ - $ref: "#/components/schemas/RevisionPageBase"
12147
+ - type: object
12148
+ properties:
12149
+ kind:
12150
+ type: string
12151
+ deprecated: true
12152
+ enum:
12153
+ - link
12154
+ type:
12155
+ type: string
12156
+ enum:
12157
+ - link
12158
+ target:
12159
+ $ref: "#/components/schemas/ContentRef"
12160
+ href:
12161
+ type: string
12162
+ hidden:
12163
+ type: boolean
12164
+ description: If true, the page is not displayed in the navigation, while still being accessible.
12165
+ default: false
12166
+ required:
12167
+ - kind
12168
+ - type
12169
+ - target
12170
+ ComputedContentDependencyOpenAPI:
12171
+ type: object
12172
+ properties:
12173
+ ref:
12174
+ $ref: "#/components/schemas/ContentRefOpenAPI"
12175
+ value:
12176
+ type: object
12177
+ nullable: true
12178
+ description: See `OpenAPI` schema component.
12179
+ properties:
12180
+ object:
12181
+ type: string
12182
+ enum:
12183
+ - openapi-spec
12184
+ id:
12185
+ type: string
12186
+ slug:
12187
+ type: string
12188
+ lastVersion:
12189
+ type: string
12190
+ required:
12191
+ - object
12192
+ - id
12193
+ - organizationId
12194
+ - slug
12195
+ required:
12196
+ - ref
12197
+ - value
12198
+ ComputedContentSourceOpenAPIBase:
12199
+ type: object
12200
+ description: Generic parameters from an OpenAPI computed content source
12201
+ properties:
12202
+ type:
12203
+ type: string
12204
+ enum:
12205
+ - builtin:openapi
12206
+ dependencies:
12207
+ type: object
12208
+ required:
12209
+ - spec
12210
+ properties:
12211
+ spec:
12212
+ oneOf:
12213
+ - type: object
12214
+ additionalProperties: false
12215
+ required:
12216
+ - ref
12217
+ properties:
12218
+ ref:
12219
+ $ref: "#/components/schemas/ContentRefOpenAPI"
12220
+ - $ref: "#/components/schemas/ComputedContentDependencyOpenAPI"
12221
+ required:
12222
+ - type
12223
+ - dependencies
12224
+ ComputedContentSourceRevisionOpenAPI:
12225
+ allOf:
12226
+ - $ref: "#/components/schemas/ComputedContentSourceOpenAPIBase"
12227
+ - type: object
12228
+ description: Parameters for an OpenAPI computed revision
12229
+ required:
12230
+ - props
12231
+ properties:
12232
+ props:
12233
+ type: object
12234
+ properties:
12235
+ models:
12236
+ type: boolean
12237
+ required:
12238
+ - models
12239
+ ComputedContentDependencySpace:
12240
+ type: object
12241
+ properties:
12242
+ ref:
12243
+ $ref: "#/components/schemas/ContentRefSpace"
12244
+ value:
12245
+ type: object
12246
+ nullable: true
12247
+ description: See `Space` schema component.
12248
+ properties:
12249
+ object:
12250
+ type: string
12251
+ enum:
12252
+ - space
12253
+ id:
12254
+ type: string
12255
+ revision:
12256
+ type: string
12257
+ required:
12258
+ - object
12259
+ - id
12260
+ - revision
12261
+ required:
12262
+ - ref
12263
+ - value
12264
+ TranslationLanguage:
12265
+ type: string
12266
+ enum:
12267
+ - en
12268
+ - fr
12269
+ - de
12270
+ - es
12271
+ - it
12272
+ - pt
12273
+ - ru
12274
+ - ja
12275
+ - zh
12276
+ - ko
12277
+ - ar
12278
+ - hi
12279
+ - nl
12280
+ - pl
12281
+ - tr
12282
+ - sv
12283
+ - no
12284
+ - da
12285
+ - fi
12286
+ - el
12287
+ - cs
12288
+ - hu
12289
+ - ro
12290
+ - th
12291
+ - vi
12292
+ - id
12293
+ - ms
12294
+ - he
12295
+ - uk
12296
+ - sk
12297
+ - bg
12298
+ - hr
12299
+ - lt
12300
+ - lv
12301
+ - et
12302
+ - sl
12303
+ TranslationLanguageRef:
12304
+ type: object
12305
+ properties:
12306
+ kind:
12307
+ type: string
12308
+ enum:
12309
+ - translation-language
12310
+ translationSettings:
12311
+ type: string
12312
+ description: ID of the translation settings
12313
+ language:
12314
+ $ref: "#/components/schemas/TranslationLanguage"
12315
+ required:
12316
+ - kind
12317
+ - translationSettings
12318
+ - language
12319
+ TranslationParameters:
12320
+ type: object
12321
+ description: Compiled parameters for the translation
12322
+ properties:
12323
+ instructions:
12324
+ type: string
12325
+ description: Instructions for the translation, formatted as markdown
12326
+ required:
12327
+ - instructions
12328
+ ComputedContentDependencyTranslation:
12329
+ type: object
12330
+ properties:
12331
+ ref:
12332
+ $ref: "#/components/schemas/TranslationLanguageRef"
12333
+ value:
12334
+ $ref: "#/components/schemas/TranslationParameters"
12335
+ required:
12336
+ - ref
12337
+ - value
12338
+ ComputedContentSourceTranslationBase:
12339
+ type: object
12340
+ description: Generic parameters from a translation computed content source
12341
+ properties:
12342
+ type:
12343
+ type: string
12344
+ enum:
12345
+ - builtin:translation
12346
+ dependencies:
12347
+ type: object
12348
+ required:
12349
+ - source
12350
+ - settings
12351
+ properties:
12352
+ source:
12353
+ oneOf:
12354
+ - type: object
12355
+ additionalProperties: false
12356
+ required:
12357
+ - ref
12358
+ properties:
12359
+ ref:
12360
+ $ref: "#/components/schemas/ContentRefSpace"
12361
+ - $ref: "#/components/schemas/ComputedContentDependencySpace"
12362
+ settings:
12363
+ oneOf:
12364
+ - type: object
12365
+ additionalProperties: false
12366
+ required:
12367
+ - ref
12368
+ properties:
12369
+ ref:
12370
+ $ref: "#/components/schemas/TranslationLanguageRef"
12371
+ - $ref: "#/components/schemas/ComputedContentDependencyTranslation"
12372
+ required:
12373
+ - type
12374
+ - dependencies
12375
+ ComputedContentSourceRevisionTranslation:
12376
+ allOf:
12377
+ - $ref: "#/components/schemas/ComputedContentSourceTranslationBase"
11822
12378
  - type: object
11823
- properties:
11824
- kind:
11825
- type: string
11826
- deprecated: true
11827
- enum:
11828
- - link
11829
- type:
11830
- type: string
11831
- enum:
11832
- - link
11833
- target:
11834
- $ref: "#/components/schemas/ContentRef"
11835
- href:
11836
- type: string
11837
- hidden:
11838
- type: boolean
11839
- description: If true, the page is not displayed in the navigation, while still being accessible.
11840
- default: false
11841
12379
  required:
11842
- - kind
11843
- - type
11844
- - target
11845
- ComputedContentDependencyRef:
11846
- oneOf:
11847
- - $ref: "#/components/schemas/ContentRefSpace"
11848
- - $ref: "#/components/schemas/ContentRefOpenAPI"
11849
- ComputedContentDependencyValue:
11850
- description: Dependency for a computation, with its resolved value.
11851
- oneOf:
11852
- - type: object
12380
+ - props
11853
12381
  properties:
11854
- ref:
11855
- $ref: "#/components/schemas/ContentRefSpace"
11856
- value:
12382
+ props:
11857
12383
  type: object
11858
- nullable: true
11859
- description: See `Space` schema component.
11860
- properties:
11861
- object:
11862
- type: string
11863
- enum:
11864
- - space
11865
- id:
11866
- type: string
11867
- revision:
11868
- type: string
11869
12384
  required:
11870
- - object
11871
- - id
11872
- - revision
11873
- required:
11874
- - ref
11875
- - value
11876
- - type: object
11877
- properties:
11878
- ref:
11879
- $ref: "#/components/schemas/ContentRefOpenAPI"
11880
- value:
11881
- type: object
11882
- nullable: true
11883
- description: See `OpenAPI` schema component.
12385
+ - sourceLanguage
11884
12386
  properties:
11885
- object:
11886
- type: string
11887
- enum:
11888
- - openapi-spec
11889
- id:
11890
- type: string
11891
- slug:
11892
- type: string
11893
- lastVersion:
11894
- type: string
11895
- required:
11896
- - object
11897
- - id
11898
- - slug
11899
- required:
11900
- - ref
11901
- - value
11902
- ComputedContentSource:
12387
+ sourceLanguage:
12388
+ $ref: "#/components/schemas/TranslationLanguage"
12389
+ ComputedContentDependency:
11903
12390
  type: object
11904
- description: Parameters for a computed content
12391
+ description: Dependency for a computation, before its resolution.
12392
+ additionalProperties: false
11905
12393
  properties:
11906
- integration:
11907
- type: string
11908
- description: Name of the integration
11909
- source:
12394
+ ref:
12395
+ oneOf:
12396
+ - $ref: "#/components/schemas/ContentRefSpace"
12397
+ - $ref: "#/components/schemas/ContentRefOpenAPI"
12398
+ - $ref: "#/components/schemas/TranslationLanguageRef"
12399
+ required:
12400
+ - ref
12401
+ ComputedContentDependencyResolved:
12402
+ description: Dependency for a computation, with its resolved value.
12403
+ oneOf:
12404
+ - $ref: "#/components/schemas/ComputedContentDependencySpace"
12405
+ - $ref: "#/components/schemas/ComputedContentDependencyOpenAPI"
12406
+ - $ref: "#/components/schemas/ComputedContentDependencyTranslation"
12407
+ ComputedContentSourceIntegration:
12408
+ type: object
12409
+ description: Parameters for a computed content managed by an integration
12410
+ properties:
12411
+ type:
11910
12412
  type: string
11911
- description: Identifier of the source used for computation
12413
+ description: Type of the computed source
12414
+ pattern: ^integration:[^:]+:[^:]+$
12415
+ x-typescript: "`integration:${string}:${string}`"
11912
12416
  props:
11913
12417
  description: Properties to be passed to the computation
11914
12418
  $ref: "#/components/schemas/PlainObject"
@@ -11920,17 +12424,16 @@ components:
11920
12424
  When the dependency's targets are updated, the computation will be updated.
11921
12425
  additionalProperties:
11922
12426
  anyOf:
11923
- - type: object
11924
- properties:
11925
- ref:
11926
- $ref: "#/components/schemas/ComputedContentDependencyRef"
11927
- required:
11928
- - ref
11929
- - $ref: "#/components/schemas/ComputedContentDependencyValue"
12427
+ - $ref: "#/components/schemas/ComputedContentDependency"
12428
+ - $ref: "#/components/schemas/ComputedContentDependencyResolved"
11930
12429
  required:
11931
- - integration
11932
- - source
12430
+ - type
11933
12431
  - props
12432
+ ComputedContentSourceRevision:
12433
+ oneOf:
12434
+ - $ref: "#/components/schemas/ComputedContentSourceRevisionOpenAPI"
12435
+ - $ref: "#/components/schemas/ComputedContentSourceRevisionTranslation"
12436
+ - $ref: "#/components/schemas/ComputedContentSourceIntegration"
11934
12437
  RevisionPageComputed:
11935
12438
  allOf:
11936
12439
  - $ref: "#/components/schemas/RevisionPageBase"
@@ -11941,7 +12444,7 @@ components:
11941
12444
  enum:
11942
12445
  - computed
11943
12446
  computed:
11944
- $ref: "#/components/schemas/ComputedContentSource"
12447
+ $ref: "#/components/schemas/ComputedContentSourceRevision"
11945
12448
  required:
11946
12449
  - type
11947
12450
  - computed
@@ -11997,6 +12500,59 @@ components:
11997
12500
  type: number
11998
12501
  required:
11999
12502
  - yPos
12503
+ ComputedContentSourceDocumentOpenAPI:
12504
+ allOf:
12505
+ - $ref: "#/components/schemas/ComputedContentSourceOpenAPIBase"
12506
+ - type: object
12507
+ description: Parameters for an OpenAPI computed document
12508
+ required:
12509
+ - props
12510
+ properties:
12511
+ props:
12512
+ oneOf:
12513
+ - type: object
12514
+ required:
12515
+ - doc
12516
+ properties:
12517
+ doc:
12518
+ type: string
12519
+ enum:
12520
+ - models
12521
+ - type: object
12522
+ required:
12523
+ - doc
12524
+ - page
12525
+ properties:
12526
+ doc:
12527
+ type: string
12528
+ enum:
12529
+ - operations
12530
+ - info
12531
+ page:
12532
+ type: string
12533
+ minLength: 1
12534
+ ComputedContentSourceDocumentTranslation:
12535
+ allOf:
12536
+ - $ref: "#/components/schemas/ComputedContentSourceTranslationBase"
12537
+ - type: object
12538
+ required:
12539
+ - props
12540
+ properties:
12541
+ props:
12542
+ type: object
12543
+ required:
12544
+ - document
12545
+ - sourceLanguage
12546
+ properties:
12547
+ document:
12548
+ type: string
12549
+ sourceLanguage:
12550
+ $ref: "#/components/schemas/TranslationLanguage"
12551
+ ComputedContentSourceDocument:
12552
+ oneOf:
12553
+ - $ref: "#/components/schemas/ComputedContentSourceDocumentOpenAPI"
12554
+ - $ref: "#/components/schemas/ComputedContentSourceDocumentTranslation"
12555
+ - $ref: "#/components/schemas/ComputedContentSourceIntegration"
12000
12556
  RevisionPageGroup:
12001
12557
  allOf:
12002
12558
  - $ref: "#/components/schemas/RevisionPageBase"
@@ -14130,6 +14686,14 @@ components:
14130
14686
  - string
14131
14687
  default:
14132
14688
  type: string
14689
+ completion_url:
14690
+ description: If specified, this URL will be called to fetch suggestions for auto-completing the property.
14691
+ type: string
14692
+ enum:
14693
+ type: array
14694
+ description: If specified, only values from this array are allowed as inputs.
14695
+ items:
14696
+ type: string
14133
14697
  required:
14134
14698
  - type
14135
14699
  - type: object
@@ -15255,7 +15819,7 @@ components:
15255
15819
  description: Dependencies of the computation.
15256
15820
  type: object
15257
15821
  additionalProperties:
15258
- $ref: "#/components/schemas/ComputedContentDependencyValue"
15822
+ $ref: "#/components/schemas/ComputedContentDependencyResolved"
15259
15823
  required:
15260
15824
  - sourceId
15261
15825
  - props
@@ -17659,6 +18223,24 @@ components:
17659
18223
  required:
17660
18224
  - type
17661
18225
  - answer
18226
+ OpenAPISpecSource:
18227
+ oneOf:
18228
+ - description: Create a specification from an URL
18229
+ type: object
18230
+ properties:
18231
+ url:
18232
+ $ref: "#/components/schemas/URL"
18233
+ required:
18234
+ - url
18235
+ - description: Create a specification from a text string
18236
+ type: object
18237
+ properties:
18238
+ text:
18239
+ description: OpenAPI specification as text
18240
+ type: string
18241
+ minLength: 1
18242
+ required:
18243
+ - text
17662
18244
  OpenAPISpecVersion:
17663
18245
  type: object
17664
18246
  properties:
@@ -17706,6 +18288,86 @@ components:
17706
18288
  required:
17707
18289
  - filesystem
17708
18290
  - url
18291
+ TranslationTitle:
18292
+ type: string
18293
+ description: Title of the translation settings
18294
+ minLength: 1
18295
+ maxLength: 100
18296
+ TranslationSettings:
18297
+ type: object
18298
+ properties:
18299
+ object:
18300
+ type: string
18301
+ enum:
18302
+ - translation-settings
18303
+ id:
18304
+ type: string
18305
+ description: Unique identifier of the translation settings
18306
+ title:
18307
+ $ref: "#/components/schemas/TranslationTitle"
18308
+ languages:
18309
+ type: array
18310
+ items:
18311
+ $ref: "#/components/schemas/TranslationLanguage"
18312
+ createdAt:
18313
+ type: string
18314
+ format: date-time
18315
+ updatedAt:
18316
+ type: string
18317
+ format: date-time
18318
+ permissions:
18319
+ type: object
18320
+ properties:
18321
+ edit:
18322
+ type: boolean
18323
+ description: Whether the user can edit the object
18324
+ required:
18325
+ - edit
18326
+ urls:
18327
+ type: object
18328
+ description: URLs associated with the object
18329
+ properties:
18330
+ location:
18331
+ type: string
18332
+ description: URL of the translation settings in the API
18333
+ format: uri
18334
+ required:
18335
+ - location
18336
+ required:
18337
+ - object
18338
+ - id
18339
+ - title
18340
+ - languages
18341
+ - createdAt
18342
+ - updatedAt
18343
+ - permissions
18344
+ - urls
18345
+ TranslationLanguageSettings:
18346
+ type: object
18347
+ properties:
18348
+ object:
18349
+ type: string
18350
+ enum:
18351
+ - translation-language-settings
18352
+ language:
18353
+ $ref: "#/components/schemas/TranslationLanguage"
18354
+ instructions:
18355
+ $ref: "#/components/schemas/JSONDocument"
18356
+ urls:
18357
+ type: object
18358
+ description: URLs associated with the object
18359
+ properties:
18360
+ location:
18361
+ type: string
18362
+ description: URL of the translation language settings in the API
18363
+ format: uri
18364
+ required:
18365
+ - location
18366
+ required:
18367
+ - object
18368
+ - language
18369
+ - instructions
18370
+ - urls
17709
18371
  StorageFileMetadata:
17710
18372
  type: object
17711
18373
  properties:
@@ -18256,6 +18918,19 @@ components:
18256
18918
  description: If true, AI search is enabled
18257
18919
  required:
18258
18920
  - enabled
18921
+ ai:
18922
+ type: object
18923
+ properties:
18924
+ pageLinkSummaries:
18925
+ type: object
18926
+ properties:
18927
+ enabled:
18928
+ type: boolean
18929
+ description: If true, AI page links summaries is enabled
18930
+ required:
18931
+ - enabled
18932
+ required:
18933
+ - pageLinkSummaries
18259
18934
  advancedCustomization:
18260
18935
  type: object
18261
18936
  properties:
@@ -21004,14 +21679,10 @@ components:
21004
21679
  - object
21005
21680
  - id
21006
21681
  - privateKey
21007
- ComputedContentDependency:
21008
- type: object
21009
- description: Dependency for a computation, before its resolution.
21010
- properties:
21011
- ref:
21012
- $ref: "#/components/schemas/ComputedContentDependencyRef"
21013
- required:
21014
- - ref
21682
+ ComputedContentSource:
21683
+ oneOf:
21684
+ - $ref: "#/components/schemas/ComputedContentSourceDocument"
21685
+ - $ref: "#/components/schemas/ComputedContentSourceRevision"
21015
21686
  InputPageBase:
21016
21687
  allOf:
21017
21688
  - type: object
@@ -21064,7 +21735,7 @@ components:
21064
21735
  - $ref: "#/components/schemas/InputPageLink"
21065
21736
  - $ref: "#/components/schemas/InputPageComputed"
21066
21737
  computed:
21067
- $ref: "#/components/schemas/ComputedContentSource"
21738
+ $ref: "#/components/schemas/ComputedContentSourceDocument"
21068
21739
  required:
21069
21740
  - type
21070
21741
  InputPageLink:
@@ -21091,7 +21762,7 @@ components:
21091
21762
  enum:
21092
21763
  - computed
21093
21764
  computed:
21094
- $ref: "#/components/schemas/ComputedContentSource"
21765
+ $ref: "#/components/schemas/ComputedContentSourceRevision"
21095
21766
  required:
21096
21767
  - type
21097
21768
  - computed
@@ -21870,6 +22541,19 @@ components:
21870
22541
  required:
21871
22542
  - channel
21872
22543
  - organization
22544
+ OrganizationTranslationSettingsChannel:
22545
+ type: object
22546
+ description: Subscription channel for changes in translation settings in an organization.
22547
+ properties:
22548
+ channel:
22549
+ type: string
22550
+ enum:
22551
+ - organization-translation-settings
22552
+ organization:
22553
+ type: string
22554
+ required:
22555
+ - channel
22556
+ - organization
21873
22557
  OrganizationCustomFontsChannel:
21874
22558
  type: object
21875
22559
  description: Subscription channel for changes in custom fonts in an organization.
@@ -22270,6 +22954,18 @@ components:
22270
22954
  required:
22271
22955
  - channel
22272
22956
  - subdomain
22957
+ TranslationSettingsChannel:
22958
+ type: object
22959
+ properties:
22960
+ channel:
22961
+ type: string
22962
+ enum:
22963
+ - translation-settings
22964
+ translation:
22965
+ type: string
22966
+ required:
22967
+ - channel
22968
+ - translation
22273
22969
  SubscriptionChannel:
22274
22970
  description: Channel to subscribe to for realtime updates.
22275
22971
  oneOf:
@@ -22307,6 +23003,7 @@ components:
22307
23003
  - $ref: "#/components/schemas/OrganizationSitesChannel"
22308
23004
  - $ref: "#/components/schemas/OrganizationAIIndexationChannel"
22309
23005
  - $ref: "#/components/schemas/OrganizationOpenAPISpecsChannel"
23006
+ - $ref: "#/components/schemas/OrganizationTranslationSettingsChannel"
22310
23007
  - $ref: "#/components/schemas/OrganizationCustomFontsChannel"
22311
23008
  - $ref: "#/components/schemas/SpaceCommentsChannel"
22312
23009
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"
@@ -22336,6 +23033,7 @@ components:
22336
23033
  - $ref: "#/components/schemas/GitSyncOperationChannel"
22337
23034
  - $ref: "#/components/schemas/OpenAPISpecChannel"
22338
23035
  - $ref: "#/components/schemas/SubdomainChannel"
23036
+ - $ref: "#/components/schemas/TranslationSettingsChannel"
22339
23037
  discriminator:
22340
23038
  propertyName: channel
22341
23039
  GitSyncOperationChannelData: