@gitbook/api 0.143.0 → 0.143.2

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
@@ -6188,6 +6188,53 @@ paths:
6188
6188
  application/json:
6189
6189
  schema:
6190
6190
  $ref: "#/components/schemas/AgentsSetupState"
6191
+ "/orgs/{organizationId}/agent-instructions":
6192
+ get:
6193
+ operationId: getOrganizationAgentInstructions
6194
+ summary: Get Docs agent instructions for an organization
6195
+ tags:
6196
+ - organizations
6197
+ - agents
6198
+ security:
6199
+ - user: []
6200
+ parameters:
6201
+ - $ref: "#/components/parameters/organizationId"
6202
+ responses:
6203
+ "200":
6204
+ description: OK
6205
+ content:
6206
+ application/json:
6207
+ schema:
6208
+ $ref: "#/components/schemas/OrganizationAgentInstructions"
6209
+ put:
6210
+ operationId: updateOrganizationAgentInstructions
6211
+ summary: Update Docs agent instructions for an organization
6212
+ tags:
6213
+ - organizations
6214
+ - agents
6215
+ security:
6216
+ - user: []
6217
+ parameters:
6218
+ - $ref: "#/components/parameters/organizationId"
6219
+ requestBody:
6220
+ required: true
6221
+ content:
6222
+ application/json:
6223
+ schema:
6224
+ type: object
6225
+ required:
6226
+ - instructions
6227
+ properties:
6228
+ instructions:
6229
+ $ref: "#/components/schemas/JSONDocument"
6230
+ description: Document describing the Docs agent instructions.
6231
+ responses:
6232
+ "200":
6233
+ description: Updated instructions
6234
+ content:
6235
+ application/json:
6236
+ schema:
6237
+ $ref: "#/components/schemas/OrganizationAgentInstructions"
6191
6238
  "/orgs/{organizationId}/agent-tasks":
6192
6239
  get:
6193
6240
  operationId: listAgentTasks
@@ -6742,6 +6789,29 @@ paths:
6742
6789
  $ref: "#/components/responses/BadRequestError"
6743
6790
  "404":
6744
6791
  $ref: "#/components/responses/NotFoundError"
6792
+ "/org/{organizationId}/imports/{importRunId}/cancel":
6793
+ post:
6794
+ operationId: cancelImportRun
6795
+ summary: Cancel an import run
6796
+ tags:
6797
+ - imports
6798
+ x-internal: true
6799
+ security:
6800
+ - user-internal: []
6801
+ parameters:
6802
+ - $ref: "#/components/parameters/organizationId"
6803
+ - $ref: "#/components/parameters/importRunId"
6804
+ responses:
6805
+ "201":
6806
+ description: Import run canceled successfully.
6807
+ content:
6808
+ application/json:
6809
+ schema:
6810
+ $ref: "#/components/schemas/ContentImportRun"
6811
+ "400":
6812
+ $ref: "#/components/responses/BadRequestError"
6813
+ "404":
6814
+ $ref: "#/components/responses/NotFoundError"
6745
6815
  "/orgs/{organizationId}/sites":
6746
6816
  get:
6747
6817
  operationId: listSites
@@ -9511,9 +9581,17 @@ components:
9511
9581
  documentEvaluated:
9512
9582
  name: evaluated
9513
9583
  in: query
9514
- description: If `true` is passed, the document will be evaluated
9584
+ description: |
9585
+ Controls whether the document should be evaluated.
9586
+ - When set to `true`, the entire document will be evaluated.
9587
+ - When set to `deterministic-only`, only expressions that depend
9588
+ exclusively on deterministic inputs will be evaluated.
9515
9589
  schema:
9516
- type: boolean
9590
+ oneOf:
9591
+ - type: boolean
9592
+ - type: string
9593
+ enum:
9594
+ - deterministic-only
9517
9595
  default: false
9518
9596
  pagePath:
9519
9597
  name: pagePath
@@ -9779,6 +9857,13 @@ components:
9779
9857
  description: The unique ID of a font
9780
9858
  schema:
9781
9859
  type: string
9860
+ importRunId:
9861
+ name: importRunId
9862
+ in: path
9863
+ required: true
9864
+ description: The unique id of the import run
9865
+ schema:
9866
+ type: string
9782
9867
  shareLinkId:
9783
9868
  name: shareLinkId
9784
9869
  in: path
@@ -11046,6 +11131,8 @@ components:
11046
11131
  - $ref: "#/components/schemas/ContentRefFile"
11047
11132
  caption:
11048
11133
  type: string
11134
+ alt:
11135
+ type: string
11049
11136
  size:
11050
11137
  type: string
11051
11138
  enum:
@@ -12305,6 +12392,8 @@ components:
12305
12392
  - right
12306
12393
  fullWidth:
12307
12394
  type: boolean
12395
+ withFrame:
12396
+ type: boolean
12308
12397
  nodes:
12309
12398
  type: array
12310
12399
  items:
@@ -17343,6 +17432,7 @@ components:
17343
17432
  - sites-ads
17344
17433
  - sites-ai-search
17345
17434
  - sites-ai-assistant
17435
+ - sites-embed
17346
17436
  - sites-api-playground
17347
17437
  - sites-basic-customization
17348
17438
  - sites-custom-domain
@@ -19898,6 +19988,36 @@ components:
19898
19988
  - email
19899
19989
  - settings
19900
19990
  - stats
19991
+ OrganizationAgentInstructions:
19992
+ type: object
19993
+ properties:
19994
+ object:
19995
+ type: string
19996
+ enum:
19997
+ - agent-instructions
19998
+ instructions:
19999
+ $ref: "#/components/schemas/JSONDocument"
20000
+ description: Document containing the Docs agent instructions.
20001
+ updatedAt:
20002
+ $ref: "#/components/schemas/Timestamp"
20003
+ updatedBy:
20004
+ type: string
20005
+ description: Identifier of the member who last updated the instructions.
20006
+ urls:
20007
+ type: object
20008
+ description: URLs related to the custom instructions.
20009
+ properties:
20010
+ location:
20011
+ type: string
20012
+ description: Relative URL to the resource in the API.
20013
+ required:
20014
+ - location
20015
+ required:
20016
+ - object
20017
+ - instructions
20018
+ - updatedAt
20019
+ - updatedBy
20020
+ - urls
19901
20021
  AgentTaskStatus:
19902
20022
  type: string
19903
20023
  description: |
@@ -20305,27 +20425,20 @@ components:
20305
20425
  required:
20306
20426
  - type
20307
20427
  - files
20308
- ChangeRequestPointer:
20428
+ ContentImportTarget:
20309
20429
  type: object
20310
20430
  properties:
20311
- type:
20312
- type: string
20313
- enum:
20314
- - change-request
20315
20431
  space:
20316
20432
  type: string
20317
- description: Unique identifier for the space
20433
+ description: ID of the space to import in
20318
20434
  changeRequest:
20319
20435
  type: string
20320
- description: Unique identifier for the change request
20436
+ description: ID of the change request to import in
20437
+ page:
20438
+ type: string
20439
+ description: ID of the page to import in
20321
20440
  required:
20322
- - type
20323
20441
  - space
20324
- - changeRequest
20325
- ContentImportTarget:
20326
- oneOf:
20327
- - $ref: "#/components/schemas/SpacePointer"
20328
- - $ref: "#/components/schemas/ChangeRequestPointer"
20329
20442
  ContentImportRun:
20330
20443
  type: object
20331
20444
  properties:
@@ -20348,10 +20461,19 @@ components:
20348
20461
  - failed
20349
20462
  - cancelled
20350
20463
  pages:
20351
- description: Ids of the imported pages
20464
+ description: Imported pages
20352
20465
  type: array
20353
20466
  items:
20354
- type: string
20467
+ type: object
20468
+ properties:
20469
+ id:
20470
+ description: ID of page
20471
+ type: string
20472
+ sourceURL:
20473
+ description: Source URL where the page has been imported from
20474
+ type: string
20475
+ required:
20476
+ - id
20355
20477
  required:
20356
20478
  - id
20357
20479
  - status
@@ -21196,9 +21318,8 @@ components:
21196
21318
  - type: string
21197
21319
  enum:
21198
21320
  - settings
21199
- - publish-downgrade
21200
- - from-billing-modal
21201
- - payment-failed-modal
21321
+ - billing-page
21322
+ - end-of-trial
21202
21323
  SitePublishingAuth:
21203
21324
  allOf:
21204
21325
  - oneOf:
@@ -21535,6 +21656,63 @@ components:
21535
21656
  description: The output to the tool call.
21536
21657
  summary:
21537
21658
  $ref: "#/components/schemas/AIToolCallOtherSummary"
21659
+ AIMessageTask:
21660
+ oneOf:
21661
+ - type: object
21662
+ description: When the agent is responding to a comment.
21663
+ properties:
21664
+ type:
21665
+ type: string
21666
+ enum:
21667
+ - respond_to_comment
21668
+ spaceId:
21669
+ type: string
21670
+ description: The ID of the space to respond to the comment in.
21671
+ changeRequestId:
21672
+ type: string
21673
+ description: The ID of the change request to respond to the comment in.
21674
+ commentId:
21675
+ type: string
21676
+ description: The ID of the comment to respond to.
21677
+ required:
21678
+ - type
21679
+ - spaceId
21680
+ - commentId
21681
+ - type: object
21682
+ description: When the agent is reviewing a change request.
21683
+ properties:
21684
+ type:
21685
+ type: string
21686
+ enum:
21687
+ - review_change_request
21688
+ spaceId:
21689
+ type: string
21690
+ description: The ID of the space the change request is in.
21691
+ changeRequestId:
21692
+ type: string
21693
+ description: The ID of the change request to review.
21694
+ required:
21695
+ - type
21696
+ - spaceId
21697
+ - changeRequestId
21698
+ AIStreamResponseStart:
21699
+ type: object
21700
+ description: |
21701
+ Message emitted by the server to indicate the start of the AI response.
21702
+ properties:
21703
+ type:
21704
+ type: string
21705
+ enum:
21706
+ - response_start
21707
+ messageId:
21708
+ type: string
21709
+ description: |
21710
+ The ID of the message that this event is composing.
21711
+ task:
21712
+ $ref: "#/components/schemas/AIMessageTask"
21713
+ required:
21714
+ - type
21715
+ - messageId
21538
21716
  AIStreamResponseFinish:
21539
21717
  type: object
21540
21718
  description: |
@@ -21870,6 +22048,59 @@ components:
21870
22048
  - tool
21871
22049
  - spaceId
21872
22050
  - commentId
22051
+ AIToolCallReplyToComment:
22052
+ type: object
22053
+ properties:
22054
+ tool:
22055
+ type: string
22056
+ enum:
22057
+ - replyToComment
22058
+ spaceId:
22059
+ type: string
22060
+ description: The ID of the space being commented.
22061
+ page:
22062
+ description: The page being commented.
22063
+ $ref: "#/components/schemas/ChangedRevisionPage"
22064
+ commentId:
22065
+ type: string
22066
+ description: The ID of the comment being replied to.
22067
+ replyId:
22068
+ type: string
22069
+ description: The ID of the reply being posted.
22070
+ required:
22071
+ - tool
22072
+ - spaceId
22073
+ - commentId
22074
+ - replyId
22075
+ AIToolCallSubmitChangeRequestReview:
22076
+ type: object
22077
+ properties:
22078
+ tool:
22079
+ type: string
22080
+ enum:
22081
+ - submitChangeRequestReview
22082
+ spaceId:
22083
+ type: string
22084
+ description: The ID of the space where the review was submitted.
22085
+ changeRequestId:
22086
+ type: string
22087
+ description: The ID of the change request being reviewed.
22088
+ status:
22089
+ $ref: "#/components/schemas/ChangeRequestReviewStatus"
22090
+ description: Result of the review.
22091
+ reviewId:
22092
+ type: string
22093
+ description: Identifier of the review that was created.
22094
+ commentId:
22095
+ type: string
22096
+ description: Identifier of the comment that was created as part of the review.
22097
+ required:
22098
+ - tool
22099
+ - spaceId
22100
+ - changeRequestId
22101
+ - status
22102
+ - reviewId
22103
+ - commentId
21873
22104
  AIToolCallMCP:
21874
22105
  type: object
21875
22106
  description: Tool called from an MCP server
@@ -21918,6 +22149,8 @@ components:
21918
22149
  - $ref: "#/components/schemas/AIToolCallGetPageDiff"
21919
22150
  - $ref: "#/components/schemas/AIToolCallCreateAgentTask"
21920
22151
  - $ref: "#/components/schemas/AIToolCallComment"
22152
+ - $ref: "#/components/schemas/AIToolCallReplyToComment"
22153
+ - $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
21921
22154
  - $ref: "#/components/schemas/AIToolCallMCP"
21922
22155
  - $ref: "#/components/schemas/AIToolCallOther"
21923
22156
  AIStreamResponseToolCall:
@@ -22008,6 +22241,7 @@ components:
22008
22241
  - suggestions
22009
22242
  AIStreamResponse:
22010
22243
  oneOf:
22244
+ - $ref: "#/components/schemas/AIStreamResponseStart"
22011
22245
  - $ref: "#/components/schemas/AIStreamResponseFinish"
22012
22246
  - $ref: "#/components/schemas/AIStreamResponseDocument"
22013
22247
  - $ref: "#/components/schemas/AIStreamResponseObject"
@@ -25255,6 +25489,19 @@ components:
25255
25489
  required:
25256
25490
  - channel
25257
25491
  - organization
25492
+ OrganizationAgentInstructionsChannel:
25493
+ type: object
25494
+ description: Subscription channel for Docs agent instructions changes in an organization.
25495
+ properties:
25496
+ channel:
25497
+ type: string
25498
+ enum:
25499
+ - organization-agent-instructions
25500
+ organization:
25501
+ type: string
25502
+ required:
25503
+ - channel
25504
+ - organization
25258
25505
  OrganizationChangeRequestsChannel:
25259
25506
  type: object
25260
25507
  description: Subscription channel for all change requests in an organization.
@@ -25788,6 +26035,7 @@ components:
25788
26035
  - $ref: "#/components/schemas/OrganizationTranslationsChannel"
25789
26036
  - $ref: "#/components/schemas/OrganizationTranslationsGlossaryChannel"
25790
26037
  - $ref: "#/components/schemas/OrganizationCustomFontsChannel"
26038
+ - $ref: "#/components/schemas/OrganizationAgentInstructionsChannel"
25791
26039
  - $ref: "#/components/schemas/OrganizationChangeRequestsChannel"
25792
26040
  - $ref: "#/components/schemas/SpaceCommentsChannel"
25793
26041
  - $ref: "#/components/schemas/ChangeRequestCommentsChannel"
@@ -26057,6 +26305,8 @@ components:
26057
26305
  type: array
26058
26306
  items:
26059
26307
  $ref: "#/components/schemas/AIMessageStep"
26308
+ task:
26309
+ $ref: "#/components/schemas/AIMessageTask"
26060
26310
  required:
26061
26311
  - id
26062
26312
  - role