@gitbook/api 0.105.0 → 0.106.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
@@ -1037,7 +1037,7 @@ paths:
1037
1037
  type: object
1038
1038
  properties:
1039
1039
  source:
1040
- $ref: "#/components/schemas/ComputedContentSource"
1040
+ $ref: "#/components/schemas/ComputedContentSourceDocument"
1041
1041
  seed:
1042
1042
  type: string
1043
1043
  description: Seed to use for the generation of IDs.
@@ -1071,7 +1071,7 @@ paths:
1071
1071
  type: object
1072
1072
  properties:
1073
1073
  source:
1074
- $ref: "#/components/schemas/ComputedContentSource"
1074
+ $ref: "#/components/schemas/ComputedContentSourceRevision"
1075
1075
  seed:
1076
1076
  type: string
1077
1077
  description: Seed to use for the generation of IDs.
@@ -5662,6 +5662,40 @@ paths:
5662
5662
  $ref: "#/components/schemas/OpenAPISpec"
5663
5663
  default:
5664
5664
  $ref: "#/components/responses/UnexpectedError"
5665
+ post:
5666
+ operationId: createOpenAPISpec
5667
+ summary: Create an organization OpenAPI specification
5668
+ tags:
5669
+ - openapi
5670
+ security:
5671
+ - user: []
5672
+ parameters:
5673
+ - $ref: "#/components/parameters/organizationId"
5674
+ requestBody:
5675
+ required: true
5676
+ content:
5677
+ application/json:
5678
+ schema:
5679
+ type: object
5680
+ properties:
5681
+ slug:
5682
+ $ref: "#/components/schemas/OpenAPISpecSlug"
5683
+ source:
5684
+ $ref: "#/components/schemas/OpenAPISpecSource"
5685
+ required:
5686
+ - source
5687
+ - slug
5688
+ responses:
5689
+ "201":
5690
+ description: OpenAPI specification has been created
5691
+ content:
5692
+ application/json:
5693
+ schema:
5694
+ $ref: "#/components/schemas/OpenAPISpec"
5695
+ "400":
5696
+ $ref: "#/components/responses/BadRequestError"
5697
+ default:
5698
+ $ref: "#/components/responses/UnexpectedError"
5665
5699
  "/orgs/{organizationId}/openapi/{specSlug}":
5666
5700
  get:
5667
5701
  operationId: getOpenAPISpecBySlug
@@ -5703,23 +5737,7 @@ paths:
5703
5737
  type: object
5704
5738
  properties:
5705
5739
  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
5740
+ $ref: "#/components/schemas/OpenAPISpecSource"
5723
5741
  required:
5724
5742
  - source
5725
5743
  responses:
@@ -5882,6 +5900,258 @@ paths:
5882
5900
  $ref: "#/components/responses/NotFoundError"
5883
5901
  default:
5884
5902
  $ref: "#/components/responses/UnexpectedError"
5903
+ "/orgs/{organizationId}/translations":
5904
+ get:
5905
+ operationId: listTranslationSettings
5906
+ summary: List all the translation settings in the organization
5907
+ tags:
5908
+ - translations
5909
+ security:
5910
+ - user: []
5911
+ parameters:
5912
+ - $ref: "#/components/parameters/organizationId"
5913
+ - $ref: "#/components/parameters/listPage"
5914
+ - $ref: "#/components/parameters/listLimit"
5915
+ responses:
5916
+ "200":
5917
+ description: OK
5918
+ content:
5919
+ application/json:
5920
+ schema:
5921
+ allOf:
5922
+ - $ref: "#/components/schemas/List"
5923
+ - type: object
5924
+ required:
5925
+ - items
5926
+ properties:
5927
+ items:
5928
+ type: array
5929
+ items:
5930
+ $ref: "#/components/schemas/TranslationSettings"
5931
+ default:
5932
+ $ref: "#/components/responses/UnexpectedError"
5933
+ post:
5934
+ operationId: createTranslationSettings
5935
+ summary: Create translation settings in the organization
5936
+ tags:
5937
+ - translations
5938
+ security:
5939
+ - user: []
5940
+ parameters:
5941
+ - $ref: "#/components/parameters/organizationId"
5942
+ requestBody:
5943
+ required: true
5944
+ content:
5945
+ application/json:
5946
+ schema:
5947
+ type: object
5948
+ properties:
5949
+ title:
5950
+ type: string
5951
+ description: The title of the translation settings
5952
+ required:
5953
+ - title
5954
+ responses:
5955
+ "201":
5956
+ description: Translation settings has been created
5957
+ content:
5958
+ application/json:
5959
+ schema:
5960
+ $ref: "#/components/schemas/TranslationSettings"
5961
+ "400":
5962
+ $ref: "#/components/responses/BadRequestError"
5963
+ default:
5964
+ $ref: "#/components/responses/UnexpectedError"
5965
+ "/orgs/{organizationId}/translations/{translationSettingsId}":
5966
+ get:
5967
+ operationId: getTranslationSettings
5968
+ summary: Get an organization translation settings by its id
5969
+ tags:
5970
+ - translations
5971
+ security:
5972
+ - user: []
5973
+ parameters:
5974
+ - $ref: "#/components/parameters/organizationId"
5975
+ - $ref: "#/components/parameters/translationSettingsId"
5976
+ responses:
5977
+ "200":
5978
+ description: OK
5979
+ content:
5980
+ application/json:
5981
+ schema:
5982
+ $ref: "#/components/schemas/TranslationSettings"
5983
+ "404":
5984
+ description: No matching translation settings found
5985
+ $ref: "#/components/responses/NotFoundError"
5986
+ default:
5987
+ $ref: "#/components/responses/UnexpectedError"
5988
+ put:
5989
+ operationId: updateTranslationSettings
5990
+ summary: Update an organization translation settings by its id
5991
+ tags:
5992
+ - translations
5993
+ security:
5994
+ - user: []
5995
+ parameters:
5996
+ - $ref: "#/components/parameters/organizationId"
5997
+ - $ref: "#/components/parameters/translationSettingsId"
5998
+ requestBody:
5999
+ required: true
6000
+ content:
6001
+ application/json:
6002
+ schema:
6003
+ type: object
6004
+ properties:
6005
+ title:
6006
+ type: string
6007
+ description: The title of the translation settings
6008
+ required:
6009
+ - title
6010
+ responses:
6011
+ "200":
6012
+ description: Translation settings has been updated
6013
+ content:
6014
+ application/json:
6015
+ schema:
6016
+ $ref: "#/components/schemas/TranslationSettings"
6017
+ "400":
6018
+ $ref: "#/components/responses/BadRequestError"
6019
+ default:
6020
+ $ref: "#/components/responses/UnexpectedError"
6021
+ delete:
6022
+ operationId: deleteTranslationSettings
6023
+ summary: Delete an organization translation settings by its id
6024
+ tags:
6025
+ - translations
6026
+ security:
6027
+ - user: []
6028
+ parameters:
6029
+ - $ref: "#/components/parameters/organizationId"
6030
+ - $ref: "#/components/parameters/translationSettingsId"
6031
+ responses:
6032
+ "205":
6033
+ description: Translation settings has been deleted
6034
+ default:
6035
+ $ref: "#/components/responses/UnexpectedError"
6036
+ "/orgs/{organizationId}/translations/{translationSettingsId}/languages":
6037
+ get:
6038
+ operationId: listTranslationLanguages
6039
+ summary: List languages in translation settings
6040
+ tags:
6041
+ - translations
6042
+ security:
6043
+ - user: []
6044
+ parameters:
6045
+ - $ref: "#/components/parameters/organizationId"
6046
+ - $ref: "#/components/parameters/translationSettingsId"
6047
+ - $ref: "#/components/parameters/listPage"
6048
+ - $ref: "#/components/parameters/listLimit"
6049
+ responses:
6050
+ "200":
6051
+ description: OK
6052
+ content:
6053
+ application/json:
6054
+ schema:
6055
+ allOf:
6056
+ - $ref: "#/components/schemas/List"
6057
+ - type: object
6058
+ required:
6059
+ - items
6060
+ properties:
6061
+ items:
6062
+ type: array
6063
+ items:
6064
+ $ref: "#/components/schemas/TranslationLanguageSettings"
6065
+ "404":
6066
+ description: No matching translation settings found
6067
+ $ref: "#/components/responses/NotFoundError"
6068
+ default:
6069
+ $ref: "#/components/responses/UnexpectedError"
6070
+ "/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage}":
6071
+ get:
6072
+ operationId: getTranslationLanguage
6073
+ summary: Get language settings from translation
6074
+ tags:
6075
+ - translations
6076
+ security:
6077
+ - user: []
6078
+ parameters:
6079
+ - $ref: "#/components/parameters/organizationId"
6080
+ - $ref: "#/components/parameters/translationSettingsId"
6081
+ - $ref: "#/components/parameters/translationLanguage"
6082
+ responses:
6083
+ "200":
6084
+ description: OK
6085
+ content:
6086
+ application/json:
6087
+ schema:
6088
+ $ref: "#/components/schemas/TranslationLanguageSettings"
6089
+ "404":
6090
+ description: No matching translation language settings found
6091
+ $ref: "#/components/responses/NotFoundError"
6092
+ default:
6093
+ $ref: "#/components/responses/UnexpectedError"
6094
+ put:
6095
+ operationId: createOrUpdateTranslationLanguage
6096
+ summary: Create or update language settings in translation
6097
+ tags:
6098
+ - translations
6099
+ security:
6100
+ - user: []
6101
+ parameters:
6102
+ - $ref: "#/components/parameters/organizationId"
6103
+ - $ref: "#/components/parameters/translationSettingsId"
6104
+ - $ref: "#/components/parameters/translationLanguage"
6105
+ requestBody:
6106
+ required: true
6107
+ content:
6108
+ application/json:
6109
+ schema:
6110
+ type: object
6111
+ properties:
6112
+ instructions:
6113
+ $ref: "#/components/schemas/JSONDocument"
6114
+ required:
6115
+ - instructions
6116
+ responses:
6117
+ "200":
6118
+ description: Language settings successfully updated
6119
+ content:
6120
+ application/json:
6121
+ schema:
6122
+ $ref: "#/components/schemas/TranslationLanguageSettings"
6123
+ "201":
6124
+ description: Language settings successfully created
6125
+ content:
6126
+ application/json:
6127
+ schema:
6128
+ $ref: "#/components/schemas/TranslationLanguageSettings"
6129
+ "400":
6130
+ $ref: "#/components/responses/BadRequestError"
6131
+ "404":
6132
+ description: No matching translation language settings found
6133
+ $ref: "#/components/responses/NotFoundError"
6134
+ default:
6135
+ $ref: "#/components/responses/UnexpectedError"
6136
+ delete:
6137
+ operationId: deleteTranslationLanguage
6138
+ summary: Remove language from translation
6139
+ tags:
6140
+ - translations
6141
+ security:
6142
+ - user: []
6143
+ parameters:
6144
+ - $ref: "#/components/parameters/organizationId"
6145
+ - $ref: "#/components/parameters/translationSettingsId"
6146
+ - $ref: "#/components/parameters/translationLanguage"
6147
+ responses:
6148
+ "205":
6149
+ description: Language successfully removed
6150
+ "404":
6151
+ description: No matching translation language settings found
6152
+ $ref: "#/components/responses/NotFoundError"
6153
+ default:
6154
+ $ref: "#/components/responses/UnexpectedError"
5885
6155
  "/orgs/{organizationId}/storage/upload":
5886
6156
  post:
5887
6157
  operationId: generateStorageUploadURL
@@ -8791,6 +9061,20 @@ components:
8791
9061
  description: The unique ID of the OpenAPI specification version
8792
9062
  schema:
8793
9063
  type: string
9064
+ translationSettingsId:
9065
+ name: translationSettingsId
9066
+ in: path
9067
+ required: true
9068
+ description: The unique id of the translation settings
9069
+ schema:
9070
+ type: string
9071
+ translationLanguage:
9072
+ name: translationLanguage
9073
+ in: path
9074
+ required: true
9075
+ description: The language of the translation
9076
+ schema:
9077
+ $ref: "#/components/schemas/TranslationLanguage"
8794
9078
  fontId:
8795
9079
  name: fontId
8796
9080
  in: path
@@ -11496,6 +11780,10 @@ components:
11496
11780
  type: object
11497
11781
  description: Pointer to schemas in the OpenAPI spec.
11498
11782
  properties:
11783
+ grouped:
11784
+ type: boolean
11785
+ description: Whether the schemas are grouped or not.
11786
+ default: true
11499
11787
  schemas:
11500
11788
  type: array
11501
11789
  description: List of schemas name from the OpenAPI spec.
@@ -11792,123 +12080,302 @@ components:
11792
12080
  description: If true, the page is not indexable by search engine robots.
11793
12081
  default: false
11794
12082
  required:
11795
- - kind
11796
- - type
11797
- - urls
11798
- - slug
11799
- - path
11800
- - pages
11801
- - layout
11802
- - oneOf:
11803
- - type: object
11804
- description: Defined when the page was generated by a computed content.
11805
- properties:
11806
- computed:
11807
- $ref: "#/components/schemas/ComputedContentSource"
11808
- computedSeed:
11809
- type: string
11810
- description: Seed to use for the generation of IDs.
11811
- required:
11812
- - computed
11813
- - computedSeed
11814
- - type: object
11815
- properties:
11816
- documentId:
11817
- type: string
11818
- description: ID of the document with the page body. If undefined, the page is empty.
11819
- RevisionPageLink:
12083
+ - kind
12084
+ - type
12085
+ - urls
12086
+ - slug
12087
+ - path
12088
+ - pages
12089
+ - layout
12090
+ - oneOf:
12091
+ - type: object
12092
+ description: Defined when the page was generated by a computed content.
12093
+ properties:
12094
+ computed:
12095
+ $ref: "#/components/schemas/ComputedContentSourceDocument"
12096
+ computedSeed:
12097
+ type: string
12098
+ description: Seed to use for the generation of IDs.
12099
+ required:
12100
+ - computed
12101
+ - computedSeed
12102
+ - type: object
12103
+ properties:
12104
+ documentId:
12105
+ type: string
12106
+ description: ID of the document with the page body. If undefined, the page is empty.
12107
+ RevisionPageLink:
12108
+ allOf:
12109
+ - $ref: "#/components/schemas/RevisionPageBase"
12110
+ - type: object
12111
+ properties:
12112
+ kind:
12113
+ type: string
12114
+ deprecated: true
12115
+ enum:
12116
+ - link
12117
+ type:
12118
+ type: string
12119
+ enum:
12120
+ - link
12121
+ target:
12122
+ $ref: "#/components/schemas/ContentRef"
12123
+ href:
12124
+ type: string
12125
+ hidden:
12126
+ type: boolean
12127
+ description: If true, the page is not displayed in the navigation, while still being accessible.
12128
+ default: false
12129
+ required:
12130
+ - kind
12131
+ - type
12132
+ - target
12133
+ ComputedContentDependencyOpenAPI:
12134
+ type: object
12135
+ properties:
12136
+ ref:
12137
+ $ref: "#/components/schemas/ContentRefOpenAPI"
12138
+ value:
12139
+ type: object
12140
+ nullable: true
12141
+ description: See `OpenAPI` schema component.
12142
+ properties:
12143
+ object:
12144
+ type: string
12145
+ enum:
12146
+ - openapi-spec
12147
+ id:
12148
+ type: string
12149
+ slug:
12150
+ type: string
12151
+ lastVersion:
12152
+ type: string
12153
+ required:
12154
+ - object
12155
+ - id
12156
+ - organizationId
12157
+ - slug
12158
+ required:
12159
+ - ref
12160
+ - value
12161
+ ComputedContentSourceOpenAPIBase:
12162
+ type: object
12163
+ description: Generic parameters from an OpenAPI computed content source
12164
+ properties:
12165
+ type:
12166
+ type: string
12167
+ enum:
12168
+ - builtin:openapi
12169
+ dependencies:
12170
+ type: object
12171
+ required:
12172
+ - spec
12173
+ properties:
12174
+ spec:
12175
+ oneOf:
12176
+ - type: object
12177
+ additionalProperties: false
12178
+ required:
12179
+ - ref
12180
+ properties:
12181
+ ref:
12182
+ $ref: "#/components/schemas/ContentRefOpenAPI"
12183
+ - $ref: "#/components/schemas/ComputedContentDependencyOpenAPI"
12184
+ required:
12185
+ - type
12186
+ - dependencies
12187
+ ComputedContentSourceRevisionOpenAPI:
12188
+ allOf:
12189
+ - $ref: "#/components/schemas/ComputedContentSourceOpenAPIBase"
12190
+ - type: object
12191
+ description: Parameters for an OpenAPI computed revision
12192
+ required:
12193
+ - props
12194
+ properties:
12195
+ props:
12196
+ type: object
12197
+ properties:
12198
+ models:
12199
+ type: boolean
12200
+ required:
12201
+ - models
12202
+ ComputedContentDependencySpace:
12203
+ type: object
12204
+ properties:
12205
+ ref:
12206
+ $ref: "#/components/schemas/ContentRefSpace"
12207
+ value:
12208
+ type: object
12209
+ nullable: true
12210
+ description: See `Space` schema component.
12211
+ properties:
12212
+ object:
12213
+ type: string
12214
+ enum:
12215
+ - space
12216
+ id:
12217
+ type: string
12218
+ revision:
12219
+ type: string
12220
+ required:
12221
+ - object
12222
+ - id
12223
+ - revision
12224
+ required:
12225
+ - ref
12226
+ - value
12227
+ TranslationLanguage:
12228
+ type: string
12229
+ enum:
12230
+ - en
12231
+ - fr
12232
+ - de
12233
+ - es
12234
+ - it
12235
+ - pt
12236
+ - ru
12237
+ - ja
12238
+ - zh
12239
+ - ko
12240
+ - ar
12241
+ - hi
12242
+ - nl
12243
+ - pl
12244
+ - tr
12245
+ - sv
12246
+ - no
12247
+ - da
12248
+ - fi
12249
+ - el
12250
+ - cs
12251
+ - hu
12252
+ - ro
12253
+ - th
12254
+ - vi
12255
+ - id
12256
+ - ms
12257
+ - he
12258
+ - uk
12259
+ - sk
12260
+ - bg
12261
+ - hr
12262
+ - lt
12263
+ - lv
12264
+ - et
12265
+ - sl
12266
+ TranslationLanguageRef:
12267
+ type: object
12268
+ properties:
12269
+ kind:
12270
+ type: string
12271
+ enum:
12272
+ - translation-language
12273
+ translationSettings:
12274
+ type: string
12275
+ description: ID of the translation settings
12276
+ language:
12277
+ $ref: "#/components/schemas/TranslationLanguage"
12278
+ required:
12279
+ - kind
12280
+ - translationSettings
12281
+ - language
12282
+ TranslationParameters:
12283
+ type: object
12284
+ description: Compiled parameters for the translation
12285
+ properties:
12286
+ instructions:
12287
+ type: string
12288
+ description: Instructions for the translation, formatted as markdown
12289
+ required:
12290
+ - instructions
12291
+ ComputedContentDependencyTranslation:
12292
+ type: object
12293
+ properties:
12294
+ ref:
12295
+ $ref: "#/components/schemas/TranslationLanguageRef"
12296
+ value:
12297
+ $ref: "#/components/schemas/TranslationParameters"
12298
+ required:
12299
+ - ref
12300
+ - value
12301
+ ComputedContentSourceTranslationBase:
12302
+ type: object
12303
+ description: Generic parameters from a translation computed content source
12304
+ properties:
12305
+ type:
12306
+ type: string
12307
+ enum:
12308
+ - builtin:translation
12309
+ dependencies:
12310
+ type: object
12311
+ required:
12312
+ - source
12313
+ - settings
12314
+ properties:
12315
+ source:
12316
+ oneOf:
12317
+ - type: object
12318
+ additionalProperties: false
12319
+ required:
12320
+ - ref
12321
+ properties:
12322
+ ref:
12323
+ $ref: "#/components/schemas/ContentRefSpace"
12324
+ - $ref: "#/components/schemas/ComputedContentDependencySpace"
12325
+ settings:
12326
+ oneOf:
12327
+ - type: object
12328
+ additionalProperties: false
12329
+ required:
12330
+ - ref
12331
+ properties:
12332
+ ref:
12333
+ $ref: "#/components/schemas/TranslationLanguageRef"
12334
+ - $ref: "#/components/schemas/ComputedContentDependencyTranslation"
12335
+ required:
12336
+ - type
12337
+ - dependencies
12338
+ ComputedContentSourceRevisionTranslation:
11820
12339
  allOf:
11821
- - $ref: "#/components/schemas/RevisionPageBase"
12340
+ - $ref: "#/components/schemas/ComputedContentSourceTranslationBase"
11822
12341
  - 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
12342
  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
12343
+ - props
11853
12344
  properties:
11854
- ref:
11855
- $ref: "#/components/schemas/ContentRefSpace"
11856
- value:
12345
+ props:
11857
12346
  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
12347
  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.
12348
+ - sourceLanguage
11884
12349
  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:
12350
+ sourceLanguage:
12351
+ $ref: "#/components/schemas/TranslationLanguage"
12352
+ ComputedContentDependency:
11903
12353
  type: object
11904
- description: Parameters for a computed content
12354
+ description: Dependency for a computation, before its resolution.
12355
+ additionalProperties: false
11905
12356
  properties:
11906
- integration:
11907
- type: string
11908
- description: Name of the integration
11909
- source:
12357
+ ref:
12358
+ oneOf:
12359
+ - $ref: "#/components/schemas/ContentRefSpace"
12360
+ - $ref: "#/components/schemas/ContentRefOpenAPI"
12361
+ - $ref: "#/components/schemas/TranslationLanguageRef"
12362
+ required:
12363
+ - ref
12364
+ ComputedContentDependencyResolved:
12365
+ description: Dependency for a computation, with its resolved value.
12366
+ oneOf:
12367
+ - $ref: "#/components/schemas/ComputedContentDependencySpace"
12368
+ - $ref: "#/components/schemas/ComputedContentDependencyOpenAPI"
12369
+ - $ref: "#/components/schemas/ComputedContentDependencyTranslation"
12370
+ ComputedContentSourceIntegration:
12371
+ type: object
12372
+ description: Parameters for a computed content managed by an integration
12373
+ properties:
12374
+ type:
11910
12375
  type: string
11911
- description: Identifier of the source used for computation
12376
+ description: Type of the computed source
12377
+ pattern: ^integration:[^:]+:[^:]+$
12378
+ x-typescript: "`integration:${string}:${string}`"
11912
12379
  props:
11913
12380
  description: Properties to be passed to the computation
11914
12381
  $ref: "#/components/schemas/PlainObject"
@@ -11920,17 +12387,16 @@ components:
11920
12387
  When the dependency's targets are updated, the computation will be updated.
11921
12388
  additionalProperties:
11922
12389
  anyOf:
11923
- - type: object
11924
- properties:
11925
- ref:
11926
- $ref: "#/components/schemas/ComputedContentDependencyRef"
11927
- required:
11928
- - ref
11929
- - $ref: "#/components/schemas/ComputedContentDependencyValue"
12390
+ - $ref: "#/components/schemas/ComputedContentDependency"
12391
+ - $ref: "#/components/schemas/ComputedContentDependencyResolved"
11930
12392
  required:
11931
- - integration
11932
- - source
12393
+ - type
11933
12394
  - props
12395
+ ComputedContentSourceRevision:
12396
+ oneOf:
12397
+ - $ref: "#/components/schemas/ComputedContentSourceRevisionOpenAPI"
12398
+ - $ref: "#/components/schemas/ComputedContentSourceRevisionTranslation"
12399
+ - $ref: "#/components/schemas/ComputedContentSourceIntegration"
11934
12400
  RevisionPageComputed:
11935
12401
  allOf:
11936
12402
  - $ref: "#/components/schemas/RevisionPageBase"
@@ -11941,7 +12407,7 @@ components:
11941
12407
  enum:
11942
12408
  - computed
11943
12409
  computed:
11944
- $ref: "#/components/schemas/ComputedContentSource"
12410
+ $ref: "#/components/schemas/ComputedContentSourceRevision"
11945
12411
  required:
11946
12412
  - type
11947
12413
  - computed
@@ -11997,6 +12463,59 @@ components:
11997
12463
  type: number
11998
12464
  required:
11999
12465
  - yPos
12466
+ ComputedContentSourceDocumentOpenAPI:
12467
+ allOf:
12468
+ - $ref: "#/components/schemas/ComputedContentSourceOpenAPIBase"
12469
+ - type: object
12470
+ description: Parameters for an OpenAPI computed document
12471
+ required:
12472
+ - props
12473
+ properties:
12474
+ props:
12475
+ oneOf:
12476
+ - type: object
12477
+ required:
12478
+ - doc
12479
+ properties:
12480
+ doc:
12481
+ type: string
12482
+ enum:
12483
+ - models
12484
+ - type: object
12485
+ required:
12486
+ - doc
12487
+ - page
12488
+ properties:
12489
+ doc:
12490
+ type: string
12491
+ enum:
12492
+ - operations
12493
+ - info
12494
+ page:
12495
+ type: string
12496
+ minLength: 1
12497
+ ComputedContentSourceDocumentTranslation:
12498
+ allOf:
12499
+ - $ref: "#/components/schemas/ComputedContentSourceTranslationBase"
12500
+ - type: object
12501
+ required:
12502
+ - props
12503
+ properties:
12504
+ props:
12505
+ type: object
12506
+ required:
12507
+ - document
12508
+ - sourceLanguage
12509
+ properties:
12510
+ document:
12511
+ type: string
12512
+ sourceLanguage:
12513
+ $ref: "#/components/schemas/TranslationLanguage"
12514
+ ComputedContentSourceDocument:
12515
+ oneOf:
12516
+ - $ref: "#/components/schemas/ComputedContentSourceDocumentOpenAPI"
12517
+ - $ref: "#/components/schemas/ComputedContentSourceDocumentTranslation"
12518
+ - $ref: "#/components/schemas/ComputedContentSourceIntegration"
12000
12519
  RevisionPageGroup:
12001
12520
  allOf:
12002
12521
  - $ref: "#/components/schemas/RevisionPageBase"
@@ -14130,6 +14649,14 @@ components:
14130
14649
  - string
14131
14650
  default:
14132
14651
  type: string
14652
+ completion_url:
14653
+ description: If specified, this URL will be called to fetch suggestions for auto-completing the property.
14654
+ type: string
14655
+ enum:
14656
+ type: array
14657
+ description: If specified, only values from this array are allowed as inputs.
14658
+ items:
14659
+ type: string
14133
14660
  required:
14134
14661
  - type
14135
14662
  - type: object
@@ -15255,7 +15782,7 @@ components:
15255
15782
  description: Dependencies of the computation.
15256
15783
  type: object
15257
15784
  additionalProperties:
15258
- $ref: "#/components/schemas/ComputedContentDependencyValue"
15785
+ $ref: "#/components/schemas/ComputedContentDependencyResolved"
15259
15786
  required:
15260
15787
  - sourceId
15261
15788
  - props
@@ -17659,6 +18186,24 @@ components:
17659
18186
  required:
17660
18187
  - type
17661
18188
  - answer
18189
+ OpenAPISpecSource:
18190
+ oneOf:
18191
+ - description: Create a specification from an URL
18192
+ type: object
18193
+ properties:
18194
+ url:
18195
+ $ref: "#/components/schemas/URL"
18196
+ required:
18197
+ - url
18198
+ - description: Create a specification from a text string
18199
+ type: object
18200
+ properties:
18201
+ text:
18202
+ description: OpenAPI specification as text
18203
+ type: string
18204
+ minLength: 1
18205
+ required:
18206
+ - text
17662
18207
  OpenAPISpecVersion:
17663
18208
  type: object
17664
18209
  properties:
@@ -17706,6 +18251,86 @@ components:
17706
18251
  required:
17707
18252
  - filesystem
17708
18253
  - url
18254
+ TranslationTitle:
18255
+ type: string
18256
+ description: Title of the translation settings
18257
+ minLength: 1
18258
+ maxLength: 100
18259
+ TranslationSettings:
18260
+ type: object
18261
+ properties:
18262
+ object:
18263
+ type: string
18264
+ enum:
18265
+ - translation-settings
18266
+ id:
18267
+ type: string
18268
+ description: Unique identifier of the translation settings
18269
+ title:
18270
+ $ref: "#/components/schemas/TranslationTitle"
18271
+ languages:
18272
+ type: array
18273
+ items:
18274
+ $ref: "#/components/schemas/TranslationLanguage"
18275
+ createdAt:
18276
+ type: string
18277
+ format: date-time
18278
+ updatedAt:
18279
+ type: string
18280
+ format: date-time
18281
+ permissions:
18282
+ type: object
18283
+ properties:
18284
+ edit:
18285
+ type: boolean
18286
+ description: Whether the user can edit the object
18287
+ required:
18288
+ - edit
18289
+ urls:
18290
+ type: object
18291
+ description: URLs associated with the object
18292
+ properties:
18293
+ location:
18294
+ type: string
18295
+ description: URL of the translation settings in the API
18296
+ format: uri
18297
+ required:
18298
+ - location
18299
+ required:
18300
+ - object
18301
+ - id
18302
+ - title
18303
+ - languages
18304
+ - createdAt
18305
+ - updatedAt
18306
+ - permissions
18307
+ - urls
18308
+ TranslationLanguageSettings:
18309
+ type: object
18310
+ properties:
18311
+ object:
18312
+ type: string
18313
+ enum:
18314
+ - translation-language-settings
18315
+ language:
18316
+ $ref: "#/components/schemas/TranslationLanguage"
18317
+ instructions:
18318
+ $ref: "#/components/schemas/JSONDocument"
18319
+ urls:
18320
+ type: object
18321
+ description: URLs associated with the object
18322
+ properties:
18323
+ location:
18324
+ type: string
18325
+ description: URL of the translation language settings in the API
18326
+ format: uri
18327
+ required:
18328
+ - location
18329
+ required:
18330
+ - object
18331
+ - language
18332
+ - instructions
18333
+ - urls
17709
18334
  StorageFileMetadata:
17710
18335
  type: object
17711
18336
  properties:
@@ -21004,14 +21629,10 @@ components:
21004
21629
  - object
21005
21630
  - id
21006
21631
  - 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
21632
+ ComputedContentSource:
21633
+ oneOf:
21634
+ - $ref: "#/components/schemas/ComputedContentSourceDocument"
21635
+ - $ref: "#/components/schemas/ComputedContentSourceRevision"
21015
21636
  InputPageBase:
21016
21637
  allOf:
21017
21638
  - type: object
@@ -21064,7 +21685,7 @@ components:
21064
21685
  - $ref: "#/components/schemas/InputPageLink"
21065
21686
  - $ref: "#/components/schemas/InputPageComputed"
21066
21687
  computed:
21067
- $ref: "#/components/schemas/ComputedContentSource"
21688
+ $ref: "#/components/schemas/ComputedContentSourceDocument"
21068
21689
  required:
21069
21690
  - type
21070
21691
  InputPageLink:
@@ -21091,7 +21712,7 @@ components:
21091
21712
  enum:
21092
21713
  - computed
21093
21714
  computed:
21094
- $ref: "#/components/schemas/ComputedContentSource"
21715
+ $ref: "#/components/schemas/ComputedContentSourceRevision"
21095
21716
  required:
21096
21717
  - type
21097
21718
  - computed
@@ -21870,6 +22491,19 @@ components:
21870
22491
  required:
21871
22492
  - channel
21872
22493
  - organization
22494
+ OrganizationTranslationSettingsChannel:
22495
+ type: object
22496
+ description: Subscription channel for changes in translation settings in an organization.
22497
+ properties:
22498
+ channel:
22499
+ type: string
22500
+ enum:
22501
+ - organization-translation-settings
22502
+ organization:
22503
+ type: string
22504
+ required:
22505
+ - channel
22506
+ - organization
21873
22507
  OrganizationCustomFontsChannel:
21874
22508
  type: object
21875
22509
  description: Subscription channel for changes in custom fonts in an organization.
@@ -22270,6 +22904,18 @@ components:
22270
22904
  required:
22271
22905
  - channel
22272
22906
  - subdomain
22907
+ TranslationSettingsChannel:
22908
+ type: object
22909
+ properties:
22910
+ channel:
22911
+ type: string
22912
+ enum:
22913
+ - translation-settings
22914
+ translation:
22915
+ type: string
22916
+ required:
22917
+ - channel
22918
+ - translation
22273
22919
  SubscriptionChannel:
22274
22920
  description: Channel to subscribe to for realtime updates.
22275
22921
  oneOf:
@@ -22307,6 +22953,7 @@ components:
22307
22953
  - $ref: "#/components/schemas/OrganizationSitesChannel"
22308
22954
  - $ref: "#/components/schemas/OrganizationAIIndexationChannel"
22309
22955
  - $ref: "#/components/schemas/OrganizationOpenAPISpecsChannel"
22956
+ - $ref: "#/components/schemas/OrganizationTranslationSettingsChannel"
22310
22957
  - $ref: "#/components/schemas/OrganizationCustomFontsChannel"
22311
22958
  - $ref: "#/components/schemas/SpaceCommentsChannel"
22312
22959
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"
@@ -22336,6 +22983,7 @@ components:
22336
22983
  - $ref: "#/components/schemas/GitSyncOperationChannel"
22337
22984
  - $ref: "#/components/schemas/OpenAPISpecChannel"
22338
22985
  - $ref: "#/components/schemas/SubdomainChannel"
22986
+ - $ref: "#/components/schemas/TranslationSettingsChannel"
22339
22987
  discriminator:
22340
22988
  propertyName: channel
22341
22989
  GitSyncOperationChannelData: