@gitbook/api 0.77.0 → 0.79.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
@@ -2708,6 +2708,7 @@ paths:
2708
2708
  $ref: "#/components/responses/UnexpectedError"
2709
2709
  "/spaces/{spaceId}/publishing/customization":
2710
2710
  get:
2711
+ deprecated: true
2711
2712
  operationId: getSpacePublishingCustomizationById
2712
2713
  summary: Get the publishing customization configuration for a space.
2713
2714
  tags:
@@ -2728,6 +2729,7 @@ paths:
2728
2729
  default:
2729
2730
  $ref: "#/components/responses/UnexpectedError"
2730
2731
  put:
2732
+ deprecated: true
2731
2733
  operationId: updateSpacePublishingCustomizationById
2732
2734
  summary: Update the publishing customization configuration for a space.
2733
2735
  tags:
@@ -2962,82 +2964,6 @@ paths:
2962
2964
  - url
2963
2965
  default:
2964
2966
  $ref: "#/components/responses/UnexpectedError"
2965
- "/spaces/{spaceId}/share-links":
2966
- post:
2967
- operationId: createSpaceShareLink
2968
- summary: Creates a new space share link
2969
- tags:
2970
- - spaces
2971
- security:
2972
- - user: []
2973
- parameters:
2974
- - $ref: "#/components/parameters/spaceId"
2975
- requestBody:
2976
- content:
2977
- application/json:
2978
- schema:
2979
- type: object
2980
- properties:
2981
- name:
2982
- $ref: "#/components/schemas/ShareLinkName"
2983
- required:
2984
- - name
2985
- responses:
2986
- "201":
2987
- description: The space share link has been created
2988
- content:
2989
- application/json:
2990
- schema:
2991
- $ref: "#/components/schemas/ShareLink"
2992
- default:
2993
- $ref: "#/components/responses/UnexpectedError"
2994
- "/spaces/{spaceId}/share-links/{shareLinkId}":
2995
- patch:
2996
- operationId: updateSpaceShareLinkById
2997
- summary: Update the details of a space share link
2998
- tags:
2999
- - spaces
3000
- security:
3001
- - user: []
3002
- parameters:
3003
- - $ref: "#/components/parameters/spaceId"
3004
- - $ref: "#/components/parameters/shareLinkId"
3005
- requestBody:
3006
- required: true
3007
- content:
3008
- application/json:
3009
- schema:
3010
- type: object
3011
- minProperties: 1
3012
- properties:
3013
- active:
3014
- type: boolean
3015
- name:
3016
- $ref: "#/components/schemas/ShareLinkName"
3017
- responses:
3018
- "200":
3019
- description: The space share link has been updated
3020
- content:
3021
- application/json:
3022
- schema:
3023
- $ref: "#/components/schemas/ShareLink"
3024
- default:
3025
- $ref: "#/components/responses/UnexpectedError"
3026
- delete:
3027
- operationId: deleteSpaceShareLinkById
3028
- summary: Deletes a space share link
3029
- tags:
3030
- - spaces
3031
- security:
3032
- - user: []
3033
- parameters:
3034
- - $ref: "#/components/parameters/spaceId"
3035
- - $ref: "#/components/parameters/shareLinkId"
3036
- responses:
3037
- "205":
3038
- description: Space share link has been deleted
3039
- default:
3040
- $ref: "#/components/responses/UnexpectedError"
3041
2967
  "/spaces/{spaceId}/links":
3042
2968
  get:
3043
2969
  operationId: listSpaceLinks
@@ -3292,129 +3218,6 @@ paths:
3292
3218
  $ref: "#/components/schemas/UserContentPermission"
3293
3219
  default:
3294
3220
  $ref: "#/components/responses/UnexpectedError"
3295
- "/collections/{collectionId}/publishing/customization":
3296
- get:
3297
- operationId: getCollectionPublishingCustomizationById
3298
- summary: Get the publishing customization configuration for a collection.
3299
- tags:
3300
- - collections
3301
- security:
3302
- - user: []
3303
- parameters:
3304
- - $ref: "#/components/parameters/collectionId"
3305
- responses:
3306
- "200":
3307
- description: OK
3308
- content:
3309
- application/json:
3310
- schema:
3311
- $ref: "#/components/schemas/CustomizationCollectionSettings"
3312
- "400":
3313
- $ref: "#/components/responses/BadRequestError"
3314
- default:
3315
- $ref: "#/components/responses/UnexpectedError"
3316
- put:
3317
- operationId: updateCollectionPublishingCustomizationById
3318
- summary: Update the publishing customization configuration for a collection.
3319
- tags:
3320
- - collections
3321
- security:
3322
- - user: []
3323
- parameters:
3324
- - $ref: "#/components/parameters/collectionId"
3325
- requestBody:
3326
- required: true
3327
- content:
3328
- application/json:
3329
- schema:
3330
- $ref: "#/components/schemas/CustomizationCollectionSettings"
3331
- responses:
3332
- "200":
3333
- description: OK
3334
- content:
3335
- application/json:
3336
- schema:
3337
- $ref: "#/components/schemas/CustomizationCollectionSettings"
3338
- "400":
3339
- $ref: "#/components/responses/BadRequestError"
3340
- default:
3341
- $ref: "#/components/responses/UnexpectedError"
3342
- "/collections/{collectionId}/share-links":
3343
- post:
3344
- operationId: createCollectionShareLink
3345
- summary: Creates a new collection share link
3346
- tags:
3347
- - collections
3348
- security:
3349
- - user: []
3350
- parameters:
3351
- - $ref: "#/components/parameters/collectionId"
3352
- requestBody:
3353
- content:
3354
- application/json:
3355
- schema:
3356
- type: object
3357
- properties:
3358
- name:
3359
- $ref: "#/components/schemas/ShareLinkName"
3360
- required:
3361
- - name
3362
- responses:
3363
- "201":
3364
- description: The collection share link has been created
3365
- content:
3366
- application/json:
3367
- schema:
3368
- $ref: "#/components/schemas/ShareLink"
3369
- default:
3370
- $ref: "#/components/responses/UnexpectedError"
3371
- "/collections/{collectionId}/share-links/{shareLinkId}":
3372
- patch:
3373
- operationId: updateCollectionShareLinkById
3374
- summary: Update the details of a collection share link
3375
- tags:
3376
- - collections
3377
- security:
3378
- - user: []
3379
- parameters:
3380
- - $ref: "#/components/parameters/collectionId"
3381
- - $ref: "#/components/parameters/shareLinkId"
3382
- requestBody:
3383
- required: true
3384
- content:
3385
- application/json:
3386
- schema:
3387
- type: object
3388
- minProperties: 1
3389
- properties:
3390
- active:
3391
- type: boolean
3392
- name:
3393
- $ref: "#/components/schemas/ShareLinkName"
3394
- responses:
3395
- "200":
3396
- description: The collection share link has been updated
3397
- content:
3398
- application/json:
3399
- schema:
3400
- $ref: "#/components/schemas/ShareLink"
3401
- default:
3402
- $ref: "#/components/responses/UnexpectedError"
3403
- delete:
3404
- operationId: deleteCollectionShareLinkById
3405
- summary: Deletes a collection share link
3406
- tags:
3407
- - collections
3408
- security:
3409
- - user: []
3410
- parameters:
3411
- - $ref: "#/components/parameters/collectionId"
3412
- - $ref: "#/components/parameters/shareLinkId"
3413
- responses:
3414
- "205":
3415
- description: Collection share link has been deleted
3416
- default:
3417
- $ref: "#/components/responses/UnexpectedError"
3418
3221
  /integrations:
3419
3222
  get:
3420
3223
  operationId: listIntegrations
@@ -7485,6 +7288,13 @@ paths:
7485
7288
  defaultSiteSpace:
7486
7289
  type: string
7487
7290
  description: ID of the site-space to be used as the default in this section.
7291
+ icon:
7292
+ oneOf:
7293
+ - $ref: "#/components/schemas/Icon"
7294
+ - type: string
7295
+ nullable: true
7296
+ enum:
7297
+ - null
7488
7298
  responses:
7489
7299
  "200":
7490
7300
  description: OK
@@ -8458,7 +8268,7 @@ paths:
8458
8268
  $ref: "#/components/responses/UnexpectedError"
8459
8269
  post:
8460
8270
  operationId: setupCustomHostname
8461
- summary: Setup a custom hostname on a content or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
8271
+ summary: Setup a custom hostname on a site or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
8462
8272
  tags:
8463
8273
  - custom-hostnames
8464
8274
  security:
@@ -8474,8 +8284,6 @@ paths:
8474
8284
  target:
8475
8285
  oneOf:
8476
8286
  - $ref: "#/components/schemas/OrganizationPointer"
8477
- - $ref: "#/components/schemas/SpacePointer"
8478
- - $ref: "#/components/schemas/CollectionPointer"
8479
8287
  - $ref: "#/components/schemas/SitePointer"
8480
8288
  required:
8481
8289
  - target
@@ -8536,7 +8344,7 @@ paths:
8536
8344
  "/custom-hostnames/{hostname}/test":
8537
8345
  post:
8538
8346
  operationId: testCustomHostname
8539
- summary: Test if a custom hostname can be used for a content or organization.
8347
+ summary: Test if a custom hostname can be used for a site or organization.
8540
8348
  tags:
8541
8349
  - custom-hostnames
8542
8350
  security:
@@ -8552,8 +8360,6 @@ paths:
8552
8360
  target:
8553
8361
  oneOf:
8554
8362
  - $ref: "#/components/schemas/OrganizationPointer"
8555
- - $ref: "#/components/schemas/SpacePointer"
8556
- - $ref: "#/components/schemas/CollectionPointer"
8557
8363
  - $ref: "#/components/schemas/SitePointer"
8558
8364
  required:
8559
8365
  - target
@@ -8990,13 +8796,6 @@ components:
8990
8796
  description: The id of the visitor
8991
8797
  schema:
8992
8798
  type: string
8993
- shareLinkId:
8994
- name: shareLinkId
8995
- in: path
8996
- required: true
8997
- description: The unique id of the share link
8998
- schema:
8999
- type: string
9000
8799
  collectionId:
9001
8800
  name: collectionId
9002
8801
  in: path
@@ -9088,6 +8887,13 @@ components:
9088
8887
  schema:
9089
8888
  type: string
9090
8889
  format: date-time
8890
+ shareLinkId:
8891
+ name: shareLinkId
8892
+ in: path
8893
+ required: true
8894
+ description: The unique id of the share link
8895
+ schema:
8896
+ type: string
9091
8897
  siteCustomizationUnmasked:
9092
8898
  name: unmasked
9093
8899
  in: query
@@ -11405,6 +11211,7 @@ components:
11405
11211
  Emoji:
11406
11212
  type: string
11407
11213
  maxLength: 50
11214
+ format: emoji
11408
11215
  description: Unicode codepoint or character of the emoji
11409
11216
  example: 🎉
11410
11217
  ContentVisibility:
@@ -11608,6 +11415,19 @@ components:
11608
11415
  description: ID of the active revision in the space.
11609
11416
  defaultLevel:
11610
11417
  $ref: "#/components/schemas/DefaultLevel"
11418
+ permissions:
11419
+ type: object
11420
+ description: The set of permissions for the space
11421
+ properties:
11422
+ admin:
11423
+ type: boolean
11424
+ description: Can the user edit the title, install integrations, and manage the space.
11425
+ edit:
11426
+ type: boolean
11427
+ description: Can the user edit the content of the space by creating a change request.
11428
+ required:
11429
+ - admin
11430
+ - edit
11611
11431
  required:
11612
11432
  - object
11613
11433
  - id
@@ -11621,6 +11441,7 @@ components:
11621
11441
  - updatedAt
11622
11442
  - urls
11623
11443
  - defaultLevel
11444
+ - permissions
11624
11445
  SpacePointer:
11625
11446
  type: object
11626
11447
  properties:
@@ -11860,6 +11681,7 @@ components:
11860
11681
  Icon:
11861
11682
  type: string
11862
11683
  maxLength: 50
11684
+ format: icon
11863
11685
  description: Name of the icon
11864
11686
  example: gear
11865
11687
  RevisionPageBase:
@@ -12694,8 +12516,6 @@ components:
12694
12516
  OrganizationDefaultContent:
12695
12517
  description: The default content for the organization
12696
12518
  oneOf:
12697
- - $ref: "#/components/schemas/SpacePointer"
12698
- - $ref: "#/components/schemas/CollectionPointer"
12699
12519
  - $ref: "#/components/schemas/SitePointer"
12700
12520
  BillingProduct:
12701
12521
  type: string
@@ -14786,54 +14606,6 @@ components:
14786
14606
  - createdAt
14787
14607
  - revision
14788
14608
  - urls
14789
- ShareLinkName:
14790
- type: string
14791
- description: Name of the share link
14792
- minLength: 0
14793
- maxLength: 50
14794
- ShareLink:
14795
- type: object
14796
- properties:
14797
- object:
14798
- type: string
14799
- description: Type of Object, always equals to "share-link"
14800
- enum:
14801
- - share-link
14802
- id:
14803
- type: string
14804
- description: Unique identifier for the share-link
14805
- createdAt:
14806
- $ref: "#/components/schemas/Timestamp"
14807
- name:
14808
- $ref: "#/components/schemas/ShareLinkName"
14809
- active:
14810
- type: boolean
14811
- urls:
14812
- type: object
14813
- description: URLs associated with the object
14814
- properties:
14815
- published:
14816
- type: string
14817
- description: URL of the published version of the share-link.
14818
- format: uri
14819
- required:
14820
- - object
14821
- - id
14822
- - createdAt
14823
- - urls
14824
- CustomizationCollectionSettings:
14825
- allOf:
14826
- - $ref: "#/components/schemas/CustomizationSettings"
14827
- - type: object
14828
- properties:
14829
- collection:
14830
- type: object
14831
- properties:
14832
- defaultSpace:
14833
- type: string
14834
- description: ID of the space used by default in the collection
14835
- required:
14836
- - collection
14837
14609
  IntegrationSecrets:
14838
14610
  type: object
14839
14611
  description: Secrets stored on the integration and passed at runtime.
@@ -16866,6 +16638,8 @@ components:
16866
16638
  format: uri
16867
16639
  required:
16868
16640
  - location
16641
+ icon:
16642
+ $ref: "#/components/schemas/Icon"
16869
16643
  required:
16870
16644
  - object
16871
16645
  - id
@@ -18149,6 +17923,41 @@ components:
18149
17923
  - structure
18150
17924
  - customizations
18151
17925
  - scripts
17926
+ ShareLinkName:
17927
+ type: string
17928
+ description: Name of the share link
17929
+ minLength: 0
17930
+ maxLength: 50
17931
+ ShareLink:
17932
+ type: object
17933
+ properties:
17934
+ object:
17935
+ type: string
17936
+ description: Type of Object, always equals to "share-link"
17937
+ enum:
17938
+ - share-link
17939
+ id:
17940
+ type: string
17941
+ description: Unique identifier for the share-link
17942
+ createdAt:
17943
+ $ref: "#/components/schemas/Timestamp"
17944
+ name:
17945
+ $ref: "#/components/schemas/ShareLinkName"
17946
+ active:
17947
+ type: boolean
17948
+ urls:
17949
+ type: object
17950
+ description: URLs associated with the object
17951
+ properties:
17952
+ published:
17953
+ type: string
17954
+ description: URL of the published version of the share-link.
17955
+ format: uri
17956
+ required:
17957
+ - object
17958
+ - id
17959
+ - createdAt
17960
+ - urls
18152
17961
  SitePublishingAuth:
18153
17962
  allOf:
18154
17963
  - oneOf:
@@ -18366,6 +18175,19 @@ components:
18366
18175
  icon:
18367
18176
  description: Icon of the page, if one has been set.
18368
18177
  $ref: "#/components/schemas/Icon"
18178
+ AnalyticsAsk:
18179
+ type: object
18180
+ description: Analytics entry for an ask.
18181
+ required:
18182
+ - ask
18183
+ - count
18184
+ properties:
18185
+ ask:
18186
+ description: The question that was asked.
18187
+ type: string
18188
+ count:
18189
+ description: Number of times this question was asked.
18190
+ type: number
18369
18191
  SiteRedirectSourcePath:
18370
18192
  type: string
18371
18193
  description: The source path to redirect from.
@@ -18477,8 +18299,6 @@ components:
18477
18299
  target:
18478
18300
  oneOf:
18479
18301
  - $ref: "#/components/schemas/OrganizationPointer"
18480
- - $ref: "#/components/schemas/SpacePointer"
18481
- - $ref: "#/components/schemas/CollectionPointer"
18482
18302
  - $ref: "#/components/schemas/SitePointer"
18483
18303
  isActive:
18484
18304
  type: boolean
@@ -18878,6 +18698,9 @@ components:
18878
18698
  complete:
18879
18699
  type: boolean
18880
18700
  description: Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments.
18701
+ contextId:
18702
+ type: string
18703
+ description: Context returned only for a visitor authentication session to track changes in the visitor session context that affect content rendering (used for cache invalidation).
18881
18704
  required:
18882
18705
  - site
18883
18706
  - siteSpace
@@ -19284,12 +19107,17 @@ components:
19284
19107
  items:
19285
19108
  type: string
19286
19109
  description: List of spaces that the token is allowed to access.
19110
+ claims:
19111
+ type: object
19112
+ description: Attributes or assertions that provide specific details about the visitor for which the token was generated.
19113
+ additionalProperties: true
19287
19114
  rateLimitMultiplier:
19288
19115
  type: number
19289
19116
  description: Multiplier for the rate limit applied to the token.
19290
19117
  required:
19291
19118
  - organization
19292
19119
  - spaces
19120
+ - claims
19293
19121
  SpaceAPIToken:
19294
19122
  allOf:
19295
19123
  - $ref: "#/components/schemas/ContentAPIBaseToken"