@gitbook/api 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +297 -8
- package/dist/index.cjs +69 -0
- package/dist/index.js +65 -0
- package/package.json +1 -1
- package/spec/openapi.json +1110 -127
- package/spec/openapi.yaml +649 -19
package/spec/openapi.yaml
CHANGED
|
@@ -965,6 +965,47 @@ components:
|
|
|
965
965
|
- postedAt
|
|
966
966
|
- reactions
|
|
967
967
|
- urls
|
|
968
|
+
PublishedContentLookup:
|
|
969
|
+
oneOf:
|
|
970
|
+
- type: object
|
|
971
|
+
properties:
|
|
972
|
+
target:
|
|
973
|
+
type: string
|
|
974
|
+
description: Type of target for the redirect
|
|
975
|
+
enum:
|
|
976
|
+
- application
|
|
977
|
+
- content
|
|
978
|
+
- external
|
|
979
|
+
redirect:
|
|
980
|
+
$ref: "#/components/schemas/URL"
|
|
981
|
+
required:
|
|
982
|
+
- target
|
|
983
|
+
- redirect
|
|
984
|
+
- type: object
|
|
985
|
+
properties:
|
|
986
|
+
space:
|
|
987
|
+
type: string
|
|
988
|
+
description: ID of the space matching.
|
|
989
|
+
changeRequest:
|
|
990
|
+
type: string
|
|
991
|
+
description: Identifier of the change request being previewed in this URL.
|
|
992
|
+
revision:
|
|
993
|
+
type: string
|
|
994
|
+
description: Identifier of the revision being previewed in this URL.
|
|
995
|
+
pathname:
|
|
996
|
+
type: string
|
|
997
|
+
description: Path of the content relative to the space
|
|
998
|
+
basePath:
|
|
999
|
+
type: string
|
|
1000
|
+
description: Prefix of the path in the URL dedicated to the space
|
|
1001
|
+
apiToken:
|
|
1002
|
+
type: string
|
|
1003
|
+
description: Short-lived API token to fetch content related to the space in the context of the URL.
|
|
1004
|
+
required:
|
|
1005
|
+
- space
|
|
1006
|
+
- pathname
|
|
1007
|
+
- basePath
|
|
1008
|
+
- apiToken
|
|
968
1009
|
Document:
|
|
969
1010
|
oneOf:
|
|
970
1011
|
- $ref: "#/components/schemas/MarkdownDocument"
|
|
@@ -1765,19 +1806,9 @@ components:
|
|
|
1765
1806
|
- $ref: "#/components/schemas/ContentRefURL"
|
|
1766
1807
|
- $ref: "#/components/schemas/ContentRefFile"
|
|
1767
1808
|
width:
|
|
1768
|
-
|
|
1769
|
-
- type: number
|
|
1770
|
-
- type: object
|
|
1771
|
-
properties:
|
|
1772
|
-
unit:
|
|
1773
|
-
type: string
|
|
1774
|
-
value:
|
|
1775
|
-
type: number
|
|
1776
|
-
required:
|
|
1777
|
-
- unit
|
|
1778
|
-
- value
|
|
1809
|
+
$ref: "#/components/schemas/DocumentBlockImageDimension"
|
|
1779
1810
|
height:
|
|
1780
|
-
$ref: "#/components/schemas/
|
|
1811
|
+
$ref: "#/components/schemas/DocumentBlockImageDimension"
|
|
1781
1812
|
alt:
|
|
1782
1813
|
type: string
|
|
1783
1814
|
required:
|
|
@@ -1810,6 +1841,18 @@ components:
|
|
|
1810
1841
|
- data
|
|
1811
1842
|
- fragments
|
|
1812
1843
|
- isVoid
|
|
1844
|
+
DocumentBlockImageDimension:
|
|
1845
|
+
oneOf:
|
|
1846
|
+
- type: number
|
|
1847
|
+
- type: object
|
|
1848
|
+
properties:
|
|
1849
|
+
unit:
|
|
1850
|
+
type: string
|
|
1851
|
+
value:
|
|
1852
|
+
type: number
|
|
1853
|
+
required:
|
|
1854
|
+
- unit
|
|
1855
|
+
- value
|
|
1813
1856
|
DocumentBlockFile:
|
|
1814
1857
|
type: object
|
|
1815
1858
|
properties:
|
|
@@ -2644,11 +2687,11 @@ components:
|
|
|
2644
2687
|
page:
|
|
2645
2688
|
type: string
|
|
2646
2689
|
space:
|
|
2690
|
+
description: ID of the space the page is in. The page is considered as in the current space if none is provided.
|
|
2647
2691
|
type: string
|
|
2648
2692
|
required:
|
|
2649
2693
|
- kind
|
|
2650
2694
|
- page
|
|
2651
|
-
- space
|
|
2652
2695
|
ContentRefAnchor:
|
|
2653
2696
|
type: object
|
|
2654
2697
|
properties:
|
|
@@ -2659,8 +2702,10 @@ components:
|
|
|
2659
2702
|
anchor:
|
|
2660
2703
|
type: string
|
|
2661
2704
|
space:
|
|
2705
|
+
description: ID of the space the page is in. The page is considered as in the current space if none is provided.
|
|
2662
2706
|
type: string
|
|
2663
2707
|
page:
|
|
2708
|
+
description: ID of the page the anchor is in. The anchor is considered as in the current page if none is provided.
|
|
2664
2709
|
type: string
|
|
2665
2710
|
required:
|
|
2666
2711
|
- kind
|
|
@@ -2937,6 +2982,17 @@ components:
|
|
|
2937
2982
|
- slug
|
|
2938
2983
|
- path
|
|
2939
2984
|
- pages
|
|
2985
|
+
RevisionPageDocumentCover:
|
|
2986
|
+
type: object
|
|
2987
|
+
properties:
|
|
2988
|
+
ref:
|
|
2989
|
+
description: Content reference pointing to the source image.
|
|
2990
|
+
$ref: "#/components/schemas/ContentRefFile"
|
|
2991
|
+
yPos:
|
|
2992
|
+
description: Vertical position of the cover image.
|
|
2993
|
+
type: number
|
|
2994
|
+
required:
|
|
2995
|
+
- yPos
|
|
2940
2996
|
RevisionPageGroup:
|
|
2941
2997
|
allOf:
|
|
2942
2998
|
- $ref: "#/components/schemas/RevisionPageBase"
|
|
@@ -2969,6 +3025,46 @@ components:
|
|
|
2969
3025
|
- slug
|
|
2970
3026
|
- path
|
|
2971
3027
|
- pages
|
|
3028
|
+
RevisionPageLayout:
|
|
3029
|
+
oneOf:
|
|
3030
|
+
- $ref: "#/components/schemas/RevisionPageLayoutPreset"
|
|
3031
|
+
- $ref: "#/components/schemas/RevisionPageLayoutOptions"
|
|
3032
|
+
RevisionPageLayoutOptions:
|
|
3033
|
+
type: object
|
|
3034
|
+
properties:
|
|
3035
|
+
cover:
|
|
3036
|
+
type: boolean
|
|
3037
|
+
description: Should the cover be visible?
|
|
3038
|
+
coverSize:
|
|
3039
|
+
$ref: "#/components/schemas/RevisionPageLayoutOptionsCoverSize"
|
|
3040
|
+
title:
|
|
3041
|
+
type: boolean
|
|
3042
|
+
description: Should the title be visible?
|
|
3043
|
+
description:
|
|
3044
|
+
type: boolean
|
|
3045
|
+
description: Should the description be visible?
|
|
3046
|
+
tableOfContents:
|
|
3047
|
+
type: boolean
|
|
3048
|
+
description: Should the table of contents be visible?
|
|
3049
|
+
outline:
|
|
3050
|
+
type: boolean
|
|
3051
|
+
description: Should the outline be visible?
|
|
3052
|
+
pagination:
|
|
3053
|
+
type: boolean
|
|
3054
|
+
description: Should the pagination be visible?
|
|
3055
|
+
RevisionPageLayoutOptionsCoverSize:
|
|
3056
|
+
type: string
|
|
3057
|
+
description: Size of the cover image.
|
|
3058
|
+
enum:
|
|
3059
|
+
- hero
|
|
3060
|
+
- full
|
|
3061
|
+
RevisionPageLayoutPreset:
|
|
3062
|
+
type: string
|
|
3063
|
+
description: The core layout presets for a page.
|
|
3064
|
+
enum:
|
|
3065
|
+
- docs
|
|
3066
|
+
- editorial
|
|
3067
|
+
- landing
|
|
2972
3068
|
RevisionPageLink:
|
|
2973
3069
|
allOf:
|
|
2974
3070
|
- $ref: "#/components/schemas/RevisionPageBase"
|
|
@@ -2991,6 +3087,12 @@ components:
|
|
|
2991
3087
|
- kind
|
|
2992
3088
|
- type
|
|
2993
3089
|
- target
|
|
3090
|
+
RevisionPageType:
|
|
3091
|
+
type: string
|
|
3092
|
+
enum:
|
|
3093
|
+
- document
|
|
3094
|
+
- group
|
|
3095
|
+
- link
|
|
2994
3096
|
RevisionFile:
|
|
2995
3097
|
type: object
|
|
2996
3098
|
properties:
|
|
@@ -3023,6 +3125,16 @@ components:
|
|
|
3023
3125
|
- contentType
|
|
3024
3126
|
- downloadURL
|
|
3025
3127
|
- size
|
|
3128
|
+
RevisionFileImageDimensions:
|
|
3129
|
+
type: object
|
|
3130
|
+
properties:
|
|
3131
|
+
height:
|
|
3132
|
+
type: number
|
|
3133
|
+
width:
|
|
3134
|
+
type: number
|
|
3135
|
+
required:
|
|
3136
|
+
- height
|
|
3137
|
+
- width
|
|
3026
3138
|
ImportContentSource:
|
|
3027
3139
|
type: string
|
|
3028
3140
|
enum:
|
|
@@ -3038,6 +3150,293 @@ components:
|
|
|
3038
3150
|
- quip
|
|
3039
3151
|
- google-docs
|
|
3040
3152
|
- open-api
|
|
3153
|
+
ChangeAttributeContentReference:
|
|
3154
|
+
type: object
|
|
3155
|
+
properties:
|
|
3156
|
+
before:
|
|
3157
|
+
$ref: "#/components/schemas/ContentRef"
|
|
3158
|
+
after:
|
|
3159
|
+
$ref: "#/components/schemas/ContentRef"
|
|
3160
|
+
ChangeAttributeCustomFields:
|
|
3161
|
+
type: object
|
|
3162
|
+
properties:
|
|
3163
|
+
before:
|
|
3164
|
+
type: object
|
|
3165
|
+
additionalProperties:
|
|
3166
|
+
type: object
|
|
3167
|
+
properties:
|
|
3168
|
+
value:
|
|
3169
|
+
$ref: "#/components/schemas/CustomFieldValue"
|
|
3170
|
+
required:
|
|
3171
|
+
- value
|
|
3172
|
+
after:
|
|
3173
|
+
type: object
|
|
3174
|
+
additionalProperties:
|
|
3175
|
+
type: object
|
|
3176
|
+
properties:
|
|
3177
|
+
value:
|
|
3178
|
+
$ref: "#/components/schemas/CustomFieldValue"
|
|
3179
|
+
required:
|
|
3180
|
+
- value
|
|
3181
|
+
ChangeAttributeNumber:
|
|
3182
|
+
type: object
|
|
3183
|
+
properties:
|
|
3184
|
+
before:
|
|
3185
|
+
type: number
|
|
3186
|
+
after:
|
|
3187
|
+
type: number
|
|
3188
|
+
ChangeAttributeRevisionFileImageDimensions:
|
|
3189
|
+
type: object
|
|
3190
|
+
properties:
|
|
3191
|
+
before:
|
|
3192
|
+
$ref: "#/components/schemas/RevisionFileImageDimensions"
|
|
3193
|
+
after:
|
|
3194
|
+
$ref: "#/components/schemas/RevisionFileImageDimensions"
|
|
3195
|
+
ChangeAttributeRevisionPageDocumentCover:
|
|
3196
|
+
type: object
|
|
3197
|
+
properties:
|
|
3198
|
+
before:
|
|
3199
|
+
$ref: "#/components/schemas/RevisionPageDocumentCover"
|
|
3200
|
+
after:
|
|
3201
|
+
$ref: "#/components/schemas/RevisionPageDocumentCover"
|
|
3202
|
+
ChangeAttributeRevisionPageLayout:
|
|
3203
|
+
type: object
|
|
3204
|
+
properties:
|
|
3205
|
+
before:
|
|
3206
|
+
$ref: "#/components/schemas/RevisionPageLayout"
|
|
3207
|
+
after:
|
|
3208
|
+
$ref: "#/components/schemas/RevisionPageLayout"
|
|
3209
|
+
ChangeAttributeString:
|
|
3210
|
+
type: object
|
|
3211
|
+
properties:
|
|
3212
|
+
before:
|
|
3213
|
+
type: string
|
|
3214
|
+
after:
|
|
3215
|
+
type: string
|
|
3216
|
+
ChangedRevisionFile:
|
|
3217
|
+
type: object
|
|
3218
|
+
properties:
|
|
3219
|
+
id:
|
|
3220
|
+
type: string
|
|
3221
|
+
name:
|
|
3222
|
+
type: string
|
|
3223
|
+
contentType:
|
|
3224
|
+
type: string
|
|
3225
|
+
downloadURL:
|
|
3226
|
+
type: string
|
|
3227
|
+
required:
|
|
3228
|
+
- id
|
|
3229
|
+
- name
|
|
3230
|
+
- contentType
|
|
3231
|
+
- downloadURL
|
|
3232
|
+
ChangedRevisionPage:
|
|
3233
|
+
type: object
|
|
3234
|
+
properties:
|
|
3235
|
+
id:
|
|
3236
|
+
type: string
|
|
3237
|
+
type:
|
|
3238
|
+
$ref: "#/components/schemas/RevisionPageType"
|
|
3239
|
+
title:
|
|
3240
|
+
type: string
|
|
3241
|
+
path:
|
|
3242
|
+
type: string
|
|
3243
|
+
required:
|
|
3244
|
+
- id
|
|
3245
|
+
- type
|
|
3246
|
+
- title
|
|
3247
|
+
RevisionFileChangeAttributes:
|
|
3248
|
+
type: object
|
|
3249
|
+
minProperties: 1
|
|
3250
|
+
properties:
|
|
3251
|
+
name:
|
|
3252
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3253
|
+
downloadURL:
|
|
3254
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3255
|
+
size:
|
|
3256
|
+
$ref: "#/components/schemas/ChangeAttributeNumber"
|
|
3257
|
+
contentType:
|
|
3258
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3259
|
+
dimensions:
|
|
3260
|
+
$ref: "#/components/schemas/ChangeAttributeRevisionFileImageDimensions"
|
|
3261
|
+
RevisionPageDocumentChangeAttributes:
|
|
3262
|
+
type: object
|
|
3263
|
+
minProperties: 1
|
|
3264
|
+
properties:
|
|
3265
|
+
title:
|
|
3266
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3267
|
+
description:
|
|
3268
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3269
|
+
slug:
|
|
3270
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3271
|
+
document:
|
|
3272
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3273
|
+
cover:
|
|
3274
|
+
$ref: "#/components/schemas/ChangeAttributeRevisionPageDocumentCover"
|
|
3275
|
+
emoji:
|
|
3276
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3277
|
+
layout:
|
|
3278
|
+
$ref: "#/components/schemas/ChangeAttributeRevisionPageLayout"
|
|
3279
|
+
customFields:
|
|
3280
|
+
$ref: "#/components/schemas/ChangeAttributeCustomFields"
|
|
3281
|
+
RevisionPageGroupChangeAttributes:
|
|
3282
|
+
type: object
|
|
3283
|
+
minProperties: 1
|
|
3284
|
+
properties:
|
|
3285
|
+
title:
|
|
3286
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3287
|
+
emoji:
|
|
3288
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3289
|
+
slug:
|
|
3290
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3291
|
+
customFields:
|
|
3292
|
+
$ref: "#/components/schemas/ChangeAttributeCustomFields"
|
|
3293
|
+
RevisionPageLinkChangeAttributes:
|
|
3294
|
+
type: object
|
|
3295
|
+
minProperties: 1
|
|
3296
|
+
properties:
|
|
3297
|
+
title:
|
|
3298
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3299
|
+
emoji:
|
|
3300
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
3301
|
+
target:
|
|
3302
|
+
$ref: "#/components/schemas/ChangeAttributeContentReference"
|
|
3303
|
+
customFields:
|
|
3304
|
+
$ref: "#/components/schemas/ChangeAttributeCustomFields"
|
|
3305
|
+
RevisionSemanticChange:
|
|
3306
|
+
oneOf:
|
|
3307
|
+
- $ref: "#/components/schemas/RevisionSemanticChangePageCreated"
|
|
3308
|
+
- $ref: "#/components/schemas/RevisionSemanticChangePageEdited"
|
|
3309
|
+
- $ref: "#/components/schemas/RevisionSemanticChangePageDeleted"
|
|
3310
|
+
- $ref: "#/components/schemas/RevisionSemanticChangePageMoved"
|
|
3311
|
+
- $ref: "#/components/schemas/RevisionSemanticChangeFileCreated"
|
|
3312
|
+
- $ref: "#/components/schemas/RevisionSemanticChangeFileEdited"
|
|
3313
|
+
- $ref: "#/components/schemas/RevisionSemanticChangeFileDeleted"
|
|
3314
|
+
- $ref: "#/components/schemas/RevisionSemanticChangeCustomFieldsEdited"
|
|
3315
|
+
RevisionSemanticChangeCustomFieldsEdited:
|
|
3316
|
+
type: object
|
|
3317
|
+
properties:
|
|
3318
|
+
type:
|
|
3319
|
+
type: string
|
|
3320
|
+
enum:
|
|
3321
|
+
- custom_fields_edited
|
|
3322
|
+
customFields:
|
|
3323
|
+
$ref: "#/components/schemas/ChangeAttributeCustomFields"
|
|
3324
|
+
required:
|
|
3325
|
+
- type
|
|
3326
|
+
- customFields
|
|
3327
|
+
RevisionSemanticChangeFileCreated:
|
|
3328
|
+
type: object
|
|
3329
|
+
properties:
|
|
3330
|
+
type:
|
|
3331
|
+
type: string
|
|
3332
|
+
enum:
|
|
3333
|
+
- file_created
|
|
3334
|
+
file:
|
|
3335
|
+
$ref: "#/components/schemas/ChangedRevisionFile"
|
|
3336
|
+
required:
|
|
3337
|
+
- type
|
|
3338
|
+
- file
|
|
3339
|
+
RevisionSemanticChangeFileDeleted:
|
|
3340
|
+
type: object
|
|
3341
|
+
properties:
|
|
3342
|
+
type:
|
|
3343
|
+
type: string
|
|
3344
|
+
enum:
|
|
3345
|
+
- file_deleted
|
|
3346
|
+
file:
|
|
3347
|
+
$ref: "#/components/schemas/ChangedRevisionFile"
|
|
3348
|
+
required:
|
|
3349
|
+
- type
|
|
3350
|
+
- file
|
|
3351
|
+
RevisionSemanticChangeFileEdited:
|
|
3352
|
+
type: object
|
|
3353
|
+
properties:
|
|
3354
|
+
type:
|
|
3355
|
+
type: string
|
|
3356
|
+
enum:
|
|
3357
|
+
- file_edited
|
|
3358
|
+
file:
|
|
3359
|
+
$ref: "#/components/schemas/ChangedRevisionFile"
|
|
3360
|
+
attributes:
|
|
3361
|
+
$ref: "#/components/schemas/RevisionFileChangeAttributes"
|
|
3362
|
+
required:
|
|
3363
|
+
- type
|
|
3364
|
+
- file
|
|
3365
|
+
- attributes
|
|
3366
|
+
RevisionSemanticChangePageCreated:
|
|
3367
|
+
type: object
|
|
3368
|
+
properties:
|
|
3369
|
+
type:
|
|
3370
|
+
type: string
|
|
3371
|
+
enum:
|
|
3372
|
+
- page_created
|
|
3373
|
+
page:
|
|
3374
|
+
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
3375
|
+
required:
|
|
3376
|
+
- type
|
|
3377
|
+
- page
|
|
3378
|
+
RevisionSemanticChangePageDeleted:
|
|
3379
|
+
type: object
|
|
3380
|
+
properties:
|
|
3381
|
+
type:
|
|
3382
|
+
type: string
|
|
3383
|
+
enum:
|
|
3384
|
+
- page_deleted
|
|
3385
|
+
page:
|
|
3386
|
+
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
3387
|
+
required:
|
|
3388
|
+
- type
|
|
3389
|
+
- page
|
|
3390
|
+
RevisionSemanticChangePageEdited:
|
|
3391
|
+
type: object
|
|
3392
|
+
properties:
|
|
3393
|
+
type:
|
|
3394
|
+
type: string
|
|
3395
|
+
enum:
|
|
3396
|
+
- page_edited
|
|
3397
|
+
page:
|
|
3398
|
+
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
3399
|
+
attributes:
|
|
3400
|
+
oneOf:
|
|
3401
|
+
- $ref: "#/components/schemas/RevisionPageDocumentChangeAttributes"
|
|
3402
|
+
- $ref: "#/components/schemas/RevisionPageGroupChangeAttributes"
|
|
3403
|
+
- $ref: "#/components/schemas/RevisionPageLinkChangeAttributes"
|
|
3404
|
+
required:
|
|
3405
|
+
- type
|
|
3406
|
+
- page
|
|
3407
|
+
- attributes
|
|
3408
|
+
RevisionSemanticChangePageMoved:
|
|
3409
|
+
type: object
|
|
3410
|
+
properties:
|
|
3411
|
+
type:
|
|
3412
|
+
type: string
|
|
3413
|
+
enum:
|
|
3414
|
+
- page_moved
|
|
3415
|
+
page:
|
|
3416
|
+
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
3417
|
+
parent:
|
|
3418
|
+
type: object
|
|
3419
|
+
properties:
|
|
3420
|
+
before:
|
|
3421
|
+
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
3422
|
+
after:
|
|
3423
|
+
$ref: "#/components/schemas/ChangedRevisionPage"
|
|
3424
|
+
required:
|
|
3425
|
+
- type
|
|
3426
|
+
- page
|
|
3427
|
+
- parent
|
|
3428
|
+
RevisionSemanticChangeType:
|
|
3429
|
+
type: string
|
|
3430
|
+
description: The type of semantic change.
|
|
3431
|
+
enum:
|
|
3432
|
+
- page_created
|
|
3433
|
+
- page_edited
|
|
3434
|
+
- page_deleted
|
|
3435
|
+
- page_moved
|
|
3436
|
+
- file_created
|
|
3437
|
+
- file_edited
|
|
3438
|
+
- file_deleted
|
|
3439
|
+
- custom_fields_edited
|
|
3041
3440
|
GitSyncState:
|
|
3042
3441
|
type: object
|
|
3043
3442
|
properties:
|
|
@@ -3608,6 +4007,78 @@ components:
|
|
|
3608
4007
|
body:
|
|
3609
4008
|
description: Content of the capture.
|
|
3610
4009
|
$ref: "#/components/schemas/Document"
|
|
4010
|
+
ContentAuditRelation:
|
|
4011
|
+
type: object
|
|
4012
|
+
description: Content audit relation
|
|
4013
|
+
properties:
|
|
4014
|
+
id:
|
|
4015
|
+
type: string
|
|
4016
|
+
sources:
|
|
4017
|
+
description: The sources that are related
|
|
4018
|
+
type: array
|
|
4019
|
+
items:
|
|
4020
|
+
$ref: "#/components/schemas/ContentAuditSource"
|
|
4021
|
+
type:
|
|
4022
|
+
description: The type of the relation between the sources
|
|
4023
|
+
$ref: "#/components/schemas/ContentAuditRelationType"
|
|
4024
|
+
reason:
|
|
4025
|
+
type: string
|
|
4026
|
+
description: A human readable description of the reason for the relation
|
|
4027
|
+
status:
|
|
4028
|
+
description: The status of the relation
|
|
4029
|
+
$ref: "#/components/schemas/ContentAuditRelationStatus"
|
|
4030
|
+
createdAt:
|
|
4031
|
+
description: The date at which the relation was created
|
|
4032
|
+
$ref: "#/components/schemas/Date"
|
|
4033
|
+
required:
|
|
4034
|
+
- id
|
|
4035
|
+
- sources
|
|
4036
|
+
- type
|
|
4037
|
+
- status
|
|
4038
|
+
- createdAt
|
|
4039
|
+
ContentAuditRelationType:
|
|
4040
|
+
description: The type of the relation between the sources
|
|
4041
|
+
oneOf:
|
|
4042
|
+
- type: string
|
|
4043
|
+
enum:
|
|
4044
|
+
- contradiction
|
|
4045
|
+
- duplicate
|
|
4046
|
+
ContentAuditRelationStatus:
|
|
4047
|
+
description: Status of the audit relation to filter on
|
|
4048
|
+
oneOf:
|
|
4049
|
+
- type: string
|
|
4050
|
+
enum:
|
|
4051
|
+
- pending
|
|
4052
|
+
- rejected
|
|
4053
|
+
ContentAuditRelationStatusUpdate:
|
|
4054
|
+
type: object
|
|
4055
|
+
properties:
|
|
4056
|
+
status:
|
|
4057
|
+
$ref: "#/components/schemas/ContentAuditRelationStatus"
|
|
4058
|
+
required:
|
|
4059
|
+
- status
|
|
4060
|
+
ContentAuditSource:
|
|
4061
|
+
oneOf:
|
|
4062
|
+
- $ref: "#/components/schemas/ContentAuditSourceSection"
|
|
4063
|
+
ContentAuditSourceSection:
|
|
4064
|
+
type: object
|
|
4065
|
+
description: A GitBook section source
|
|
4066
|
+
properties:
|
|
4067
|
+
id:
|
|
4068
|
+
type: string
|
|
4069
|
+
type:
|
|
4070
|
+
type: string
|
|
4071
|
+
enum:
|
|
4072
|
+
- section
|
|
4073
|
+
space:
|
|
4074
|
+
$ref: "#/components/schemas/Space"
|
|
4075
|
+
page:
|
|
4076
|
+
$ref: "#/components/schemas/RevisionPageDocument"
|
|
4077
|
+
required:
|
|
4078
|
+
- id
|
|
4079
|
+
- type
|
|
4080
|
+
- space
|
|
4081
|
+
- page
|
|
3611
4082
|
ChangeRequest:
|
|
3612
4083
|
type: object
|
|
3613
4084
|
properties:
|
|
@@ -4142,28 +4613,33 @@ components:
|
|
|
4142
4613
|
- score
|
|
4143
4614
|
- total
|
|
4144
4615
|
- rating
|
|
4616
|
+
- ponderedScore
|
|
4145
4617
|
- bad
|
|
4146
4618
|
- ok
|
|
4147
4619
|
- good
|
|
4148
4620
|
properties:
|
|
4149
4621
|
score:
|
|
4150
4622
|
type: number
|
|
4151
|
-
description: Score
|
|
4623
|
+
description: Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad').
|
|
4152
4624
|
total:
|
|
4153
4625
|
type: number
|
|
4626
|
+
description: Total number of ratings done by end users.
|
|
4154
4627
|
rating:
|
|
4155
4628
|
type: string
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4629
|
+
deprecated: true
|
|
4630
|
+
description: Summary of the rating based on the score ('good', 'ok', or 'bad')
|
|
4631
|
+
ponderedScore:
|
|
4632
|
+
type: number
|
|
4633
|
+
description: Score multiplied by the number of ratings to give more importance to highly rated content.
|
|
4161
4634
|
bad:
|
|
4162
4635
|
type: number
|
|
4636
|
+
description: Number of 'bad' ratings.
|
|
4163
4637
|
ok:
|
|
4164
4638
|
type: number
|
|
4639
|
+
description: Number of 'ok' ratings.
|
|
4165
4640
|
good:
|
|
4166
4641
|
type: number
|
|
4642
|
+
description: Number of 'good' ratings.
|
|
4167
4643
|
Collection:
|
|
4168
4644
|
type: object
|
|
4169
4645
|
properties:
|
|
@@ -6752,6 +7228,7 @@ components:
|
|
|
6752
7228
|
- $ref: "#/components/schemas/OrganizationEntitiesChannel"
|
|
6753
7229
|
- $ref: "#/components/schemas/OrganizationSchemasChannel"
|
|
6754
7230
|
- $ref: "#/components/schemas/OrganizationCapturesChannel"
|
|
7231
|
+
- $ref: "#/components/schemas/OrganizationContentAuditsChannel"
|
|
6755
7232
|
- $ref: "#/components/schemas/OrganizationIntegrationsChannel"
|
|
6756
7233
|
- $ref: "#/components/schemas/OrganizationInstallationsChannel"
|
|
6757
7234
|
- type: object
|
|
@@ -7136,6 +7613,18 @@ components:
|
|
|
7136
7613
|
required:
|
|
7137
7614
|
- channel
|
|
7138
7615
|
- organization
|
|
7616
|
+
OrganizationContentAuditsChannel:
|
|
7617
|
+
type: object
|
|
7618
|
+
properties:
|
|
7619
|
+
channel:
|
|
7620
|
+
type: string
|
|
7621
|
+
enum:
|
|
7622
|
+
- organization-content-audits
|
|
7623
|
+
organization:
|
|
7624
|
+
type: string
|
|
7625
|
+
required:
|
|
7626
|
+
- channel
|
|
7627
|
+
- organization
|
|
7139
7628
|
OrganizationIntegrationsChannel:
|
|
7140
7629
|
type: object
|
|
7141
7630
|
properties:
|
|
@@ -9050,6 +9539,46 @@ paths:
|
|
|
9050
9539
|
$ref: "#/components/schemas/Revision"
|
|
9051
9540
|
default:
|
|
9052
9541
|
$ref: "#/components/responses/UnexpectedError"
|
|
9542
|
+
"/spaces/{spaceId}/revisions/{revisionId}/changes":
|
|
9543
|
+
get:
|
|
9544
|
+
summary: Return the semantic changes between a revision and its parent.
|
|
9545
|
+
operationId: getRevisionSemanticChanges
|
|
9546
|
+
security:
|
|
9547
|
+
- user: []
|
|
9548
|
+
parameters:
|
|
9549
|
+
- $ref: "#/components/parameters/spaceId"
|
|
9550
|
+
- $ref: "#/components/parameters/revisionId"
|
|
9551
|
+
- name: limit
|
|
9552
|
+
in: query
|
|
9553
|
+
description: Limit the number of changes returned
|
|
9554
|
+
schema:
|
|
9555
|
+
type: number
|
|
9556
|
+
default: 10
|
|
9557
|
+
- name: metadata
|
|
9558
|
+
in: query
|
|
9559
|
+
description: Whether to include changes to metadata, such as git information and custom fields
|
|
9560
|
+
schema:
|
|
9561
|
+
type: boolean
|
|
9562
|
+
default: true
|
|
9563
|
+
responses:
|
|
9564
|
+
"200":
|
|
9565
|
+
description: OK
|
|
9566
|
+
content:
|
|
9567
|
+
application/json:
|
|
9568
|
+
schema:
|
|
9569
|
+
type: object
|
|
9570
|
+
properties:
|
|
9571
|
+
changes:
|
|
9572
|
+
type: array
|
|
9573
|
+
items:
|
|
9574
|
+
$ref: "#/components/schemas/RevisionSemanticChange"
|
|
9575
|
+
more:
|
|
9576
|
+
type: number
|
|
9577
|
+
description: How many changes were omitted because above the result limit
|
|
9578
|
+
required:
|
|
9579
|
+
- changes
|
|
9580
|
+
default:
|
|
9581
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
9053
9582
|
"/spaces/{spaceId}/revisions/{revisionId}/files":
|
|
9054
9583
|
get:
|
|
9055
9584
|
summary: List all files in a revision
|
|
@@ -12064,6 +12593,79 @@ paths:
|
|
|
12064
12593
|
$ref: "#/components/schemas/SearchAIAnswer"
|
|
12065
12594
|
default:
|
|
12066
12595
|
$ref: "#/components/responses/UnexpectedError"
|
|
12596
|
+
"/orgs/{organizationId}/insights/audit-relations":
|
|
12597
|
+
get:
|
|
12598
|
+
operationId: listContentAuditRelations
|
|
12599
|
+
summary: List the content relations for in a given organization.
|
|
12600
|
+
tags:
|
|
12601
|
+
- ai
|
|
12602
|
+
- spaces
|
|
12603
|
+
security:
|
|
12604
|
+
- user: []
|
|
12605
|
+
parameters:
|
|
12606
|
+
- $ref: "#/components/parameters/organizationId"
|
|
12607
|
+
- $ref: "#/components/parameters/listPage"
|
|
12608
|
+
- $ref: "#/components/parameters/listLimit"
|
|
12609
|
+
- name: status
|
|
12610
|
+
in: query
|
|
12611
|
+
required: false
|
|
12612
|
+
description: Status of the audit relation to filter on
|
|
12613
|
+
schema:
|
|
12614
|
+
$ref: "#/components/schemas/ContentAuditRelationStatus"
|
|
12615
|
+
default:
|
|
12616
|
+
- pending
|
|
12617
|
+
responses:
|
|
12618
|
+
"200":
|
|
12619
|
+
description: Content audit relations
|
|
12620
|
+
content:
|
|
12621
|
+
application/json:
|
|
12622
|
+
schema:
|
|
12623
|
+
allOf:
|
|
12624
|
+
- $ref: "#/components/schemas/List"
|
|
12625
|
+
- type: object
|
|
12626
|
+
required:
|
|
12627
|
+
- items
|
|
12628
|
+
properties:
|
|
12629
|
+
items:
|
|
12630
|
+
type: array
|
|
12631
|
+
items:
|
|
12632
|
+
$ref: "#/components/schemas/ContentAuditRelation"
|
|
12633
|
+
default:
|
|
12634
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12635
|
+
"/orgs/{organizationId}/insights/audit-relations/{relationId}":
|
|
12636
|
+
patch:
|
|
12637
|
+
operationId: updateContentAuditRelationStatusById
|
|
12638
|
+
summary: Update an audit relation status
|
|
12639
|
+
tags:
|
|
12640
|
+
- organizations
|
|
12641
|
+
security:
|
|
12642
|
+
- user: []
|
|
12643
|
+
parameters:
|
|
12644
|
+
- $ref: "#/components/parameters/organizationId"
|
|
12645
|
+
- name: relationId
|
|
12646
|
+
in: path
|
|
12647
|
+
required: true
|
|
12648
|
+
description: The id of the content audit relation
|
|
12649
|
+
schema:
|
|
12650
|
+
type: string
|
|
12651
|
+
requestBody:
|
|
12652
|
+
required: true
|
|
12653
|
+
content:
|
|
12654
|
+
application/json:
|
|
12655
|
+
schema:
|
|
12656
|
+
$ref: "#/components/schemas/ContentAuditRelationStatusUpdate"
|
|
12657
|
+
responses:
|
|
12658
|
+
"200":
|
|
12659
|
+
description: OK
|
|
12660
|
+
content:
|
|
12661
|
+
application/json:
|
|
12662
|
+
schema:
|
|
12663
|
+
$ref: "#/components/schemas/ContentAuditRelation"
|
|
12664
|
+
"404":
|
|
12665
|
+
description: No matching content relation found for given ID
|
|
12666
|
+
$ref: "#/components/responses/NotFoundError"
|
|
12667
|
+
default:
|
|
12668
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12067
12669
|
/internal/hive/token:
|
|
12068
12670
|
post:
|
|
12069
12671
|
operationId: generateHiveAccessToken
|
|
@@ -12159,3 +12761,31 @@ paths:
|
|
|
12159
12761
|
$ref: "#/components/schemas/Embed"
|
|
12160
12762
|
default:
|
|
12161
12763
|
$ref: "#/components/responses/UnexpectedError"
|
|
12764
|
+
/urls/published:
|
|
12765
|
+
get:
|
|
12766
|
+
operationId: getPublishedContentByUrl
|
|
12767
|
+
summary: Resolve a URL of a published content.
|
|
12768
|
+
tags:
|
|
12769
|
+
- urls
|
|
12770
|
+
parameters:
|
|
12771
|
+
- name: url
|
|
12772
|
+
in: query
|
|
12773
|
+
required: true
|
|
12774
|
+
description: URL to resolve
|
|
12775
|
+
schema:
|
|
12776
|
+
$ref: "#/components/schemas/URL"
|
|
12777
|
+
- name: visitorAuthToken
|
|
12778
|
+
in: query
|
|
12779
|
+
required: false
|
|
12780
|
+
description: JWT token generated for a visitor auth session
|
|
12781
|
+
schema:
|
|
12782
|
+
type: string
|
|
12783
|
+
responses:
|
|
12784
|
+
"200":
|
|
12785
|
+
description: OK
|
|
12786
|
+
content:
|
|
12787
|
+
application/json:
|
|
12788
|
+
schema:
|
|
12789
|
+
$ref: "#/components/schemas/PublishedContentLookup"
|
|
12790
|
+
default:
|
|
12791
|
+
$ref: "#/components/responses/UnexpectedError"
|