@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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.151.0",
7
+ "version": "0.152.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -1831,6 +1831,9 @@
1831
1831
  {
1832
1832
  "$ref": "#/components/parameters/documentEvaluated"
1833
1833
  },
1834
+ {
1835
+ "$ref": "#/components/parameters/documentDereferenced"
1836
+ },
1834
1837
  {
1835
1838
  "$ref": "#/components/parameters/revisionMetadata"
1836
1839
  },
@@ -2040,6 +2043,9 @@
2040
2043
  {
2041
2044
  "$ref": "#/components/parameters/documentEvaluated"
2042
2045
  },
2046
+ {
2047
+ "$ref": "#/components/parameters/documentDereferenced"
2048
+ },
2043
2049
  {
2044
2050
  "$ref": "#/components/parameters/revisionMetadata"
2045
2051
  },
@@ -3885,6 +3891,9 @@
3885
3891
  {
3886
3892
  "$ref": "#/components/parameters/documentEvaluated"
3887
3893
  },
3894
+ {
3895
+ "$ref": "#/components/parameters/documentDereferenced"
3896
+ },
3888
3897
  {
3889
3898
  "$ref": "#/components/parameters/revisionMetadata"
3890
3899
  },
@@ -4496,6 +4505,9 @@
4496
4505
  {
4497
4506
  "$ref": "#/components/parameters/documentEvaluated"
4498
4507
  },
4508
+ {
4509
+ "$ref": "#/components/parameters/documentDereferenced"
4510
+ },
4499
4511
  {
4500
4512
  "$ref": "#/components/parameters/revisionMetadata"
4501
4513
  },
@@ -4541,6 +4553,9 @@
4541
4553
  },
4542
4554
  {
4543
4555
  "$ref": "#/components/parameters/documentEvaluated"
4556
+ },
4557
+ {
4558
+ "$ref": "#/components/parameters/documentDereferenced"
4544
4559
  }
4545
4560
  ],
4546
4561
  "responses": {
@@ -4585,6 +4600,9 @@
4585
4600
  {
4586
4601
  "$ref": "#/components/parameters/documentEvaluated"
4587
4602
  },
4603
+ {
4604
+ "$ref": "#/components/parameters/documentDereferenced"
4605
+ },
4588
4606
  {
4589
4607
  "$ref": "#/components/parameters/revisionMetadata"
4590
4608
  },
@@ -4678,6 +4696,9 @@
4678
4696
  {
4679
4697
  "$ref": "#/components/parameters/documentEvaluated"
4680
4698
  },
4699
+ {
4700
+ "$ref": "#/components/parameters/documentDereferenced"
4701
+ },
4681
4702
  {
4682
4703
  "$ref": "#/components/parameters/revisionMetadata"
4683
4704
  },
@@ -4773,6 +4794,9 @@
4773
4794
  },
4774
4795
  {
4775
4796
  "$ref": "#/components/parameters/documentEvaluated"
4797
+ },
4798
+ {
4799
+ "$ref": "#/components/parameters/documentDereferenced"
4776
4800
  }
4777
4801
  ],
4778
4802
  "responses": {
@@ -9099,10 +9123,15 @@
9099
9123
  "in": "query",
9100
9124
  "required": false,
9101
9125
  "schema": {
9102
- "$ref": "#/components/schemas/ChangeRequestStatus",
9103
- "default": "open"
9104
- },
9105
- "description": "If defined, only change requests matching this status will be returned."
9126
+ "type": "array",
9127
+ "description": "If defined, only change requests matching the statuses will be returned.",
9128
+ "items": {
9129
+ "$ref": "#/components/schemas/ChangeRequestStatus"
9130
+ },
9131
+ "default": [
9132
+ "open"
9133
+ ]
9134
+ }
9106
9135
  },
9107
9136
  {
9108
9137
  "name": "creator",
@@ -10648,7 +10677,8 @@
10648
10677
  "enum": [
10649
10678
  "updatedAt",
10650
10679
  "issues",
10651
- "conversations"
10680
+ "conversations",
10681
+ "impact"
10652
10682
  ]
10653
10683
  }
10654
10684
  }
@@ -10698,7 +10728,7 @@
10698
10728
  "operationId": "getConversationsIssuesCluster",
10699
10729
  "summary": "Get a conversations issues cluster by its identifier",
10700
10730
  "tags": [
10701
- "agents"
10731
+ "conversations"
10702
10732
  ],
10703
10733
  "parameters": [
10704
10734
  {
@@ -10725,6 +10755,57 @@
10725
10755
  }
10726
10756
  }
10727
10757
  }
10758
+ },
10759
+ "patch": {
10760
+ "operationId": "updateConversationsIssuesCluster",
10761
+ "summary": "Update a conversations issues cluster",
10762
+ "tags": [
10763
+ "conversations"
10764
+ ],
10765
+ "parameters": [
10766
+ {
10767
+ "$ref": "#/components/parameters/organizationId"
10768
+ },
10769
+ {
10770
+ "$ref": "#/components/parameters/clusterId"
10771
+ }
10772
+ ],
10773
+ "security": [
10774
+ {
10775
+ "user": []
10776
+ }
10777
+ ],
10778
+ "requestBody": {
10779
+ "required": true,
10780
+ "content": {
10781
+ "application/json": {
10782
+ "schema": {
10783
+ "type": "object",
10784
+ "properties": {
10785
+ "muted": {
10786
+ "type": "boolean",
10787
+ "description": "Whether the cluster is muted for change request creation"
10788
+ }
10789
+ },
10790
+ "required": [
10791
+ "muted"
10792
+ ]
10793
+ }
10794
+ }
10795
+ }
10796
+ },
10797
+ "responses": {
10798
+ "200": {
10799
+ "description": "OK",
10800
+ "content": {
10801
+ "application/json": {
10802
+ "schema": {
10803
+ "$ref": "#/components/schemas/ConversationsIssuesCluster"
10804
+ }
10805
+ }
10806
+ }
10807
+ }
10808
+ }
10728
10809
  }
10729
10810
  },
10730
10811
  "/orgs/{organizationId}/conversations": {
@@ -11053,6 +11134,33 @@
11053
11134
  }
11054
11135
  }
11055
11136
  }
11137
+ },
11138
+ "delete": {
11139
+ "operationId": "deleteAgentSetup",
11140
+ "summary": "Delete the agents setup data",
11141
+ "description": "Delete all the conversations, conversation issues, and issue clusters used by Docs Agent for an organization.\n",
11142
+ "tags": [
11143
+ "agents",
11144
+ "critical"
11145
+ ],
11146
+ "security": [
11147
+ {
11148
+ "user-internal": []
11149
+ }
11150
+ ],
11151
+ "parameters": [
11152
+ {
11153
+ "$ref": "#/components/parameters/organizationId"
11154
+ }
11155
+ ],
11156
+ "responses": {
11157
+ "204": {
11158
+ "description": "No data was deleted"
11159
+ },
11160
+ "205": {
11161
+ "description": "Deleted the data for Docs Agent"
11162
+ }
11163
+ }
11056
11164
  }
11057
11165
  },
11058
11166
  "/orgs/{organizationId}/agent-instructions": {
@@ -16882,6 +16990,25 @@
16882
16990
  "default": false
16883
16991
  }
16884
16992
  },
16993
+ "documentDereferenced": {
16994
+ "name": "dereferenced",
16995
+ "in": "query",
16996
+ "description": "Controls whether the document should be deferenced (eference to other content will be resolved and expanded).\n- When set to `true`, the entire document will be deferenced\n- When set to `reusable-contents`, only reusable contents will be deferenced.\n",
16997
+ "schema": {
16998
+ "oneOf": [
16999
+ {
17000
+ "type": "boolean"
17001
+ },
17002
+ {
17003
+ "type": "string",
17004
+ "enum": [
17005
+ "reusable-contents"
17006
+ ]
17007
+ }
17008
+ ],
17009
+ "default": false
17010
+ }
17011
+ },
16885
17012
  "pagePath": {
16886
17013
  "name": "pagePath",
16887
17014
  "in": "path",
@@ -22629,13 +22756,9 @@
22629
22756
  "short"
22630
22757
  ],
22631
22758
  "default": "full"
22632
- },
22633
- "sticky": {
22634
- "type": "boolean"
22635
22759
  }
22636
22760
  },
22637
22761
  "required": [
22638
- "sticky",
22639
22762
  "format"
22640
22763
  ],
22641
22764
  "additionalProperties": false
@@ -22897,6 +23020,15 @@
22897
23020
  "items": {
22898
23021
  "$ref": "#/components/schemas/DocumentBlocksTopLevels"
22899
23022
  }
23023
+ },
23024
+ "meta": {
23025
+ "type": "object",
23026
+ "properties": {
23027
+ "token": {
23028
+ "description": "A content token that can be used to fetch the content referenced in this document from the API.",
23029
+ "type": "string"
23030
+ }
23031
+ }
22900
23032
  }
22901
23033
  },
22902
23034
  "required": [
@@ -22931,6 +23063,12 @@
22931
23063
  }
22932
23064
  ]
22933
23065
  },
23066
+ "RevisionPageSlug": {
23067
+ "type": "string",
23068
+ "description": "Page's slug in its direct parent",
23069
+ "minLength": 0,
23070
+ "maxLength": 100
23071
+ },
22934
23072
  "RevisionPageDocument": {
22935
23073
  "allOf": [
22936
23074
  {
@@ -22967,8 +23105,7 @@
22967
23105
  }
22968
23106
  },
22969
23107
  "slug": {
22970
- "description": "Page's slug in its direct parent",
22971
- "type": "string"
23108
+ "$ref": "#/components/schemas/RevisionPageSlug"
22972
23109
  },
22973
23110
  "path": {
22974
23111
  "description": "Complete path to access the page in the revision.",
@@ -31646,47 +31783,28 @@
31646
31783
  "percentOff"
31647
31784
  ]
31648
31785
  },
31649
- "SiteToMigrate": {
31786
+ "SitePageviews": {
31650
31787
  "type": "object",
31651
31788
  "properties": {
31652
31789
  "object": {
31653
31790
  "type": "string",
31654
31791
  "enum": [
31655
- "site-to-migrate"
31792
+ "site-pageviews"
31656
31793
  ]
31657
31794
  },
31658
- "site": {
31659
- "$ref": "#/components/schemas/Site"
31660
- },
31661
- "newType": {
31662
- "description": "The new type of the site",
31663
- "$ref": "#/components/schemas/SiteType"
31664
- },
31665
- "traffic": {
31666
- "type": "object",
31667
- "properties": {
31668
- "pageviews": {
31669
- "description": "Number of pageviews in the past 30 days",
31670
- "type": "number"
31671
- }
31672
- },
31673
- "required": [
31674
- "pageviews"
31675
- ]
31795
+ "siteId": {
31796
+ "type": "string",
31797
+ "description": "The identifier of the site"
31676
31798
  },
31677
- "features": {
31678
- "type": "array",
31679
- "items": {
31680
- "$ref": "#/components/schemas/SiteFeature"
31681
- }
31799
+ "pageviews": {
31800
+ "description": "Number of pageviews in the past 30 days",
31801
+ "type": "number"
31682
31802
  }
31683
31803
  },
31684
31804
  "required": [
31685
31805
  "object",
31686
- "site",
31687
- "newType",
31688
- "traffic",
31689
- "features"
31806
+ "siteId",
31807
+ "pageviews"
31690
31808
  ]
31691
31809
  },
31692
31810
  "BillingPortal": {
@@ -32448,6 +32566,15 @@
32448
32566
  "url"
32449
32567
  ]
32450
32568
  },
32569
+ "ConversationIssueImpact": {
32570
+ "type": "string",
32571
+ "description": "Estimated end-user impact of a conversation issue.\n\n- low: Minor friction or small polish issues; users can proceed with little to no guidance.\n- medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.\n- high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.\n",
32572
+ "enum": [
32573
+ "low",
32574
+ "medium",
32575
+ "high"
32576
+ ]
32577
+ },
32451
32578
  "ConversationsIssuesCluster": {
32452
32579
  "type": "object",
32453
32580
  "properties": {
@@ -32475,8 +32602,14 @@
32475
32602
  "$ref": "#/components/schemas/Icon"
32476
32603
  },
32477
32604
  "summary": {
32478
- "type": "string",
32479
- "description": "The summary of the conversations issues cluster"
32605
+ "$ref": "#/components/schemas/JSONDocument"
32606
+ },
32607
+ "muted": {
32608
+ "type": "boolean",
32609
+ "description": "Whether the cluster is muted for change request creation"
32610
+ },
32611
+ "impact": {
32612
+ "$ref": "#/components/schemas/ConversationIssueImpact"
32480
32613
  },
32481
32614
  "weeklyPulse": {
32482
32615
  "type": "array",
@@ -32533,6 +32666,8 @@
32533
32666
  "label",
32534
32667
  "summary",
32535
32668
  "icon",
32669
+ "muted",
32670
+ "impact",
32536
32671
  "sources",
32537
32672
  "stats",
32538
32673
  "weeklyPulse",
@@ -32584,6 +32719,9 @@
32584
32719
  "source": {
32585
32720
  "$ref": "#/components/schemas/ConversationSource"
32586
32721
  },
32722
+ "impact": {
32723
+ "$ref": "#/components/schemas/ConversationIssueImpact"
32724
+ },
32587
32725
  "urls": {
32588
32726
  "type": "object",
32589
32727
  "description": "URLs associated with the conversation",
@@ -32609,6 +32747,7 @@
32609
32747
  "id",
32610
32748
  "createdAt",
32611
32749
  "source",
32750
+ "impact",
32612
32751
  "urls"
32613
32752
  ]
32614
32753
  },
@@ -32713,9 +32852,11 @@
32713
32852
  "type": "string",
32714
32853
  "description": "The title of the conversation issue"
32715
32854
  },
32716
- "summary": {
32717
- "type": "string",
32718
- "description": "The summary of the conversation issue"
32855
+ "details": {
32856
+ "$ref": "#/components/schemas/JSONDocument"
32857
+ },
32858
+ "impact": {
32859
+ "$ref": "#/components/schemas/ConversationIssueImpact"
32719
32860
  },
32720
32861
  "createdAt": {
32721
32862
  "$ref": "#/components/schemas/Timestamp"
@@ -32750,7 +32891,8 @@
32750
32891
  "object",
32751
32892
  "id",
32752
32893
  "title",
32753
- "summary",
32894
+ "details",
32895
+ "impact",
32754
32896
  "createdAt",
32755
32897
  "ingestedAt",
32756
32898
  "conversation",
@@ -35193,6 +35335,31 @@
35193
35335
  "spaceId",
35194
35336
  "changeRequestId"
35195
35337
  ]
35338
+ },
35339
+ {
35340
+ "type": "object",
35341
+ "description": "When the agent is implementing a task in a change request.",
35342
+ "properties": {
35343
+ "type": {
35344
+ "type": "string",
35345
+ "enum": [
35346
+ "implement_change_request"
35347
+ ]
35348
+ },
35349
+ "spaceId": {
35350
+ "type": "string",
35351
+ "description": "The ID of the space the change request is in."
35352
+ },
35353
+ "changeRequestId": {
35354
+ "type": "string",
35355
+ "description": "The ID of the change request to implement the task in."
35356
+ }
35357
+ },
35358
+ "required": [
35359
+ "type",
35360
+ "spaceId",
35361
+ "changeRequestId"
35362
+ ]
35196
35363
  }
35197
35364
  ]
35198
35365
  },
@@ -35219,6 +35386,23 @@
35219
35386
  "messageId"
35220
35387
  ]
35221
35388
  },
35389
+ "AIMessageResponseMetadata": {
35390
+ "description": "The response that generated this message.",
35391
+ "type": "object",
35392
+ "properties": {
35393
+ "id": {
35394
+ "type": "string",
35395
+ "description": "The ID of the response that generated this message."
35396
+ },
35397
+ "previous": {
35398
+ "type": "string",
35399
+ "description": "The ID of the previous response that this message is based on."
35400
+ }
35401
+ },
35402
+ "required": [
35403
+ "id"
35404
+ ]
35405
+ },
35222
35406
  "AIStreamResponseFinish": {
35223
35407
  "type": "object",
35224
35408
  "description": "Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests.\n",
@@ -35235,13 +35419,18 @@
35235
35419
  },
35236
35420
  "responseId": {
35237
35421
  "type": "string",
35422
+ "deprecated": true,
35238
35423
  "description": "The ID of the response"
35424
+ },
35425
+ "response": {
35426
+ "$ref": "#/components/schemas/AIMessageResponseMetadata"
35239
35427
  }
35240
35428
  },
35241
35429
  "required": [
35242
35430
  "type",
35243
35431
  "messageId",
35244
- "responseId"
35432
+ "responseId",
35433
+ "response"
35245
35434
  ]
35246
35435
  },
35247
35436
  "AIStreamResponseDocument": {
@@ -36587,7 +36776,8 @@
36587
36776
  "sidebar",
36588
36777
  "ad",
36589
36778
  "footer",
36590
- "pdf"
36779
+ "pdf",
36780
+ "embed"
36591
36781
  ]
36592
36782
  },
36593
36783
  "SiteInsightsEventTrademarkClick": {
@@ -40697,6 +40887,25 @@
40697
40887
  "organization"
40698
40888
  ]
40699
40889
  },
40890
+ "OrganizationAgentDataChannel": {
40891
+ "type": "object",
40892
+ "description": "Subscription channel for changes in Docs Agent data in an organization.",
40893
+ "properties": {
40894
+ "channel": {
40895
+ "type": "string",
40896
+ "enum": [
40897
+ "organization-agent-data"
40898
+ ]
40899
+ },
40900
+ "organization": {
40901
+ "type": "string"
40902
+ }
40903
+ },
40904
+ "required": [
40905
+ "channel",
40906
+ "organization"
40907
+ ]
40908
+ },
40700
40909
  "OrganizationInviteLinksChannel": {
40701
40910
  "type": "object",
40702
40911
  "properties": {
@@ -41779,6 +41988,9 @@
41779
41988
  {
41780
41989
  "$ref": "#/components/schemas/OrganizationInfoChannel"
41781
41990
  },
41991
+ {
41992
+ "$ref": "#/components/schemas/OrganizationAgentDataChannel"
41993
+ },
41782
41994
  {
41783
41995
  "$ref": "#/components/schemas/OrganizationInviteLinksChannel"
41784
41996
  },
@@ -42290,6 +42502,9 @@
42290
42502
  },
42291
42503
  "task": {
42292
42504
  "$ref": "#/components/schemas/AIMessageTask"
42505
+ },
42506
+ "response": {
42507
+ "$ref": "#/components/schemas/AIMessageResponseMetadata"
42293
42508
  }
42294
42509
  },
42295
42510
  "required": [