@gitbook/api 0.129.0 → 0.131.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
@@ -612,6 +612,8 @@ paths:
612
612
  $ref: "#/components/schemas/SpaceTitle"
613
613
  defaultLevel:
614
614
  $ref: "#/components/schemas/DefaultLevel"
615
+ language:
616
+ $ref: "#/components/schemas/TranslationLanguage"
615
617
  - oneOf:
616
618
  - type: object
617
619
  title: Emoji
@@ -1499,9 +1501,14 @@ paths:
1499
1501
  type: array
1500
1502
  items:
1501
1503
  $ref: "#/components/schemas/RevisionFile"
1504
+ reusableContents:
1505
+ type: array
1506
+ items:
1507
+ $ref: "#/components/schemas/RevisionReusableContent"
1502
1508
  required:
1503
1509
  - pages
1504
1510
  - files
1511
+ - reusableContents
1505
1512
  "/spaces/{spaceId}/documents/{documentId}":
1506
1513
  get:
1507
1514
  operationId: getDocumentById
@@ -3034,7 +3041,6 @@ paths:
3034
3041
  - type: object
3035
3042
  required:
3036
3043
  - items
3037
- - total
3038
3044
  properties:
3039
3045
  items:
3040
3046
  type: array
@@ -3065,7 +3071,6 @@ paths:
3065
3071
  - type: object
3066
3072
  required:
3067
3073
  - items
3068
- - total
3069
3074
  properties:
3070
3075
  items:
3071
3076
  type: array
@@ -7847,6 +7852,11 @@ paths:
7847
7852
  parameters:
7848
7853
  - $ref: "#/components/parameters/organizationId"
7849
7854
  - $ref: "#/components/parameters/siteId"
7855
+ - name: spaceId
7856
+ in: query
7857
+ description: The ID of the space to filter the recommended questions for.
7858
+ schema:
7859
+ type: string
7850
7860
  responses:
7851
7861
  "200":
7852
7862
  description: OK
@@ -8982,7 +8992,7 @@ paths:
8982
8992
  items:
8983
8993
  $ref: "#/components/schemas/Organization"
8984
8994
  required:
8985
- - organizaitons
8995
+ - organizations
8986
8996
  /ads/sites:
8987
8997
  get:
8988
8998
  operationId: adsListSites
@@ -9859,6 +9869,46 @@ components:
9859
9869
  enum:
9860
9870
  - live
9861
9871
  - locked
9872
+ TranslationLanguage:
9873
+ type: string
9874
+ enum:
9875
+ - en
9876
+ - fr
9877
+ - de
9878
+ - es
9879
+ - it
9880
+ - pt
9881
+ - pt-br
9882
+ - ru
9883
+ - ja
9884
+ - zh
9885
+ - ko
9886
+ - ar
9887
+ - hi
9888
+ - nl
9889
+ - pl
9890
+ - tr
9891
+ - sv
9892
+ - no
9893
+ - da
9894
+ - fi
9895
+ - el
9896
+ - cs
9897
+ - hu
9898
+ - ro
9899
+ - th
9900
+ - vi
9901
+ - id
9902
+ - ms
9903
+ - he
9904
+ - uk
9905
+ - sk
9906
+ - bg
9907
+ - hr
9908
+ - lt
9909
+ - lv
9910
+ - et
9911
+ - sl
9862
9912
  GitSyncProvider:
9863
9913
  type: string
9864
9914
  description: The provider of the Git Sync installation.
@@ -10007,6 +10057,8 @@ components:
10007
10057
  parent:
10008
10058
  type: string
10009
10059
  description: ID of the parent collection.
10060
+ language:
10061
+ $ref: "#/components/schemas/TranslationLanguage"
10010
10062
  gitSync:
10011
10063
  $ref: "#/components/schemas/GitSyncState"
10012
10064
  visitorAuth:
@@ -10072,7 +10124,6 @@ components:
10072
10124
  required:
10073
10125
  - object
10074
10126
  - id
10075
- - type
10076
10127
  - title
10077
10128
  - emoji
10078
10129
  - organization
@@ -10583,6 +10634,11 @@ components:
10583
10634
  - orange
10584
10635
  - yellow
10585
10636
  - purple
10637
+ - $primary
10638
+ - $info
10639
+ - $success
10640
+ - $warning
10641
+ - $danger
10586
10642
  background:
10587
10643
  type: string
10588
10644
  enum:
@@ -10593,6 +10649,11 @@ components:
10593
10649
  - orange
10594
10650
  - yellow
10595
10651
  - purple
10652
+ - $primary
10653
+ - $info
10654
+ - $success
10655
+ - $warning
10656
+ - $danger
10596
10657
  required:
10597
10658
  - text
10598
10659
  - background
@@ -12943,9 +13004,6 @@ components:
12943
13004
  type: string
12944
13005
  description:
12945
13006
  type: string
12946
- documentId:
12947
- type: string
12948
- description: ID of the document with the page body. If undefined, the page is empty.
12949
13007
  pages:
12950
13008
  type: array
12951
13009
  items:
@@ -13047,7 +13105,6 @@ components:
13047
13105
  required:
13048
13106
  - object
13049
13107
  - id
13050
- - organizationId
13051
13108
  - slug
13052
13109
  required:
13053
13110
  - ref
@@ -13487,19 +13544,35 @@ components:
13487
13544
  - downloadURL
13488
13545
  - size
13489
13546
  RevisionReusableContent:
13490
- type: object
13491
- properties:
13492
- id:
13493
- type: string
13494
- title:
13495
- type: string
13496
- document:
13497
- type: string
13498
- git:
13499
- $ref: "#/components/schemas/GitSyncBlob"
13500
- required:
13501
- - id
13502
- - title
13547
+ allOf:
13548
+ - type: object
13549
+ properties:
13550
+ id:
13551
+ type: string
13552
+ title:
13553
+ type: string
13554
+ git:
13555
+ $ref: "#/components/schemas/GitSyncBlob"
13556
+ required:
13557
+ - id
13558
+ - title
13559
+ - oneOf:
13560
+ - type: object
13561
+ description: Defined when the reusable content was generated by a computed content.
13562
+ properties:
13563
+ computed:
13564
+ $ref: "#/components/schemas/ComputedContentSourceDocument"
13565
+ computedSeed:
13566
+ type: string
13567
+ description: Seed to use for the generation of IDs.
13568
+ required:
13569
+ - computed
13570
+ - computedSeed
13571
+ - type: object
13572
+ properties:
13573
+ document:
13574
+ type: string
13575
+ description: ID of the document with the content body. If undefined, the reusable content is empty.
13503
13576
  GitSyncCommit:
13504
13577
  type: object
13505
13578
  properties:
@@ -13779,12 +13852,23 @@ components:
13779
13852
  totalResources:
13780
13853
  type: number
13781
13854
  description: How many resources were processed
13855
+ SpaceTemplateParams:
13856
+ type: object
13857
+ description: Parameters for a space template
13858
+ properties:
13859
+ contentRefs:
13860
+ type: object
13861
+ additionalProperties:
13862
+ type: object
13863
+ $ref: "#/components/schemas/ContentRef"
13782
13864
  ApplySpaceTemplate:
13783
13865
  type: object
13784
13866
  properties:
13785
13867
  id:
13786
13868
  type: string
13787
13869
  description: The ID of the template to use for the space
13870
+ params:
13871
+ $ref: "#/components/schemas/SpaceTemplateParams"
13788
13872
  required:
13789
13873
  - id
13790
13874
  OrganizationTitle:
@@ -14081,6 +14165,9 @@ components:
14081
14165
  listIntegrations:
14082
14166
  type: boolean
14083
14167
  description: Can the user list the integrations in the organization.
14168
+ listInstallations:
14169
+ type: boolean
14170
+ description: Can the user list the integration installations in the organization.
14084
14171
  required:
14085
14172
  - view
14086
14173
  - admin
@@ -14092,6 +14179,7 @@ components:
14092
14179
  - listMembers
14093
14180
  - listTeams
14094
14181
  - listIntegrations
14182
+ - listInstallations
14095
14183
  required:
14096
14184
  - object
14097
14185
  - id
@@ -14419,7 +14507,6 @@ components:
14419
14507
  description: The set of permissions for the OpenAPI specification.
14420
14508
  required:
14421
14509
  - view
14422
- - delete
14423
14510
  - edit
14424
14511
  properties:
14425
14512
  view:
@@ -14578,6 +14665,17 @@ components:
14578
14665
  type: array
14579
14666
  items:
14580
14667
  $ref: "#/components/schemas/EmojiReaction"
14668
+ TableCellTarget:
14669
+ type: object
14670
+ description: Details about the table cell this comment is attached to, if any.
14671
+ properties:
14672
+ record:
14673
+ type: string
14674
+ definition:
14675
+ type: string
14676
+ required:
14677
+ - record
14678
+ - definition
14581
14679
  Comment:
14582
14680
  allOf:
14583
14681
  - type: object
@@ -14622,6 +14720,8 @@ components:
14622
14720
  type: string
14623
14721
  required:
14624
14722
  - id
14723
+ tableCell:
14724
+ $ref: "#/components/schemas/TableCellTarget"
14625
14725
  changeRequest:
14626
14726
  description: The change request containing this comment, if the comment was made inside a change request.
14627
14727
  type: string
@@ -14681,7 +14781,6 @@ components:
14681
14781
  required:
14682
14782
  - view
14683
14783
  - edit
14684
- - react
14685
14784
  - delete
14686
14785
  required:
14687
14786
  - object
@@ -14835,6 +14934,8 @@ components:
14835
14934
  body:
14836
14935
  description: The content of the comment.
14837
14936
  $ref: "#/components/schemas/Document"
14937
+ tableCell:
14938
+ $ref: "#/components/schemas/TableCellTarget"
14838
14939
  required:
14839
14940
  - body
14840
14941
  UpdateCommentSchema:
@@ -14907,7 +15008,6 @@ components:
14907
15008
  required:
14908
15009
  - view
14909
15010
  - edit
14910
- - react
14911
15011
  - delete
14912
15012
  required:
14913
15013
  - object
@@ -16814,7 +16914,6 @@ components:
16814
16914
  required:
16815
16915
  - status
16816
16916
  - topic
16817
- - accountEmail
16818
16917
  properties:
16819
16918
  status:
16820
16919
  type: string
@@ -16999,7 +17098,6 @@ components:
16999
17098
  - published
17000
17099
  - createdAt
17001
17100
  - siteSpaces
17002
- - defaultSpace
17003
17101
  - features
17004
17102
  - agentsContext
17005
17103
  - urls
@@ -17965,8 +18063,6 @@ components:
17965
18063
  type: string
17966
18064
  description: URL of the published version of the site-space. Only defined when site is published.
17967
18065
  format: uri
17968
- required:
17969
- - location
17970
18066
  required:
17971
18067
  - object
17972
18068
  - id
@@ -18012,8 +18108,6 @@ components:
18012
18108
  type: string
18013
18109
  description: URL of the published version of the site section. Only defined when site is published.
18014
18110
  format: uri
18015
- required:
18016
- - location
18017
18111
  icon:
18018
18112
  $ref: "#/components/schemas/Icon"
18019
18113
  required:
@@ -18254,7 +18348,6 @@ components:
18254
18348
  required:
18255
18349
  - object
18256
18350
  - id
18257
- - target
18258
18351
  - level
18259
18352
  - redundant
18260
18353
  - collection
@@ -18282,7 +18375,6 @@ components:
18282
18375
  required:
18283
18376
  - object
18284
18377
  - id
18285
- - target
18286
18378
  - level
18287
18379
  - redundant
18288
18380
  - space
@@ -18662,21 +18754,41 @@ components:
18662
18754
  - title
18663
18755
  - pages
18664
18756
  CreateSpace:
18665
- type: object
18666
- properties:
18667
- title:
18668
- type: string
18669
- maxLength: 50
18670
- emoji:
18671
- $ref: "#/components/schemas/Emoji"
18672
- parent:
18673
- type: string
18674
- description: ID of a parent collection
18675
- editMode:
18676
- $ref: "#/components/schemas/SpaceEditMode"
18677
- description: The edit mode of the space
18678
- template:
18679
- $ref: "#/components/schemas/ApplySpaceTemplate"
18757
+ allOf:
18758
+ - type: object
18759
+ properties:
18760
+ title:
18761
+ type: string
18762
+ maxLength: 50
18763
+ emoji:
18764
+ $ref: "#/components/schemas/Emoji"
18765
+ parent:
18766
+ type: string
18767
+ description: ID of a parent collection
18768
+ language:
18769
+ $ref: "#/components/schemas/TranslationLanguage"
18770
+ editMode:
18771
+ $ref: "#/components/schemas/SpaceEditMode"
18772
+ description: The edit mode of the space
18773
+ - anyOf:
18774
+ - type: object
18775
+ properties: {}
18776
+ additionalProperties: true
18777
+ - oneOf:
18778
+ - type: object
18779
+ description: Create a space from a template
18780
+ required:
18781
+ - template
18782
+ properties:
18783
+ template:
18784
+ $ref: "#/components/schemas/ApplySpaceTemplate"
18785
+ - type: object
18786
+ description: Create a space from a computed content source
18787
+ required:
18788
+ - computedSource
18789
+ properties:
18790
+ computedSource:
18791
+ $ref: "#/components/schemas/ComputedContentSourceRevision"
18680
18792
  SAMLProviderLabel:
18681
18793
  type: string
18682
18794
  minLength: 1
@@ -18998,7 +19110,6 @@ components:
18998
19110
  items:
18999
19111
  $ref: "#/components/schemas/SearchAIAnswerSource"
19000
19112
  required:
19001
- - pages
19002
19113
  - sources
19003
19114
  - followupQuestions
19004
19115
  SearchAIRecommendedQuestions:
@@ -19466,45 +19577,6 @@ components:
19466
19577
  - pending
19467
19578
  - running
19468
19579
  - completed
19469
- TranslationLanguage:
19470
- type: string
19471
- enum:
19472
- - en
19473
- - fr
19474
- - de
19475
- - es
19476
- - it
19477
- - pt
19478
- - ru
19479
- - ja
19480
- - zh
19481
- - ko
19482
- - ar
19483
- - hi
19484
- - nl
19485
- - pl
19486
- - tr
19487
- - sv
19488
- - no
19489
- - da
19490
- - fi
19491
- - el
19492
- - cs
19493
- - hu
19494
- - ro
19495
- - th
19496
- - vi
19497
- - id
19498
- - ms
19499
- - he
19500
- - uk
19501
- - sk
19502
- - bg
19503
- - hr
19504
- - lt
19505
- - lv
19506
- - et
19507
- - sl
19508
19580
  TranslationSource:
19509
19581
  type: object
19510
19582
  required:
@@ -20170,6 +20242,7 @@ components:
20170
20242
  - nl
20171
20243
  - no
20172
20244
  - pt-br
20245
+ - ru
20173
20246
  CustomizationHeaderPreset:
20174
20247
  type: string
20175
20248
  deprecated: true
@@ -20984,12 +21057,16 @@ components:
20984
21057
  spaceId:
20985
21058
  type: string
20986
21059
  description: The ID of the space being accessed.
21060
+ revisionId:
21061
+ type: string
21062
+ description: The ID of the revision within which the page content is being fetched.
20987
21063
  page:
20988
21064
  $ref: "#/components/schemas/ChangedRevisionPage"
20989
21065
  required:
20990
21066
  - tool
20991
21067
  - spaceId
20992
21068
  - page
21069
+ - revisionId
20993
21070
  AIToolCallGetPages:
20994
21071
  type: object
20995
21072
  properties:
@@ -21000,9 +21077,13 @@ components:
21000
21077
  spaceId:
21001
21078
  type: string
21002
21079
  description: The ID of the space being accessed.
21080
+ revisionId:
21081
+ type: string
21082
+ description: The revision ID of the space.
21003
21083
  required:
21004
21084
  - tool
21005
21085
  - spaceId
21086
+ - revisionId
21006
21087
  AIToolCallSearchResult:
21007
21088
  type: object
21008
21089
  description: Result of a search
@@ -21013,6 +21094,9 @@ components:
21013
21094
  pageId:
21014
21095
  type: string
21015
21096
  description: The ID of the page
21097
+ revisionId:
21098
+ type: string
21099
+ description: The revision ID of the result
21016
21100
  anchor:
21017
21101
  type: string
21018
21102
  description: The anchor of the result
@@ -21025,6 +21109,7 @@ components:
21025
21109
  required:
21026
21110
  - spaceId
21027
21111
  - pageId
21112
+ - revisionId
21028
21113
  - title
21029
21114
  AIToolCallSearch:
21030
21115
  type: object
@@ -22717,7 +22802,7 @@ components:
22717
22802
  properties:
22718
22803
  operator:
22719
22804
  $ref: "#/components/schemas/SiteInsightsQueryOperator"
22720
- SiteInsightsQueryRange:
22805
+ SiteInsightsQueryRangePreset:
22721
22806
  type: string
22722
22807
  enum:
22723
22808
  - lastYear
@@ -22725,6 +22810,20 @@ components:
22725
22810
  - last30Days
22726
22811
  - last7Days
22727
22812
  - last24Hours
22813
+ SiteInsightsQueryRangeCustom:
22814
+ type: object
22815
+ properties:
22816
+ from:
22817
+ $ref: "#/components/schemas/Timestamp"
22818
+ to:
22819
+ $ref: "#/components/schemas/Timestamp"
22820
+ required:
22821
+ - from
22822
+ - to
22823
+ SiteInsightsQueryRange:
22824
+ oneOf:
22825
+ - $ref: "#/components/schemas/SiteInsightsQueryRangePreset"
22826
+ - $ref: "#/components/schemas/SiteInsightsQueryRangeCustom"
22728
22827
  SiteInsightsQueryEventsAggregation:
22729
22828
  type: object
22730
22829
  required:
@@ -23259,8 +23358,6 @@ components:
23259
23358
  type: object
23260
23359
  additionalProperties:
23261
23360
  $ref: "#/components/schemas/UserOrganizationsTeamsPermissions"
23262
- required:
23263
- - role
23264
23361
  disabled:
23265
23362
  type: boolean
23266
23363
  required:
@@ -24892,6 +24989,18 @@ components:
24892
24989
  required:
24893
24990
  - channel
24894
24991
  - translation
24992
+ TranslationRunChannel:
24993
+ type: object
24994
+ properties:
24995
+ channel:
24996
+ type: string
24997
+ enum:
24998
+ - translation-run
24999
+ translation:
25000
+ type: string
25001
+ required:
25002
+ - channel
25003
+ - translation
24895
25004
  AgentTaskChannel:
24896
25005
  type: object
24897
25006
  description: Subscription channel for an agent task.
@@ -24993,10 +25102,35 @@ components:
24993
25102
  - $ref: "#/components/schemas/OpenAPISpecChannel"
24994
25103
  - $ref: "#/components/schemas/SubdomainChannel"
24995
25104
  - $ref: "#/components/schemas/TranslationChannel"
25105
+ - $ref: "#/components/schemas/TranslationRunChannel"
24996
25106
  - $ref: "#/components/schemas/AgentTaskChannel"
24997
25107
  - $ref: "#/components/schemas/AgentTasksChannel"
24998
25108
  discriminator:
24999
25109
  propertyName: channel
25110
+ TranslationRunChannelData:
25111
+ type: object
25112
+ properties:
25113
+ channel:
25114
+ type: string
25115
+ enum:
25116
+ - translation-run
25117
+ data:
25118
+ type: object
25119
+ properties:
25120
+ progress:
25121
+ type: number
25122
+ description: The progress of the translation run, between 0 and 100.
25123
+ startedAt:
25124
+ $ref: "#/components/schemas/Timestamp"
25125
+ updatedAt:
25126
+ $ref: "#/components/schemas/Timestamp"
25127
+ required:
25128
+ - progress
25129
+ - startedAt
25130
+ - updatedAt
25131
+ required:
25132
+ - channel
25133
+ - data
25000
25134
  GitSyncOperationChannelData:
25001
25135
  type: object
25002
25136
  properties:
@@ -25097,6 +25231,7 @@ components:
25097
25231
  - $ref: "#/components/schemas/SpaceContentRefsChannelData"
25098
25232
  - $ref: "#/components/schemas/ChangeRequestContentRefsChannelData"
25099
25233
  - $ref: "#/components/schemas/OrganizationAIIndexationChannelData"
25234
+ - $ref: "#/components/schemas/TranslationRunChannelData"
25100
25235
  - $ref: "#/components/schemas/APIChannelMutationData"
25101
25236
  discriminator:
25102
25237
  propertyName: channel
@@ -25339,8 +25474,6 @@ components:
25339
25474
  $ref: "#/components/schemas/VisitorAuthCustomBackend"
25340
25475
  SpaceVisitorAuthIntegrationBackend:
25341
25476
  $ref: "#/components/schemas/VisitorAuthIntegrationBackend"
25342
- ApplyTemplate:
25343
- $ref: "#/components/schemas/ApplySpaceTemplate"
25344
25477
  UserPermissions:
25345
25478
  $ref: "#/components/schemas/_index"
25346
25479
  SiteRedirectDestinationSpace: