@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.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": {
@@ -14314,6 +14422,10 @@
14314
14422
  "spaceId": {
14315
14423
  "type": "string",
14316
14424
  "description": "The content that this site space points to. If not set, the space will remain unchanged."
14425
+ },
14426
+ "hidden": {
14427
+ "type": "boolean",
14428
+ "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."
14317
14429
  }
14318
14430
  }
14319
14431
  }
@@ -16878,6 +16990,25 @@
16878
16990
  "default": false
16879
16991
  }
16880
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
+ },
16881
17012
  "pagePath": {
16882
17013
  "name": "pagePath",
16883
17014
  "in": "path",
@@ -19018,6 +19149,10 @@
19018
19149
  },
19019
19150
  "file": {
19020
19151
  "type": "string"
19152
+ },
19153
+ "space": {
19154
+ "description": "ID of the space the file is in. The file is considered as in the current space if none is provided.",
19155
+ "type": "string"
19021
19156
  }
19022
19157
  },
19023
19158
  "required": [
@@ -22621,13 +22756,9 @@
22621
22756
  "short"
22622
22757
  ],
22623
22758
  "default": "full"
22624
- },
22625
- "sticky": {
22626
- "type": "boolean"
22627
22759
  }
22628
22760
  },
22629
22761
  "required": [
22630
- "sticky",
22631
22762
  "format"
22632
22763
  ],
22633
22764
  "additionalProperties": false
@@ -22889,6 +23020,15 @@
22889
23020
  "items": {
22890
23021
  "$ref": "#/components/schemas/DocumentBlocksTopLevels"
22891
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
+ }
22892
23032
  }
22893
23033
  },
22894
23034
  "required": [
@@ -22923,6 +23063,12 @@
22923
23063
  }
22924
23064
  ]
22925
23065
  },
23066
+ "RevisionPageSlug": {
23067
+ "type": "string",
23068
+ "description": "Page's slug in its direct parent",
23069
+ "minLength": 0,
23070
+ "maxLength": 100
23071
+ },
22926
23072
  "RevisionPageDocument": {
22927
23073
  "allOf": [
22928
23074
  {
@@ -22959,8 +23105,7 @@
22959
23105
  }
22960
23106
  },
22961
23107
  "slug": {
22962
- "description": "Page's slug in its direct parent",
22963
- "type": "string"
23108
+ "$ref": "#/components/schemas/RevisionPageSlug"
22964
23109
  },
22965
23110
  "path": {
22966
23111
  "description": "Complete path to access the page in the revision.",
@@ -30707,6 +30852,10 @@
30707
30852
  "format": "uri"
30708
30853
  }
30709
30854
  }
30855
+ },
30856
+ "hidden": {
30857
+ "type": "boolean",
30858
+ "description": "Whether the site space is hidden. If true, the site space will not be shown in the site's navigation."
30710
30859
  }
30711
30860
  },
30712
30861
  "required": [
@@ -31634,47 +31783,28 @@
31634
31783
  "percentOff"
31635
31784
  ]
31636
31785
  },
31637
- "SiteToMigrate": {
31786
+ "SitePageviews": {
31638
31787
  "type": "object",
31639
31788
  "properties": {
31640
31789
  "object": {
31641
31790
  "type": "string",
31642
31791
  "enum": [
31643
- "site-to-migrate"
31792
+ "site-pageviews"
31644
31793
  ]
31645
31794
  },
31646
- "site": {
31647
- "$ref": "#/components/schemas/Site"
31648
- },
31649
- "newType": {
31650
- "description": "The new type of the site",
31651
- "$ref": "#/components/schemas/SiteType"
31652
- },
31653
- "traffic": {
31654
- "type": "object",
31655
- "properties": {
31656
- "pageviews": {
31657
- "description": "Number of pageviews in the past 30 days",
31658
- "type": "number"
31659
- }
31660
- },
31661
- "required": [
31662
- "pageviews"
31663
- ]
31795
+ "siteId": {
31796
+ "type": "string",
31797
+ "description": "The identifier of the site"
31664
31798
  },
31665
- "features": {
31666
- "type": "array",
31667
- "items": {
31668
- "$ref": "#/components/schemas/SiteFeature"
31669
- }
31799
+ "pageviews": {
31800
+ "description": "Number of pageviews in the past 30 days",
31801
+ "type": "number"
31670
31802
  }
31671
31803
  },
31672
31804
  "required": [
31673
31805
  "object",
31674
- "site",
31675
- "newType",
31676
- "traffic",
31677
- "features"
31806
+ "siteId",
31807
+ "pageviews"
31678
31808
  ]
31679
31809
  },
31680
31810
  "BillingPortal": {
@@ -32436,6 +32566,15 @@
32436
32566
  "url"
32437
32567
  ]
32438
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
+ },
32439
32578
  "ConversationsIssuesCluster": {
32440
32579
  "type": "object",
32441
32580
  "properties": {
@@ -32463,8 +32602,14 @@
32463
32602
  "$ref": "#/components/schemas/Icon"
32464
32603
  },
32465
32604
  "summary": {
32466
- "type": "string",
32467
- "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"
32468
32613
  },
32469
32614
  "weeklyPulse": {
32470
32615
  "type": "array",
@@ -32521,6 +32666,8 @@
32521
32666
  "label",
32522
32667
  "summary",
32523
32668
  "icon",
32669
+ "muted",
32670
+ "impact",
32524
32671
  "sources",
32525
32672
  "stats",
32526
32673
  "weeklyPulse",
@@ -32572,6 +32719,9 @@
32572
32719
  "source": {
32573
32720
  "$ref": "#/components/schemas/ConversationSource"
32574
32721
  },
32722
+ "impact": {
32723
+ "$ref": "#/components/schemas/ConversationIssueImpact"
32724
+ },
32575
32725
  "urls": {
32576
32726
  "type": "object",
32577
32727
  "description": "URLs associated with the conversation",
@@ -32597,6 +32747,7 @@
32597
32747
  "id",
32598
32748
  "createdAt",
32599
32749
  "source",
32750
+ "impact",
32600
32751
  "urls"
32601
32752
  ]
32602
32753
  },
@@ -32701,9 +32852,11 @@
32701
32852
  "type": "string",
32702
32853
  "description": "The title of the conversation issue"
32703
32854
  },
32704
- "summary": {
32705
- "type": "string",
32706
- "description": "The summary of the conversation issue"
32855
+ "details": {
32856
+ "$ref": "#/components/schemas/JSONDocument"
32857
+ },
32858
+ "impact": {
32859
+ "$ref": "#/components/schemas/ConversationIssueImpact"
32707
32860
  },
32708
32861
  "createdAt": {
32709
32862
  "$ref": "#/components/schemas/Timestamp"
@@ -32738,7 +32891,8 @@
32738
32891
  "object",
32739
32892
  "id",
32740
32893
  "title",
32741
- "summary",
32894
+ "details",
32895
+ "impact",
32742
32896
  "createdAt",
32743
32897
  "ingestedAt",
32744
32898
  "conversation",
@@ -35181,6 +35335,31 @@
35181
35335
  "spaceId",
35182
35336
  "changeRequestId"
35183
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
+ ]
35184
35363
  }
35185
35364
  ]
35186
35365
  },
@@ -35207,6 +35386,23 @@
35207
35386
  "messageId"
35208
35387
  ]
35209
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
+ },
35210
35406
  "AIStreamResponseFinish": {
35211
35407
  "type": "object",
35212
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",
@@ -35223,13 +35419,18 @@
35223
35419
  },
35224
35420
  "responseId": {
35225
35421
  "type": "string",
35422
+ "deprecated": true,
35226
35423
  "description": "The ID of the response"
35424
+ },
35425
+ "response": {
35426
+ "$ref": "#/components/schemas/AIMessageResponseMetadata"
35227
35427
  }
35228
35428
  },
35229
35429
  "required": [
35230
35430
  "type",
35231
35431
  "messageId",
35232
- "responseId"
35432
+ "responseId",
35433
+ "response"
35233
35434
  ]
35234
35435
  },
35235
35436
  "AIStreamResponseDocument": {
@@ -36575,7 +36776,8 @@
36575
36776
  "sidebar",
36576
36777
  "ad",
36577
36778
  "footer",
36578
- "pdf"
36779
+ "pdf",
36780
+ "embed"
36579
36781
  ]
36580
36782
  },
36581
36783
  "SiteInsightsEventTrademarkClick": {
@@ -40685,6 +40887,25 @@
40685
40887
  "organization"
40686
40888
  ]
40687
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
+ },
40688
40909
  "OrganizationInviteLinksChannel": {
40689
40910
  "type": "object",
40690
40911
  "properties": {
@@ -41767,6 +41988,9 @@
41767
41988
  {
41768
41989
  "$ref": "#/components/schemas/OrganizationInfoChannel"
41769
41990
  },
41991
+ {
41992
+ "$ref": "#/components/schemas/OrganizationAgentDataChannel"
41993
+ },
41770
41994
  {
41771
41995
  "$ref": "#/components/schemas/OrganizationInviteLinksChannel"
41772
41996
  },
@@ -42278,6 +42502,9 @@
42278
42502
  },
42279
42503
  "task": {
42280
42504
  "$ref": "#/components/schemas/AIMessageTask"
42505
+ },
42506
+ "response": {
42507
+ "$ref": "#/components/schemas/AIMessageResponseMetadata"
42281
42508
  }
42282
42509
  },
42283
42510
  "required": [