@gitbook/api 0.172.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
  }
@@ -13371,6 +13397,10 @@
13371
13397
  }
13372
13398
  ]
13373
13399
  },
13400
+ "draft": {
13401
+ "type": "boolean",
13402
+ "description": "Whether the section should be created in draft mode."
13403
+ },
13374
13404
  "siteSectionGroupId": {
13375
13405
  "type": "string",
13376
13406
  "description": "ID of the section group to create the section in"
@@ -13528,6 +13558,10 @@
13528
13558
  }
13529
13559
  ]
13530
13560
  },
13561
+ "draft": {
13562
+ "type": "boolean",
13563
+ "description": "Whether the site section is draft and not live."
13564
+ },
13531
13565
  "description": {
13532
13566
  "oneOf": [
13533
13567
  {
@@ -15710,6 +15744,10 @@
15710
15744
  "hidden": {
15711
15745
  "type": "boolean",
15712
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."
15713
15751
  }
15714
15752
  }
15715
15753
  }
@@ -17053,6 +17091,88 @@
17053
17091
  }
17054
17092
  }
17055
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
+ },
17056
17176
  "/orgs/{organizationId}/sites/{siteId}/insights/events": {
17057
17177
  "post": {
17058
17178
  "operationId": "trackEventsInSiteById",
@@ -22291,6 +22411,10 @@
22291
22411
  "type": "boolean",
22292
22412
  "description": "Should we display the header with column titles"
22293
22413
  },
22414
+ "stickyHeader": {
22415
+ "type": "boolean",
22416
+ "description": "Should we keep the table header sticky while the page scrolls"
22417
+ },
22294
22418
  "useNewSizing": {
22295
22419
  "type": "boolean",
22296
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"
@@ -31490,6 +31614,14 @@
31490
31614
  "visitor-auth"
31491
31615
  ]
31492
31616
  },
31617
+ "SitePermissionsModel": {
31618
+ "type": "string",
31619
+ "description": "Permissions resolution mode for the site.",
31620
+ "enum": [
31621
+ "legacy",
31622
+ "site"
31623
+ ]
31624
+ },
31493
31625
  "SiteAdaptiveContent": {
31494
31626
  "type": "object",
31495
31627
  "properties": {
@@ -31716,6 +31848,12 @@
31716
31848
  "visibility": {
31717
31849
  "$ref": "#/components/schemas/SiteVisibility"
31718
31850
  },
31851
+ "permissionsModel": {
31852
+ "$ref": "#/components/schemas/SitePermissionsModel"
31853
+ },
31854
+ "defaultLevel": {
31855
+ "$ref": "#/components/schemas/DefaultLevel"
31856
+ },
31719
31857
  "published": {
31720
31858
  "type": "boolean",
31721
31859
  "description": "Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting."
@@ -31784,6 +31922,8 @@
31784
31922
  "appliedType",
31785
31923
  "title",
31786
31924
  "visibility",
31925
+ "permissionsModel",
31926
+ "defaultLevel",
31787
31927
  "published",
31788
31928
  "createdAt",
31789
31929
  "siteSpaces",
@@ -33313,6 +33453,10 @@
33313
33453
  "description": "Conditional expression used to evaluate whether the site space should be shown to the site's visitor.",
33314
33454
  "$ref": "#/components/schemas/Expression"
33315
33455
  },
33456
+ "draft": {
33457
+ "type": "boolean",
33458
+ "description": "Whether the site space is draft and not live."
33459
+ },
33316
33460
  "hasAdvancedCustomizationFeature": {
33317
33461
  "type": "boolean",
33318
33462
  "description": "Whether the space has advanced customization feature enabled"
@@ -33339,6 +33483,7 @@
33339
33483
  "space",
33340
33484
  "title",
33341
33485
  "path",
33486
+ "draft",
33342
33487
  "urls"
33343
33488
  ]
33344
33489
  },
@@ -33372,6 +33517,10 @@
33372
33517
  "type": "boolean",
33373
33518
  "description": "Whether this is the default section for the site"
33374
33519
  },
33520
+ "draft": {
33521
+ "type": "boolean",
33522
+ "description": "Whether the site section is draft and not live."
33523
+ },
33375
33524
  "path": {
33376
33525
  "$ref": "#/components/schemas/SiteSectionPath"
33377
33526
  },
@@ -33409,6 +33558,7 @@
33409
33558
  "id",
33410
33559
  "title",
33411
33560
  "path",
33561
+ "draft",
33412
33562
  "siteSpaces",
33413
33563
  "urls"
33414
33564
  ]
@@ -33451,6 +33601,10 @@
33451
33601
  "type": "string",
33452
33602
  "description": "ID of the parent section group this group belongs to"
33453
33603
  },
33604
+ "draft": {
33605
+ "type": "boolean",
33606
+ "description": "Whether the site section group is draft and not live."
33607
+ },
33454
33608
  "children": {
33455
33609
  "type": "array",
33456
33610
  "description": "List of all child sections and groups nested under this group",
@@ -33473,6 +33627,7 @@
33473
33627
  "object",
33474
33628
  "id",
33475
33629
  "title",
33630
+ "draft",
33476
33631
  "sections",
33477
33632
  "children"
33478
33633
  ]
@@ -38437,6 +38592,24 @@
38437
38592
  "type": "number",
38438
38593
  "description": "The number of records in the topic"
38439
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
+ },
38440
38613
  "questions": {
38441
38614
  "$ref": "#/components/schemas/SiteQuestionStats"
38442
38615
  },
@@ -38464,6 +38637,7 @@
38464
38637
  "usageSettings",
38465
38638
  "pages",
38466
38639
  "records",
38640
+ "findings",
38467
38641
  "questions",
38468
38642
  "createdAt",
38469
38643
  "updatedAt",
@@ -38578,6 +38752,9 @@
38578
38752
  "record": {
38579
38753
  "type": "string",
38580
38754
  "description": "The site context record ID."
38755
+ },
38756
+ "connector": {
38757
+ "$ref": "#/components/schemas/ContextConnector"
38581
38758
  }
38582
38759
  },
38583
38760
  "required": [
@@ -38865,6 +39042,41 @@
38865
39042
  "revisionId"
38866
39043
  ]
38867
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
+ },
38868
39080
  "AIToolCallGetPages": {
38869
39081
  "type": "object",
38870
39082
  "properties": {
@@ -39507,6 +39719,9 @@
39507
39719
  {
39508
39720
  "$ref": "#/components/schemas/AIToolCallGetPageContent"
39509
39721
  },
39722
+ {
39723
+ "$ref": "#/components/schemas/AIToolCallGetRecordContent"
39724
+ },
39510
39725
  {
39511
39726
  "$ref": "#/components/schemas/AIToolCallGetPages"
39512
39727
  },
@@ -39943,7 +40158,7 @@
39943
40158
  "properties": {
39944
40159
  "role": {
39945
40160
  "description": "Role to set.",
39946
- "$ref": "#/components/schemas/MemberRole"
40161
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
39947
40162
  }
39948
40163
  },
39949
40164
  "anyOf": [
@@ -40036,7 +40251,7 @@
40036
40251
  "description": "Permission override of a user in a site.",
40037
40252
  "properties": {
40038
40253
  "permission": {
40039
- "$ref": "#/components/schemas/MemberRole"
40254
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
40040
40255
  },
40041
40256
  "user": {
40042
40257
  "$ref": "#/components/schemas/User"
@@ -40052,7 +40267,7 @@
40052
40267
  "description": "Permission override of a team in a site.",
40053
40268
  "properties": {
40054
40269
  "permission": {
40055
- "$ref": "#/components/schemas/MemberRole"
40270
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
40056
40271
  },
40057
40272
  "team": {
40058
40273
  "$ref": "#/components/schemas/OrganizationTeam"
@@ -40500,6 +40715,110 @@
40500
40715
  }
40501
40716
  ]
40502
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
+ },
40503
40822
  "SiteInsightsEventSession": {
40504
40823
  "allOf": [
40505
40824
  {
@@ -46312,6 +46631,24 @@
46312
46631
  "site"
46313
46632
  ]
46314
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
+ },
46315
46652
  "APIChannelSiteIntegrations": {
46316
46653
  "type": "object",
46317
46654
  "properties": {
@@ -46818,6 +47155,9 @@
46818
47155
  {
46819
47156
  "$ref": "#/components/schemas/APIChannelSiteCustomization"
46820
47157
  },
47158
+ {
47159
+ "$ref": "#/components/schemas/APIChannelSiteAgentSettings"
47160
+ },
46821
47161
  {
46822
47162
  "$ref": "#/components/schemas/APIChannelSiteIntegrations"
46823
47163
  },