@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.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
@@ -7501,6 +7525,7 @@ paths:
7501
7525
  "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections":
7502
7526
  post:
7503
7527
  operationId: addSectionToGroup
7528
+ deprecated: true
7504
7529
  summary: Add a section to a section group
7505
7530
  tags:
7506
7531
  - site-section-groups
@@ -7537,6 +7562,7 @@ paths:
7537
7562
  "/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}":
7538
7563
  delete:
7539
7564
  operationId: removeSectionFromGroup
7565
+ deprecated: true
7540
7566
  summary: Remove a section from a section group
7541
7567
  tags:
7542
7568
  - site-section-groups
@@ -7581,6 +7607,12 @@ paths:
7581
7607
  oneOf:
7582
7608
  - $ref: "#/components/schemas/Icon"
7583
7609
  - type: "null"
7610
+ draft:
7611
+ type: boolean
7612
+ description: Whether the section should be created in draft mode.
7613
+ siteSectionGroupId:
7614
+ type: string
7615
+ description: ID of the section group to create the section in
7584
7616
  required:
7585
7617
  - spaceId
7586
7618
  responses:
@@ -7661,12 +7693,20 @@ paths:
7661
7693
  oneOf:
7662
7694
  - $ref: "#/components/schemas/Icon"
7663
7695
  - type: "null"
7696
+ draft:
7697
+ type: boolean
7698
+ description: Whether the site section is draft and not live.
7664
7699
  description:
7665
7700
  oneOf:
7666
7701
  - $ref: "#/components/schemas/SiteSectionDescription"
7667
7702
  - type: "null"
7668
7703
  localizedDescription:
7669
7704
  $ref: "#/components/schemas/LocalizedSectionDescription"
7705
+ siteSectionGroupId:
7706
+ description: ID of the section group to move the section into. Set to null to move the section to the root of the site.
7707
+ oneOf:
7708
+ - type: string
7709
+ - type: "null"
7670
7710
  responses:
7671
7711
  "200":
7672
7712
  description: OK
@@ -8821,6 +8861,9 @@ paths:
8821
8861
  hidden:
8822
8862
  type: boolean
8823
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.
8824
8867
  responses:
8825
8868
  "200":
8826
8869
  description: OK
@@ -9540,6 +9583,51 @@ paths:
9540
9583
  text/event-stream:
9541
9584
  schema:
9542
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"
9543
9631
  "/orgs/{organizationId}/sites/{siteId}/insights/events":
9544
9632
  post:
9545
9633
  operationId: trackEventsInSiteById
@@ -12976,6 +13064,9 @@ components:
12976
13064
  hideHeader:
12977
13065
  type: boolean
12978
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
12979
13070
  useNewSizing:
12980
13071
  type: boolean
12981
13072
  description: |
@@ -18904,6 +18995,12 @@ components:
18904
18995
  - unlisted
18905
18996
  - share-link
18906
18997
  - visitor-auth
18998
+ SitePermissionsModel:
18999
+ type: string
19000
+ description: Permissions resolution mode for the site.
19001
+ enum:
19002
+ - legacy
19003
+ - site
18907
19004
  SiteAdaptiveContent:
18908
19005
  type: object
18909
19006
  properties:
@@ -19065,6 +19162,10 @@ components:
19065
19162
  $ref: "#/components/schemas/SiteProxy"
19066
19163
  visibility:
19067
19164
  $ref: "#/components/schemas/SiteVisibility"
19165
+ permissionsModel:
19166
+ $ref: "#/components/schemas/SitePermissionsModel"
19167
+ defaultLevel:
19168
+ $ref: "#/components/schemas/DefaultLevel"
19068
19169
  published:
19069
19170
  type: boolean
19070
19171
  description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
@@ -19119,6 +19220,8 @@ components:
19119
19220
  - appliedType
19120
19221
  - title
19121
19222
  - visibility
19223
+ - permissionsModel
19224
+ - defaultLevel
19122
19225
  - published
19123
19226
  - createdAt
19124
19227
  - siteSpaces
@@ -20089,6 +20192,9 @@ components:
20089
20192
  condition:
20090
20193
  description: Conditional expression used to evaluate whether the site space should be shown to the site's visitor.
20091
20194
  $ref: "#/components/schemas/Expression"
20195
+ draft:
20196
+ type: boolean
20197
+ description: Whether the site space is draft and not live.
20092
20198
  hasAdvancedCustomizationFeature:
20093
20199
  type: boolean
20094
20200
  description: Whether the space has advanced customization feature enabled
@@ -20109,6 +20215,7 @@ components:
20109
20215
  - space
20110
20216
  - title
20111
20217
  - path
20218
+ - draft
20112
20219
  - urls
20113
20220
  SiteSection:
20114
20221
  type: object
@@ -20132,6 +20239,9 @@ components:
20132
20239
  default:
20133
20240
  type: boolean
20134
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.
20135
20245
  path:
20136
20246
  $ref: "#/components/schemas/SiteSectionPath"
20137
20247
  condition:
@@ -20159,6 +20269,7 @@ components:
20159
20269
  - id
20160
20270
  - title
20161
20271
  - path
20272
+ - draft
20162
20273
  - siteSpaces
20163
20274
  - urls
20164
20275
  SiteSectionGroupTitle:
@@ -20190,6 +20301,9 @@ components:
20190
20301
  sectionGroup:
20191
20302
  type: string
20192
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.
20193
20307
  children:
20194
20308
  type: array
20195
20309
  description: List of all child sections and groups nested under this group
@@ -20203,6 +20317,7 @@ components:
20203
20317
  - object
20204
20318
  - id
20205
20319
  - title
20320
+ - draft
20206
20321
  - sections
20207
20322
  - children
20208
20323
  SiteStructure:
@@ -22020,11 +22135,6 @@ components:
22020
22135
  required:
22021
22136
  - description
22022
22137
  - condition
22023
- LocalizedString:
22024
- type: object
22025
- description: Localized string value, keyed by locale. Contains overrides for non-default languages only.
22026
- propertyNames:
22027
- $ref: "#/components/schemas/TranslationLanguage"
22028
22138
  CustomizationTheme:
22029
22139
  type: string
22030
22140
  description: |
@@ -22432,7 +22542,7 @@ components:
22432
22542
  $ref: "#/components/schemas/SiteTitle"
22433
22543
  localizedTitle:
22434
22544
  description: Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed.
22435
- $ref: "#/components/schemas/LocalizedString"
22545
+ $ref: "#/components/schemas/LocalizedTitle"
22436
22546
  styling:
22437
22547
  type: object
22438
22548
  properties:
@@ -23693,6 +23803,19 @@ components:
23693
23803
  records:
23694
23804
  type: number
23695
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
23696
23819
  questions:
23697
23820
  $ref: "#/components/schemas/SiteQuestionStats"
23698
23821
  urls:
@@ -23714,6 +23837,7 @@ components:
23714
23837
  - usageSettings
23715
23838
  - pages
23716
23839
  - records
23840
+ - findings
23717
23841
  - questions
23718
23842
  - createdAt
23719
23843
  - updatedAt
@@ -23794,6 +23918,8 @@ components:
23794
23918
  record:
23795
23919
  type: string
23796
23920
  description: The site context record ID.
23921
+ connector:
23922
+ $ref: "#/components/schemas/ContextConnector"
23797
23923
  required:
23798
23924
  - type
23799
23925
  - record
@@ -23870,6 +23996,9 @@ components:
23870
23996
  type: string
23871
23997
  input:
23872
23998
  type: object
23999
+ required:
24000
+ - text
24001
+ - raw
23873
24002
  properties:
23874
24003
  text:
23875
24004
  type: string
@@ -23988,6 +24117,32 @@ components:
23988
24117
  - spaceId
23989
24118
  - page
23990
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
23991
24146
  AIToolCallGetPages:
23992
24147
  type: object
23993
24148
  properties:
@@ -24448,6 +24603,7 @@ components:
24448
24603
  AIToolCall:
24449
24604
  oneOf:
24450
24605
  - $ref: "#/components/schemas/AIToolCallGetPageContent"
24606
+ - $ref: "#/components/schemas/AIToolCallGetRecordContent"
24451
24607
  - $ref: "#/components/schemas/AIToolCallGetPages"
24452
24608
  - $ref: "#/components/schemas/AIToolCallGetReusableContents"
24453
24609
  - $ref: "#/components/schemas/AIToolCallSearch"
@@ -24716,7 +24872,7 @@ components:
24716
24872
  properties:
24717
24873
  role:
24718
24874
  description: Role to set.
24719
- $ref: "#/components/schemas/MemberRole"
24875
+ $ref: "#/components/schemas/MemberRoleOrGuest"
24720
24876
  anyOf:
24721
24877
  - type: object
24722
24878
  properties:
@@ -24775,7 +24931,7 @@ components:
24775
24931
  description: Permission override of a user in a site.
24776
24932
  properties:
24777
24933
  permission:
24778
- $ref: "#/components/schemas/MemberRole"
24934
+ $ref: "#/components/schemas/MemberRoleOrGuest"
24779
24935
  user:
24780
24936
  $ref: "#/components/schemas/User"
24781
24937
  required:
@@ -24786,7 +24942,7 @@ components:
24786
24942
  description: Permission override of a team in a site.
24787
24943
  properties:
24788
24944
  permission:
24789
- $ref: "#/components/schemas/MemberRole"
24945
+ $ref: "#/components/schemas/MemberRoleOrGuest"
24790
24946
  team:
24791
24947
  $ref: "#/components/schemas/OrganizationTeam"
24792
24948
  required:
@@ -25115,6 +25271,75 @@ components:
25115
25271
  - $ref: "#/components/schemas/AIStreamResponseToolCallPending"
25116
25272
  - $ref: "#/components/schemas/AIStreamResponseFollowupSuggestion"
25117
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"
25118
25343
  SiteInsightsEventSession:
25119
25344
  allOf:
25120
25345
  - $ref: "#/components/schemas/SiteInsightsSession"
@@ -28879,6 +29104,18 @@ components:
28879
29104
  required:
28880
29105
  - channel
28881
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
28882
29119
  APIChannelSiteIntegrations:
28883
29120
  type: object
28884
29121
  properties:
@@ -29168,6 +29405,7 @@ components:
29168
29405
  - $ref: "#/components/schemas/APIChannelSite"
29169
29406
  - $ref: "#/components/schemas/APIChannelSiteContext"
29170
29407
  - $ref: "#/components/schemas/APIChannelSiteCustomization"
29408
+ - $ref: "#/components/schemas/APIChannelSiteAgentSettings"
29171
29409
  - $ref: "#/components/schemas/APIChannelSiteIntegrations"
29172
29410
  - $ref: "#/components/schemas/APIChannelSiteSpace"
29173
29411
  - $ref: "#/components/schemas/APIChannelSiteSpaceCustomization"
@@ -29491,6 +29729,13 @@ components:
29491
29729
  - changeRequest
29492
29730
  - reviews
29493
29731
  - actor
29732
+ LocalizedString:
29733
+ type: object
29734
+ description: Localized string value, keyed by locale. Contains overrides for non-default languages only.
29735
+ propertyNames:
29736
+ $ref: "#/components/schemas/TranslationLanguage"
29737
+ additionalProperties:
29738
+ type: string
29494
29739
  RequestSpaceTrackPageView:
29495
29740
  $ref: "#/components/schemas/SpaceTrackPageView"
29496
29741
  RequestSiteTrackPageView: