@gitbook/api 0.171.0 → 0.173.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
@@ -112,6 +112,13 @@
112
112
  "x-parent": "sites",
113
113
  "description": "Update your site's branding, styling, and layout to match your organization's identity. This includes theming elements like color palette, logos, and more.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"SiteCustomizationSettings\" grouped=\"false\" %}\n The SiteCustomizationSettings object\n{% endopenapi-schemas %}\n"
114
114
  },
115
+ {
116
+ "name": "site-agent-settings",
117
+ "x-page-title": "Site agent settings",
118
+ "x-page-description": "Configure site-specific issue remediation behavior and agent instructions.",
119
+ "x-parent": "sites",
120
+ "description": "Configure how site issue remediation should behave and provide site-specific instructions for the editing and topic analyst agents.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"SiteAgentSettings\" grouped=\"false\" %}\n The SiteAgentSettings object\n{% endopenapi-schemas %}\n"
121
+ },
115
122
  {
116
123
  "name": "site-spaces",
117
124
  "x-page-title": "Site spaces",
@@ -11812,6 +11819,12 @@
11812
11819
  "adaptiveContent": {
11813
11820
  "$ref": "#/components/schemas/SiteAdaptiveContent"
11814
11821
  },
11822
+ "permissionsModel": {
11823
+ "$ref": "#/components/schemas/SitePermissionsModel"
11824
+ },
11825
+ "defaultLevel": {
11826
+ "$ref": "#/components/schemas/DefaultLevel"
11827
+ },
11815
11828
  "defaultSiteSpace": {
11816
11829
  "type": "string",
11817
11830
  "description": "ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section."
@@ -12886,6 +12899,11 @@
12886
12899
  "sectionId": {
12887
12900
  "type": "string",
12888
12901
  "description": "ID of the section to add the space to. If not provided, the space will be added to the default section or at the root level if the site has no sections."
12902
+ },
12903
+ "draft": {
12904
+ "type": "boolean",
12905
+ "default": false,
12906
+ "description": "Whether the site space should be created as draft. Defaults to false."
12889
12907
  }
12890
12908
  },
12891
12909
  "required": [
@@ -13091,6 +13109,10 @@
13091
13109
  "parent": {
13092
13110
  "type": "string",
13093
13111
  "description": "ID of the parent section group to nest this group under. If not provided, the section group will be added at the root of the site."
13112
+ },
13113
+ "draft": {
13114
+ "type": "boolean",
13115
+ "description": "Whether the section group should be created in draft mode."
13094
13116
  }
13095
13117
  },
13096
13118
  "required": [
@@ -13167,6 +13189,10 @@
13167
13189
  "type": "null"
13168
13190
  }
13169
13191
  ]
13192
+ },
13193
+ "draft": {
13194
+ "type": "boolean",
13195
+ "description": "Whether the site section group is draft and not live."
13170
13196
  }
13171
13197
  }
13172
13198
  }
@@ -13221,6 +13247,7 @@
13221
13247
  "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections": {
13222
13248
  "post": {
13223
13249
  "operationId": "addSectionToGroup",
13250
+ "deprecated": true,
13224
13251
  "summary": "Add a section to a section group",
13225
13252
  "tags": [
13226
13253
  "site-section-groups"
@@ -13285,6 +13312,7 @@
13285
13312
  "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}": {
13286
13313
  "delete": {
13287
13314
  "operationId": "removeSectionFromGroup",
13315
+ "deprecated": true,
13288
13316
  "summary": "Remove a section from a section group",
13289
13317
  "tags": [
13290
13318
  "site-section-groups"
@@ -13368,6 +13396,14 @@
13368
13396
  "type": "null"
13369
13397
  }
13370
13398
  ]
13399
+ },
13400
+ "draft": {
13401
+ "type": "boolean",
13402
+ "description": "Whether the section should be created in draft mode."
13403
+ },
13404
+ "siteSectionGroupId": {
13405
+ "type": "string",
13406
+ "description": "ID of the section group to create the section in"
13371
13407
  }
13372
13408
  },
13373
13409
  "required": [
@@ -13522,6 +13558,10 @@
13522
13558
  }
13523
13559
  ]
13524
13560
  },
13561
+ "draft": {
13562
+ "type": "boolean",
13563
+ "description": "Whether the site section is draft and not live."
13564
+ },
13525
13565
  "description": {
13526
13566
  "oneOf": [
13527
13567
  {
@@ -13534,6 +13574,17 @@
13534
13574
  },
13535
13575
  "localizedDescription": {
13536
13576
  "$ref": "#/components/schemas/LocalizedSectionDescription"
13577
+ },
13578
+ "siteSectionGroupId": {
13579
+ "description": "ID of the section group to move the section into. Set to null to move the section to the root of the site.",
13580
+ "oneOf": [
13581
+ {
13582
+ "type": "string"
13583
+ },
13584
+ {
13585
+ "type": "null"
13586
+ }
13587
+ ]
13537
13588
  }
13538
13589
  }
13539
13590
  }
@@ -15693,6 +15744,10 @@
15693
15744
  "hidden": {
15694
15745
  "type": "boolean",
15695
15746
  "description": "Whether the site space is hidden. If true, the site space will not be shown in the site's navigation. If not set, the hidden state will remain unchanged. If set to false, the site space will be shown in site navigation."
15747
+ },
15748
+ "draft": {
15749
+ "type": "boolean",
15750
+ "description": "Whether the site space should be kept in draft mode. Setting it to false makes the site space live."
15696
15751
  }
15697
15752
  }
15698
15753
  }
@@ -17036,6 +17091,88 @@
17036
17091
  }
17037
17092
  }
17038
17093
  },
17094
+ "/orgs/{organizationId}/sites/{siteId}/agent-settings": {
17095
+ "get": {
17096
+ "operationId": "getSiteAgentSettingsById",
17097
+ "summary": "Get site agent settings",
17098
+ "tags": [
17099
+ "site-agent-settings"
17100
+ ],
17101
+ "security": [
17102
+ {
17103
+ "user": []
17104
+ }
17105
+ ],
17106
+ "parameters": [
17107
+ {
17108
+ "$ref": "#/components/parameters/organizationId"
17109
+ },
17110
+ {
17111
+ "$ref": "#/components/parameters/siteId"
17112
+ }
17113
+ ],
17114
+ "responses": {
17115
+ "200": {
17116
+ "description": "OK",
17117
+ "content": {
17118
+ "application/json": {
17119
+ "schema": {
17120
+ "$ref": "#/components/schemas/SiteAgentSettings"
17121
+ }
17122
+ }
17123
+ }
17124
+ },
17125
+ "400": {
17126
+ "$ref": "#/components/responses/BadRequestError"
17127
+ }
17128
+ }
17129
+ },
17130
+ "put": {
17131
+ "operationId": "updateSiteAgentSettingsById",
17132
+ "summary": "Update site agent settings",
17133
+ "tags": [
17134
+ "site-agent-settings"
17135
+ ],
17136
+ "security": [
17137
+ {
17138
+ "user": []
17139
+ }
17140
+ ],
17141
+ "parameters": [
17142
+ {
17143
+ "$ref": "#/components/parameters/organizationId"
17144
+ },
17145
+ {
17146
+ "$ref": "#/components/parameters/siteId"
17147
+ }
17148
+ ],
17149
+ "requestBody": {
17150
+ "required": true,
17151
+ "content": {
17152
+ "application/json": {
17153
+ "schema": {
17154
+ "$ref": "#/components/schemas/SiteAgentSettingsInput"
17155
+ }
17156
+ }
17157
+ }
17158
+ },
17159
+ "responses": {
17160
+ "200": {
17161
+ "description": "OK",
17162
+ "content": {
17163
+ "application/json": {
17164
+ "schema": {
17165
+ "$ref": "#/components/schemas/SiteAgentSettings"
17166
+ }
17167
+ }
17168
+ }
17169
+ },
17170
+ "400": {
17171
+ "$ref": "#/components/responses/BadRequestError"
17172
+ }
17173
+ }
17174
+ }
17175
+ },
17039
17176
  "/orgs/{organizationId}/sites/{siteId}/insights/events": {
17040
17177
  "post": {
17041
17178
  "operationId": "trackEventsInSiteById",
@@ -22274,6 +22411,10 @@
22274
22411
  "type": "boolean",
22275
22412
  "description": "Should we display the header with column titles"
22276
22413
  },
22414
+ "stickyHeader": {
22415
+ "type": "boolean",
22416
+ "description": "Should we keep the table header sticky while the page scrolls"
22417
+ },
22277
22418
  "useNewSizing": {
22278
22419
  "type": "boolean",
22279
22420
  "description": "Tables in GitBook originally used a scaled width approach i.e. the width defined\nin columnWidths would be scaled to ensure a 100% width table.\n\nWe later changed this to treat the widths in columnWidths as exact values - they are\nnever scaled. A columnWidth of 50 is rendered as 50px.\n\nIn order to maintain backwards compatibility, we track whether or not we\nuse the new system here.\n\nAll new tables should have this value set to true, older tables will have it set\nto undefined.\n"
@@ -31473,6 +31614,14 @@
31473
31614
  "visitor-auth"
31474
31615
  ]
31475
31616
  },
31617
+ "SitePermissionsModel": {
31618
+ "type": "string",
31619
+ "description": "Permissions resolution mode for the site.",
31620
+ "enum": [
31621
+ "legacy",
31622
+ "site"
31623
+ ]
31624
+ },
31476
31625
  "SiteAdaptiveContent": {
31477
31626
  "type": "object",
31478
31627
  "properties": {
@@ -31699,6 +31848,12 @@
31699
31848
  "visibility": {
31700
31849
  "$ref": "#/components/schemas/SiteVisibility"
31701
31850
  },
31851
+ "permissionsModel": {
31852
+ "$ref": "#/components/schemas/SitePermissionsModel"
31853
+ },
31854
+ "defaultLevel": {
31855
+ "$ref": "#/components/schemas/DefaultLevel"
31856
+ },
31702
31857
  "published": {
31703
31858
  "type": "boolean",
31704
31859
  "description": "Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting."
@@ -31767,6 +31922,8 @@
31767
31922
  "appliedType",
31768
31923
  "title",
31769
31924
  "visibility",
31925
+ "permissionsModel",
31926
+ "defaultLevel",
31770
31927
  "published",
31771
31928
  "createdAt",
31772
31929
  "siteSpaces",
@@ -33296,6 +33453,10 @@
33296
33453
  "description": "Conditional expression used to evaluate whether the site space should be shown to the site's visitor.",
33297
33454
  "$ref": "#/components/schemas/Expression"
33298
33455
  },
33456
+ "draft": {
33457
+ "type": "boolean",
33458
+ "description": "Whether the site space is draft and not live."
33459
+ },
33299
33460
  "hasAdvancedCustomizationFeature": {
33300
33461
  "type": "boolean",
33301
33462
  "description": "Whether the space has advanced customization feature enabled"
@@ -33322,6 +33483,7 @@
33322
33483
  "space",
33323
33484
  "title",
33324
33485
  "path",
33486
+ "draft",
33325
33487
  "urls"
33326
33488
  ]
33327
33489
  },
@@ -33355,6 +33517,10 @@
33355
33517
  "type": "boolean",
33356
33518
  "description": "Whether this is the default section for the site"
33357
33519
  },
33520
+ "draft": {
33521
+ "type": "boolean",
33522
+ "description": "Whether the site section is draft and not live."
33523
+ },
33358
33524
  "path": {
33359
33525
  "$ref": "#/components/schemas/SiteSectionPath"
33360
33526
  },
@@ -33392,6 +33558,7 @@
33392
33558
  "id",
33393
33559
  "title",
33394
33560
  "path",
33561
+ "draft",
33395
33562
  "siteSpaces",
33396
33563
  "urls"
33397
33564
  ]
@@ -33434,6 +33601,10 @@
33434
33601
  "type": "string",
33435
33602
  "description": "ID of the parent section group this group belongs to"
33436
33603
  },
33604
+ "draft": {
33605
+ "type": "boolean",
33606
+ "description": "Whether the site section group is draft and not live."
33607
+ },
33437
33608
  "children": {
33438
33609
  "type": "array",
33439
33610
  "description": "List of all child sections and groups nested under this group",
@@ -33456,6 +33627,7 @@
33456
33627
  "object",
33457
33628
  "id",
33458
33629
  "title",
33630
+ "draft",
33459
33631
  "sections",
33460
33632
  "children"
33461
33633
  ]
@@ -36106,13 +36278,6 @@
36106
36278
  "condition"
36107
36279
  ]
36108
36280
  },
36109
- "LocalizedString": {
36110
- "type": "object",
36111
- "description": "Localized string value, keyed by locale. Contains overrides for non-default languages only.",
36112
- "propertyNames": {
36113
- "$ref": "#/components/schemas/TranslationLanguage"
36114
- }
36115
- },
36116
36281
  "CustomizationTheme": {
36117
36282
  "type": "string",
36118
36283
  "description": "The theme to apply to the site. Supercedes the old header preset themes.\n- `clean`: Modern theme featuring translucency and minimally-styled elements.\n- `muted`: Sophisticated theme with decreased contrast between elements.\n- `bold`: High-impact theme with prominent colors and strong contrasts.\n- `gradient`: Trendy theme featuring colorful gradients and splashes of color.\n",
@@ -36614,7 +36779,7 @@
36614
36779
  },
36615
36780
  "localizedTitle": {
36616
36781
  "description": "Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed.",
36617
- "$ref": "#/components/schemas/LocalizedString"
36782
+ "$ref": "#/components/schemas/LocalizedTitle"
36618
36783
  },
36619
36784
  "styling": {
36620
36785
  "type": "object",
@@ -38427,6 +38592,24 @@
38427
38592
  "type": "number",
38428
38593
  "description": "The number of records in the topic"
38429
38594
  },
38595
+ "findings": {
38596
+ "type": "object",
38597
+ "description": "The number of findings linked to the topic",
38598
+ "properties": {
38599
+ "open": {
38600
+ "type": "number",
38601
+ "description": "The number of open findings linked to the topic"
38602
+ },
38603
+ "total": {
38604
+ "type": "number",
38605
+ "description": "The total number of findings linked to the topic"
38606
+ }
38607
+ },
38608
+ "required": [
38609
+ "open",
38610
+ "total"
38611
+ ]
38612
+ },
38430
38613
  "questions": {
38431
38614
  "$ref": "#/components/schemas/SiteQuestionStats"
38432
38615
  },
@@ -38454,6 +38637,7 @@
38454
38637
  "usageSettings",
38455
38638
  "pages",
38456
38639
  "records",
38640
+ "findings",
38457
38641
  "questions",
38458
38642
  "createdAt",
38459
38643
  "updatedAt",
@@ -38568,6 +38752,9 @@
38568
38752
  "record": {
38569
38753
  "type": "string",
38570
38754
  "description": "The site context record ID."
38755
+ },
38756
+ "connector": {
38757
+ "$ref": "#/components/schemas/ContextConnector"
38571
38758
  }
38572
38759
  },
38573
38760
  "required": [
@@ -38680,6 +38867,10 @@
38680
38867
  },
38681
38868
  "input": {
38682
38869
  "type": "object",
38870
+ "required": [
38871
+ "text",
38872
+ "raw"
38873
+ ],
38683
38874
  "properties": {
38684
38875
  "text": {
38685
38876
  "type": "string",
@@ -38851,6 +39042,41 @@
38851
39042
  "revisionId"
38852
39043
  ]
38853
39044
  },
39045
+ "AIToolCallGetRecordContent": {
39046
+ "type": "object",
39047
+ "description": "Tool to read the body of an external record.",
39048
+ "properties": {
39049
+ "tool": {
39050
+ "type": "string",
39051
+ "enum": [
39052
+ "getRecordContent"
39053
+ ]
39054
+ },
39055
+ "siteId": {
39056
+ "type": "string",
39057
+ "description": "The ID of the site owning the context record."
39058
+ },
39059
+ "recordId": {
39060
+ "type": "string",
39061
+ "description": "The ID of the context record."
39062
+ },
39063
+ "title": {
39064
+ "type": "string",
39065
+ "description": "The title of the record."
39066
+ },
39067
+ "url": {
39068
+ "type": "string",
39069
+ "format": "uri",
39070
+ "description": "URL of the record in the source system."
39071
+ }
39072
+ },
39073
+ "required": [
39074
+ "tool",
39075
+ "siteId",
39076
+ "recordId",
39077
+ "title"
39078
+ ]
39079
+ },
38854
39080
  "AIToolCallGetPages": {
38855
39081
  "type": "object",
38856
39082
  "properties": {
@@ -39493,6 +39719,9 @@
39493
39719
  {
39494
39720
  "$ref": "#/components/schemas/AIToolCallGetPageContent"
39495
39721
  },
39722
+ {
39723
+ "$ref": "#/components/schemas/AIToolCallGetRecordContent"
39724
+ },
39496
39725
  {
39497
39726
  "$ref": "#/components/schemas/AIToolCallGetPages"
39498
39727
  },
@@ -39929,7 +40158,7 @@
39929
40158
  "properties": {
39930
40159
  "role": {
39931
40160
  "description": "Role to set.",
39932
- "$ref": "#/components/schemas/MemberRole"
40161
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
39933
40162
  }
39934
40163
  },
39935
40164
  "anyOf": [
@@ -40022,7 +40251,7 @@
40022
40251
  "description": "Permission override of a user in a site.",
40023
40252
  "properties": {
40024
40253
  "permission": {
40025
- "$ref": "#/components/schemas/MemberRole"
40254
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
40026
40255
  },
40027
40256
  "user": {
40028
40257
  "$ref": "#/components/schemas/User"
@@ -40038,7 +40267,7 @@
40038
40267
  "description": "Permission override of a team in a site.",
40039
40268
  "properties": {
40040
40269
  "permission": {
40041
- "$ref": "#/components/schemas/MemberRole"
40270
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
40042
40271
  },
40043
40272
  "team": {
40044
40273
  "$ref": "#/components/schemas/OrganizationTeam"
@@ -40486,6 +40715,110 @@
40486
40715
  }
40487
40716
  ]
40488
40717
  },
40718
+ "SiteSettingsScanTopics": {
40719
+ "type": "string",
40720
+ "enum": [
40721
+ "auto",
40722
+ "never"
40723
+ ],
40724
+ "description": "Controls when topics are being scanned for findings."
40725
+ },
40726
+ "SiteSettingsFindingChangeRequests": {
40727
+ "type": "string",
40728
+ "enum": [
40729
+ "always",
40730
+ "auto-fixable",
40731
+ "never"
40732
+ ],
40733
+ "description": "Controls how issue remediation change requests should be handled for a site."
40734
+ },
40735
+ "SiteAgentSettingsInput": {
40736
+ "type": "object",
40737
+ "properties": {
40738
+ "scans": {
40739
+ "description": "Settings related to scanning for a site.",
40740
+ "type": "object",
40741
+ "properties": {
40742
+ "topics": {
40743
+ "$ref": "#/components/schemas/SiteSettingsScanTopics"
40744
+ }
40745
+ },
40746
+ "required": [
40747
+ "topics"
40748
+ ]
40749
+ },
40750
+ "findings": {
40751
+ "description": "Settings related to processing of findings for a site.",
40752
+ "type": "object",
40753
+ "properties": {
40754
+ "changeRequests": {
40755
+ "$ref": "#/components/schemas/SiteSettingsFindingChangeRequests"
40756
+ }
40757
+ },
40758
+ "required": [
40759
+ "changeRequests"
40760
+ ]
40761
+ },
40762
+ "editing": {
40763
+ "description": "Site-specific instructions for the editing agent.",
40764
+ "type": "object",
40765
+ "properties": {
40766
+ "customInstructions": {
40767
+ "$ref": "#/components/schemas/JSONDocument"
40768
+ }
40769
+ },
40770
+ "required": [
40771
+ "customInstructions"
40772
+ ]
40773
+ }
40774
+ },
40775
+ "required": [
40776
+ "scans",
40777
+ "findings",
40778
+ "editing"
40779
+ ]
40780
+ },
40781
+ "SiteAgentSettings": {
40782
+ "allOf": [
40783
+ {
40784
+ "type": "object",
40785
+ "properties": {
40786
+ "object": {
40787
+ "type": "string",
40788
+ "enum": [
40789
+ "site-agent-settings"
40790
+ ]
40791
+ },
40792
+ "updatedAt": {
40793
+ "$ref": "#/components/schemas/Timestamp"
40794
+ },
40795
+ "updatedBy": {
40796
+ "type": "string",
40797
+ "description": "Identifier of the member who last updated the settings."
40798
+ },
40799
+ "urls": {
40800
+ "type": "object",
40801
+ "properties": {
40802
+ "location": {
40803
+ "type": "string",
40804
+ "description": "Relative URL to the resource in the API."
40805
+ }
40806
+ },
40807
+ "required": [
40808
+ "location"
40809
+ ]
40810
+ }
40811
+ },
40812
+ "required": [
40813
+ "object",
40814
+ "urls"
40815
+ ]
40816
+ },
40817
+ {
40818
+ "$ref": "#/components/schemas/SiteAgentSettingsInput"
40819
+ }
40820
+ ]
40821
+ },
40489
40822
  "SiteInsightsEventSession": {
40490
40823
  "allOf": [
40491
40824
  {
@@ -46298,6 +46631,24 @@
46298
46631
  "site"
46299
46632
  ]
46300
46633
  },
46634
+ "APIChannelSiteAgentSettings": {
46635
+ "type": "object",
46636
+ "properties": {
46637
+ "channel": {
46638
+ "type": "string",
46639
+ "enum": [
46640
+ "site-agent-settings"
46641
+ ]
46642
+ },
46643
+ "site": {
46644
+ "type": "string"
46645
+ }
46646
+ },
46647
+ "required": [
46648
+ "channel",
46649
+ "site"
46650
+ ]
46651
+ },
46301
46652
  "APIChannelSiteIntegrations": {
46302
46653
  "type": "object",
46303
46654
  "properties": {
@@ -46804,6 +47155,9 @@
46804
47155
  {
46805
47156
  "$ref": "#/components/schemas/APIChannelSiteCustomization"
46806
47157
  },
47158
+ {
47159
+ "$ref": "#/components/schemas/APIChannelSiteAgentSettings"
47160
+ },
46807
47161
  {
46808
47162
  "$ref": "#/components/schemas/APIChannelSiteIntegrations"
46809
47163
  },
@@ -47321,6 +47675,16 @@
47321
47675
  "actor"
47322
47676
  ]
47323
47677
  },
47678
+ "LocalizedString": {
47679
+ "type": "object",
47680
+ "description": "Localized string value, keyed by locale. Contains overrides for non-default languages only.",
47681
+ "propertyNames": {
47682
+ "$ref": "#/components/schemas/TranslationLanguage"
47683
+ },
47684
+ "additionalProperties": {
47685
+ "type": "string"
47686
+ }
47687
+ },
47324
47688
  "RequestSpaceTrackPageView": {
47325
47689
  "$ref": "#/components/schemas/SpaceTrackPageView"
47326
47690
  },