@gitbook/api 0.56.0 → 0.58.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
@@ -214,6 +214,7 @@ paths:
214
214
  - user: []
215
215
  parameters:
216
216
  - $ref: "#/components/parameters/spaceId"
217
+ - $ref: "#/components/parameters/siteShareKey"
217
218
  responses:
218
219
  "200":
219
220
  description: OK
@@ -5602,184 +5603,6 @@ paths:
5602
5603
  - teamMembers
5603
5604
  default:
5604
5605
  $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
5606
  "/orgs/{organizationId}/captures":
5784
5607
  get:
5785
5608
  operationId: listCaptures
@@ -6922,6 +6745,20 @@ paths:
6922
6745
  - sessionId
6923
6746
  properties:
6924
6747
  type:
6748
+ description: User must checkout to complete the update.
6749
+ type: string
6750
+ enum:
6751
+ - checkout
6752
+ sessionId:
6753
+ type: string
6754
+ description: Stripe payment session ID
6755
+ - type: object
6756
+ required:
6757
+ - type
6758
+ - sessionId
6759
+ properties:
6760
+ type:
6761
+ description: User needs to go through the legacy update flow.
6925
6762
  type: string
6926
6763
  enum:
6927
6764
  - legacy-checkout
@@ -6969,8 +6806,6 @@ paths:
6969
6806
  type: string
6970
6807
  enum:
6971
6808
  - update
6972
- downgrade:
6973
- type: object
6974
6809
  required:
6975
6810
  - type
6976
6811
  - type: object
@@ -6980,12 +6815,8 @@ paths:
6980
6815
  type: string
6981
6816
  enum:
6982
6817
  - checkout
6983
- sessionId:
6984
- type: string
6985
- description: Stripe payment session ID
6986
6818
  required:
6987
6819
  - type
6988
- - sessionId
6989
6820
  - type: object
6990
6821
  properties:
6991
6822
  type:
@@ -7545,7 +7376,15 @@ paths:
7545
7376
  content:
7546
7377
  application/json:
7547
7378
  schema:
7548
- $ref: "#/components/schemas/SiteCustomizationSettings"
7379
+ allOf:
7380
+ - $ref: "#/components/schemas/SiteCustomizationSettings"
7381
+ - type: object
7382
+ properties:
7383
+ hasOverrides:
7384
+ type: boolean
7385
+ description: Indicates whether the site customization settings have been overridden.
7386
+ required:
7387
+ - hasOverrides
7549
7388
  "400":
7550
7389
  $ref: "#/components/responses/BadRequestError"
7551
7390
  default:
@@ -7989,6 +7828,12 @@ components:
7989
7828
  description: The unique id of the space
7990
7829
  schema:
7991
7830
  type: string
7831
+ siteShareKey:
7832
+ name: shareKey
7833
+ in: query
7834
+ description: For sites published via share-links, the share key is useful to resolve published URLs.
7835
+ schema:
7836
+ type: string
7992
7837
  revisionMetadata:
7993
7838
  name: metadata
7994
7839
  in: query
@@ -8160,20 +8005,6 @@ components:
8160
8005
  description: The unique id of the invite
8161
8006
  schema:
8162
8007
  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
8008
  captureId:
8178
8009
  name: captureId
8179
8010
  in: path
@@ -8217,12 +8048,6 @@ components:
8217
8048
  schema:
8218
8049
  type: boolean
8219
8050
  default: false
8220
- siteShareKey:
8221
- name: shareKey
8222
- in: query
8223
- description: For sites published via share-links, the share key is useful to resolve published URLs.
8224
- schema:
8225
- type: string
8226
8051
  siteSpaceId:
8227
8052
  name: siteSpaceId
8228
8053
  in: path
@@ -10229,11 +10054,6 @@ components:
10229
10054
  title: Empty
10230
10055
  properties: {}
10231
10056
  additionalProperties: false
10232
- EntityType:
10233
- type: string
10234
- description: Type of an entity
10235
- minLength: 1
10236
- maxLength: 64
10237
10057
  SearchAIAnswerSource:
10238
10058
  allOf:
10239
10059
  - type: object
@@ -10242,7 +10062,6 @@ components:
10242
10062
  type: string
10243
10063
  enum:
10244
10064
  - page
10245
- - entity
10246
10065
  - capture
10247
10066
  required:
10248
10067
  - type
@@ -10272,25 +10091,6 @@ components:
10272
10091
  - revision
10273
10092
  - space
10274
10093
  - 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
10094
  - type: object
10295
10095
  title: Snippet
10296
10096
  properties:
@@ -11957,7 +11757,6 @@ components:
11957
11757
  IntegrationScope:
11958
11758
  type: string
11959
11759
  enum:
11960
- - entities:write
11961
11760
  - snippets:read
11962
11761
  - capture:write
11963
11762
  - space:views:read
@@ -13705,162 +13504,6 @@ components:
13705
13504
  maxProperties: 20
13706
13505
  additionalProperties:
13707
13506
  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
13507
  PublishIntegration:
13865
13508
  type: object
13866
13509
  properties:
@@ -13906,11 +13549,6 @@ components:
13906
13549
  $ref: "#/components/schemas/IntegrationSecrets"
13907
13550
  contentSecurityPolicy:
13908
13551
  $ref: "#/components/schemas/IntegrationContentSecurityPolicy"
13909
- entities:
13910
- type: array
13911
- maxItems: 100
13912
- items:
13913
- $ref: "#/components/schemas/EntityRawSchema"
13914
13552
  required:
13915
13553
  - organization
13916
13554
  - title
@@ -16066,88 +15704,6 @@ components:
16066
15704
  - teams
16067
15705
  - members
16068
15706
  - 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
15707
  CaptureTitle:
16152
15708
  type: string
16153
15709
  description: Optional title describing the capture
@@ -16797,6 +16353,8 @@ components:
16797
16353
  $ref: "#/components/schemas/SiteSpacePath"
16798
16354
  space:
16799
16355
  $ref: "#/components/schemas/Space"
16356
+ title:
16357
+ type: string
16800
16358
  default:
16801
16359
  type: boolean
16802
16360
  description: Whether this is the default space for the site
@@ -16816,6 +16374,7 @@ components:
16816
16374
  required:
16817
16375
  - id
16818
16376
  - space
16377
+ - title
16819
16378
  - path
16820
16379
  - urls
16821
16380
  SiteSpaceCustomizationOverrides:
@@ -17876,18 +17435,6 @@ components:
17876
17435
  required:
17877
17436
  - channel
17878
17437
  - 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
17438
  SpaceCustomFieldsChannel:
17892
17439
  type: object
17893
17440
  properties:
@@ -18189,35 +17736,6 @@ components:
18189
17736
  required:
18190
17737
  - channel
18191
17738
  - 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
17739
  OrganizationCapturesChannel:
18222
17740
  type: object
18223
17741
  properties:
@@ -18605,7 +18123,6 @@ components:
18605
18123
  - $ref: "#/components/schemas/SpaceGitInfoChannel"
18606
18124
  - $ref: "#/components/schemas/SpacePublishingAuthChannel"
18607
18125
  - $ref: "#/components/schemas/SpacePublishingCustomizationChannel"
18608
- - $ref: "#/components/schemas/SpaceEntitiesChannel"
18609
18126
  - $ref: "#/components/schemas/SpaceCustomFieldsChannel"
18610
18127
  - $ref: "#/components/schemas/SpaceBrokenLinksChannel"
18611
18128
  - $ref: "#/components/schemas/BackofficeUserInfoChannel"
@@ -18629,8 +18146,6 @@ components:
18629
18146
  - $ref: "#/components/schemas/OrganizationTeamMemberChannel"
18630
18147
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
18631
18148
  - $ref: "#/components/schemas/OrganizationCollectionsChannel"
18632
- - $ref: "#/components/schemas/OrganizationEntitiesChannel"
18633
- - $ref: "#/components/schemas/OrganizationSchemasChannel"
18634
18149
  - $ref: "#/components/schemas/OrganizationCapturesChannel"
18635
18150
  - $ref: "#/components/schemas/OrganizationContentAuditsChannel"
18636
18151
  - $ref: "#/components/schemas/OrganizationIntegrationsChannel"