@gitbook/api 0.151.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,12 +6094,41 @@ paths:
6082
6094
  operationId: getConversationsIssuesCluster
6083
6095
  summary: Get a conversations issues cluster by its identifier
6084
6096
  tags:
6085
- - agents
6097
+ - conversations
6098
+ parameters:
6099
+ - $ref: "#/components/parameters/organizationId"
6100
+ - $ref: "#/components/parameters/clusterId"
6101
+ security:
6102
+ - user: []
6103
+ responses:
6104
+ "200":
6105
+ description: OK
6106
+ content:
6107
+ application/json:
6108
+ schema:
6109
+ $ref: "#/components/schemas/ConversationsIssuesCluster"
6110
+ patch:
6111
+ operationId: updateConversationsIssuesCluster
6112
+ summary: Update a conversations issues cluster
6113
+ tags:
6114
+ - conversations
6086
6115
  parameters:
6087
6116
  - $ref: "#/components/parameters/organizationId"
6088
6117
  - $ref: "#/components/parameters/clusterId"
6089
6118
  security:
6090
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
6091
6132
  responses:
6092
6133
  "200":
6093
6134
  description: OK
@@ -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
@@ -9594,6 +9652,20 @@ components:
9594
9652
  enum:
9595
9653
  - deterministic-only
9596
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
9597
9669
  pagePath:
9598
9670
  name: pagePath
9599
9671
  in: path
@@ -13353,10 +13425,7 @@ components:
13353
13425
  - full
13354
13426
  - short
13355
13427
  default: full
13356
- sticky:
13357
- type: boolean
13358
13428
  required:
13359
- - sticky
13360
13429
  - format
13361
13430
  additionalProperties: false
13362
13431
  required:
@@ -13493,6 +13562,12 @@ components:
13493
13562
  type: array
13494
13563
  items:
13495
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
13496
13571
  required:
13497
13572
  - object
13498
13573
  - data
@@ -13512,6 +13587,11 @@ components:
13512
13587
  title: Empty
13513
13588
  properties: {}
13514
13589
  additionalProperties: false
13590
+ RevisionPageSlug:
13591
+ type: string
13592
+ description: Page's slug in its direct parent
13593
+ minLength: 0
13594
+ maxLength: 100
13515
13595
  RevisionPageDocument:
13516
13596
  allOf:
13517
13597
  - $ref: "#/components/schemas/RevisionPageBase"
@@ -13535,8 +13615,7 @@ components:
13535
13615
  description: Location of the page in the app
13536
13616
  $ref: "#/components/schemas/URL"
13537
13617
  slug:
13538
- description: Page's slug in its direct parent
13539
- type: string
13618
+ $ref: "#/components/schemas/RevisionPageSlug"
13540
13619
  path:
13541
13620
  description: Complete path to access the page in the revision.
13542
13621
  type: string
@@ -19295,36 +19374,23 @@ components:
19295
19374
  required:
19296
19375
  - duration
19297
19376
  - percentOff
19298
- SiteToMigrate:
19377
+ SitePageviews:
19299
19378
  type: object
19300
19379
  properties:
19301
19380
  object:
19302
19381
  type: string
19303
19382
  enum:
19304
- - site-to-migrate
19305
- site:
19306
- $ref: "#/components/schemas/Site"
19307
- newType:
19308
- description: The new type of the site
19309
- $ref: "#/components/schemas/SiteType"
19310
- traffic:
19311
- type: object
19312
- properties:
19313
- pageviews:
19314
- description: Number of pageviews in the past 30 days
19315
- type: number
19316
- required:
19317
- - pageviews
19318
- features:
19319
- type: array
19320
- items:
19321
- $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
19322
19390
  required:
19323
19391
  - object
19324
- - site
19325
- - newType
19326
- - traffic
19327
- - features
19392
+ - siteId
19393
+ - pageviews
19328
19394
  BillingPortal:
19329
19395
  type: object
19330
19396
  properties:
@@ -19858,6 +19924,18 @@ components:
19858
19924
  required:
19859
19925
  - filesystem
19860
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
19861
19939
  ConversationsIssuesCluster:
19862
19940
  type: object
19863
19941
  properties:
@@ -19878,8 +19956,12 @@ components:
19878
19956
  icon:
19879
19957
  $ref: "#/components/schemas/Icon"
19880
19958
  summary:
19881
- type: string
19882
- 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"
19883
19965
  weeklyPulse:
19884
19966
  type: array
19885
19967
  minItems: 13
@@ -19921,6 +20003,8 @@ components:
19921
20003
  - label
19922
20004
  - summary
19923
20005
  - icon
20006
+ - muted
20007
+ - impact
19924
20008
  - sources
19925
20009
  - stats
19926
20010
  - weeklyPulse
@@ -19956,6 +20040,8 @@ components:
19956
20040
  $ref: "#/components/schemas/Timestamp"
19957
20041
  source:
19958
20042
  $ref: "#/components/schemas/ConversationSource"
20043
+ impact:
20044
+ $ref: "#/components/schemas/ConversationIssueImpact"
19959
20045
  urls:
19960
20046
  type: object
19961
20047
  description: URLs associated with the conversation
@@ -19975,6 +20061,7 @@ components:
19975
20061
  - id
19976
20062
  - createdAt
19977
20063
  - source
20064
+ - impact
19978
20065
  - urls
19979
20066
  ConversationMetadata:
19980
20067
  type: object
@@ -20047,9 +20134,10 @@ components:
20047
20134
  title:
20048
20135
  type: string
20049
20136
  description: The title of the conversation issue
20050
- summary:
20051
- type: string
20052
- description: The summary of the conversation issue
20137
+ details:
20138
+ $ref: "#/components/schemas/JSONDocument"
20139
+ impact:
20140
+ $ref: "#/components/schemas/ConversationIssueImpact"
20053
20141
  createdAt:
20054
20142
  $ref: "#/components/schemas/Timestamp"
20055
20143
  ingestedAt:
@@ -20074,7 +20162,8 @@ components:
20074
20162
  - object
20075
20163
  - id
20076
20164
  - title
20077
- - summary
20165
+ - details
20166
+ - impact
20078
20167
  - createdAt
20079
20168
  - ingestedAt
20080
20169
  - conversation
@@ -21781,6 +21870,23 @@ components:
21781
21870
  - type
21782
21871
  - spaceId
21783
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
21784
21890
  AIStreamResponseStart:
21785
21891
  type: object
21786
21892
  description: |
@@ -21799,6 +21905,18 @@ components:
21799
21905
  required:
21800
21906
  - type
21801
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
21802
21920
  AIStreamResponseFinish:
21803
21921
  type: object
21804
21922
  description: |
@@ -21814,11 +21932,15 @@ components:
21814
21932
  The ID of the message that this event is composing.
21815
21933
  responseId:
21816
21934
  type: string
21935
+ deprecated: true
21817
21936
  description: The ID of the response
21937
+ response:
21938
+ $ref: "#/components/schemas/AIMessageResponseMetadata"
21818
21939
  required:
21819
21940
  - type
21820
21941
  - messageId
21821
21942
  - responseId
21943
+ - response
21822
21944
  AIStreamResponseDocument:
21823
21945
  type: object
21824
21946
  description: |
@@ -22737,6 +22859,7 @@ components:
22737
22859
  - ad
22738
22860
  - footer
22739
22861
  - pdf
22862
+ - embed
22740
22863
  SiteInsightsEventTrademarkClick:
22741
22864
  allOf:
22742
22865
  - $ref: "#/components/schemas/SiteInsightsEventBase"
@@ -25394,6 +25517,19 @@ components:
25394
25517
  required:
25395
25518
  - channel
25396
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
25397
25533
  OrganizationInviteLinksChannel:
25398
25534
  type: object
25399
25535
  properties:
@@ -26110,6 +26246,7 @@ components:
26110
26246
  - $ref: "#/components/schemas/CollectionChannel"
26111
26247
  - $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
26112
26248
  - $ref: "#/components/schemas/OrganizationInfoChannel"
26249
+ - $ref: "#/components/schemas/OrganizationAgentDataChannel"
26113
26250
  - $ref: "#/components/schemas/OrganizationInviteLinksChannel"
26114
26251
  - $ref: "#/components/schemas/OrganizationMembersChannel"
26115
26252
  - $ref: "#/components/schemas/OrganizationMemberChannel"
@@ -26397,6 +26534,8 @@ components:
26397
26534
  $ref: "#/components/schemas/AIMessageStep"
26398
26535
  task:
26399
26536
  $ref: "#/components/schemas/AIMessageTask"
26537
+ response:
26538
+ $ref: "#/components/schemas/AIMessageResponseMetadata"
26400
26539
  required:
26401
26540
  - id
26402
26541
  - role