@gitbook/api 0.113.0 → 0.115.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
@@ -1199,6 +1199,7 @@ paths:
1199
1199
  tags:
1200
1200
  - space-content
1201
1201
  - links
1202
+ - critical
1202
1203
  security:
1203
1204
  - user: []
1204
1205
  parameters:
@@ -1758,6 +1759,7 @@ paths:
1758
1759
  tags:
1759
1760
  - change-requests-links
1760
1761
  - links
1762
+ - critical
1761
1763
  security:
1762
1764
  - user: []
1763
1765
  parameters:
@@ -2247,6 +2249,7 @@ paths:
2247
2249
  summary: List all change request links
2248
2250
  tags:
2249
2251
  - change-request-content
2252
+ - critical
2250
2253
  security:
2251
2254
  - user: []
2252
2255
  parameters:
@@ -2612,6 +2615,7 @@ paths:
2612
2615
  summary: List all space comments
2613
2616
  tags:
2614
2617
  - space-comments
2618
+ - critical
2615
2619
  security:
2616
2620
  - user: []
2617
2621
  parameters:
@@ -2999,6 +3003,7 @@ paths:
2999
3003
  tags:
3000
3004
  - spaces
3001
3005
  - links
3006
+ - critical
3002
3007
  security:
3003
3008
  - user: []
3004
3009
  parameters:
@@ -4168,6 +4173,7 @@ paths:
4168
4173
  summary: Get the list of organizations for the currently authenticated user
4169
4174
  tags:
4170
4175
  - organizations
4176
+ - critical
4171
4177
  security:
4172
4178
  - user: []
4173
4179
  parameters:
@@ -4320,6 +4326,7 @@ paths:
4320
4326
  summary: Get an organization member by its ID
4321
4327
  tags:
4322
4328
  - organization-members
4329
+ - critical
4323
4330
  security:
4324
4331
  - user: []
4325
4332
  parameters:
@@ -6448,7 +6455,7 @@ paths:
6448
6455
  tags:
6449
6456
  - sites
6450
6457
  security:
6451
- - user-internal: []
6458
+ - user: []
6452
6459
  parameters:
6453
6460
  - $ref: "#/components/parameters/organizationId"
6454
6461
  - $ref: "#/components/parameters/siteId"
@@ -6470,7 +6477,7 @@ paths:
6470
6477
  tags:
6471
6478
  - sites
6472
6479
  security:
6473
- - user-internal: []
6480
+ - user: []
6474
6481
  parameters:
6475
6482
  - $ref: "#/components/parameters/organizationId"
6476
6483
  - $ref: "#/components/parameters/siteId"
@@ -7680,22 +7687,11 @@ paths:
7680
7687
  favicon:
7681
7688
  description: The favicon to use. Set to null to reset the override.
7682
7689
  oneOf:
7683
- - type: object
7684
- properties:
7685
- icon:
7686
- $ref: "#/components/schemas/CustomizationThemedURL"
7687
- required:
7688
- - icon
7689
- - type: object
7690
- properties:
7691
- emoji:
7692
- $ref: "#/components/schemas/Emoji"
7693
- required:
7694
- - emoji
7695
- - type: object
7690
+ - $ref: "#/components/schemas/CustomizationFavicon"
7691
+ - type: string
7696
7692
  nullable: true
7697
- properties: {}
7698
- additionalProperties: false
7693
+ enum:
7694
+ - null
7699
7695
  announcement:
7700
7696
  $ref: "#/components/schemas/CustomizationAnnouncement"
7701
7697
  header:
@@ -8588,6 +8584,7 @@ paths:
8588
8584
  get:
8589
8585
  operationId: getPublishedContentByUrl
8590
8586
  summary: Resolve a URL of a published content.
8587
+ deprecated: true
8591
8588
  tags:
8592
8589
  - urls
8593
8590
  parameters:
@@ -8620,6 +8617,39 @@ paths:
8620
8617
  "404":
8621
8618
  description: No content found for the URL.
8622
8619
  $ref: "#/components/responses/NotFoundError"
8620
+ post:
8621
+ operationId: resolvePublishedContentByUrl
8622
+ summary: Resolve a URL of a published content.
8623
+ tags:
8624
+ - urls
8625
+ requestBody:
8626
+ required: true
8627
+ content:
8628
+ application/json:
8629
+ schema:
8630
+ type: object
8631
+ properties:
8632
+ url:
8633
+ description: URL to resolve
8634
+ $ref: "#/components/schemas/URL"
8635
+ redirectOnError:
8636
+ type: boolean
8637
+ description: When true redirects the user to the authentication/fallback URL if the visitor auth token is invalid
8638
+ default: false
8639
+ visitor:
8640
+ $ref: "#/components/schemas/SiteVisitorPayload"
8641
+ required:
8642
+ - url
8643
+ responses:
8644
+ "200":
8645
+ description: OK
8646
+ content:
8647
+ application/json:
8648
+ schema:
8649
+ $ref: "#/components/schemas/PublishedSiteContentLookup"
8650
+ "404":
8651
+ description: No content found for the URL.
8652
+ $ref: "#/components/responses/NotFoundError"
8623
8653
  components:
8624
8654
  securitySchemes:
8625
8655
  user:
@@ -13117,7 +13147,10 @@ components:
13117
13147
  - reason
13118
13148
  internal_isOnNewTrial:
13119
13149
  type: boolean
13120
- description: If true, the organization is on the new trial which includes sites and the Pro plan.
13150
+ description: Deprecated. Always true. All organizations are on new trials.
13151
+ deprecated: true
13152
+ enum:
13153
+ - true
13121
13154
  internal_billingMigration:
13122
13155
  type: object
13123
13156
  properties:
@@ -13143,6 +13176,12 @@ components:
13143
13176
  ownTeam:
13144
13177
  type: boolean
13145
13178
  description: Is the user a team owner.
13179
+ createContent:
13180
+ type: boolean
13181
+ description: Can the user create new spaces/collections in the organization.
13182
+ createOpenAPISpec:
13183
+ type: boolean
13184
+ description: Can the user create new OpenAPI specifications.
13146
13185
  viewBilling:
13147
13186
  type: boolean
13148
13187
  description: Can the user view the billing details of the organization.
@@ -13152,9 +13191,6 @@ components:
13152
13191
  listTeams:
13153
13192
  type: boolean
13154
13193
  description: Can the user list the teams in the organization.
13155
- createContent:
13156
- type: boolean
13157
- description: Can the user create new spaces/collections in the organization.
13158
13194
  listIntegrations:
13159
13195
  type: boolean
13160
13196
  description: Can the user list the integrations in the organization.
@@ -13163,6 +13199,11 @@ components:
13163
13199
  - admin
13164
13200
  - ownTeam
13165
13201
  - createContent
13202
+ - createOpenAPISpec
13203
+ - viewBilling
13204
+ - listMembers
13205
+ - listTeams
13206
+ - listIntegrations
13166
13207
  required:
13167
13208
  - object
13168
13209
  - id
@@ -13724,6 +13765,27 @@ components:
13724
13765
  format: uri
13725
13766
  required:
13726
13767
  - location
13768
+ permissions:
13769
+ type: object
13770
+ description: The set of permissions for the comment
13771
+ properties:
13772
+ view:
13773
+ type: boolean
13774
+ description: Can the user view the comment.
13775
+ edit:
13776
+ type: boolean
13777
+ description: Can the user edit the comment.
13778
+ reply:
13779
+ type: boolean
13780
+ description: Can the user react or send a reply to the comment.
13781
+ delete:
13782
+ type: boolean
13783
+ description: Can the user delete the comment.
13784
+ required:
13785
+ - view
13786
+ - edit
13787
+ - react
13788
+ - delete
13727
13789
  required:
13728
13790
  - object
13729
13791
  - id
@@ -13734,6 +13796,7 @@ components:
13734
13796
  - reactions
13735
13797
  - target
13736
13798
  - urls
13799
+ - permissions
13737
13800
  - oneOf:
13738
13801
  - type: object
13739
13802
  title: Resolved
@@ -13928,6 +13991,27 @@ components:
13928
13991
  format: uri
13929
13992
  required:
13930
13993
  - location
13994
+ permissions:
13995
+ type: object
13996
+ description: The set of permissions for the comment reply
13997
+ properties:
13998
+ view:
13999
+ type: boolean
14000
+ description: Can the user view the comment reply.
14001
+ edit:
14002
+ type: boolean
14003
+ description: Can the user edit the comment reply.
14004
+ reply:
14005
+ type: boolean
14006
+ description: Can the user react or reply to the comment reply.
14007
+ delete:
14008
+ type: boolean
14009
+ description: Can the user delete the comment reply.
14010
+ required:
14011
+ - view
14012
+ - edit
14013
+ - react
14014
+ - delete
13931
14015
  required:
13932
14016
  - object
13933
14017
  - id
@@ -13936,6 +14020,7 @@ components:
13936
14020
  - postedAt
13937
14021
  - reactions
13938
14022
  - urls
14023
+ - permissions
13939
14024
  PostCommentReplySchema:
13940
14025
  type: object
13941
14026
  properties:
@@ -14644,6 +14729,8 @@ components:
14644
14729
  - site:script:inject
14645
14730
  - site:script:cookies
14646
14731
  - site:visitor:auth
14732
+ - site:adaptive:read
14733
+ - site:adaptive:write
14647
14734
  - openapi:read
14648
14735
  - openapi:write
14649
14736
  IntegrationScopes:
@@ -16050,6 +16137,33 @@ components:
16050
16137
  description: Title of the site
16051
16138
  minLength: 2
16052
16139
  maxLength: 128
16140
+ CustomizationThemedURL:
16141
+ type: object
16142
+ properties:
16143
+ light:
16144
+ $ref: "#/components/schemas/URL"
16145
+ dark:
16146
+ $ref: "#/components/schemas/URL"
16147
+ required:
16148
+ - light
16149
+ - dark
16150
+ CustomizationFavicon:
16151
+ oneOf:
16152
+ - type: object
16153
+ properties:
16154
+ icon:
16155
+ $ref: "#/components/schemas/CustomizationThemedURL"
16156
+ required:
16157
+ - icon
16158
+ - type: object
16159
+ properties:
16160
+ emoji:
16161
+ $ref: "#/components/schemas/Emoji"
16162
+ required:
16163
+ - emoji
16164
+ - type: object
16165
+ properties: {}
16166
+ additionalProperties: false
16053
16167
  SiteHostname:
16054
16168
  type: string
16055
16169
  description: Custom hostname for the site, for e.g. docs.mycompany.com
@@ -16234,6 +16348,13 @@ components:
16234
16348
  $ref: "#/components/schemas/SiteType"
16235
16349
  title:
16236
16350
  $ref: "#/components/schemas/SiteTitle"
16351
+ icon:
16352
+ oneOf:
16353
+ - $ref: "#/components/schemas/CustomizationFavicon"
16354
+ - type: string
16355
+ nullable: true
16356
+ enum:
16357
+ - null
16237
16358
  hostname:
16238
16359
  $ref: "#/components/schemas/SiteHostname"
16239
16360
  basename:
@@ -17573,6 +17694,9 @@ components:
17573
17694
  level:
17574
17695
  $ref: "#/components/schemas/MemberRoleOrGuest"
17575
17696
  description: The level of the member in the target collection
17697
+ redundant:
17698
+ type: boolean
17699
+ description: An invite is redundant if the requesting user already has all necessary permissions.
17576
17700
  collection:
17577
17701
  $ref: "#/components/schemas/Collection"
17578
17702
  description: The collection the member has been invited to
@@ -17581,6 +17705,7 @@ components:
17581
17705
  - id
17582
17706
  - target
17583
17707
  - level
17708
+ - redundant
17584
17709
  - collection
17585
17710
  InviteLinkToSpace:
17586
17711
  type: object
@@ -17597,6 +17722,9 @@ components:
17597
17722
  level:
17598
17723
  $ref: "#/components/schemas/MemberRoleOrGuest"
17599
17724
  description: The level of the member in the target space
17725
+ redundant:
17726
+ type: boolean
17727
+ description: An invite is redundant if the requesting user already has all necessary permissions.
17600
17728
  space:
17601
17729
  $ref: "#/components/schemas/Space"
17602
17730
  description: The space the member has been invited to
@@ -17605,6 +17733,7 @@ components:
17605
17733
  - id
17606
17734
  - target
17607
17735
  - level
17736
+ - redundant
17608
17737
  - space
17609
17738
  InviteLinkToOrganization:
17610
17739
  type: object
@@ -17620,11 +17749,15 @@ components:
17620
17749
  description: Unique identifier for the invite link to the organization
17621
17750
  role:
17622
17751
  $ref: "#/components/schemas/MemberRoleOrGuest"
17623
- description: The role of the member in the organization
17752
+ description: The role in the organization the invite link is for
17753
+ redundant:
17754
+ type: boolean
17755
+ description: An invite is redundant if the requesting user already has all necessary permissions.
17624
17756
  required:
17625
17757
  - object
17626
17758
  - id
17627
17759
  - role
17760
+ - redundant
17628
17761
  CreateInviteToOrganization:
17629
17762
  type: object
17630
17763
  properties:
@@ -17973,10 +18106,6 @@ components:
17973
18106
  maxLength: 50
17974
18107
  emoji:
17975
18108
  $ref: "#/components/schemas/Emoji"
17976
- private:
17977
- description: Private spaces are no longer supported by GitBook.
17978
- deprecated: true
17979
- type: boolean
17980
18109
  parent:
17981
18110
  type: string
17982
18111
  description: ID of a parent collection
@@ -18645,59 +18774,59 @@ components:
18645
18774
  required:
18646
18775
  - type
18647
18776
  - plan
18648
- properties:
18649
- type: object
18650
- additionalProperties:
18651
- oneOf:
18652
- - type: object
18653
- properties:
18654
- type:
18655
- type: string
18656
- enum:
18657
- - boolean
18658
- description:
18659
- type: string
18660
- required:
18661
- - type
18662
- - description
18663
- additionalProperties: false
18664
- - type: object
18665
- properties:
18666
- type:
18667
- type: string
18668
- enum:
18669
- - string
18777
+ SiteAdaptiveJSONSchemaClaimsProperties:
18778
+ oneOf:
18779
+ - type: object
18780
+ properties:
18781
+ type:
18782
+ type: string
18670
18783
  enum:
18671
- type: array
18672
- items:
18673
- type: string
18674
- description:
18784
+ - boolean
18785
+ description:
18786
+ type: string
18787
+ required:
18788
+ - type
18789
+ - description
18790
+ additionalProperties: false
18791
+ - type: object
18792
+ properties:
18793
+ type:
18794
+ type: string
18795
+ enum:
18796
+ - string
18797
+ enum:
18798
+ type: array
18799
+ items:
18675
18800
  type: string
18676
- required:
18677
- - type
18678
- - enum
18679
- - description
18680
- additionalProperties: false
18681
- - type: object
18801
+ description:
18802
+ type: string
18803
+ required:
18804
+ - type
18805
+ - enum
18806
+ - description
18807
+ additionalProperties: false
18808
+ - type: object
18809
+ properties:
18810
+ type:
18811
+ type: string
18812
+ enum:
18813
+ - object
18814
+ description:
18815
+ type: string
18682
18816
  properties:
18683
- type:
18684
- type: string
18685
- enum:
18686
- - object
18687
- description:
18688
- type: string
18689
- properties:
18690
- $ref: "#/components/schemas/properties"
18817
+ type: object
18691
18818
  additionalProperties:
18692
- type: boolean
18693
- enum:
18694
- - false
18695
- required:
18696
- - type
18697
- - description
18698
- - properties
18699
- - additionalProperties
18700
- additionalProperties: false
18819
+ $ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
18820
+ additionalProperties:
18821
+ type: boolean
18822
+ enum:
18823
+ - false
18824
+ required:
18825
+ - type
18826
+ - description
18827
+ - properties
18828
+ - additionalProperties
18829
+ additionalProperties: false
18701
18830
  SiteAdaptiveJSONSchema:
18702
18831
  type: object
18703
18832
  description: JSON schema describing the expected attributes of an Adaptive site schema.
@@ -18714,57 +18843,34 @@ components:
18714
18843
  - object
18715
18844
  properties:
18716
18845
  type: object
18717
- additionalProperties:
18718
- oneOf:
18719
- - type: object
18720
- properties:
18721
- type:
18722
- type: string
18723
- enum:
18724
- - boolean
18725
- description:
18726
- type: string
18727
- required:
18728
- - type
18729
- - description
18730
- additionalProperties: false
18731
- - type: object
18732
- properties:
18733
- type:
18734
- type: string
18735
- enum:
18736
- - string
18846
+ properties:
18847
+ unsigned:
18848
+ type: object
18849
+ description: Unsigned claims of the site visitor.
18850
+ properties:
18851
+ type:
18852
+ type: string
18737
18853
  enum:
18738
- type: array
18739
- items:
18740
- type: string
18741
- description:
18742
- type: string
18743
- required:
18744
- - type
18745
- - enum
18746
- - description
18747
- additionalProperties: false
18748
- - type: object
18854
+ - object
18855
+ description:
18856
+ type: string
18857
+ enum:
18858
+ - Unsigned claims of the site visitor.
18749
18859
  properties:
18750
- type:
18751
- type: string
18752
- enum:
18753
- - object
18754
- description:
18755
- type: string
18756
- properties:
18757
- $ref: "#/components/schemas/properties"
18860
+ type: object
18758
18861
  additionalProperties:
18759
- type: boolean
18760
- enum:
18761
- - false
18762
- required:
18763
- - type
18764
- - description
18765
- - properties
18766
- - additionalProperties
18767
- additionalProperties: false
18862
+ $ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
18863
+ additionalProperties:
18864
+ type: boolean
18865
+ enum:
18866
+ - false
18867
+ required:
18868
+ - type
18869
+ - description
18870
+ - properties
18871
+ - additionalProperties
18872
+ additionalProperties:
18873
+ $ref: "#/components/schemas/SiteAdaptiveJSONSchemaClaimsProperties"
18768
18874
  additionalProperties:
18769
18875
  type: boolean
18770
18876
  enum:
@@ -18914,16 +19020,6 @@ components:
18914
19020
  - nl
18915
19021
  - no
18916
19022
  - pt-br
18917
- CustomizationThemedURL:
18918
- type: object
18919
- properties:
18920
- light:
18921
- $ref: "#/components/schemas/URL"
18922
- dark:
18923
- $ref: "#/components/schemas/URL"
18924
- required:
18925
- - light
18926
- - dark
18927
19023
  CustomizationHeaderPreset:
18928
19024
  type: string
18929
19025
  deprecated: true
@@ -19086,22 +19182,7 @@ components:
19086
19182
  required:
19087
19183
  - locale
19088
19184
  favicon:
19089
- oneOf:
19090
- - type: object
19091
- properties:
19092
- icon:
19093
- $ref: "#/components/schemas/CustomizationThemedURL"
19094
- required:
19095
- - icon
19096
- - type: object
19097
- properties:
19098
- emoji:
19099
- $ref: "#/components/schemas/Emoji"
19100
- required:
19101
- - emoji
19102
- - type: object
19103
- properties: {}
19104
- additionalProperties: false
19185
+ $ref: "#/components/schemas/CustomizationFavicon"
19105
19186
  header:
19106
19187
  type: object
19107
19188
  properties:
@@ -21243,7 +21324,7 @@ components:
21243
21324
  type: string
21244
21325
  description: The source path to redirect from.
21245
21326
  maxLength: 512
21246
- pattern: ^/[a-zA-Z0-9-_.\/]+[a-zA-Z0-9-_.]$
21327
+ pattern: ^\/(?:[A-Za-z0-9\-._~]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~]|%[0-9A-Fa-f]{2})+)*$
21247
21328
  SiteRedirectDestinationSiteSection:
21248
21329
  type: object
21249
21330
  properties:
@@ -21792,6 +21873,15 @@ components:
21792
21873
  - target
21793
21874
  - redirect
21794
21875
  - $ref: "#/components/schemas/PublishedSiteContent"
21876
+ SiteVisitorPayload:
21877
+ type: object
21878
+ description: An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims.
21879
+ properties:
21880
+ jwtToken:
21881
+ type: string
21882
+ description: JWT token generated for a visitor auth session.
21883
+ unsignedClaims:
21884
+ $ref: "#/components/schemas/PlainObject"
21795
21885
  SHA256:
21796
21886
  type: string
21797
21887
  minLength: 64
@@ -23457,22 +23547,7 @@ components:
23457
23547
  - locale
23458
23548
  - inherit
23459
23549
  favicon:
23460
- oneOf:
23461
- - type: object
23462
- properties:
23463
- icon:
23464
- $ref: "#/components/schemas/CustomizationThemedURL"
23465
- required:
23466
- - icon
23467
- - type: object
23468
- properties:
23469
- emoji:
23470
- $ref: "#/components/schemas/Emoji"
23471
- required:
23472
- - emoji
23473
- - type: object
23474
- properties: {}
23475
- additionalProperties: false
23550
+ $ref: "#/components/schemas/CustomizationFavicon"
23476
23551
  header:
23477
23552
  type: object
23478
23553
  properties: