@gitbook/api 0.55.0 → 0.57.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
@@ -5602,184 +5602,6 @@ paths:
5602
5602
  - teamMembers
5603
5603
  default:
5604
5604
  $ref: "#/components/responses/UnexpectedError"
5605
- "/orgs/{organizationId}/schemas":
5606
- get:
5607
- operationId: listEntitySchemas
5608
- summary: List the entity schemas in an organization.
5609
- tags:
5610
- - organizations
5611
- security:
5612
- - user: []
5613
- parameters:
5614
- - $ref: "#/components/parameters/organizationId"
5615
- - $ref: "#/components/parameters/listPage"
5616
- - $ref: "#/components/parameters/listLimit"
5617
- responses:
5618
- "200":
5619
- description: OK
5620
- content:
5621
- application/json:
5622
- schema:
5623
- allOf:
5624
- - $ref: "#/components/schemas/List"
5625
- - type: object
5626
- required:
5627
- - items
5628
- properties:
5629
- items:
5630
- type: array
5631
- items:
5632
- $ref: "#/components/schemas/EntitySchema"
5633
- default:
5634
- $ref: "#/components/responses/UnexpectedError"
5635
- "/orgs/{organizationId}/schemas/{entityType}":
5636
- get:
5637
- operationId: getEntitySchema
5638
- summary: Get an entity schema by its type.
5639
- tags:
5640
- - organizations
5641
- security:
5642
- - user: []
5643
- parameters:
5644
- - $ref: "#/components/parameters/organizationId"
5645
- - $ref: "#/components/parameters/entityType"
5646
- responses:
5647
- "200":
5648
- description: OK
5649
- content:
5650
- application/json:
5651
- schema:
5652
- $ref: "#/components/schemas/EntitySchema"
5653
- default:
5654
- $ref: "#/components/responses/UnexpectedError"
5655
- put:
5656
- operationId: setEntitySchema
5657
- summary: Create or update an entity schema.
5658
- tags:
5659
- - organizations
5660
- security:
5661
- - user: []
5662
- parameters:
5663
- - $ref: "#/components/parameters/organizationId"
5664
- - $ref: "#/components/parameters/entityType"
5665
- requestBody:
5666
- required: true
5667
- content:
5668
- application/json:
5669
- schema:
5670
- $ref: "#/components/schemas/EntityRawSchema"
5671
- responses:
5672
- "204":
5673
- description: OK
5674
- default:
5675
- $ref: "#/components/responses/UnexpectedError"
5676
- delete:
5677
- operationId: deleteEntitySchema
5678
- summary: Delete an entity schema.
5679
- tags:
5680
- - organizations
5681
- security:
5682
- - user: []
5683
- parameters:
5684
- - $ref: "#/components/parameters/organizationId"
5685
- - $ref: "#/components/parameters/entityType"
5686
- responses:
5687
- "204":
5688
- description: OK
5689
- default:
5690
- $ref: "#/components/responses/UnexpectedError"
5691
- "/orgs/{organizationId}/schemas/{entityType}/entities":
5692
- get:
5693
- operationId: listSchemaEntities
5694
- summary: List entities in an organization for a given type.
5695
- tags:
5696
- - organizations
5697
- security:
5698
- - user: []
5699
- parameters:
5700
- - $ref: "#/components/parameters/organizationId"
5701
- - $ref: "#/components/parameters/entityType"
5702
- - $ref: "#/components/parameters/listPage"
5703
- - $ref: "#/components/parameters/listLimit"
5704
- - name: query
5705
- in: query
5706
- description: "Query to filter entities with, ex: a == 'something' && b >= 10"
5707
- schema:
5708
- type: string
5709
- responses:
5710
- "200":
5711
- description: OK
5712
- content:
5713
- application/json:
5714
- schema:
5715
- allOf:
5716
- - $ref: "#/components/schemas/List"
5717
- - type: object
5718
- required:
5719
- - items
5720
- properties:
5721
- items:
5722
- type: array
5723
- items:
5724
- $ref: "#/components/schemas/Entity"
5725
- default:
5726
- $ref: "#/components/responses/UnexpectedError"
5727
- put:
5728
- operationId: upsertSchemaEntities
5729
- summary: Update/Create/Delete entities in a schema.
5730
- tags:
5731
- - organizations
5732
- security:
5733
- - user: []
5734
- parameters:
5735
- - $ref: "#/components/parameters/organizationId"
5736
- - $ref: "#/components/parameters/entityType"
5737
- requestBody:
5738
- required: true
5739
- content:
5740
- application/json:
5741
- schema:
5742
- type: object
5743
- properties:
5744
- delete:
5745
- oneOf:
5746
- - type: boolean
5747
- description: If true, all entities not listed in the requests will be deleted
5748
- - type: array
5749
- description: List of entityIds to delete
5750
- items:
5751
- $ref: "#/components/schemas/EntityId"
5752
- entities:
5753
- type: array
5754
- description: Array of entities to create/update.
5755
- items:
5756
- $ref: "#/components/schemas/UpsertEntity"
5757
- responses:
5758
- "204":
5759
- description: OK
5760
- default:
5761
- $ref: "#/components/responses/UnexpectedError"
5762
- "/orgs/{organizationId}/schemas/{entityType}/entities/{entityId}":
5763
- get:
5764
- operationId: getEntity
5765
- summary: Get an entity using its ID.
5766
- tags:
5767
- - organizations
5768
- security:
5769
- - user: []
5770
- parameters:
5771
- - $ref: "#/components/parameters/organizationId"
5772
- - $ref: "#/components/parameters/entityType"
5773
- - $ref: "#/components/parameters/entityId"
5774
- responses:
5775
- "200":
5776
- description: OK
5777
- content:
5778
- application/json:
5779
- schema:
5780
- $ref: "#/components/schemas/Entity"
5781
- default:
5782
- $ref: "#/components/responses/UnexpectedError"
5783
5605
  "/orgs/{organizationId}/captures":
5784
5606
  get:
5785
5607
  operationId: listCaptures
@@ -6922,6 +6744,20 @@ paths:
6922
6744
  - sessionId
6923
6745
  properties:
6924
6746
  type:
6747
+ description: User must checkout to complete the update.
6748
+ type: string
6749
+ enum:
6750
+ - checkout
6751
+ sessionId:
6752
+ type: string
6753
+ description: Stripe payment session ID
6754
+ - type: object
6755
+ required:
6756
+ - type
6757
+ - sessionId
6758
+ properties:
6759
+ type:
6760
+ description: User needs to go through the legacy update flow.
6925
6761
  type: string
6926
6762
  enum:
6927
6763
  - legacy-checkout
@@ -6969,8 +6805,6 @@ paths:
6969
6805
  type: string
6970
6806
  enum:
6971
6807
  - update
6972
- downgrade:
6973
- type: object
6974
6808
  required:
6975
6809
  - type
6976
6810
  - type: object
@@ -6980,12 +6814,8 @@ paths:
6980
6814
  type: string
6981
6815
  enum:
6982
6816
  - checkout
6983
- sessionId:
6984
- type: string
6985
- description: Stripe payment session ID
6986
6817
  required:
6987
6818
  - type
6988
- - sessionId
6989
6819
  - type: object
6990
6820
  properties:
6991
6821
  type:
@@ -7405,6 +7235,7 @@ paths:
7405
7235
  type: string
7406
7236
  siteSpaceIds:
7407
7237
  type: array
7238
+ minLength: 1
7408
7239
  items:
7409
7240
  type: string
7410
7241
  required:
@@ -8159,20 +7990,6 @@ components:
8159
7990
  description: The unique id of the invite
8160
7991
  schema:
8161
7992
  type: string
8162
- entityType:
8163
- name: entityType
8164
- in: path
8165
- required: true
8166
- description: Type of the entity
8167
- schema:
8168
- $ref: "#/components/schemas/EntityType"
8169
- entityId:
8170
- name: entityId
8171
- in: path
8172
- required: true
8173
- description: ID of the entity in the space
8174
- schema:
8175
- $ref: "#/components/schemas/EntityId"
8176
7993
  captureId:
8177
7994
  name: captureId
8178
7995
  in: path
@@ -10228,11 +10045,6 @@ components:
10228
10045
  title: Empty
10229
10046
  properties: {}
10230
10047
  additionalProperties: false
10231
- EntityType:
10232
- type: string
10233
- description: Type of an entity
10234
- minLength: 1
10235
- maxLength: 64
10236
10048
  SearchAIAnswerSource:
10237
10049
  allOf:
10238
10050
  - type: object
@@ -10241,7 +10053,6 @@ components:
10241
10053
  type: string
10242
10054
  enum:
10243
10055
  - page
10244
- - entity
10245
10056
  - capture
10246
10057
  required:
10247
10058
  - type
@@ -10271,25 +10082,6 @@ components:
10271
10082
  - revision
10272
10083
  - space
10273
10084
  - sections
10274
- - type: object
10275
- title: Entity
10276
- properties:
10277
- type:
10278
- type: string
10279
- enum:
10280
- - entity
10281
- entityId:
10282
- type: string
10283
- description: ID of the entity
10284
- entityType:
10285
- $ref: "#/components/schemas/EntityType"
10286
- integration:
10287
- description: The name of the integration that manages this entity. If undefined, this entity is not managed by an integration.
10288
- type: string
10289
- required:
10290
- - type
10291
- - entityId
10292
- - entityType
10293
10085
  - type: object
10294
10086
  title: Snippet
10295
10087
  properties:
@@ -11292,6 +11084,9 @@ components:
11292
11084
  path:
11293
11085
  description: Complete path to access the page in the revision.
11294
11086
  type: string
11087
+ hidden:
11088
+ type: boolean
11089
+ description: If true, the page is not displayed in the navigation, while still being accessible.
11295
11090
  pages:
11296
11091
  type: array
11297
11092
  items:
@@ -11953,7 +11748,6 @@ components:
11953
11748
  IntegrationScope:
11954
11749
  type: string
11955
11750
  enum:
11956
- - entities:write
11957
11751
  - snippets:read
11958
11752
  - capture:write
11959
11753
  - space:views:read
@@ -13701,162 +13495,6 @@ components:
13701
13495
  maxProperties: 20
13702
13496
  additionalProperties:
13703
13497
  type: string
13704
- EntitySchemaTitle:
13705
- type: string
13706
- maxLength: 50
13707
- EntityPropertySchema:
13708
- allOf:
13709
- - type: object
13710
- properties:
13711
- name:
13712
- type: string
13713
- description: Name of the property in the object
13714
- title:
13715
- type: string
13716
- description: Title displayed to the users
13717
- description:
13718
- type: string
13719
- description: Description of the property
13720
- deprecated:
13721
- type: boolean
13722
- description: If true, the property is no longer required and not taken into consideration
13723
- required:
13724
- - name
13725
- - title
13726
- - oneOf:
13727
- - type: object
13728
- properties:
13729
- type:
13730
- type: string
13731
- enum:
13732
- - text
13733
- role:
13734
- type: string
13735
- enum:
13736
- - title
13737
- required:
13738
- - type
13739
- - type: object
13740
- properties:
13741
- type:
13742
- type: string
13743
- enum:
13744
- - longtext
13745
- role:
13746
- type: string
13747
- enum:
13748
- - body
13749
- required:
13750
- - type
13751
- - type: object
13752
- properties:
13753
- type:
13754
- type: string
13755
- enum:
13756
- - url
13757
- role:
13758
- type: string
13759
- enum:
13760
- - target
13761
- - icon
13762
- required:
13763
- - type
13764
- - type: object
13765
- properties:
13766
- type:
13767
- type: string
13768
- enum:
13769
- - number
13770
- required:
13771
- - type
13772
- - type: object
13773
- properties:
13774
- type:
13775
- type: string
13776
- enum:
13777
- - boolean
13778
- required:
13779
- - type
13780
- - type: object
13781
- properties:
13782
- type:
13783
- type: string
13784
- enum:
13785
- - enum
13786
- values:
13787
- type: array
13788
- items:
13789
- type: object
13790
- properties:
13791
- label:
13792
- type: string
13793
- value:
13794
- type: string
13795
- required:
13796
- - label
13797
- - value
13798
- required:
13799
- - type
13800
- - values
13801
- - type: object
13802
- properties:
13803
- type:
13804
- type: string
13805
- enum:
13806
- - date
13807
- required:
13808
- - type
13809
- - type: object
13810
- properties:
13811
- type:
13812
- type: string
13813
- enum:
13814
- - user
13815
- required:
13816
- - type
13817
- - type: object
13818
- description: reference to another entity, creating a relation
13819
- properties:
13820
- type:
13821
- type: string
13822
- enum:
13823
- - relation
13824
- entity:
13825
- type: object
13826
- properties:
13827
- type:
13828
- $ref: "#/components/schemas/EntityType"
13829
- required:
13830
- - type
13831
- required:
13832
- - type
13833
- - entity
13834
- EntityRawSchema:
13835
- type: object
13836
- description: Schema for a type of entities
13837
- properties:
13838
- type:
13839
- $ref: "#/components/schemas/EntityType"
13840
- title:
13841
- type: object
13842
- description: Title of the entity type
13843
- properties:
13844
- singular:
13845
- $ref: "#/components/schemas/EntitySchemaTitle"
13846
- plural:
13847
- $ref: "#/components/schemas/EntitySchemaTitle"
13848
- required:
13849
- - singular
13850
- - plural
13851
- properties:
13852
- type: array
13853
- description: Ordered list of all properties stored in entities.
13854
- items:
13855
- $ref: "#/components/schemas/EntityPropertySchema"
13856
- required:
13857
- - type
13858
- - title
13859
- - properties
13860
13498
  PublishIntegration:
13861
13499
  type: object
13862
13500
  properties:
@@ -13902,11 +13540,6 @@ components:
13902
13540
  $ref: "#/components/schemas/IntegrationSecrets"
13903
13541
  contentSecurityPolicy:
13904
13542
  $ref: "#/components/schemas/IntegrationContentSecurityPolicy"
13905
- entities:
13906
- type: array
13907
- maxItems: 100
13908
- items:
13909
- $ref: "#/components/schemas/EntityRawSchema"
13910
13543
  required:
13911
13544
  - organization
13912
13545
  - title
@@ -16062,88 +15695,6 @@ components:
16062
15695
  - teams
16063
15696
  - members
16064
15697
  - teamMembers
16065
- EntitySchema:
16066
- allOf:
16067
- - $ref: "#/components/schemas/EntityRawSchema"
16068
- - type: object
16069
- properties:
16070
- entities:
16071
- description: Count of entities created in this schema.
16072
- type: number
16073
- integration:
16074
- description: Integration managing this schema.
16075
- $ref: "#/components/schemas/Integration"
16076
- urls:
16077
- type: object
16078
- description: URLs associated with the object
16079
- properties:
16080
- location:
16081
- type: string
16082
- description: URL of the entity schema in the API
16083
- format: uri
16084
- required:
16085
- - location
16086
- required:
16087
- - entities
16088
- - urls
16089
- EntityId:
16090
- type: string
16091
- description: Unique ID of the entity in the context of the integration's entity type
16092
- minLength: 1
16093
- maxLength: 256
16094
- UpsertEntity:
16095
- type: object
16096
- description: Entity to create or update in an integration's installation.
16097
- properties:
16098
- entityId:
16099
- $ref: "#/components/schemas/EntityId"
16100
- properties:
16101
- type: object
16102
- description: Map of values stored as properties on the entity
16103
- additionalProperties:
16104
- oneOf:
16105
- - type: string
16106
- - type: number
16107
- - type: boolean
16108
- - type: object
16109
- properties:
16110
- entityId:
16111
- type: string
16112
- required:
16113
- - entityId
16114
- required:
16115
- - entityId
16116
- - properties
16117
- Entity:
16118
- allOf:
16119
- - $ref: "#/components/schemas/UpsertEntity"
16120
- - type: object
16121
- description: Entity created and managed by an integration, representing an external element.
16122
- properties:
16123
- id:
16124
- type: string
16125
- description: Unique ID for the entity in GitBook
16126
- type:
16127
- deprecated: true
16128
- description: Type of an entity. Deprecated, use entityType.
16129
- $ref: "#/components/schemas/EntityType"
16130
- entityType:
16131
- $ref: "#/components/schemas/EntityType"
16132
- urls:
16133
- type: object
16134
- description: URLs associated with the object
16135
- properties:
16136
- location:
16137
- type: string
16138
- description: URL of the entity in the API
16139
- format: uri
16140
- required:
16141
- - location
16142
- required:
16143
- - id
16144
- - type
16145
- - entityType
16146
- - urls
16147
15698
  CaptureTitle:
16148
15699
  type: string
16149
15700
  description: Optional title describing the capture
@@ -16793,6 +16344,8 @@ components:
16793
16344
  $ref: "#/components/schemas/SiteSpacePath"
16794
16345
  space:
16795
16346
  $ref: "#/components/schemas/Space"
16347
+ title:
16348
+ type: string
16796
16349
  default:
16797
16350
  type: boolean
16798
16351
  description: Whether this is the default space for the site
@@ -16812,6 +16365,7 @@ components:
16812
16365
  required:
16813
16366
  - id
16814
16367
  - space
16368
+ - title
16815
16369
  - path
16816
16370
  - urls
16817
16371
  SiteSpaceCustomizationOverrides:
@@ -17872,18 +17426,6 @@ components:
17872
17426
  required:
17873
17427
  - channel
17874
17428
  - space
17875
- SpaceEntitiesChannel:
17876
- type: object
17877
- properties:
17878
- channel:
17879
- type: string
17880
- enum:
17881
- - space-entities
17882
- space:
17883
- type: string
17884
- required:
17885
- - channel
17886
- - space
17887
17429
  SpaceCustomFieldsChannel:
17888
17430
  type: object
17889
17431
  properties:
@@ -18185,35 +17727,6 @@ components:
18185
17727
  required:
18186
17728
  - channel
18187
17729
  - organization
18188
- OrganizationEntitiesChannel:
18189
- type: object
18190
- description: Subscription channel for entities in an organization.
18191
- properties:
18192
- channel:
18193
- type: string
18194
- enum:
18195
- - organization-entities
18196
- organization:
18197
- type: string
18198
- entityType:
18199
- type: string
18200
- required:
18201
- - channel
18202
- - organization
18203
- - entityType
18204
- OrganizationSchemasChannel:
18205
- type: object
18206
- description: Subscription channel for all entity schemas in an organization.
18207
- properties:
18208
- channel:
18209
- type: string
18210
- enum:
18211
- - organization-schemas
18212
- organization:
18213
- type: string
18214
- required:
18215
- - channel
18216
- - organization
18217
17730
  OrganizationCapturesChannel:
18218
17731
  type: object
18219
17732
  properties:
@@ -18601,7 +18114,6 @@ components:
18601
18114
  - $ref: "#/components/schemas/SpaceGitInfoChannel"
18602
18115
  - $ref: "#/components/schemas/SpacePublishingAuthChannel"
18603
18116
  - $ref: "#/components/schemas/SpacePublishingCustomizationChannel"
18604
- - $ref: "#/components/schemas/SpaceEntitiesChannel"
18605
18117
  - $ref: "#/components/schemas/SpaceCustomFieldsChannel"
18606
18118
  - $ref: "#/components/schemas/SpaceBrokenLinksChannel"
18607
18119
  - $ref: "#/components/schemas/BackofficeUserInfoChannel"
@@ -18625,8 +18137,6 @@ components:
18625
18137
  - $ref: "#/components/schemas/OrganizationTeamMemberChannel"
18626
18138
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
18627
18139
  - $ref: "#/components/schemas/OrganizationCollectionsChannel"
18628
- - $ref: "#/components/schemas/OrganizationEntitiesChannel"
18629
- - $ref: "#/components/schemas/OrganizationSchemasChannel"
18630
18140
  - $ref: "#/components/schemas/OrganizationCapturesChannel"
18631
18141
  - $ref: "#/components/schemas/OrganizationContentAuditsChannel"
18632
18142
  - $ref: "#/components/schemas/OrganizationIntegrationsChannel"