@gitbook/api 0.56.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:
@@ -8160,20 +7990,6 @@ components:
8160
7990
  description: The unique id of the invite
8161
7991
  schema:
8162
7992
  type: string
8163
- entityType:
8164
- name: entityType
8165
- in: path
8166
- required: true
8167
- description: Type of the entity
8168
- schema:
8169
- $ref: "#/components/schemas/EntityType"
8170
- entityId:
8171
- name: entityId
8172
- in: path
8173
- required: true
8174
- description: ID of the entity in the space
8175
- schema:
8176
- $ref: "#/components/schemas/EntityId"
8177
7993
  captureId:
8178
7994
  name: captureId
8179
7995
  in: path
@@ -10229,11 +10045,6 @@ components:
10229
10045
  title: Empty
10230
10046
  properties: {}
10231
10047
  additionalProperties: false
10232
- EntityType:
10233
- type: string
10234
- description: Type of an entity
10235
- minLength: 1
10236
- maxLength: 64
10237
10048
  SearchAIAnswerSource:
10238
10049
  allOf:
10239
10050
  - type: object
@@ -10242,7 +10053,6 @@ components:
10242
10053
  type: string
10243
10054
  enum:
10244
10055
  - page
10245
- - entity
10246
10056
  - capture
10247
10057
  required:
10248
10058
  - type
@@ -10272,25 +10082,6 @@ components:
10272
10082
  - revision
10273
10083
  - space
10274
10084
  - sections
10275
- - type: object
10276
- title: Entity
10277
- properties:
10278
- type:
10279
- type: string
10280
- enum:
10281
- - entity
10282
- entityId:
10283
- type: string
10284
- description: ID of the entity
10285
- entityType:
10286
- $ref: "#/components/schemas/EntityType"
10287
- integration:
10288
- description: The name of the integration that manages this entity. If undefined, this entity is not managed by an integration.
10289
- type: string
10290
- required:
10291
- - type
10292
- - entityId
10293
- - entityType
10294
10085
  - type: object
10295
10086
  title: Snippet
10296
10087
  properties:
@@ -11957,7 +11748,6 @@ components:
11957
11748
  IntegrationScope:
11958
11749
  type: string
11959
11750
  enum:
11960
- - entities:write
11961
11751
  - snippets:read
11962
11752
  - capture:write
11963
11753
  - space:views:read
@@ -13705,162 +13495,6 @@ components:
13705
13495
  maxProperties: 20
13706
13496
  additionalProperties:
13707
13497
  type: string
13708
- EntitySchemaTitle:
13709
- type: string
13710
- maxLength: 50
13711
- EntityPropertySchema:
13712
- allOf:
13713
- - type: object
13714
- properties:
13715
- name:
13716
- type: string
13717
- description: Name of the property in the object
13718
- title:
13719
- type: string
13720
- description: Title displayed to the users
13721
- description:
13722
- type: string
13723
- description: Description of the property
13724
- deprecated:
13725
- type: boolean
13726
- description: If true, the property is no longer required and not taken into consideration
13727
- required:
13728
- - name
13729
- - title
13730
- - oneOf:
13731
- - type: object
13732
- properties:
13733
- type:
13734
- type: string
13735
- enum:
13736
- - text
13737
- role:
13738
- type: string
13739
- enum:
13740
- - title
13741
- required:
13742
- - type
13743
- - type: object
13744
- properties:
13745
- type:
13746
- type: string
13747
- enum:
13748
- - longtext
13749
- role:
13750
- type: string
13751
- enum:
13752
- - body
13753
- required:
13754
- - type
13755
- - type: object
13756
- properties:
13757
- type:
13758
- type: string
13759
- enum:
13760
- - url
13761
- role:
13762
- type: string
13763
- enum:
13764
- - target
13765
- - icon
13766
- required:
13767
- - type
13768
- - type: object
13769
- properties:
13770
- type:
13771
- type: string
13772
- enum:
13773
- - number
13774
- required:
13775
- - type
13776
- - type: object
13777
- properties:
13778
- type:
13779
- type: string
13780
- enum:
13781
- - boolean
13782
- required:
13783
- - type
13784
- - type: object
13785
- properties:
13786
- type:
13787
- type: string
13788
- enum:
13789
- - enum
13790
- values:
13791
- type: array
13792
- items:
13793
- type: object
13794
- properties:
13795
- label:
13796
- type: string
13797
- value:
13798
- type: string
13799
- required:
13800
- - label
13801
- - value
13802
- required:
13803
- - type
13804
- - values
13805
- - type: object
13806
- properties:
13807
- type:
13808
- type: string
13809
- enum:
13810
- - date
13811
- required:
13812
- - type
13813
- - type: object
13814
- properties:
13815
- type:
13816
- type: string
13817
- enum:
13818
- - user
13819
- required:
13820
- - type
13821
- - type: object
13822
- description: reference to another entity, creating a relation
13823
- properties:
13824
- type:
13825
- type: string
13826
- enum:
13827
- - relation
13828
- entity:
13829
- type: object
13830
- properties:
13831
- type:
13832
- $ref: "#/components/schemas/EntityType"
13833
- required:
13834
- - type
13835
- required:
13836
- - type
13837
- - entity
13838
- EntityRawSchema:
13839
- type: object
13840
- description: Schema for a type of entities
13841
- properties:
13842
- type:
13843
- $ref: "#/components/schemas/EntityType"
13844
- title:
13845
- type: object
13846
- description: Title of the entity type
13847
- properties:
13848
- singular:
13849
- $ref: "#/components/schemas/EntitySchemaTitle"
13850
- plural:
13851
- $ref: "#/components/schemas/EntitySchemaTitle"
13852
- required:
13853
- - singular
13854
- - plural
13855
- properties:
13856
- type: array
13857
- description: Ordered list of all properties stored in entities.
13858
- items:
13859
- $ref: "#/components/schemas/EntityPropertySchema"
13860
- required:
13861
- - type
13862
- - title
13863
- - properties
13864
13498
  PublishIntegration:
13865
13499
  type: object
13866
13500
  properties:
@@ -13906,11 +13540,6 @@ components:
13906
13540
  $ref: "#/components/schemas/IntegrationSecrets"
13907
13541
  contentSecurityPolicy:
13908
13542
  $ref: "#/components/schemas/IntegrationContentSecurityPolicy"
13909
- entities:
13910
- type: array
13911
- maxItems: 100
13912
- items:
13913
- $ref: "#/components/schemas/EntityRawSchema"
13914
13543
  required:
13915
13544
  - organization
13916
13545
  - title
@@ -16066,88 +15695,6 @@ components:
16066
15695
  - teams
16067
15696
  - members
16068
15697
  - teamMembers
16069
- EntitySchema:
16070
- allOf:
16071
- - $ref: "#/components/schemas/EntityRawSchema"
16072
- - type: object
16073
- properties:
16074
- entities:
16075
- description: Count of entities created in this schema.
16076
- type: number
16077
- integration:
16078
- description: Integration managing this schema.
16079
- $ref: "#/components/schemas/Integration"
16080
- urls:
16081
- type: object
16082
- description: URLs associated with the object
16083
- properties:
16084
- location:
16085
- type: string
16086
- description: URL of the entity schema in the API
16087
- format: uri
16088
- required:
16089
- - location
16090
- required:
16091
- - entities
16092
- - urls
16093
- EntityId:
16094
- type: string
16095
- description: Unique ID of the entity in the context of the integration's entity type
16096
- minLength: 1
16097
- maxLength: 256
16098
- UpsertEntity:
16099
- type: object
16100
- description: Entity to create or update in an integration's installation.
16101
- properties:
16102
- entityId:
16103
- $ref: "#/components/schemas/EntityId"
16104
- properties:
16105
- type: object
16106
- description: Map of values stored as properties on the entity
16107
- additionalProperties:
16108
- oneOf:
16109
- - type: string
16110
- - type: number
16111
- - type: boolean
16112
- - type: object
16113
- properties:
16114
- entityId:
16115
- type: string
16116
- required:
16117
- - entityId
16118
- required:
16119
- - entityId
16120
- - properties
16121
- Entity:
16122
- allOf:
16123
- - $ref: "#/components/schemas/UpsertEntity"
16124
- - type: object
16125
- description: Entity created and managed by an integration, representing an external element.
16126
- properties:
16127
- id:
16128
- type: string
16129
- description: Unique ID for the entity in GitBook
16130
- type:
16131
- deprecated: true
16132
- description: Type of an entity. Deprecated, use entityType.
16133
- $ref: "#/components/schemas/EntityType"
16134
- entityType:
16135
- $ref: "#/components/schemas/EntityType"
16136
- urls:
16137
- type: object
16138
- description: URLs associated with the object
16139
- properties:
16140
- location:
16141
- type: string
16142
- description: URL of the entity in the API
16143
- format: uri
16144
- required:
16145
- - location
16146
- required:
16147
- - id
16148
- - type
16149
- - entityType
16150
- - urls
16151
15698
  CaptureTitle:
16152
15699
  type: string
16153
15700
  description: Optional title describing the capture
@@ -16797,6 +16344,8 @@ components:
16797
16344
  $ref: "#/components/schemas/SiteSpacePath"
16798
16345
  space:
16799
16346
  $ref: "#/components/schemas/Space"
16347
+ title:
16348
+ type: string
16800
16349
  default:
16801
16350
  type: boolean
16802
16351
  description: Whether this is the default space for the site
@@ -16816,6 +16365,7 @@ components:
16816
16365
  required:
16817
16366
  - id
16818
16367
  - space
16368
+ - title
16819
16369
  - path
16820
16370
  - urls
16821
16371
  SiteSpaceCustomizationOverrides:
@@ -17876,18 +17426,6 @@ components:
17876
17426
  required:
17877
17427
  - channel
17878
17428
  - space
17879
- SpaceEntitiesChannel:
17880
- type: object
17881
- properties:
17882
- channel:
17883
- type: string
17884
- enum:
17885
- - space-entities
17886
- space:
17887
- type: string
17888
- required:
17889
- - channel
17890
- - space
17891
17429
  SpaceCustomFieldsChannel:
17892
17430
  type: object
17893
17431
  properties:
@@ -18189,35 +17727,6 @@ components:
18189
17727
  required:
18190
17728
  - channel
18191
17729
  - organization
18192
- OrganizationEntitiesChannel:
18193
- type: object
18194
- description: Subscription channel for entities in an organization.
18195
- properties:
18196
- channel:
18197
- type: string
18198
- enum:
18199
- - organization-entities
18200
- organization:
18201
- type: string
18202
- entityType:
18203
- type: string
18204
- required:
18205
- - channel
18206
- - organization
18207
- - entityType
18208
- OrganizationSchemasChannel:
18209
- type: object
18210
- description: Subscription channel for all entity schemas in an organization.
18211
- properties:
18212
- channel:
18213
- type: string
18214
- enum:
18215
- - organization-schemas
18216
- organization:
18217
- type: string
18218
- required:
18219
- - channel
18220
- - organization
18221
17730
  OrganizationCapturesChannel:
18222
17731
  type: object
18223
17732
  properties:
@@ -18605,7 +18114,6 @@ components:
18605
18114
  - $ref: "#/components/schemas/SpaceGitInfoChannel"
18606
18115
  - $ref: "#/components/schemas/SpacePublishingAuthChannel"
18607
18116
  - $ref: "#/components/schemas/SpacePublishingCustomizationChannel"
18608
- - $ref: "#/components/schemas/SpaceEntitiesChannel"
18609
18117
  - $ref: "#/components/schemas/SpaceCustomFieldsChannel"
18610
18118
  - $ref: "#/components/schemas/SpaceBrokenLinksChannel"
18611
18119
  - $ref: "#/components/schemas/BackofficeUserInfoChannel"
@@ -18629,8 +18137,6 @@ components:
18629
18137
  - $ref: "#/components/schemas/OrganizationTeamMemberChannel"
18630
18138
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
18631
18139
  - $ref: "#/components/schemas/OrganizationCollectionsChannel"
18632
- - $ref: "#/components/schemas/OrganizationEntitiesChannel"
18633
- - $ref: "#/components/schemas/OrganizationSchemasChannel"
18634
18140
  - $ref: "#/components/schemas/OrganizationCapturesChannel"
18635
18141
  - $ref: "#/components/schemas/OrganizationContentAuditsChannel"
18636
18142
  - $ref: "#/components/schemas/OrganizationIntegrationsChannel"