@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.yaml CHANGED
@@ -105,6 +105,16 @@ tags:
105
105
  {% openapi-schemas spec="gitbook" schemas="SiteCustomizationSettings" grouped="false" %}
106
106
  The SiteCustomizationSettings object
107
107
  {% endopenapi-schemas %}
108
+ - name: site-agent-settings
109
+ x-page-title: Site agent settings
110
+ x-page-description: Configure site-specific issue remediation behavior and agent instructions.
111
+ x-parent: sites
112
+ description: |
113
+ Configure how site issue remediation should behave and provide site-specific instructions for the editing and topic analyst agents.
114
+
115
+ {% openapi-schemas spec="gitbook" schemas="SiteAgentSettings" grouped="false" %}
116
+ The SiteAgentSettings object
117
+ {% endopenapi-schemas %}
108
118
  - name: site-spaces
109
119
  x-page-title: Site spaces
110
120
  x-page-description: Control which spaces are linked and displayed in a docs site.
@@ -6725,6 +6735,10 @@ paths:
6725
6735
  $ref: "#/components/schemas/SiteBasename"
6726
6736
  adaptiveContent:
6727
6737
  $ref: "#/components/schemas/SiteAdaptiveContent"
6738
+ permissionsModel:
6739
+ $ref: "#/components/schemas/SitePermissionsModel"
6740
+ defaultLevel:
6741
+ $ref: "#/components/schemas/DefaultLevel"
6728
6742
  defaultSiteSpace:
6729
6743
  type: string
6730
6744
  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.
@@ -7325,6 +7339,10 @@ paths:
7325
7339
  sectionId:
7326
7340
  type: string
7327
7341
  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.
7342
+ draft:
7343
+ type: boolean
7344
+ default: false
7345
+ description: Whether the site space should be created as draft. Defaults to false.
7328
7346
  required:
7329
7347
  - spaceId
7330
7348
  responses:
@@ -7434,6 +7452,9 @@ paths:
7434
7452
  parent:
7435
7453
  type: string
7436
7454
  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.
7455
+ draft:
7456
+ type: boolean
7457
+ description: Whether the section group should be created in draft mode.
7437
7458
  required:
7438
7459
  - title
7439
7460
  responses:
@@ -7475,6 +7496,9 @@ paths:
7475
7496
  oneOf:
7476
7497
  - $ref: "#/components/schemas/Icon"
7477
7498
  - type: "null"
7499
+ draft:
7500
+ type: boolean
7501
+ description: Whether the site section group is draft and not live.
7478
7502
  responses:
7479
7503
  "200":
7480
7504
  description: OK
@@ -7583,6 +7607,9 @@ paths:
7583
7607
  oneOf:
7584
7608
  - $ref: "#/components/schemas/Icon"
7585
7609
  - type: "null"
7610
+ draft:
7611
+ type: boolean
7612
+ description: Whether the section should be created in draft mode.
7586
7613
  siteSectionGroupId:
7587
7614
  type: string
7588
7615
  description: ID of the section group to create the section in
@@ -7666,6 +7693,9 @@ paths:
7666
7693
  oneOf:
7667
7694
  - $ref: "#/components/schemas/Icon"
7668
7695
  - type: "null"
7696
+ draft:
7697
+ type: boolean
7698
+ description: Whether the site section is draft and not live.
7669
7699
  description:
7670
7700
  oneOf:
7671
7701
  - $ref: "#/components/schemas/SiteSectionDescription"
@@ -8831,6 +8861,9 @@ paths:
8831
8861
  hidden:
8832
8862
  type: boolean
8833
8863
  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.
8864
+ draft:
8865
+ type: boolean
8866
+ description: Whether the site space should be kept in draft mode. Setting it to false makes the site space live.
8834
8867
  responses:
8835
8868
  "200":
8836
8869
  description: OK
@@ -9550,6 +9583,51 @@ paths:
9550
9583
  text/event-stream:
9551
9584
  schema:
9552
9585
  $ref: "#/components/schemas/AIStreamResponse"
9586
+ "/orgs/{organizationId}/sites/{siteId}/agent-settings":
9587
+ get:
9588
+ operationId: getSiteAgentSettingsById
9589
+ summary: Get site agent settings
9590
+ tags:
9591
+ - site-agent-settings
9592
+ security:
9593
+ - user: []
9594
+ parameters:
9595
+ - $ref: "#/components/parameters/organizationId"
9596
+ - $ref: "#/components/parameters/siteId"
9597
+ responses:
9598
+ "200":
9599
+ description: OK
9600
+ content:
9601
+ application/json:
9602
+ schema:
9603
+ $ref: "#/components/schemas/SiteAgentSettings"
9604
+ "400":
9605
+ $ref: "#/components/responses/BadRequestError"
9606
+ put:
9607
+ operationId: updateSiteAgentSettingsById
9608
+ summary: Update site agent settings
9609
+ tags:
9610
+ - site-agent-settings
9611
+ security:
9612
+ - user: []
9613
+ parameters:
9614
+ - $ref: "#/components/parameters/organizationId"
9615
+ - $ref: "#/components/parameters/siteId"
9616
+ requestBody:
9617
+ required: true
9618
+ content:
9619
+ application/json:
9620
+ schema:
9621
+ $ref: "#/components/schemas/SiteAgentSettingsInput"
9622
+ responses:
9623
+ "200":
9624
+ description: OK
9625
+ content:
9626
+ application/json:
9627
+ schema:
9628
+ $ref: "#/components/schemas/SiteAgentSettings"
9629
+ "400":
9630
+ $ref: "#/components/responses/BadRequestError"
9553
9631
  "/orgs/{organizationId}/sites/{siteId}/insights/events":
9554
9632
  post:
9555
9633
  operationId: trackEventsInSiteById
@@ -12986,6 +13064,9 @@ components:
12986
13064
  hideHeader:
12987
13065
  type: boolean
12988
13066
  description: Should we display the header with column titles
13067
+ stickyHeader:
13068
+ type: boolean
13069
+ description: Should we keep the table header sticky while the page scrolls
12989
13070
  useNewSizing:
12990
13071
  type: boolean
12991
13072
  description: |
@@ -18914,6 +18995,12 @@ components:
18914
18995
  - unlisted
18915
18996
  - share-link
18916
18997
  - visitor-auth
18998
+ SitePermissionsModel:
18999
+ type: string
19000
+ description: Permissions resolution mode for the site.
19001
+ enum:
19002
+ - legacy
19003
+ - site
18917
19004
  SiteAdaptiveContent:
18918
19005
  type: object
18919
19006
  properties:
@@ -19075,6 +19162,10 @@ components:
19075
19162
  $ref: "#/components/schemas/SiteProxy"
19076
19163
  visibility:
19077
19164
  $ref: "#/components/schemas/SiteVisibility"
19165
+ permissionsModel:
19166
+ $ref: "#/components/schemas/SitePermissionsModel"
19167
+ defaultLevel:
19168
+ $ref: "#/components/schemas/DefaultLevel"
19078
19169
  published:
19079
19170
  type: boolean
19080
19171
  description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
@@ -19129,6 +19220,8 @@ components:
19129
19220
  - appliedType
19130
19221
  - title
19131
19222
  - visibility
19223
+ - permissionsModel
19224
+ - defaultLevel
19132
19225
  - published
19133
19226
  - createdAt
19134
19227
  - siteSpaces
@@ -20099,6 +20192,9 @@ components:
20099
20192
  condition:
20100
20193
  description: Conditional expression used to evaluate whether the site space should be shown to the site's visitor.
20101
20194
  $ref: "#/components/schemas/Expression"
20195
+ draft:
20196
+ type: boolean
20197
+ description: Whether the site space is draft and not live.
20102
20198
  hasAdvancedCustomizationFeature:
20103
20199
  type: boolean
20104
20200
  description: Whether the space has advanced customization feature enabled
@@ -20119,6 +20215,7 @@ components:
20119
20215
  - space
20120
20216
  - title
20121
20217
  - path
20218
+ - draft
20122
20219
  - urls
20123
20220
  SiteSection:
20124
20221
  type: object
@@ -20142,6 +20239,9 @@ components:
20142
20239
  default:
20143
20240
  type: boolean
20144
20241
  description: Whether this is the default section for the site
20242
+ draft:
20243
+ type: boolean
20244
+ description: Whether the site section is draft and not live.
20145
20245
  path:
20146
20246
  $ref: "#/components/schemas/SiteSectionPath"
20147
20247
  condition:
@@ -20169,6 +20269,7 @@ components:
20169
20269
  - id
20170
20270
  - title
20171
20271
  - path
20272
+ - draft
20172
20273
  - siteSpaces
20173
20274
  - urls
20174
20275
  SiteSectionGroupTitle:
@@ -20200,6 +20301,9 @@ components:
20200
20301
  sectionGroup:
20201
20302
  type: string
20202
20303
  description: ID of the parent section group this group belongs to
20304
+ draft:
20305
+ type: boolean
20306
+ description: Whether the site section group is draft and not live.
20203
20307
  children:
20204
20308
  type: array
20205
20309
  description: List of all child sections and groups nested under this group
@@ -20213,6 +20317,7 @@ components:
20213
20317
  - object
20214
20318
  - id
20215
20319
  - title
20320
+ - draft
20216
20321
  - sections
20217
20322
  - children
20218
20323
  SiteStructure:
@@ -23698,6 +23803,19 @@ components:
23698
23803
  records:
23699
23804
  type: number
23700
23805
  description: The number of records in the topic
23806
+ findings:
23807
+ type: object
23808
+ description: The number of findings linked to the topic
23809
+ properties:
23810
+ open:
23811
+ type: number
23812
+ description: The number of open findings linked to the topic
23813
+ total:
23814
+ type: number
23815
+ description: The total number of findings linked to the topic
23816
+ required:
23817
+ - open
23818
+ - total
23701
23819
  questions:
23702
23820
  $ref: "#/components/schemas/SiteQuestionStats"
23703
23821
  urls:
@@ -23719,6 +23837,7 @@ components:
23719
23837
  - usageSettings
23720
23838
  - pages
23721
23839
  - records
23840
+ - findings
23722
23841
  - questions
23723
23842
  - createdAt
23724
23843
  - updatedAt
@@ -23799,6 +23918,8 @@ components:
23799
23918
  record:
23800
23919
  type: string
23801
23920
  description: The site context record ID.
23921
+ connector:
23922
+ $ref: "#/components/schemas/ContextConnector"
23802
23923
  required:
23803
23924
  - type
23804
23925
  - record
@@ -23996,6 +24117,32 @@ components:
23996
24117
  - spaceId
23997
24118
  - page
23998
24119
  - revisionId
24120
+ AIToolCallGetRecordContent:
24121
+ type: object
24122
+ description: Tool to read the body of an external record.
24123
+ properties:
24124
+ tool:
24125
+ type: string
24126
+ enum:
24127
+ - getRecordContent
24128
+ siteId:
24129
+ type: string
24130
+ description: The ID of the site owning the context record.
24131
+ recordId:
24132
+ type: string
24133
+ description: The ID of the context record.
24134
+ title:
24135
+ type: string
24136
+ description: The title of the record.
24137
+ url:
24138
+ type: string
24139
+ format: uri
24140
+ description: URL of the record in the source system.
24141
+ required:
24142
+ - tool
24143
+ - siteId
24144
+ - recordId
24145
+ - title
23999
24146
  AIToolCallGetPages:
24000
24147
  type: object
24001
24148
  properties:
@@ -24456,6 +24603,7 @@ components:
24456
24603
  AIToolCall:
24457
24604
  oneOf:
24458
24605
  - $ref: "#/components/schemas/AIToolCallGetPageContent"
24606
+ - $ref: "#/components/schemas/AIToolCallGetRecordContent"
24459
24607
  - $ref: "#/components/schemas/AIToolCallGetPages"
24460
24608
  - $ref: "#/components/schemas/AIToolCallGetReusableContents"
24461
24609
  - $ref: "#/components/schemas/AIToolCallSearch"
@@ -24724,7 +24872,7 @@ components:
24724
24872
  properties:
24725
24873
  role:
24726
24874
  description: Role to set.
24727
- $ref: "#/components/schemas/MemberRole"
24875
+ $ref: "#/components/schemas/MemberRoleOrGuest"
24728
24876
  anyOf:
24729
24877
  - type: object
24730
24878
  properties:
@@ -24783,7 +24931,7 @@ components:
24783
24931
  description: Permission override of a user in a site.
24784
24932
  properties:
24785
24933
  permission:
24786
- $ref: "#/components/schemas/MemberRole"
24934
+ $ref: "#/components/schemas/MemberRoleOrGuest"
24787
24935
  user:
24788
24936
  $ref: "#/components/schemas/User"
24789
24937
  required:
@@ -24794,7 +24942,7 @@ components:
24794
24942
  description: Permission override of a team in a site.
24795
24943
  properties:
24796
24944
  permission:
24797
- $ref: "#/components/schemas/MemberRole"
24945
+ $ref: "#/components/schemas/MemberRoleOrGuest"
24798
24946
  team:
24799
24947
  $ref: "#/components/schemas/OrganizationTeam"
24800
24948
  required:
@@ -25123,6 +25271,75 @@ components:
25123
25271
  - $ref: "#/components/schemas/AIStreamResponseToolCallPending"
25124
25272
  - $ref: "#/components/schemas/AIStreamResponseFollowupSuggestion"
25125
25273
  - $ref: "#/components/schemas/AIStreamResponseAttachment"
25274
+ SiteSettingsScanTopics:
25275
+ type: string
25276
+ enum:
25277
+ - auto
25278
+ - never
25279
+ description: Controls when topics are being scanned for findings.
25280
+ SiteSettingsFindingChangeRequests:
25281
+ type: string
25282
+ enum:
25283
+ - always
25284
+ - auto-fixable
25285
+ - never
25286
+ description: Controls how issue remediation change requests should be handled for a site.
25287
+ SiteAgentSettingsInput:
25288
+ type: object
25289
+ properties:
25290
+ scans:
25291
+ description: Settings related to scanning for a site.
25292
+ type: object
25293
+ properties:
25294
+ topics:
25295
+ $ref: "#/components/schemas/SiteSettingsScanTopics"
25296
+ required:
25297
+ - topics
25298
+ findings:
25299
+ description: Settings related to processing of findings for a site.
25300
+ type: object
25301
+ properties:
25302
+ changeRequests:
25303
+ $ref: "#/components/schemas/SiteSettingsFindingChangeRequests"
25304
+ required:
25305
+ - changeRequests
25306
+ editing:
25307
+ description: Site-specific instructions for the editing agent.
25308
+ type: object
25309
+ properties:
25310
+ customInstructions:
25311
+ $ref: "#/components/schemas/JSONDocument"
25312
+ required:
25313
+ - customInstructions
25314
+ required:
25315
+ - scans
25316
+ - findings
25317
+ - editing
25318
+ SiteAgentSettings:
25319
+ allOf:
25320
+ - type: object
25321
+ properties:
25322
+ object:
25323
+ type: string
25324
+ enum:
25325
+ - site-agent-settings
25326
+ updatedAt:
25327
+ $ref: "#/components/schemas/Timestamp"
25328
+ updatedBy:
25329
+ type: string
25330
+ description: Identifier of the member who last updated the settings.
25331
+ urls:
25332
+ type: object
25333
+ properties:
25334
+ location:
25335
+ type: string
25336
+ description: Relative URL to the resource in the API.
25337
+ required:
25338
+ - location
25339
+ required:
25340
+ - object
25341
+ - urls
25342
+ - $ref: "#/components/schemas/SiteAgentSettingsInput"
25126
25343
  SiteInsightsEventSession:
25127
25344
  allOf:
25128
25345
  - $ref: "#/components/schemas/SiteInsightsSession"
@@ -28887,6 +29104,18 @@ components:
28887
29104
  required:
28888
29105
  - channel
28889
29106
  - site
29107
+ APIChannelSiteAgentSettings:
29108
+ type: object
29109
+ properties:
29110
+ channel:
29111
+ type: string
29112
+ enum:
29113
+ - site-agent-settings
29114
+ site:
29115
+ type: string
29116
+ required:
29117
+ - channel
29118
+ - site
28890
29119
  APIChannelSiteIntegrations:
28891
29120
  type: object
28892
29121
  properties:
@@ -29176,6 +29405,7 @@ components:
29176
29405
  - $ref: "#/components/schemas/APIChannelSite"
29177
29406
  - $ref: "#/components/schemas/APIChannelSiteContext"
29178
29407
  - $ref: "#/components/schemas/APIChannelSiteCustomization"
29408
+ - $ref: "#/components/schemas/APIChannelSiteAgentSettings"
29179
29409
  - $ref: "#/components/schemas/APIChannelSiteIntegrations"
29180
29410
  - $ref: "#/components/schemas/APIChannelSiteSpace"
29181
29411
  - $ref: "#/components/schemas/APIChannelSiteSpaceCustomization"