@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.json CHANGED
@@ -643,6 +643,9 @@
643
643
  },
644
644
  "defaultLevel": {
645
645
  "$ref": "#/components/schemas/DefaultLevel"
646
+ },
647
+ "language": {
648
+ "$ref": "#/components/schemas/TranslationLanguage"
646
649
  }
647
650
  }
648
651
  },
@@ -2258,11 +2261,18 @@
2258
2261
  "items": {
2259
2262
  "$ref": "#/components/schemas/RevisionFile"
2260
2263
  }
2264
+ },
2265
+ "reusableContents": {
2266
+ "type": "array",
2267
+ "items": {
2268
+ "$ref": "#/components/schemas/RevisionReusableContent"
2269
+ }
2261
2270
  }
2262
2271
  },
2263
2272
  "required": [
2264
2273
  "pages",
2265
- "files"
2274
+ "files",
2275
+ "reusableContents"
2266
2276
  ]
2267
2277
  }
2268
2278
  }
@@ -5195,8 +5205,7 @@
5195
5205
  {
5196
5206
  "type": "object",
5197
5207
  "required": [
5198
- "items",
5199
- "total"
5208
+ "items"
5200
5209
  ],
5201
5210
  "properties": {
5202
5211
  "items": {
@@ -5255,8 +5264,7 @@
5255
5264
  {
5256
5265
  "type": "object",
5257
5266
  "required": [
5258
- "items",
5259
- "total"
5267
+ "items"
5260
5268
  ],
5261
5269
  "properties": {
5262
5270
  "items": {
@@ -13872,6 +13880,14 @@
13872
13880
  },
13873
13881
  {
13874
13882
  "$ref": "#/components/parameters/siteId"
13883
+ },
13884
+ {
13885
+ "name": "spaceId",
13886
+ "in": "query",
13887
+ "description": "The ID of the space to filter the recommended questions for.",
13888
+ "schema": {
13889
+ "type": "string"
13890
+ }
13875
13891
  }
13876
13892
  ],
13877
13893
  "responses": {
@@ -15900,7 +15916,7 @@
15900
15916
  }
15901
15917
  },
15902
15918
  "required": [
15903
- "organizaitons"
15919
+ "organizations"
15904
15920
  ]
15905
15921
  }
15906
15922
  }
@@ -17141,6 +17157,48 @@
17141
17157
  "locked"
17142
17158
  ]
17143
17159
  },
17160
+ "TranslationLanguage": {
17161
+ "type": "string",
17162
+ "enum": [
17163
+ "en",
17164
+ "fr",
17165
+ "de",
17166
+ "es",
17167
+ "it",
17168
+ "pt",
17169
+ "pt-br",
17170
+ "ru",
17171
+ "ja",
17172
+ "zh",
17173
+ "ko",
17174
+ "ar",
17175
+ "hi",
17176
+ "nl",
17177
+ "pl",
17178
+ "tr",
17179
+ "sv",
17180
+ "no",
17181
+ "da",
17182
+ "fi",
17183
+ "el",
17184
+ "cs",
17185
+ "hu",
17186
+ "ro",
17187
+ "th",
17188
+ "vi",
17189
+ "id",
17190
+ "ms",
17191
+ "he",
17192
+ "uk",
17193
+ "sk",
17194
+ "bg",
17195
+ "hr",
17196
+ "lt",
17197
+ "lv",
17198
+ "et",
17199
+ "sl"
17200
+ ]
17201
+ },
17144
17202
  "GitSyncProvider": {
17145
17203
  "type": "string",
17146
17204
  "description": "The provider of the Git Sync installation.",
@@ -17351,6 +17409,9 @@
17351
17409
  "type": "string",
17352
17410
  "description": "ID of the parent collection."
17353
17411
  },
17412
+ "language": {
17413
+ "$ref": "#/components/schemas/TranslationLanguage"
17414
+ },
17354
17415
  "gitSync": {
17355
17416
  "$ref": "#/components/schemas/GitSyncState"
17356
17417
  },
@@ -17437,7 +17498,6 @@
17437
17498
  "required": [
17438
17499
  "object",
17439
17500
  "id",
17440
- "type",
17441
17501
  "title",
17442
17502
  "emoji",
17443
17503
  "organization",
@@ -18169,7 +18229,12 @@
18169
18229
  "red",
18170
18230
  "orange",
18171
18231
  "yellow",
18172
- "purple"
18232
+ "purple",
18233
+ "$primary",
18234
+ "$info",
18235
+ "$success",
18236
+ "$warning",
18237
+ "$danger"
18173
18238
  ]
18174
18239
  },
18175
18240
  "background": {
@@ -18181,7 +18246,12 @@
18181
18246
  "red",
18182
18247
  "orange",
18183
18248
  "yellow",
18184
- "purple"
18249
+ "purple",
18250
+ "$primary",
18251
+ "$info",
18252
+ "$success",
18253
+ "$warning",
18254
+ "$danger"
18185
18255
  ]
18186
18256
  }
18187
18257
  },
@@ -22025,10 +22095,6 @@
22025
22095
  "description": {
22026
22096
  "type": "string"
22027
22097
  },
22028
- "documentId": {
22029
- "type": "string",
22030
- "description": "ID of the document with the page body. If undefined, the page is empty."
22031
- },
22032
22098
  "pages": {
22033
22099
  "type": "array",
22034
22100
  "items": {
@@ -22186,7 +22252,6 @@
22186
22252
  "required": [
22187
22253
  "object",
22188
22254
  "id",
22189
- "organizationId",
22190
22255
  "slug"
22191
22256
  ]
22192
22257
  }
@@ -22897,24 +22962,55 @@
22897
22962
  ]
22898
22963
  },
22899
22964
  "RevisionReusableContent": {
22900
- "type": "object",
22901
- "properties": {
22902
- "id": {
22903
- "type": "string"
22904
- },
22905
- "title": {
22906
- "type": "string"
22907
- },
22908
- "document": {
22909
- "type": "string"
22965
+ "allOf": [
22966
+ {
22967
+ "type": "object",
22968
+ "properties": {
22969
+ "id": {
22970
+ "type": "string"
22971
+ },
22972
+ "title": {
22973
+ "type": "string"
22974
+ },
22975
+ "git": {
22976
+ "$ref": "#/components/schemas/GitSyncBlob"
22977
+ }
22978
+ },
22979
+ "required": [
22980
+ "id",
22981
+ "title"
22982
+ ]
22910
22983
  },
22911
- "git": {
22912
- "$ref": "#/components/schemas/GitSyncBlob"
22984
+ {
22985
+ "oneOf": [
22986
+ {
22987
+ "type": "object",
22988
+ "description": "Defined when the reusable content was generated by a computed content.",
22989
+ "properties": {
22990
+ "computed": {
22991
+ "$ref": "#/components/schemas/ComputedContentSourceDocument"
22992
+ },
22993
+ "computedSeed": {
22994
+ "type": "string",
22995
+ "description": "Seed to use for the generation of IDs."
22996
+ }
22997
+ },
22998
+ "required": [
22999
+ "computed",
23000
+ "computedSeed"
23001
+ ]
23002
+ },
23003
+ {
23004
+ "type": "object",
23005
+ "properties": {
23006
+ "document": {
23007
+ "type": "string",
23008
+ "description": "ID of the document with the content body. If undefined, the reusable content is empty."
23009
+ }
23010
+ }
23011
+ }
23012
+ ]
22913
23013
  }
22914
- },
22915
- "required": [
22916
- "id",
22917
- "title"
22918
23014
  ]
22919
23015
  },
22920
23016
  "GitSyncCommit": {
@@ -23330,12 +23426,28 @@
23330
23426
  }
23331
23427
  }
23332
23428
  },
23429
+ "SpaceTemplateParams": {
23430
+ "type": "object",
23431
+ "description": "Parameters for a space template",
23432
+ "properties": {
23433
+ "contentRefs": {
23434
+ "type": "object",
23435
+ "additionalProperties": {
23436
+ "type": "object",
23437
+ "$ref": "#/components/schemas/ContentRef"
23438
+ }
23439
+ }
23440
+ }
23441
+ },
23333
23442
  "ApplySpaceTemplate": {
23334
23443
  "type": "object",
23335
23444
  "properties": {
23336
23445
  "id": {
23337
23446
  "type": "string",
23338
23447
  "description": "The ID of the template to use for the space"
23448
+ },
23449
+ "params": {
23450
+ "$ref": "#/components/schemas/SpaceTemplateParams"
23339
23451
  }
23340
23452
  },
23341
23453
  "required": [
@@ -23740,6 +23852,10 @@
23740
23852
  "listIntegrations": {
23741
23853
  "type": "boolean",
23742
23854
  "description": "Can the user list the integrations in the organization."
23855
+ },
23856
+ "listInstallations": {
23857
+ "type": "boolean",
23858
+ "description": "Can the user list the integration installations in the organization."
23743
23859
  }
23744
23860
  },
23745
23861
  "required": [
@@ -23752,7 +23868,8 @@
23752
23868
  "viewBilling",
23753
23869
  "listMembers",
23754
23870
  "listTeams",
23755
- "listIntegrations"
23871
+ "listIntegrations",
23872
+ "listInstallations"
23756
23873
  ]
23757
23874
  }
23758
23875
  },
@@ -24224,7 +24341,6 @@
24224
24341
  "description": "The set of permissions for the OpenAPI specification.",
24225
24342
  "required": [
24226
24343
  "view",
24227
- "delete",
24228
24344
  "edit"
24229
24345
  ],
24230
24346
  "properties": {
@@ -24452,6 +24568,22 @@
24452
24568
  "$ref": "#/components/schemas/EmojiReaction"
24453
24569
  }
24454
24570
  },
24571
+ "TableCellTarget": {
24572
+ "type": "object",
24573
+ "description": "Details about the table cell this comment is attached to, if any.",
24574
+ "properties": {
24575
+ "record": {
24576
+ "type": "string"
24577
+ },
24578
+ "definition": {
24579
+ "type": "string"
24580
+ }
24581
+ },
24582
+ "required": [
24583
+ "record",
24584
+ "definition"
24585
+ ]
24586
+ },
24455
24587
  "Comment": {
24456
24588
  "allOf": [
24457
24589
  {
@@ -24511,6 +24643,9 @@
24511
24643
  "id"
24512
24644
  ]
24513
24645
  },
24646
+ "tableCell": {
24647
+ "$ref": "#/components/schemas/TableCellTarget"
24648
+ },
24514
24649
  "changeRequest": {
24515
24650
  "description": "The change request containing this comment, if the comment was made inside a change request.",
24516
24651
  "type": "string"
@@ -24596,7 +24731,6 @@
24596
24731
  "required": [
24597
24732
  "view",
24598
24733
  "edit",
24599
- "react",
24600
24734
  "delete"
24601
24735
  ]
24602
24736
  }
@@ -24823,6 +24957,9 @@
24823
24957
  "body": {
24824
24958
  "description": "The content of the comment.",
24825
24959
  "$ref": "#/components/schemas/Document"
24960
+ },
24961
+ "tableCell": {
24962
+ "$ref": "#/components/schemas/TableCellTarget"
24826
24963
  }
24827
24964
  },
24828
24965
  "required": [
@@ -24924,7 +25061,6 @@
24924
25061
  "required": [
24925
25062
  "view",
24926
25063
  "edit",
24927
- "react",
24928
25064
  "delete"
24929
25065
  ]
24930
25066
  }
@@ -27830,8 +27966,7 @@
27830
27966
  "type": "object",
27831
27967
  "required": [
27832
27968
  "status",
27833
- "topic",
27834
- "accountEmail"
27969
+ "topic"
27835
27970
  ],
27836
27971
  "properties": {
27837
27972
  "status": {
@@ -28080,7 +28215,6 @@
28080
28215
  "published",
28081
28216
  "createdAt",
28082
28217
  "siteSpaces",
28083
- "defaultSpace",
28084
28218
  "features",
28085
28219
  "agentsContext",
28086
28220
  "urls"
@@ -29601,10 +29735,7 @@
29601
29735
  "description": "URL of the published version of the site-space. Only defined when site is published.",
29602
29736
  "format": "uri"
29603
29737
  }
29604
- },
29605
- "required": [
29606
- "location"
29607
- ]
29738
+ }
29608
29739
  }
29609
29740
  },
29610
29741
  "required": [
@@ -29666,10 +29797,7 @@
29666
29797
  "description": "URL of the published version of the site section. Only defined when site is published.",
29667
29798
  "format": "uri"
29668
29799
  }
29669
- },
29670
- "required": [
29671
- "location"
29672
- ]
29800
+ }
29673
29801
  },
29674
29802
  "icon": {
29675
29803
  "$ref": "#/components/schemas/Icon"
@@ -30031,7 +30159,6 @@
30031
30159
  "required": [
30032
30160
  "object",
30033
30161
  "id",
30034
- "target",
30035
30162
  "level",
30036
30163
  "redundant",
30037
30164
  "collection"
@@ -30068,7 +30195,6 @@
30068
30195
  "required": [
30069
30196
  "object",
30070
30197
  "id",
30071
- "target",
30072
30198
  "level",
30073
30199
  "redundant",
30074
30200
  "space"
@@ -30628,27 +30754,68 @@
30628
30754
  ]
30629
30755
  },
30630
30756
  "CreateSpace": {
30631
- "type": "object",
30632
- "properties": {
30633
- "title": {
30634
- "type": "string",
30635
- "maxLength": 50
30636
- },
30637
- "emoji": {
30638
- "$ref": "#/components/schemas/Emoji"
30639
- },
30640
- "parent": {
30641
- "type": "string",
30642
- "description": "ID of a parent collection"
30643
- },
30644
- "editMode": {
30645
- "$ref": "#/components/schemas/SpaceEditMode",
30646
- "description": "The edit mode of the space"
30757
+ "allOf": [
30758
+ {
30759
+ "type": "object",
30760
+ "properties": {
30761
+ "title": {
30762
+ "type": "string",
30763
+ "maxLength": 50
30764
+ },
30765
+ "emoji": {
30766
+ "$ref": "#/components/schemas/Emoji"
30767
+ },
30768
+ "parent": {
30769
+ "type": "string",
30770
+ "description": "ID of a parent collection"
30771
+ },
30772
+ "language": {
30773
+ "$ref": "#/components/schemas/TranslationLanguage"
30774
+ },
30775
+ "editMode": {
30776
+ "$ref": "#/components/schemas/SpaceEditMode",
30777
+ "description": "The edit mode of the space"
30778
+ }
30779
+ }
30647
30780
  },
30648
- "template": {
30649
- "$ref": "#/components/schemas/ApplySpaceTemplate"
30781
+ {
30782
+ "anyOf": [
30783
+ {
30784
+ "type": "object",
30785
+ "properties": {},
30786
+ "additionalProperties": true
30787
+ },
30788
+ {
30789
+ "oneOf": [
30790
+ {
30791
+ "type": "object",
30792
+ "description": "Create a space from a template",
30793
+ "required": [
30794
+ "template"
30795
+ ],
30796
+ "properties": {
30797
+ "template": {
30798
+ "$ref": "#/components/schemas/ApplySpaceTemplate"
30799
+ }
30800
+ }
30801
+ },
30802
+ {
30803
+ "type": "object",
30804
+ "description": "Create a space from a computed content source",
30805
+ "required": [
30806
+ "computedSource"
30807
+ ],
30808
+ "properties": {
30809
+ "computedSource": {
30810
+ "$ref": "#/components/schemas/ComputedContentSourceRevision"
30811
+ }
30812
+ }
30813
+ }
30814
+ ]
30815
+ }
30816
+ ]
30650
30817
  }
30651
- }
30818
+ ]
30652
30819
  },
30653
30820
  "SAMLProviderLabel": {
30654
30821
  "type": "string",
@@ -31087,7 +31254,6 @@
31087
31254
  }
31088
31255
  },
31089
31256
  "required": [
31090
- "pages",
31091
31257
  "sources",
31092
31258
  "followupQuestions"
31093
31259
  ]
@@ -31735,47 +31901,6 @@
31735
31901
  "completed"
31736
31902
  ]
31737
31903
  },
31738
- "TranslationLanguage": {
31739
- "type": "string",
31740
- "enum": [
31741
- "en",
31742
- "fr",
31743
- "de",
31744
- "es",
31745
- "it",
31746
- "pt",
31747
- "ru",
31748
- "ja",
31749
- "zh",
31750
- "ko",
31751
- "ar",
31752
- "hi",
31753
- "nl",
31754
- "pl",
31755
- "tr",
31756
- "sv",
31757
- "no",
31758
- "da",
31759
- "fi",
31760
- "el",
31761
- "cs",
31762
- "hu",
31763
- "ro",
31764
- "th",
31765
- "vi",
31766
- "id",
31767
- "ms",
31768
- "he",
31769
- "uk",
31770
- "sk",
31771
- "bg",
31772
- "hr",
31773
- "lt",
31774
- "lv",
31775
- "et",
31776
- "sl"
31777
- ]
31778
- },
31779
31904
  "TranslationSource": {
31780
31905
  "type": "object",
31781
31906
  "required": [
@@ -32705,7 +32830,8 @@
32705
32830
  "de",
32706
32831
  "nl",
32707
32832
  "no",
32708
- "pt-br"
32833
+ "pt-br",
32834
+ "ru"
32709
32835
  ]
32710
32836
  },
32711
32837
  "CustomizationHeaderPreset": {
@@ -33886,6 +34012,10 @@
33886
34012
  "type": "string",
33887
34013
  "description": "The ID of the space being accessed."
33888
34014
  },
34015
+ "revisionId": {
34016
+ "type": "string",
34017
+ "description": "The ID of the revision within which the page content is being fetched."
34018
+ },
33889
34019
  "page": {
33890
34020
  "$ref": "#/components/schemas/ChangedRevisionPage"
33891
34021
  }
@@ -33893,7 +34023,8 @@
33893
34023
  "required": [
33894
34024
  "tool",
33895
34025
  "spaceId",
33896
- "page"
34026
+ "page",
34027
+ "revisionId"
33897
34028
  ]
33898
34029
  },
33899
34030
  "AIToolCallGetPages": {
@@ -33908,11 +34039,16 @@
33908
34039
  "spaceId": {
33909
34040
  "type": "string",
33910
34041
  "description": "The ID of the space being accessed."
34042
+ },
34043
+ "revisionId": {
34044
+ "type": "string",
34045
+ "description": "The revision ID of the space."
33911
34046
  }
33912
34047
  },
33913
34048
  "required": [
33914
34049
  "tool",
33915
- "spaceId"
34050
+ "spaceId",
34051
+ "revisionId"
33916
34052
  ]
33917
34053
  },
33918
34054
  "AIToolCallSearchResult": {
@@ -33927,6 +34063,10 @@
33927
34063
  "type": "string",
33928
34064
  "description": "The ID of the page"
33929
34065
  },
34066
+ "revisionId": {
34067
+ "type": "string",
34068
+ "description": "The revision ID of the result"
34069
+ },
33930
34070
  "anchor": {
33931
34071
  "type": "string",
33932
34072
  "description": "The anchor of the result"
@@ -33943,6 +34083,7 @@
33943
34083
  "required": [
33944
34084
  "spaceId",
33945
34085
  "pageId",
34086
+ "revisionId",
33946
34087
  "title"
33947
34088
  ]
33948
34089
  },
@@ -36639,7 +36780,7 @@
36639
36780
  }
36640
36781
  ]
36641
36782
  },
36642
- "SiteInsightsQueryRange": {
36783
+ "SiteInsightsQueryRangePreset": {
36643
36784
  "type": "string",
36644
36785
  "enum": [
36645
36786
  "lastYear",
@@ -36649,6 +36790,31 @@
36649
36790
  "last24Hours"
36650
36791
  ]
36651
36792
  },
36793
+ "SiteInsightsQueryRangeCustom": {
36794
+ "type": "object",
36795
+ "properties": {
36796
+ "from": {
36797
+ "$ref": "#/components/schemas/Timestamp"
36798
+ },
36799
+ "to": {
36800
+ "$ref": "#/components/schemas/Timestamp"
36801
+ }
36802
+ },
36803
+ "required": [
36804
+ "from",
36805
+ "to"
36806
+ ]
36807
+ },
36808
+ "SiteInsightsQueryRange": {
36809
+ "oneOf": [
36810
+ {
36811
+ "$ref": "#/components/schemas/SiteInsightsQueryRangePreset"
36812
+ },
36813
+ {
36814
+ "$ref": "#/components/schemas/SiteInsightsQueryRangeCustom"
36815
+ }
36816
+ ]
36817
+ },
36652
36818
  "SiteInsightsQueryEventsAggregation": {
36653
36819
  "type": "object",
36654
36820
  "required": [
@@ -37422,10 +37588,7 @@
37422
37588
  "type": "object",
37423
37589
  "additionalProperties": {
37424
37590
  "$ref": "#/components/schemas/UserOrganizationsTeamsPermissions"
37425
- },
37426
- "required": [
37427
- "role"
37428
- ]
37591
+ }
37429
37592
  },
37430
37593
  "disabled": {
37431
37594
  "type": "boolean"
@@ -39844,6 +40007,24 @@
39844
40007
  "translation"
39845
40008
  ]
39846
40009
  },
40010
+ "TranslationRunChannel": {
40011
+ "type": "object",
40012
+ "properties": {
40013
+ "channel": {
40014
+ "type": "string",
40015
+ "enum": [
40016
+ "translation-run"
40017
+ ]
40018
+ },
40019
+ "translation": {
40020
+ "type": "string"
40021
+ }
40022
+ },
40023
+ "required": [
40024
+ "channel",
40025
+ "translation"
40026
+ ]
40027
+ },
39847
40028
  "AgentTaskChannel": {
39848
40029
  "type": "object",
39849
40030
  "description": "Subscription channel for an agent task.",
@@ -40090,6 +40271,9 @@
40090
40271
  {
40091
40272
  "$ref": "#/components/schemas/TranslationChannel"
40092
40273
  },
40274
+ {
40275
+ "$ref": "#/components/schemas/TranslationRunChannel"
40276
+ },
40093
40277
  {
40094
40278
  "$ref": "#/components/schemas/AgentTaskChannel"
40095
40279
  },
@@ -40101,6 +40285,41 @@
40101
40285
  "propertyName": "channel"
40102
40286
  }
40103
40287
  },
40288
+ "TranslationRunChannelData": {
40289
+ "type": "object",
40290
+ "properties": {
40291
+ "channel": {
40292
+ "type": "string",
40293
+ "enum": [
40294
+ "translation-run"
40295
+ ]
40296
+ },
40297
+ "data": {
40298
+ "type": "object",
40299
+ "properties": {
40300
+ "progress": {
40301
+ "type": "number",
40302
+ "description": "The progress of the translation run, between 0 and 100."
40303
+ },
40304
+ "startedAt": {
40305
+ "$ref": "#/components/schemas/Timestamp"
40306
+ },
40307
+ "updatedAt": {
40308
+ "$ref": "#/components/schemas/Timestamp"
40309
+ }
40310
+ },
40311
+ "required": [
40312
+ "progress",
40313
+ "startedAt",
40314
+ "updatedAt"
40315
+ ]
40316
+ }
40317
+ },
40318
+ "required": [
40319
+ "channel",
40320
+ "data"
40321
+ ]
40322
+ },
40104
40323
  "GitSyncOperationChannelData": {
40105
40324
  "type": "object",
40106
40325
  "properties": {
@@ -40253,6 +40472,9 @@
40253
40472
  {
40254
40473
  "$ref": "#/components/schemas/OrganizationAIIndexationChannelData"
40255
40474
  },
40475
+ {
40476
+ "$ref": "#/components/schemas/TranslationRunChannelData"
40477
+ },
40256
40478
  {
40257
40479
  "$ref": "#/components/schemas/APIChannelMutationData"
40258
40480
  }
@@ -40610,9 +40832,6 @@
40610
40832
  "SpaceVisitorAuthIntegrationBackend": {
40611
40833
  "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
40612
40834
  },
40613
- "ApplyTemplate": {
40614
- "$ref": "#/components/schemas/ApplySpaceTemplate"
40615
- },
40616
40835
  "UserPermissions": {
40617
40836
  "$ref": "#/components/schemas/_index"
40618
40837
  },