@gitbook/api 0.150.0 → 0.152.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
@@ -1266,6 +1266,7 @@ paths:
1266
1266
  - $ref: "#/components/parameters/pageId"
1267
1267
  - $ref: "#/components/parameters/documentFormat"
1268
1268
  - $ref: "#/components/parameters/documentEvaluated"
1269
+ - $ref: "#/components/parameters/documentDereferenced"
1269
1270
  - $ref: "#/components/parameters/revisionMetadata"
1270
1271
  - $ref: "#/components/parameters/revisionComputed"
1271
1272
  responses:
@@ -1373,6 +1374,7 @@ paths:
1373
1374
  - $ref: "#/components/parameters/pagePath"
1374
1375
  - $ref: "#/components/parameters/documentFormat"
1375
1376
  - $ref: "#/components/parameters/documentEvaluated"
1377
+ - $ref: "#/components/parameters/documentDereferenced"
1376
1378
  - $ref: "#/components/parameters/revisionMetadata"
1377
1379
  - $ref: "#/components/parameters/revisionComputed"
1378
1380
  responses:
@@ -2365,6 +2367,7 @@ paths:
2365
2367
  - $ref: "#/components/parameters/pageId"
2366
2368
  - $ref: "#/components/parameters/documentFormat"
2367
2369
  - $ref: "#/components/parameters/documentEvaluated"
2370
+ - $ref: "#/components/parameters/documentDereferenced"
2368
2371
  - $ref: "#/components/parameters/revisionMetadata"
2369
2372
  - $ref: "#/components/parameters/revisionComputed"
2370
2373
  responses:
@@ -2680,6 +2683,7 @@ paths:
2680
2683
  - $ref: "#/components/parameters/pageId"
2681
2684
  - $ref: "#/components/parameters/documentFormat"
2682
2685
  - $ref: "#/components/parameters/documentEvaluated"
2686
+ - $ref: "#/components/parameters/documentDereferenced"
2683
2687
  - $ref: "#/components/parameters/revisionMetadata"
2684
2688
  - $ref: "#/components/parameters/revisionComputed"
2685
2689
  responses:
@@ -2702,6 +2706,7 @@ paths:
2702
2706
  - $ref: "#/components/parameters/revisionId"
2703
2707
  - $ref: "#/components/parameters/pageId"
2704
2708
  - $ref: "#/components/parameters/documentEvaluated"
2709
+ - $ref: "#/components/parameters/documentDereferenced"
2705
2710
  responses:
2706
2711
  "200":
2707
2712
  description: OK
@@ -2723,6 +2728,7 @@ paths:
2723
2728
  - $ref: "#/components/parameters/pagePath"
2724
2729
  - $ref: "#/components/parameters/documentFormat"
2725
2730
  - $ref: "#/components/parameters/documentEvaluated"
2731
+ - $ref: "#/components/parameters/documentDereferenced"
2726
2732
  - $ref: "#/components/parameters/revisionMetadata"
2727
2733
  - $ref: "#/components/parameters/revisionComputed"
2728
2734
  responses:
@@ -2767,6 +2773,7 @@ paths:
2767
2773
  - $ref: "#/components/parameters/pagePath"
2768
2774
  - $ref: "#/components/parameters/documentFormat"
2769
2775
  - $ref: "#/components/parameters/documentEvaluated"
2776
+ - $ref: "#/components/parameters/documentDereferenced"
2770
2777
  - $ref: "#/components/parameters/revisionMetadata"
2771
2778
  - $ref: "#/components/parameters/revisionComputed"
2772
2779
  responses:
@@ -2812,6 +2819,7 @@ paths:
2812
2819
  - $ref: "#/components/parameters/revisionId"
2813
2820
  - $ref: "#/components/parameters/reusableContentId"
2814
2821
  - $ref: "#/components/parameters/documentEvaluated"
2822
+ - $ref: "#/components/parameters/documentDereferenced"
2815
2823
  responses:
2816
2824
  "200":
2817
2825
  description: OK
@@ -5198,9 +5206,12 @@ paths:
5198
5206
  in: query
5199
5207
  required: false
5200
5208
  schema:
5201
- $ref: "#/components/schemas/ChangeRequestStatus"
5202
- default: open
5203
- description: If defined, only change requests matching this status will be returned.
5209
+ type: array
5210
+ description: If defined, only change requests matching the statuses will be returned.
5211
+ items:
5212
+ $ref: "#/components/schemas/ChangeRequestStatus"
5213
+ default:
5214
+ - open
5204
5215
  - name: creator
5205
5216
  in: query
5206
5217
  required: false
@@ -6057,6 +6068,7 @@ paths:
6057
6068
  - updatedAt
6058
6069
  - issues
6059
6070
  - conversations
6071
+ - impact
6060
6072
  security:
6061
6073
  - user: []
6062
6074
  responses:
@@ -6082,7 +6094,7 @@ paths:
6082
6094
  operationId: getConversationsIssuesCluster
6083
6095
  summary: Get a conversations issues cluster by its identifier
6084
6096
  tags:
6085
- - agents
6097
+ - conversations
6086
6098
  parameters:
6087
6099
  - $ref: "#/components/parameters/organizationId"
6088
6100
  - $ref: "#/components/parameters/clusterId"
@@ -6095,6 +6107,35 @@ paths:
6095
6107
  application/json:
6096
6108
  schema:
6097
6109
  $ref: "#/components/schemas/ConversationsIssuesCluster"
6110
+ patch:
6111
+ operationId: updateConversationsIssuesCluster
6112
+ summary: Update a conversations issues cluster
6113
+ tags:
6114
+ - conversations
6115
+ parameters:
6116
+ - $ref: "#/components/parameters/organizationId"
6117
+ - $ref: "#/components/parameters/clusterId"
6118
+ security:
6119
+ - user: []
6120
+ requestBody:
6121
+ required: true
6122
+ content:
6123
+ application/json:
6124
+ schema:
6125
+ type: object
6126
+ properties:
6127
+ muted:
6128
+ type: boolean
6129
+ description: Whether the cluster is muted for change request creation
6130
+ required:
6131
+ - muted
6132
+ responses:
6133
+ "200":
6134
+ description: OK
6135
+ content:
6136
+ application/json:
6137
+ schema:
6138
+ $ref: "#/components/schemas/ConversationsIssuesCluster"
6098
6139
  "/orgs/{organizationId}/conversations":
6099
6140
  get:
6100
6141
  operationId: listConversations
@@ -6279,6 +6320,23 @@ paths:
6279
6320
  application/json:
6280
6321
  schema:
6281
6322
  $ref: "#/components/schemas/AgentSetupState"
6323
+ delete:
6324
+ operationId: deleteAgentSetup
6325
+ summary: Delete the agents setup data
6326
+ description: |
6327
+ Delete all the conversations, conversation issues, and issue clusters used by Docs Agent for an organization.
6328
+ tags:
6329
+ - agents
6330
+ - critical
6331
+ security:
6332
+ - user-internal: []
6333
+ parameters:
6334
+ - $ref: "#/components/parameters/organizationId"
6335
+ responses:
6336
+ "204":
6337
+ description: No data was deleted
6338
+ "205":
6339
+ description: Deleted the data for Docs Agent
6282
6340
  "/orgs/{organizationId}/agent-instructions":
6283
6341
  get:
6284
6342
  operationId: getOrganizationAgentInstructions
@@ -8107,6 +8165,9 @@ paths:
8107
8165
  spaceId:
8108
8166
  type: string
8109
8167
  description: The content that this site space points to. If not set, the space will remain unchanged.
8168
+ hidden:
8169
+ type: boolean
8170
+ 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.
8110
8171
  responses:
8111
8172
  "200":
8112
8173
  description: OK
@@ -9591,6 +9652,20 @@ components:
9591
9652
  enum:
9592
9653
  - deterministic-only
9593
9654
  default: false
9655
+ documentDereferenced:
9656
+ name: dereferenced
9657
+ in: query
9658
+ description: |
9659
+ Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
9660
+ - When set to `true`, the entire document will be deferenced
9661
+ - When set to `reusable-contents`, only reusable contents will be deferenced.
9662
+ schema:
9663
+ oneOf:
9664
+ - type: boolean
9665
+ - type: string
9666
+ enum:
9667
+ - reusable-contents
9668
+ default: false
9594
9669
  pagePath:
9595
9670
  name: pagePath
9596
9671
  in: path
@@ -11129,6 +11204,9 @@ components:
11129
11204
  - file
11130
11205
  file:
11131
11206
  type: string
11207
+ space:
11208
+ description: ID of the space the file is in. The file is considered as in the current space if none is provided.
11209
+ type: string
11132
11210
  required:
11133
11211
  - kind
11134
11212
  - file
@@ -13347,10 +13425,7 @@ components:
13347
13425
  - full
13348
13426
  - short
13349
13427
  default: full
13350
- sticky:
13351
- type: boolean
13352
13428
  required:
13353
- - sticky
13354
13429
  - format
13355
13430
  additionalProperties: false
13356
13431
  required:
@@ -13487,6 +13562,12 @@ components:
13487
13562
  type: array
13488
13563
  items:
13489
13564
  $ref: "#/components/schemas/DocumentBlocksTopLevels"
13565
+ meta:
13566
+ type: object
13567
+ properties:
13568
+ token:
13569
+ description: A content token that can be used to fetch the content referenced in this document from the API.
13570
+ type: string
13490
13571
  required:
13491
13572
  - object
13492
13573
  - data
@@ -13506,6 +13587,11 @@ components:
13506
13587
  title: Empty
13507
13588
  properties: {}
13508
13589
  additionalProperties: false
13590
+ RevisionPageSlug:
13591
+ type: string
13592
+ description: Page's slug in its direct parent
13593
+ minLength: 0
13594
+ maxLength: 100
13509
13595
  RevisionPageDocument:
13510
13596
  allOf:
13511
13597
  - $ref: "#/components/schemas/RevisionPageBase"
@@ -13529,8 +13615,7 @@ components:
13529
13615
  description: Location of the page in the app
13530
13616
  $ref: "#/components/schemas/URL"
13531
13617
  slug:
13532
- description: Page's slug in its direct parent
13533
- type: string
13618
+ $ref: "#/components/schemas/RevisionPageSlug"
13534
13619
  path:
13535
13620
  description: Complete path to access the page in the revision.
13536
13621
  type: string
@@ -18662,6 +18747,9 @@ components:
18662
18747
  type: string
18663
18748
  description: URL of the published version of the site-space. Only defined when site is published.
18664
18749
  format: uri
18750
+ hidden:
18751
+ type: boolean
18752
+ description: Whether the site space is hidden. If true, the site space will not be shown in the site's navigation.
18665
18753
  required:
18666
18754
  - object
18667
18755
  - id
@@ -19286,36 +19374,23 @@ components:
19286
19374
  required:
19287
19375
  - duration
19288
19376
  - percentOff
19289
- SiteToMigrate:
19377
+ SitePageviews:
19290
19378
  type: object
19291
19379
  properties:
19292
19380
  object:
19293
19381
  type: string
19294
19382
  enum:
19295
- - site-to-migrate
19296
- site:
19297
- $ref: "#/components/schemas/Site"
19298
- newType:
19299
- description: The new type of the site
19300
- $ref: "#/components/schemas/SiteType"
19301
- traffic:
19302
- type: object
19303
- properties:
19304
- pageviews:
19305
- description: Number of pageviews in the past 30 days
19306
- type: number
19307
- required:
19308
- - pageviews
19309
- features:
19310
- type: array
19311
- items:
19312
- $ref: "#/components/schemas/SiteFeature"
19383
+ - site-pageviews
19384
+ siteId:
19385
+ type: string
19386
+ description: The identifier of the site
19387
+ pageviews:
19388
+ description: Number of pageviews in the past 30 days
19389
+ type: number
19313
19390
  required:
19314
19391
  - object
19315
- - site
19316
- - newType
19317
- - traffic
19318
- - features
19392
+ - siteId
19393
+ - pageviews
19319
19394
  BillingPortal:
19320
19395
  type: object
19321
19396
  properties:
@@ -19849,6 +19924,18 @@ components:
19849
19924
  required:
19850
19925
  - filesystem
19851
19926
  - url
19927
+ ConversationIssueImpact:
19928
+ type: string
19929
+ description: |
19930
+ Estimated end-user impact of a conversation issue.
19931
+
19932
+ - low: Minor friction or small polish issues; users can proceed with little to no guidance.
19933
+ - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
19934
+ - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
19935
+ enum:
19936
+ - low
19937
+ - medium
19938
+ - high
19852
19939
  ConversationsIssuesCluster:
19853
19940
  type: object
19854
19941
  properties:
@@ -19869,8 +19956,12 @@ components:
19869
19956
  icon:
19870
19957
  $ref: "#/components/schemas/Icon"
19871
19958
  summary:
19872
- type: string
19873
- description: The summary of the conversations issues cluster
19959
+ $ref: "#/components/schemas/JSONDocument"
19960
+ muted:
19961
+ type: boolean
19962
+ description: Whether the cluster is muted for change request creation
19963
+ impact:
19964
+ $ref: "#/components/schemas/ConversationIssueImpact"
19874
19965
  weeklyPulse:
19875
19966
  type: array
19876
19967
  minItems: 13
@@ -19912,6 +20003,8 @@ components:
19912
20003
  - label
19913
20004
  - summary
19914
20005
  - icon
20006
+ - muted
20007
+ - impact
19915
20008
  - sources
19916
20009
  - stats
19917
20010
  - weeklyPulse
@@ -19947,6 +20040,8 @@ components:
19947
20040
  $ref: "#/components/schemas/Timestamp"
19948
20041
  source:
19949
20042
  $ref: "#/components/schemas/ConversationSource"
20043
+ impact:
20044
+ $ref: "#/components/schemas/ConversationIssueImpact"
19950
20045
  urls:
19951
20046
  type: object
19952
20047
  description: URLs associated with the conversation
@@ -19966,6 +20061,7 @@ components:
19966
20061
  - id
19967
20062
  - createdAt
19968
20063
  - source
20064
+ - impact
19969
20065
  - urls
19970
20066
  ConversationMetadata:
19971
20067
  type: object
@@ -20038,9 +20134,10 @@ components:
20038
20134
  title:
20039
20135
  type: string
20040
20136
  description: The title of the conversation issue
20041
- summary:
20042
- type: string
20043
- description: The summary of the conversation issue
20137
+ details:
20138
+ $ref: "#/components/schemas/JSONDocument"
20139
+ impact:
20140
+ $ref: "#/components/schemas/ConversationIssueImpact"
20044
20141
  createdAt:
20045
20142
  $ref: "#/components/schemas/Timestamp"
20046
20143
  ingestedAt:
@@ -20065,7 +20162,8 @@ components:
20065
20162
  - object
20066
20163
  - id
20067
20164
  - title
20068
- - summary
20165
+ - details
20166
+ - impact
20069
20167
  - createdAt
20070
20168
  - ingestedAt
20071
20169
  - conversation
@@ -21772,6 +21870,23 @@ components:
21772
21870
  - type
21773
21871
  - spaceId
21774
21872
  - changeRequestId
21873
+ - type: object
21874
+ description: When the agent is implementing a task in a change request.
21875
+ properties:
21876
+ type:
21877
+ type: string
21878
+ enum:
21879
+ - implement_change_request
21880
+ spaceId:
21881
+ type: string
21882
+ description: The ID of the space the change request is in.
21883
+ changeRequestId:
21884
+ type: string
21885
+ description: The ID of the change request to implement the task in.
21886
+ required:
21887
+ - type
21888
+ - spaceId
21889
+ - changeRequestId
21775
21890
  AIStreamResponseStart:
21776
21891
  type: object
21777
21892
  description: |
@@ -21790,6 +21905,18 @@ components:
21790
21905
  required:
21791
21906
  - type
21792
21907
  - messageId
21908
+ AIMessageResponseMetadata:
21909
+ description: The response that generated this message.
21910
+ type: object
21911
+ properties:
21912
+ id:
21913
+ type: string
21914
+ description: The ID of the response that generated this message.
21915
+ previous:
21916
+ type: string
21917
+ description: The ID of the previous response that this message is based on.
21918
+ required:
21919
+ - id
21793
21920
  AIStreamResponseFinish:
21794
21921
  type: object
21795
21922
  description: |
@@ -21805,11 +21932,15 @@ components:
21805
21932
  The ID of the message that this event is composing.
21806
21933
  responseId:
21807
21934
  type: string
21935
+ deprecated: true
21808
21936
  description: The ID of the response
21937
+ response:
21938
+ $ref: "#/components/schemas/AIMessageResponseMetadata"
21809
21939
  required:
21810
21940
  - type
21811
21941
  - messageId
21812
21942
  - responseId
21943
+ - response
21813
21944
  AIStreamResponseDocument:
21814
21945
  type: object
21815
21946
  description: |
@@ -22728,6 +22859,7 @@ components:
22728
22859
  - ad
22729
22860
  - footer
22730
22861
  - pdf
22862
+ - embed
22731
22863
  SiteInsightsEventTrademarkClick:
22732
22864
  allOf:
22733
22865
  - $ref: "#/components/schemas/SiteInsightsEventBase"
@@ -25385,6 +25517,19 @@ components:
25385
25517
  required:
25386
25518
  - channel
25387
25519
  - organization
25520
+ OrganizationAgentDataChannel:
25521
+ type: object
25522
+ description: Subscription channel for changes in Docs Agent data in an organization.
25523
+ properties:
25524
+ channel:
25525
+ type: string
25526
+ enum:
25527
+ - organization-agent-data
25528
+ organization:
25529
+ type: string
25530
+ required:
25531
+ - channel
25532
+ - organization
25388
25533
  OrganizationInviteLinksChannel:
25389
25534
  type: object
25390
25535
  properties:
@@ -26101,6 +26246,7 @@ components:
26101
26246
  - $ref: "#/components/schemas/CollectionChannel"
26102
26247
  - $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
26103
26248
  - $ref: "#/components/schemas/OrganizationInfoChannel"
26249
+ - $ref: "#/components/schemas/OrganizationAgentDataChannel"
26104
26250
  - $ref: "#/components/schemas/OrganizationInviteLinksChannel"
26105
26251
  - $ref: "#/components/schemas/OrganizationMembersChannel"
26106
26252
  - $ref: "#/components/schemas/OrganizationMemberChannel"
@@ -26388,6 +26534,8 @@ components:
26388
26534
  $ref: "#/components/schemas/AIMessageStep"
26389
26535
  task:
26390
26536
  $ref: "#/components/schemas/AIMessageTask"
26537
+ response:
26538
+ $ref: "#/components/schemas/AIMessageResponseMetadata"
26391
26539
  required:
26392
26540
  - id
26393
26541
  - role