@gitbook/api 0.66.0 → 0.67.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
@@ -1118,25 +1118,20 @@ paths:
1118
1118
  default:
1119
1119
  $ref: "#/components/responses/UnexpectedError"
1120
1120
  "/spaces/{spaceId}/content/computed/document":
1121
- post:
1122
- operationId: computePageDocument
1121
+ get:
1122
+ operationId: getComputedDocument
1123
1123
  summary: Get the document for a page in a computed content.
1124
1124
  security:
1125
1125
  - user: []
1126
1126
  parameters:
1127
1127
  - $ref: "#/components/parameters/spaceId"
1128
1128
  - $ref: "#/components/parameters/documentFormat"
1129
- requestBody:
1130
- required: true
1131
- content:
1132
- application/json:
1133
- schema:
1134
- type: object
1135
- properties:
1136
- source:
1137
- $ref: "#/components/schemas/ComputedContentSource"
1138
- required:
1139
- - source
1129
+ - name: request
1130
+ in: query
1131
+ required: true
1132
+ description: LZ-string compressed JSON request
1133
+ schema:
1134
+ type: string
1140
1135
  responses:
1141
1136
  "200":
1142
1137
  description: Document computed
@@ -1146,6 +1141,42 @@ paths:
1146
1141
  $ref: "#/components/schemas/Document"
1147
1142
  default:
1148
1143
  $ref: "#/components/responses/UnexpectedError"
1144
+ "/spaces/{spaceId}/content/computed/page":
1145
+ get:
1146
+ operationId: getComputedPage
1147
+ summary: Get the computed pages for a page in a computed content.
1148
+ security:
1149
+ - user: []
1150
+ parameters:
1151
+ - $ref: "#/components/parameters/spaceId"
1152
+ - $ref: "#/components/parameters/documentFormat"
1153
+ - name: request
1154
+ in: query
1155
+ required: true
1156
+ description: LZ-string compressed JSON request
1157
+ schema:
1158
+ type: string
1159
+ responses:
1160
+ "200":
1161
+ description: Computed pages and their associated files
1162
+ content:
1163
+ application/json:
1164
+ schema:
1165
+ type: object
1166
+ properties:
1167
+ pages:
1168
+ type: array
1169
+ items:
1170
+ $ref: "#/components/schemas/RevisionPage"
1171
+ files:
1172
+ type: array
1173
+ items:
1174
+ $ref: "#/components/schemas/RevisionFile"
1175
+ required:
1176
+ - pages
1177
+ - files
1178
+ default:
1179
+ $ref: "#/components/responses/UnexpectedError"
1149
1180
  "/spaces/{spaceId}/documents/{documentId}":
1150
1181
  get:
1151
1182
  operationId: getDocumentById
@@ -4834,7 +4865,78 @@ paths:
4834
4865
  properties: {}
4835
4866
  default:
4836
4867
  $ref: "#/components/responses/UnexpectedError"
4868
+ "/orgs/{organizationId}/content-link-invites":
4869
+ get:
4870
+ operationId: listOrganizationContentInviteLinks
4871
+ summary: List invite links to content in an organization
4872
+ tags:
4873
+ - organizations
4874
+ security:
4875
+ - user-internal: []
4876
+ parameters:
4877
+ - $ref: "#/components/parameters/organizationId"
4878
+ - $ref: "#/components/parameters/listPage"
4879
+ - $ref: "#/components/parameters/listLimit"
4880
+ - name: space
4881
+ in: query
4882
+ description: If specified, only return invite links that provide specific permissions on the given space.
4883
+ schema:
4884
+ type: string
4885
+ - name: collection
4886
+ in: query
4887
+ description: If specified, only return invite links that provide permissions on the given collection.
4888
+ schema:
4889
+ type: string
4890
+ responses:
4891
+ "200":
4892
+ description: List of invite links to content in the organization.
4893
+ content:
4894
+ application/json:
4895
+ schema:
4896
+ allOf:
4897
+ - $ref: "#/components/schemas/List"
4898
+ - type: object
4899
+ required:
4900
+ - items
4901
+ properties:
4902
+ items:
4903
+ type: array
4904
+ items:
4905
+ oneOf:
4906
+ - $ref: "#/components/schemas/InviteLinkToCollection"
4907
+ - $ref: "#/components/schemas/InviteLinkToSpace"
4908
+ default:
4909
+ $ref: "#/components/responses/UnexpectedError"
4837
4910
  "/orgs/{organizationId}/link-invites":
4911
+ get:
4912
+ operationId: listOrganizationInviteLinks
4913
+ summary: List invite links to an organization
4914
+ tags:
4915
+ - organizations
4916
+ security:
4917
+ - user: []
4918
+ parameters:
4919
+ - $ref: "#/components/parameters/organizationId"
4920
+ - $ref: "#/components/parameters/listPage"
4921
+ - $ref: "#/components/parameters/listLimit"
4922
+ responses:
4923
+ "200":
4924
+ description: List of invite links in the organization.
4925
+ content:
4926
+ application/json:
4927
+ schema:
4928
+ allOf:
4929
+ - $ref: "#/components/schemas/List"
4930
+ - type: object
4931
+ required:
4932
+ - items
4933
+ properties:
4934
+ items:
4935
+ type: array
4936
+ items:
4937
+ $ref: "#/components/schemas/InviteLinkToOrganization"
4938
+ default:
4939
+ $ref: "#/components/responses/UnexpectedError"
4838
4940
  post:
4839
4941
  operationId: createOrganizationInvite
4840
4942
  summary: Create a new organization invite
@@ -4856,7 +4958,7 @@ paths:
4856
4958
  content:
4857
4959
  application/json:
4858
4960
  schema:
4859
- $ref: "#/components/schemas/OrganizationInvite"
4961
+ $ref: "#/components/schemas/OrganizationInviteLink"
4860
4962
  default:
4861
4963
  $ref: "#/components/responses/UnexpectedError"
4862
4964
  "/orgs/{organizationId}/link-invites/{inviteId}":
@@ -4896,7 +4998,7 @@ paths:
4896
4998
  content:
4897
4999
  application/json:
4898
5000
  schema:
4899
- $ref: "#/components/schemas/OrganizationInvite"
5001
+ $ref: "#/components/schemas/OrganizationInviteLink"
4900
5002
  default:
4901
5003
  $ref: "#/components/responses/UnexpectedError"
4902
5004
  delete:
@@ -5074,11 +5176,6 @@ paths:
5074
5176
  - $ref: "#/components/parameters/organizationId"
5075
5177
  - $ref: "#/components/parameters/listPage"
5076
5178
  - $ref: "#/components/parameters/listLimit"
5077
- - name: visibility
5078
- in: query
5079
- description: If defined, only content with this visibility will be returned.
5080
- schema:
5081
- $ref: "#/components/schemas/ContentVisibility"
5082
5179
  responses:
5083
5180
  "200":
5084
5181
  description: OK
@@ -10611,12 +10708,12 @@ components:
10611
10708
  - action
10612
10709
  - returnValue
10613
10710
  - type: object
10614
- description: Action to submit the current flow the user is in.
10711
+ description: Action to complete the current flow the user is in.
10615
10712
  properties:
10616
10713
  action:
10617
10714
  type: string
10618
10715
  enum:
10619
- - "@ui.submit"
10716
+ - "@ui.complete"
10620
10717
  returnValue:
10621
10718
  $ref: "#/components/schemas/PlainObject"
10622
10719
  required:
@@ -13971,6 +14068,65 @@ components:
13971
14068
  required:
13972
14069
  - type
13973
14070
  - customFields
14071
+ ChangedRevisionReusableContent:
14072
+ type: object
14073
+ properties:
14074
+ id:
14075
+ type: string
14076
+ title:
14077
+ type: string
14078
+ document:
14079
+ type: string
14080
+ required:
14081
+ - id
14082
+ - title
14083
+ RevisionSemanticChangeReusableContentCreated:
14084
+ type: object
14085
+ properties:
14086
+ type:
14087
+ type: string
14088
+ enum:
14089
+ - reusable_content_created
14090
+ reusableContent:
14091
+ $ref: "#/components/schemas/ChangedRevisionReusableContent"
14092
+ required:
14093
+ - type
14094
+ - reusableContent
14095
+ RevisionSemanticChangeReusableContentDeleted:
14096
+ type: object
14097
+ properties:
14098
+ type:
14099
+ type: string
14100
+ enum:
14101
+ - reusable_content_deleted
14102
+ reusableContent:
14103
+ $ref: "#/components/schemas/ChangedRevisionReusableContent"
14104
+ required:
14105
+ - type
14106
+ - reusableContent
14107
+ RevisionReusableContentChangeAttributes:
14108
+ type: object
14109
+ minProperties: 1
14110
+ properties:
14111
+ title:
14112
+ $ref: "#/components/schemas/ChangeAttributeString"
14113
+ document:
14114
+ $ref: "#/components/schemas/ChangeAttributeString"
14115
+ RevisionSemanticChangeReusableContentEdited:
14116
+ type: object
14117
+ properties:
14118
+ type:
14119
+ type: string
14120
+ enum:
14121
+ - reusable_content_edited
14122
+ reusableContent:
14123
+ $ref: "#/components/schemas/ChangedRevisionReusableContent"
14124
+ attributes:
14125
+ $ref: "#/components/schemas/RevisionReusableContentChangeAttributes"
14126
+ required:
14127
+ - type
14128
+ - reusableContent
14129
+ - attributes
13974
14130
  RevisionSemanticChange:
13975
14131
  oneOf:
13976
14132
  - $ref: "#/components/schemas/RevisionSemanticChangePageCreated"
@@ -13981,6 +14137,9 @@ components:
13981
14137
  - $ref: "#/components/schemas/RevisionSemanticChangeFileEdited"
13982
14138
  - $ref: "#/components/schemas/RevisionSemanticChangeFileDeleted"
13983
14139
  - $ref: "#/components/schemas/RevisionSemanticChangeCustomFieldsEdited"
14140
+ - $ref: "#/components/schemas/RevisionSemanticChangeReusableContentCreated"
14141
+ - $ref: "#/components/schemas/RevisionSemanticChangeReusableContentDeleted"
14142
+ - $ref: "#/components/schemas/RevisionSemanticChangeReusableContentEdited"
13984
14143
  RevisionSemanticChanges:
13985
14144
  type: object
13986
14145
  properties:
@@ -15181,6 +15340,9 @@ components:
15181
15340
  organizationId:
15182
15341
  type: string
15183
15342
  description: ID of the organization the content source installation configuration is in.
15343
+ spaceId:
15344
+ type: string
15345
+ description: Optional ID of the space the content source installation configuration is in.
15184
15346
  required:
15185
15347
  - type
15186
15348
  - organizationId
@@ -16483,44 +16645,74 @@ components:
16483
16645
  type: boolean
16484
16646
  required:
16485
16647
  - emails
16486
- CreateInviteToOrganization:
16648
+ InviteLinkToCollection:
16487
16649
  type: object
16650
+ description: An invite link to a specific collection in an organization
16488
16651
  properties:
16489
- role:
16652
+ object:
16653
+ type: string
16654
+ description: Type of Object, always equals to "invite"
16655
+ enum:
16656
+ - invite
16657
+ id:
16658
+ type: string
16659
+ description: Unique identifier for the invite link to the collection
16660
+ level:
16490
16661
  $ref: "#/components/schemas/MemberRoleOrGuest"
16491
- description: The role of the member in the organization
16662
+ description: The level of the member in the target collection
16663
+ collection:
16664
+ $ref: "#/components/schemas/Collection"
16665
+ description: The collection the member has been invited to
16492
16666
  required:
16493
- - role
16494
- CreateInviteToSpace:
16667
+ - object
16668
+ - id
16669
+ - target
16670
+ - level
16671
+ - collection
16672
+ InviteLinkToSpace:
16495
16673
  type: object
16674
+ description: An invite link to a specific space in an organization
16496
16675
  properties:
16676
+ object:
16677
+ type: string
16678
+ description: Type of Object, always equals to "invite"
16679
+ enum:
16680
+ - invite
16681
+ id:
16682
+ type: string
16683
+ description: Unique identifier for the invite link to the space
16497
16684
  level:
16498
16685
  $ref: "#/components/schemas/MemberRoleOrGuest"
16499
16686
  description: The level of the member in the target space
16500
16687
  space:
16501
- type: string
16502
- description: The ID of space the member has been invited to
16688
+ $ref: "#/components/schemas/Space"
16689
+ description: The space the member has been invited to
16503
16690
  required:
16691
+ - object
16692
+ - id
16693
+ - target
16504
16694
  - level
16505
16695
  - space
16506
- CreateInviteToCollection:
16696
+ InviteLinkToOrganization:
16507
16697
  type: object
16698
+ description: An invite link to an organization
16508
16699
  properties:
16509
- level:
16510
- $ref: "#/components/schemas/MemberRoleOrGuest"
16511
- description: The level of the member in the target collection
16512
- collection:
16700
+ object:
16513
16701
  type: string
16514
- description: The ID of collection the member has been invited to
16702
+ description: Type of Object, always equals to "invite"
16703
+ enum:
16704
+ - invite
16705
+ id:
16706
+ type: string
16707
+ description: Unique identifier for the invite link to the organization
16708
+ role:
16709
+ $ref: "#/components/schemas/MemberRoleOrGuest"
16710
+ description: The role of the member in the organization
16515
16711
  required:
16516
- - level
16517
- - collection
16518
- CreateOrganizationInvite:
16519
- oneOf:
16520
- - $ref: "#/components/schemas/CreateInviteToOrganization"
16521
- - $ref: "#/components/schemas/CreateInviteToSpace"
16522
- - $ref: "#/components/schemas/CreateInviteToCollection"
16523
- InviteToOrganization:
16712
+ - object
16713
+ - id
16714
+ - role
16715
+ CreateInviteToOrganization:
16524
16716
  type: object
16525
16717
  properties:
16526
16718
  role:
@@ -16528,49 +16720,42 @@ components:
16528
16720
  description: The role of the member in the organization
16529
16721
  required:
16530
16722
  - role
16531
- InviteToSpace:
16723
+ CreateInviteToSpace:
16532
16724
  type: object
16533
16725
  properties:
16534
16726
  level:
16535
16727
  $ref: "#/components/schemas/MemberRoleOrGuest"
16536
16728
  description: The level of the member in the target space
16537
16729
  space:
16538
- $ref: "#/components/schemas/Space"
16539
- description: The space the member has been invited to
16730
+ type: string
16731
+ description: The ID of space the member has been invited to
16540
16732
  required:
16541
16733
  - level
16542
16734
  - space
16543
- InviteToCollection:
16735
+ CreateInviteToCollection:
16544
16736
  type: object
16545
16737
  properties:
16546
16738
  level:
16547
16739
  $ref: "#/components/schemas/MemberRoleOrGuest"
16548
16740
  description: The level of the member in the target collection
16549
16741
  collection:
16550
- $ref: "#/components/schemas/Collection"
16551
- description: The collection the member has been invited to
16742
+ type: string
16743
+ description: The ID of collection the member has been invited to
16552
16744
  required:
16553
16745
  - level
16554
16746
  - collection
16555
- OrganizationInvite:
16556
- allOf:
16557
- - type: object
16558
- properties:
16559
- object:
16560
- type: string
16561
- description: Type of Object, always equals to "invite"
16562
- enum:
16563
- - invite
16564
- id:
16565
- type: string
16566
- description: Unique identifier for the organization invite
16567
- required:
16568
- - object
16569
- - id
16570
- - oneOf:
16571
- - $ref: "#/components/schemas/InviteToOrganization"
16572
- - $ref: "#/components/schemas/InviteToSpace"
16573
- - $ref: "#/components/schemas/InviteToCollection"
16747
+ CreateOrganizationInvite:
16748
+ oneOf:
16749
+ - $ref: "#/components/schemas/CreateInviteToOrganization"
16750
+ - $ref: "#/components/schemas/CreateInviteToSpace"
16751
+ - $ref: "#/components/schemas/CreateInviteToCollection"
16752
+ OrganizationInviteLink:
16753
+ type: object
16754
+ description: An invite link created in an organization
16755
+ oneOf:
16756
+ - $ref: "#/components/schemas/InviteLinkToOrganization"
16757
+ - $ref: "#/components/schemas/InviteLinkToSpace"
16758
+ - $ref: "#/components/schemas/InviteLinkToCollection"
16574
16759
  BillingPortal:
16575
16760
  type: object
16576
16761
  properties:
@@ -18301,6 +18486,55 @@ components:
18301
18486
  description: ID of the organization owning this site
18302
18487
  required:
18303
18488
  - organization
18489
+ PublishedSiteContent:
18490
+ type: object
18491
+ title: Site Content
18492
+ properties:
18493
+ site:
18494
+ type: string
18495
+ description: ID of the site matching.
18496
+ siteSection:
18497
+ type: string
18498
+ description: ID of the site-section matching.
18499
+ siteSpace:
18500
+ type: string
18501
+ description: ID of the site-space matching.
18502
+ space:
18503
+ type: string
18504
+ description: ID of the space matching.
18505
+ changeRequest:
18506
+ type: string
18507
+ description: Identifier of the change request being previewed in this URL.
18508
+ revision:
18509
+ type: string
18510
+ description: Identifier of the revision being previewed in this URL.
18511
+ pathname:
18512
+ type: string
18513
+ description: Path of the content relative to the space
18514
+ basePath:
18515
+ type: string
18516
+ description: Prefix of the path in the URL dedicated to the space
18517
+ apiToken:
18518
+ type: string
18519
+ description: Short-lived API token to fetch content related to the space in the context of the URL.
18520
+ organization:
18521
+ type: string
18522
+ description: ID of the organization.
18523
+ shareKey:
18524
+ type: string
18525
+ description: Share link key of the site in case the site was published with share-links.
18526
+ complete:
18527
+ type: boolean
18528
+ 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.
18529
+ required:
18530
+ - site
18531
+ - siteSpace
18532
+ - space
18533
+ - pathname
18534
+ - basePath
18535
+ - apiToken
18536
+ - organization
18537
+ - complete
18304
18538
  PublishedSiteContentLookup:
18305
18539
  oneOf:
18306
18540
  - type: object
@@ -18318,51 +18552,7 @@ components:
18318
18552
  required:
18319
18553
  - target
18320
18554
  - redirect
18321
- - type: object
18322
- title: Content
18323
- properties:
18324
- site:
18325
- type: string
18326
- description: ID of the site matching.
18327
- siteSpace:
18328
- type: string
18329
- description: ID of the site-space matching.
18330
- space:
18331
- type: string
18332
- description: ID of the space matching.
18333
- changeRequest:
18334
- type: string
18335
- description: Identifier of the change request being previewed in this URL.
18336
- revision:
18337
- type: string
18338
- description: Identifier of the revision being previewed in this URL.
18339
- pathname:
18340
- type: string
18341
- description: Path of the content relative to the space
18342
- basePath:
18343
- type: string
18344
- description: Prefix of the path in the URL dedicated to the space
18345
- apiToken:
18346
- type: string
18347
- description: Short-lived API token to fetch content related to the space in the context of the URL.
18348
- organization:
18349
- type: string
18350
- description: ID of the organization.
18351
- shareKey:
18352
- type: string
18353
- description: Share link key of the site in case the site was published with share-links.
18354
- complete:
18355
- type: boolean
18356
- 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.
18357
- required:
18358
- - site
18359
- - siteSpace
18360
- - space
18361
- - pathname
18362
- - basePath
18363
- - apiToken
18364
- - organization
18365
- - complete
18555
+ - $ref: "#/components/schemas/PublishedSiteContent"
18366
18556
  UpdateContentPublishingAuth:
18367
18557
  type: object
18368
18558
  properties:
@@ -19007,6 +19197,18 @@ components:
19007
19197
  required:
19008
19198
  - channel
19009
19199
  - organization
19200
+ OrganizationInviteLinksChannel:
19201
+ type: object
19202
+ properties:
19203
+ channel:
19204
+ type: string
19205
+ enum:
19206
+ - organization-link-invites
19207
+ organization:
19208
+ type: string
19209
+ required:
19210
+ - channel
19211
+ - organization
19010
19212
  OrganizationMembersChannel:
19011
19213
  type: object
19012
19214
  properties:
@@ -19562,6 +19764,7 @@ components:
19562
19764
  - $ref: "#/components/schemas/CollectionChannel"
19563
19765
  - $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
19564
19766
  - $ref: "#/components/schemas/OrganizationInfoChannel"
19767
+ - $ref: "#/components/schemas/OrganizationInviteLinksChannel"
19565
19768
  - $ref: "#/components/schemas/OrganizationMembersChannel"
19566
19769
  - $ref: "#/components/schemas/OrganizationMemberChannel"
19567
19770
  - $ref: "#/components/schemas/OrganizationSAMLChannel"