@gitbook/api 0.173.0 → 0.174.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
@@ -769,45 +769,6 @@ paths:
769
769
  "409":
770
770
  description: Operation would not result in any update
771
771
  $ref: "#/components/responses/ConflictError"
772
- "/spaces/{spaceId}/transfer":
773
- post:
774
- operationId: transferSpace
775
- summary: Transfer a space
776
- description: Transfer a space to another organization, collection or both.
777
- tags:
778
- - spaces
779
- security:
780
- - user: []
781
- parameters:
782
- - $ref: "#/components/parameters/spaceId"
783
- requestBody:
784
- required: true
785
- content:
786
- application/json:
787
- schema:
788
- type: object
789
- properties:
790
- organization:
791
- type: string
792
- description: The unique id of the target organization
793
- required:
794
- - organization
795
- responses:
796
- "200":
797
- description: Space transferred
798
- content:
799
- application/json:
800
- schema:
801
- $ref: "#/components/schemas/Space"
802
- "404":
803
- description: No matching Space found for given ID
804
- $ref: "#/components/responses/NotFoundError"
805
- "409":
806
- description: Transfer would not result in any update
807
- $ref: "#/components/responses/ConflictError"
808
- "412":
809
- description: The space cannot be moved.
810
- $ref: "#/components/responses/PreconditionFailedError"
811
772
  "/spaces/{spaceId}/embed":
812
773
  get:
813
774
  operationId: getEmbedByUrlInSpace
@@ -7491,7 +7452,7 @@ paths:
7491
7452
  title:
7492
7453
  $ref: "#/components/schemas/SiteSectionGroupTitle"
7493
7454
  localizedTitle:
7494
- $ref: "#/components/schemas/LocalizedTitle"
7455
+ $ref: "#/components/schemas/LocalizedString128"
7495
7456
  icon:
7496
7457
  oneOf:
7497
7458
  - $ref: "#/components/schemas/Icon"
@@ -7678,7 +7639,7 @@ paths:
7678
7639
  title:
7679
7640
  $ref: "#/components/schemas/SiteSectionTitle"
7680
7641
  localizedTitle:
7681
- $ref: "#/components/schemas/LocalizedTitle"
7642
+ $ref: "#/components/schemas/LocalizedString128"
7682
7643
  path:
7683
7644
  $ref: "#/components/schemas/SiteSectionPath"
7684
7645
  defaultSiteSpace:
@@ -7701,7 +7662,7 @@ paths:
7701
7662
  - $ref: "#/components/schemas/SiteSectionDescription"
7702
7663
  - type: "null"
7703
7664
  localizedDescription:
7704
- $ref: "#/components/schemas/LocalizedSectionDescription"
7665
+ $ref: "#/components/schemas/LocalizedString256"
7705
7666
  siteSectionGroupId:
7706
7667
  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
7668
  oneOf:
@@ -8571,16 +8532,35 @@ paths:
8571
8532
  description: Filter questions by question type.
8572
8533
  schema:
8573
8534
  $ref: "#/components/schemas/SiteQuestionType"
8535
+ - name: relevance
8536
+ in: query
8537
+ description: Filter questions by question relevance.
8538
+ schema:
8539
+ type: array
8540
+ items:
8541
+ $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8574
8542
  - name: answered
8575
8543
  in: query
8576
8544
  description: Filter questions by answer resolution.
8577
8545
  schema:
8578
- $ref: "#/components/schemas/SiteQuestionAnswerResolution"
8546
+ type: array
8547
+ items:
8548
+ $ref: "#/components/schemas/SiteQuestionAnswerResolution"
8579
8549
  - name: topic
8580
8550
  in: query
8581
8551
  description: Filter questions by associated site topic ID.
8582
8552
  schema:
8583
8553
  type: string
8554
+ - $ref: "#/components/parameters/listOrder"
8555
+ - name: sort
8556
+ in: query
8557
+ description: Sort questions by latest ask activity, answered rate, or positive feedback rate. If omitted, ordering stays on canonical question creation date to preserve current behavior.
8558
+ schema:
8559
+ type: string
8560
+ enum:
8561
+ - askedAt
8562
+ - stats.answered
8563
+ - stats.feedback
8584
8564
  - $ref: "#/components/parameters/listPage"
8585
8565
  - $ref: "#/components/parameters/listLimit"
8586
8566
  responses:
@@ -8683,6 +8663,13 @@ paths:
8683
8663
  type: array
8684
8664
  items:
8685
8665
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8666
+ - name: answered
8667
+ in: query
8668
+ description: Filter stats by answer resolution.
8669
+ schema:
8670
+ type: array
8671
+ items:
8672
+ $ref: "#/components/schemas/SiteQuestionAnswerResolution"
8686
8673
  responses:
8687
8674
  "200":
8688
8675
  description: OK
@@ -8936,7 +8923,7 @@ paths:
8936
8923
  localizedTitle:
8937
8924
  description: Localized titles for the site variant, keyed by locale. If not defined, the localized title will not be changed. If set to null, all localized titles will be removed.
8938
8925
  oneOf:
8939
- - $ref: "#/components/schemas/LocalizedTitle"
8926
+ - $ref: "#/components/schemas/LocalizedString128"
8940
8927
  - type: "null"
8941
8928
  styling:
8942
8929
  type: object
@@ -10250,8 +10237,8 @@ paths:
10250
10237
  - $ref: "#/components/schemas/SiteChannelSetup"
10251
10238
  - type: object
10252
10239
  properties:
10253
- usageSettings:
10254
- $ref: "#/components/schemas/SiteChannelUsageSettings"
10240
+ role:
10241
+ $ref: "#/components/schemas/SiteChannelRole"
10255
10242
  responses:
10256
10243
  "201":
10257
10244
  description: Site channel created
@@ -10278,6 +10265,35 @@ paths:
10278
10265
  application/json:
10279
10266
  schema:
10280
10267
  $ref: "#/components/schemas/SiteChannel"
10268
+ patch:
10269
+ operationId: updateSiteChannelById
10270
+ summary: Update a site channel
10271
+ tags:
10272
+ - site-channels
10273
+ security:
10274
+ - user: []
10275
+ parameters:
10276
+ - $ref: "#/components/parameters/organizationId"
10277
+ - $ref: "#/components/parameters/siteId"
10278
+ - $ref: "#/components/parameters/siteChannelId"
10279
+ requestBody:
10280
+ required: true
10281
+ content:
10282
+ application/json:
10283
+ schema:
10284
+ anyOf:
10285
+ - $ref: "#/components/schemas/SiteChannelSetup"
10286
+ - type: object
10287
+ properties:
10288
+ role:
10289
+ $ref: "#/components/schemas/SiteChannelRole"
10290
+ responses:
10291
+ "200":
10292
+ description: OK
10293
+ content:
10294
+ application/json:
10295
+ schema:
10296
+ $ref: "#/components/schemas/SiteChannel"
10281
10297
  delete:
10282
10298
  operationId: deleteSiteChannelById
10283
10299
  summary: Delete a site channel
@@ -15670,6 +15686,22 @@ components:
15670
15686
  comments:
15671
15687
  type: number
15672
15688
  description: Count of opened comments on the change request.
15689
+ siteTopic:
15690
+ type: object
15691
+ description: Site context associated with the change request when it was created from a site topic or finding.
15692
+ properties:
15693
+ site:
15694
+ type: string
15695
+ description: ID of the site associated with the change request.
15696
+ topic:
15697
+ type: string
15698
+ description: ID of the site topic associated with the change request.
15699
+ finding:
15700
+ type: string
15701
+ description: ID of the site finding associated with the change request, when applicable.
15702
+ required:
15703
+ - site
15704
+ - topic
15673
15705
  outdated:
15674
15706
  type: boolean
15675
15707
  description: If true, the change request is not up-to-date with latest changes in the main content.
@@ -20133,9 +20165,9 @@ components:
20133
20165
  description: Title of the site section
20134
20166
  minLength: 2
20135
20167
  maxLength: 128
20136
- LocalizedTitle:
20168
+ LocalizedString128:
20137
20169
  type: object
20138
- description: Localized title value, keyed by locale. Contains overrides for non-default languages only.
20170
+ description: Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only.
20139
20171
  additionalProperties:
20140
20172
  type: string
20141
20173
  maxLength: 128
@@ -20146,9 +20178,9 @@ components:
20146
20178
  description: Description of the site section
20147
20179
  minLength: 0
20148
20180
  maxLength: 256
20149
- LocalizedSectionDescription:
20181
+ LocalizedString256:
20150
20182
  type: object
20151
- description: Localized section description value, keyed by locale. Contains overrides for non-default languages only.
20183
+ description: Localized string value with a 256 character limit, keyed by locale. Contains overrides for non-default languages only.
20152
20184
  additionalProperties:
20153
20185
  type: string
20154
20186
  maxLength: 256
@@ -20185,7 +20217,7 @@ components:
20185
20217
  title:
20186
20218
  type: string
20187
20219
  localizedTitle:
20188
- $ref: "#/components/schemas/LocalizedTitle"
20220
+ $ref: "#/components/schemas/LocalizedString128"
20189
20221
  default:
20190
20222
  type: boolean
20191
20223
  description: Whether this is the default space for the site
@@ -20231,11 +20263,11 @@ components:
20231
20263
  title:
20232
20264
  $ref: "#/components/schemas/SiteSectionTitle"
20233
20265
  localizedTitle:
20234
- $ref: "#/components/schemas/LocalizedTitle"
20266
+ $ref: "#/components/schemas/LocalizedString128"
20235
20267
  description:
20236
20268
  $ref: "#/components/schemas/SiteSectionDescription"
20237
20269
  localizedDescription:
20238
- $ref: "#/components/schemas/LocalizedSectionDescription"
20270
+ $ref: "#/components/schemas/LocalizedString256"
20239
20271
  default:
20240
20272
  type: boolean
20241
20273
  description: Whether this is the default section for the site
@@ -20291,7 +20323,7 @@ components:
20291
20323
  title:
20292
20324
  $ref: "#/components/schemas/SiteSectionGroupTitle"
20293
20325
  localizedTitle:
20294
- $ref: "#/components/schemas/LocalizedTitle"
20326
+ $ref: "#/components/schemas/LocalizedString128"
20295
20327
  sections:
20296
20328
  type: array
20297
20329
  deprecated: true
@@ -22373,14 +22405,32 @@ components:
22373
22405
  - contrast
22374
22406
  - custom
22375
22407
  - none
22408
+ LocalizedString:
22409
+ type: object
22410
+ description: Localized string value, keyed by locale. Contains overrides for non-default languages only.
22411
+ propertyNames:
22412
+ $ref: "#/components/schemas/TranslationLanguage"
22413
+ additionalProperties:
22414
+ type: string
22376
22415
  CustomizationContentLinkTitle:
22377
22416
  type: string
22378
22417
  maxLength: 64
22418
+ LocalizedString64:
22419
+ type: object
22420
+ description: Localized string value with a 128 character limit, keyed by locale. Contains overrides for non-default languages only.
22421
+ additionalProperties:
22422
+ type: string
22423
+ maxLength: 64
22424
+ propertyNames:
22425
+ $ref: "#/components/schemas/TranslationLanguage"
22379
22426
  CustomizationContentLink:
22380
22427
  type: object
22381
22428
  properties:
22382
22429
  title:
22383
22430
  $ref: "#/components/schemas/CustomizationContentLinkTitle"
22431
+ localizedTitle:
22432
+ description: Localized overrides for the link title, keyed by locale.
22433
+ $ref: "#/components/schemas/LocalizedString64"
22384
22434
  to:
22385
22435
  $ref: "#/components/schemas/ContentRef"
22386
22436
  required:
@@ -22391,6 +22441,9 @@ components:
22391
22441
  properties:
22392
22442
  title:
22393
22443
  type: string
22444
+ localizedTitle:
22445
+ description: Localized overrides for the header item title, keyed by locale.
22446
+ $ref: "#/components/schemas/LocalizedString"
22394
22447
  style:
22395
22448
  type: string
22396
22449
  enum:
@@ -22417,6 +22470,9 @@ components:
22417
22470
  properties:
22418
22471
  title:
22419
22472
  type: string
22473
+ localizedTitle:
22474
+ description: Localized overrides for the footer group title, keyed by locale.
22475
+ $ref: "#/components/schemas/LocalizedString"
22420
22476
  links:
22421
22477
  type: array
22422
22478
  items:
@@ -22437,6 +22493,9 @@ components:
22437
22493
  type: boolean
22438
22494
  message:
22439
22495
  $ref: "#/components/schemas/CustomizationAnnouncementMessage"
22496
+ localizedMessage:
22497
+ description: Localized overrides for the announcement message, keyed by locale.
22498
+ $ref: "#/components/schemas/LocalizedString128"
22440
22499
  link:
22441
22500
  description: The content or URL the announcement links to when clicked.
22442
22501
  $ref: "#/components/schemas/CustomizationContentLink"
@@ -22542,7 +22601,7 @@ components:
22542
22601
  $ref: "#/components/schemas/SiteTitle"
22543
22602
  localizedTitle:
22544
22603
  description: Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed.
22545
- $ref: "#/components/schemas/LocalizedTitle"
22604
+ $ref: "#/components/schemas/LocalizedString128"
22546
22605
  styling:
22547
22606
  type: object
22548
22607
  properties:
@@ -23526,6 +23585,8 @@ components:
23526
23585
  $ref: "#/components/schemas/SiteQuestionType"
23527
23586
  createdAt:
23528
23587
  $ref: "#/components/schemas/Timestamp"
23588
+ askedAt:
23589
+ $ref: "#/components/schemas/Timestamp"
23529
23590
  stats:
23530
23591
  $ref: "#/components/schemas/SiteQuestionStats"
23531
23592
  urls:
@@ -23544,6 +23605,7 @@ components:
23544
23605
  - question
23545
23606
  - type
23546
23607
  - createdAt
23608
+ - askedAt
23547
23609
  - stats
23548
23610
  - urls
23549
23611
  ContextConnectionLabel:
@@ -23842,6 +23904,14 @@ components:
23842
23904
  - createdAt
23843
23905
  - updatedAt
23844
23906
  - urls
23907
+ SiteQuestionAnswerRelevance:
23908
+ type: string
23909
+ description: Relevance classification of the user question.
23910
+ enum:
23911
+ - relevant
23912
+ - spam
23913
+ - off-topic
23914
+ - unclear
23845
23915
  SiteQuestionAnswerResolution:
23846
23916
  type: string
23847
23917
  description: Whether the response answered the question.
@@ -23929,14 +23999,6 @@ components:
23929
23999
  - $ref: "#/components/schemas/SiteQuestionAnswerSourceRecord"
23930
24000
  discriminator:
23931
24001
  propertyName: type
23932
- SiteQuestionAnswerRelevance:
23933
- type: string
23934
- description: Relevance classification of the user question.
23935
- enum:
23936
- - relevant
23937
- - spam
23938
- - off-topic
23939
- - unclear
23940
24002
  SiteQuestionAnswerHelpfulness:
23941
24003
  type: string
23942
24004
  description: Helpfulness of the response for the end user need.
@@ -27219,6 +27281,13 @@ components:
27219
27281
  setupSettings:
27220
27282
  type: object
27221
27283
  additionalProperties: false
27284
+ properties:
27285
+ allowedChannels:
27286
+ description: List of allowed Slack channel names or patterns. If empty, all channels are allowed.
27287
+ type: array
27288
+ items:
27289
+ type: string
27290
+ pattern: ^[a-zA-Z0-9_\*-]+$
27222
27291
  required:
27223
27292
  - type
27224
27293
  - setupSettings
@@ -27231,13 +27300,26 @@ components:
27231
27300
  setupSettings:
27232
27301
  type: object
27233
27302
  additionalProperties: false
27303
+ properties:
27304
+ allowedChannels:
27305
+ description: List of allowed Discord channel names or patterns. If empty, all channels are allowed.
27306
+ type: array
27307
+ items:
27308
+ type: string
27309
+ pattern: ^[a-zA-Z0-9_\*-]+$
27234
27310
  required:
27235
27311
  - type
27236
27312
  - setupSettings
27237
- SiteChannelUsageSettings:
27238
- type: object
27239
- description: Usage settings for a site channel.
27240
- additionalProperties: false
27313
+ SiteChannelStatus:
27314
+ type: string
27315
+ enum:
27316
+ - active
27317
+ - pending
27318
+ SiteChannelRole:
27319
+ type: string
27320
+ enum:
27321
+ - collaborator
27322
+ - support
27241
27323
  SiteChannel:
27242
27324
  allOf:
27243
27325
  - $ref: "#/components/schemas/SiteChannelSetup"
@@ -27250,12 +27332,14 @@ components:
27250
27332
  id:
27251
27333
  type: string
27252
27334
  description: Unique identifier for the site channel.
27335
+ status:
27336
+ $ref: "#/components/schemas/SiteChannelStatus"
27337
+ role:
27338
+ $ref: "#/components/schemas/SiteChannelRole"
27253
27339
  answers:
27254
27340
  type: integer
27255
27341
  minimum: 0
27256
27342
  description: Number of answers linked to this channel.
27257
- usageSettings:
27258
- $ref: "#/components/schemas/SiteChannelUsageSettings"
27259
27343
  createdAt:
27260
27344
  $ref: "#/components/schemas/Timestamp"
27261
27345
  urls:
@@ -27270,8 +27354,9 @@ components:
27270
27354
  required:
27271
27355
  - object
27272
27356
  - id
27357
+ - status
27358
+ - role
27273
27359
  - answers
27274
- - usageSettings
27275
27360
  - createdAt
27276
27361
  - urls
27277
27362
  Subdomain:
@@ -29079,6 +29164,19 @@ components:
29079
29164
  required:
29080
29165
  - channel
29081
29166
  - site
29167
+ APIChannelSiteChannels:
29168
+ type: object
29169
+ description: Subscription channel for changes in site channels.
29170
+ properties:
29171
+ channel:
29172
+ type: string
29173
+ enum:
29174
+ - site-channels
29175
+ site:
29176
+ type: string
29177
+ required:
29178
+ - channel
29179
+ - site
29082
29180
  APIChannelSiteContext:
29083
29181
  type: object
29084
29182
  description: Subscription channel for changes in site context.
@@ -29403,6 +29501,7 @@ components:
29403
29501
  - $ref: "#/components/schemas/APIChannelPublishedContentSite"
29404
29502
  - $ref: "#/components/schemas/APIChannelSiteRedirects"
29405
29503
  - $ref: "#/components/schemas/APIChannelSite"
29504
+ - $ref: "#/components/schemas/APIChannelSiteChannels"
29406
29505
  - $ref: "#/components/schemas/APIChannelSiteContext"
29407
29506
  - $ref: "#/components/schemas/APIChannelSiteCustomization"
29408
29507
  - $ref: "#/components/schemas/APIChannelSiteAgentSettings"
@@ -29729,13 +29828,13 @@ components:
29729
29828
  - changeRequest
29730
29829
  - reviews
29731
29830
  - actor
29732
- LocalizedString:
29831
+ LocalizedContentRef:
29832
+ description: Localized content reference, keyed by locale. Contains overrides for non-default languages only.
29733
29833
  type: object
29734
- description: Localized string value, keyed by locale. Contains overrides for non-default languages only.
29834
+ additionalProperties:
29835
+ $ref: "#/components/schemas/ContentRef"
29735
29836
  propertyNames:
29736
29837
  $ref: "#/components/schemas/TranslationLanguage"
29737
- additionalProperties:
29738
- type: string
29739
29838
  RequestSpaceTrackPageView:
29740
29839
  $ref: "#/components/schemas/SpaceTrackPageView"
29741
29840
  RequestSiteTrackPageView: