@gitbook/api 0.147.0 → 0.148.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
@@ -173,6 +173,12 @@ tags:
173
173
  x-parent: sites
174
174
  description: |
175
175
  This API delivers insights about how visitors interact with your site, including page views and user engagement, helping you measure and optimize your content strategy.
176
+ - name: site-ai
177
+ x-page-title: Site AI
178
+ x-page-description: Build conversational AI agents for your docs site.
179
+ x-parent: sites
180
+ description: |
181
+ Build advanced conversational AI experiences within your docs site that go beyond basic Q&A.
176
182
  - name: site-ask
177
183
  x-page-title: Site AI ask
178
184
  x-page-description: Allow AI-driven queries within a specific docs site.
@@ -1513,31 +1519,15 @@ paths:
1513
1519
  content:
1514
1520
  application/json:
1515
1521
  schema:
1516
- allOf:
1517
- - type: object
1518
- properties:
1519
- subject:
1520
- type: string
1521
- description: Subject of the change-request
1522
- - anyOf:
1523
- - type: object
1524
- properties: {}
1525
- additionalProperties: true
1526
- - oneOf:
1527
- - type: object
1528
- properties:
1529
- agentTaskId:
1530
- type: string
1531
- description: ID of the agent task to implement
1532
- required:
1533
- - agentTaskId
1534
- - type: object
1535
- properties:
1536
- template:
1537
- $ref: "#/components/schemas/ApplySpaceTemplate"
1538
- description: Template to apply to the change request
1539
- required:
1540
- - template
1522
+ type: object
1523
+ properties:
1524
+ subject:
1525
+ type: string
1526
+ description: Subject of the change-request
1527
+ template:
1528
+ $ref: "#/components/schemas/ApplySpaceTemplate"
1529
+ description: Template to apply to the change request
1530
+ additionalProperties: true
1541
1531
  get:
1542
1532
  operationId: listChangeRequestsForSpace
1543
1533
  summary: List all change requests
@@ -6011,17 +6001,6 @@ paths:
6011
6001
  - updatedAt
6012
6002
  - issues
6013
6003
  - conversations
6014
- - tasksTotal
6015
- - tasksBacklog
6016
- - tasksStarted
6017
- - name: status
6018
- in: query
6019
- description: Filter by status
6020
- schema:
6021
- type: string
6022
- enum:
6023
- - pending
6024
- - analysing
6025
6004
  security:
6026
6005
  - user: []
6027
6006
  responses:
@@ -6243,7 +6222,7 @@ paths:
6243
6222
  content:
6244
6223
  application/json:
6245
6224
  schema:
6246
- $ref: "#/components/schemas/AgentsSetupState"
6225
+ $ref: "#/components/schemas/AgentSetupState"
6247
6226
  "/orgs/{organizationId}/agent-instructions":
6248
6227
  get:
6249
6228
  operationId: getOrganizationAgentInstructions
@@ -6291,105 +6270,6 @@ paths:
6291
6270
  application/json:
6292
6271
  schema:
6293
6272
  $ref: "#/components/schemas/OrganizationAgentInstructions"
6294
- "/orgs/{organizationId}/agent-tasks":
6295
- get:
6296
- operationId: listAgentTasks
6297
- summary: List agent tasks
6298
- tags:
6299
- - agents
6300
- parameters:
6301
- - $ref: "#/components/parameters/organizationId"
6302
- - $ref: "#/components/parameters/listPage"
6303
- - $ref: "#/components/parameters/listLimit"
6304
- - name: cluster
6305
- in: query
6306
- description: The ID of the conversations issues cluster to filter the agent tasks by
6307
- schema:
6308
- type: string
6309
- - name: space
6310
- in: query
6311
- description: The ID of the space to filter the agent tasks by
6312
- schema:
6313
- type: string
6314
- - name: status
6315
- in: query
6316
- description: The statuses of the agent tasks to filter by
6317
- schema:
6318
- type: array
6319
- items:
6320
- $ref: "#/components/schemas/AgentTaskStatus"
6321
- security:
6322
- - user: []
6323
- responses:
6324
- "200":
6325
- description: OK
6326
- content:
6327
- application/json:
6328
- schema:
6329
- allOf:
6330
- - $ref: "#/components/schemas/List"
6331
- - type: object
6332
- required:
6333
- - items
6334
- properties:
6335
- items:
6336
- type: array
6337
- items:
6338
- $ref: "#/components/schemas/AgentTask"
6339
- "404":
6340
- $ref: "#/components/responses/NotFoundError"
6341
- "/orgs/{organizationId}/agent-tasks/{agentTaskId}":
6342
- get:
6343
- operationId: getAgentTask
6344
- summary: Get an agent task by its identifier
6345
- tags:
6346
- - agents
6347
- parameters:
6348
- - $ref: "#/components/parameters/organizationId"
6349
- - $ref: "#/components/parameters/agentTaskId"
6350
- security:
6351
- - user: []
6352
- responses:
6353
- "200":
6354
- description: OK
6355
- content:
6356
- application/json:
6357
- schema:
6358
- $ref: "#/components/schemas/AgentTask"
6359
- "404":
6360
- $ref: "#/components/responses/NotFoundError"
6361
- patch:
6362
- operationId: updateAgentTask
6363
- summary: Update an agent task by its identifier
6364
- tags:
6365
- - agents
6366
- parameters:
6367
- - $ref: "#/components/parameters/organizationId"
6368
- - $ref: "#/components/parameters/agentTaskId"
6369
- security:
6370
- - user: []
6371
- requestBody:
6372
- required: true
6373
- content:
6374
- application/json:
6375
- schema:
6376
- type: object
6377
- properties:
6378
- status:
6379
- type: string
6380
- enum:
6381
- - backlog
6382
- - started
6383
- - canceled
6384
- required:
6385
- - status
6386
- responses:
6387
- "200":
6388
- description: OK
6389
- content:
6390
- application/json:
6391
- schema:
6392
- $ref: "#/components/schemas/AgentTask"
6393
6273
  "/orgs/{organizationId}/translations":
6394
6274
  get:
6395
6275
  operationId: listTranslations
@@ -6830,6 +6710,10 @@ paths:
6830
6710
  $ref: "#/components/schemas/ContentImportSource"
6831
6711
  target:
6832
6712
  $ref: "#/components/schemas/ContentImportTarget"
6713
+ enhance:
6714
+ description: Enhance the imported content with AI
6715
+ default: true
6716
+ type: boolean
6833
6717
  required:
6834
6718
  - source
6835
6719
  - target
@@ -8714,7 +8598,7 @@ paths:
8714
8598
  description: |
8715
8599
  Generate an AI response in a conversation.
8716
8600
  tags:
8717
- - sites
8601
+ - site-ai
8718
8602
  security:
8719
8603
  - user: []
8720
8604
  parameters:
@@ -8760,7 +8644,7 @@ paths:
8760
8644
  description: |
8761
8645
  Experimental operation to get an existing AI response in a site.
8762
8646
  tags:
8763
- - sites
8647
+ - site-ai
8764
8648
  x-internal: true
8765
8649
  security:
8766
8650
  - user: []
@@ -9900,13 +9784,6 @@ components:
9900
9784
  description: Identifier of the conversation
9901
9785
  schema:
9902
9786
  type: string
9903
- agentTaskId:
9904
- name: agentTaskId
9905
- in: path
9906
- required: true
9907
- description: The unique id of the agent task
9908
- schema:
9909
- type: string
9910
9787
  translationId:
9911
9788
  name: translationId
9912
9789
  in: path
@@ -13202,6 +13079,7 @@ components:
13202
13079
  - $ref: "#/components/schemas/DocumentBlockQuote"
13203
13080
  - $ref: "#/components/schemas/DocumentBlockMath"
13204
13081
  - $ref: "#/components/schemas/DocumentBlockIntegration"
13082
+ - $ref: "#/components/schemas/DocumentBlockExpandable"
13205
13083
  data:
13206
13084
  type: object
13207
13085
  properties:
@@ -13274,6 +13152,7 @@ components:
13274
13152
  - $ref: "#/components/schemas/DocumentBlockMath"
13275
13153
  - $ref: "#/components/schemas/DocumentBlockQuote"
13276
13154
  - $ref: "#/components/schemas/DocumentBlockTable"
13155
+ - $ref: "#/components/schemas/DocumentBlockExpandable"
13277
13156
  isVoid:
13278
13157
  type: boolean
13279
13158
  enum:
@@ -14616,12 +14495,6 @@ components:
14616
14495
  $ref: "#/components/schemas/BlockReason"
14617
14496
  required:
14618
14497
  - reason
14619
- internal_isOnNewTrial:
14620
- type: boolean
14621
- description: Deprecated. Always true. All organizations are on new trials.
14622
- deprecated: true
14623
- enum:
14624
- - true
14625
14498
  internal_billingMigration:
14626
14499
  type: object
14627
14500
  properties:
@@ -19845,29 +19718,9 @@ components:
19845
19718
  conversations:
19846
19719
  type: number
19847
19720
  description: The number of conversations in the conversations issues cluster
19848
- tasksTotal:
19849
- type: number
19850
- description: The number of tasks in the conversations issues cluster
19851
- tasksBacklog:
19852
- type: number
19853
- description: The number of tasks in the backlog in the conversations issues cluster
19854
- tasksStarted:
19855
- type: number
19856
- description: The number of tasks done in the conversations issues cluster
19857
- tasksCompleted:
19858
- type: number
19859
- description: The number of tasks completed in the conversations issues cluster
19860
- tasksCancelled:
19861
- type: number
19862
- description: The number of tasks canceled in the conversations issues cluster
19863
19721
  required:
19864
19722
  - issues
19865
19723
  - conversations
19866
- - tasksTotal
19867
- - tasksBacklog
19868
- - tasksStarted
19869
- - tasksCompleted
19870
- - tasksCancelled
19871
19724
  urls:
19872
19725
  type: object
19873
19726
  description: URLs associated with the conversations issues cluster
@@ -19876,12 +19729,7 @@ components:
19876
19729
  type: string
19877
19730
  description: URL of the conversations issues cluster in the API
19878
19731
  format: uri
19879
- app:
19880
- type: string
19881
- description: URL of the conversations issues cluster in the application
19882
- format: uri
19883
19732
  required:
19884
- - app
19885
19733
  - location
19886
19734
  required:
19887
19735
  - object
@@ -20047,7 +19895,7 @@ components:
20047
19895
  - ingestedAt
20048
19896
  - conversation
20049
19897
  - urls
20050
- AgentsSetupState:
19898
+ AgentSetupState:
20051
19899
  type: object
20052
19900
  description: State and settings of the agent
20053
19901
  properties:
@@ -20058,18 +19906,6 @@ components:
20058
19906
  type: object
20059
19907
  description: The stats of the agent.
20060
19908
  properties:
20061
- backlogTasks:
20062
- type: number
20063
- description: The number of tasks in the backlog.
20064
- startedTasks:
20065
- type: number
20066
- description: The number of tasks in progress.
20067
- completedTasks:
20068
- type: number
20069
- description: The number of tasks that have been completed.
20070
- canceledTasks:
20071
- type: number
20072
- description: The number of tasks that have been canceled.
20073
19909
  conversations:
20074
19910
  type: number
20075
19911
  description: The number of conversations the agent has indexed.
@@ -20078,17 +19914,13 @@ components:
20078
19914
  description: The number of issues the agent has indexed.
20079
19915
  issuesClusters:
20080
19916
  type: number
20081
- description: The number of issues clusters the agent has indexed.
19917
+ description: The number of issue clusters the agent has indexed.
20082
19918
  sources:
20083
19919
  type: object
20084
19920
  additionalProperties:
20085
19921
  type: number
20086
19922
  description: The number of conversations ingested for the source
20087
19923
  required:
20088
- - backlogTasks
20089
- - startedTasks
20090
- - completedTasks
20091
- - canceledTasks
20092
19924
  - conversations
20093
19925
  - issues
20094
19926
  - issuesClusters
@@ -20132,74 +19964,6 @@ components:
20132
19964
  - updatedAt
20133
19965
  - updatedBy
20134
19966
  - urls
20135
- AgentTaskStatus:
20136
- type: string
20137
- description: |
20138
- The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `started`: The task is open, a change request is associated with it. - `completed`: The task is completed. - `canceled`: The task has been canceled by a human.
20139
- enum:
20140
- - backlog
20141
- - started
20142
- - completed
20143
- - canceled
20144
- AgentTask:
20145
- type: object
20146
- properties:
20147
- object:
20148
- type: string
20149
- enum:
20150
- - agent-task
20151
- id:
20152
- type: string
20153
- description: The ID of the agent task
20154
- title:
20155
- type: string
20156
- description: The title of the agent task
20157
- description:
20158
- type: string
20159
- description: The description of the agent task
20160
- instructions:
20161
- $ref: "#/components/schemas/JSONDocument"
20162
- status:
20163
- $ref: "#/components/schemas/AgentTaskStatus"
20164
- createdAt:
20165
- $ref: "#/components/schemas/Timestamp"
20166
- updatedAt:
20167
- $ref: "#/components/schemas/Timestamp"
20168
- cluster:
20169
- type: string
20170
- description: ID of the cluster the agent task is associated with.
20171
- space:
20172
- type: string
20173
- description: ID of the space the agent task will act on.
20174
- changeRequest:
20175
- type: string
20176
- description: ID of the change request the agent task is associated with.
20177
- urls:
20178
- type: object
20179
- description: URLs associated with the agent task
20180
- properties:
20181
- location:
20182
- type: string
20183
- description: URL of the agent task in the API
20184
- format: uri
20185
- app:
20186
- type: string
20187
- description: URL of the agent task in the application
20188
- format: uri
20189
- required:
20190
- - app
20191
- - location
20192
- required:
20193
- - object
20194
- - id
20195
- - title
20196
- - description
20197
- - instructions
20198
- - space
20199
- - status
20200
- - createdAt
20201
- - updatedAt
20202
- - urls
20203
19967
  TranslationStatus:
20204
19968
  type: string
20205
19969
  enum:
@@ -20532,7 +20296,9 @@ components:
20532
20296
  enum:
20533
20297
  - file
20534
20298
  files:
20299
+ description: Files to import
20535
20300
  type: array
20301
+ maxItems: 50
20536
20302
  items:
20537
20303
  description: Key of file
20538
20304
  type: string
@@ -20575,7 +20341,7 @@ components:
20575
20341
  - failed
20576
20342
  - cancelled
20577
20343
  pages:
20578
- description: Imported pages
20344
+ description: Pages included in the import
20579
20345
  type: array
20580
20346
  items:
20581
20347
  type: object
@@ -20586,8 +20352,22 @@ components:
20586
20352
  sourceURL:
20587
20353
  description: Source URL where the page has been imported from
20588
20354
  type: string
20355
+ type:
20356
+ description: Type of page
20357
+ type: string
20358
+ enum:
20359
+ - page
20360
+ - folder
20361
+ status:
20362
+ description: Status of the page
20363
+ type: string
20364
+ enum:
20365
+ - complete
20366
+ - pending
20589
20367
  required:
20590
20368
  - id
20369
+ - type
20370
+ - status
20591
20371
  required:
20592
20372
  - id
20593
20373
  - status
@@ -25108,6 +24888,16 @@ components:
25108
24888
  type: array
25109
24889
  items:
25110
24890
  $ref: "#/components/schemas/InputFile"
24891
+ BillingStatus:
24892
+ type: string
24893
+ enum:
24894
+ - trialing
24895
+ - active
24896
+ - past_due
24897
+ - incomplete_expired
24898
+ - canceled
24899
+ - unpaid
24900
+ - paused
25111
24901
  APIIntegrationScope:
25112
24902
  type: string
25113
24903
  enum:
@@ -26101,38 +25891,6 @@ components:
26101
25891
  required:
26102
25892
  - channel
26103
25893
  - translation
26104
- AgentTaskChannel:
26105
- type: object
26106
- description: Subscription channel for an agent task.
26107
- properties:
26108
- channel:
26109
- type: string
26110
- enum:
26111
- - agent-task
26112
- organization:
26113
- type: string
26114
- description: The ID of the organization.
26115
- agentTask:
26116
- type: string
26117
- description: The ID of the agent task.
26118
- required:
26119
- - channel
26120
- - organization
26121
- - agentTask
26122
- AgentTasksChannel:
26123
- type: object
26124
- description: Subscription channel for agent tasks.
26125
- properties:
26126
- channel:
26127
- type: string
26128
- enum:
26129
- - agent-tasks
26130
- organization:
26131
- type: string
26132
- description: The ID of the organization.
26133
- required:
26134
- - channel
26135
- - organization
26136
25894
  ImportRunChannel:
26137
25895
  type: object
26138
25896
  properties:
@@ -26216,8 +25974,6 @@ components:
26216
25974
  - $ref: "#/components/schemas/SubdomainChannel"
26217
25975
  - $ref: "#/components/schemas/TranslationChannel"
26218
25976
  - $ref: "#/components/schemas/TranslationRunChannel"
26219
- - $ref: "#/components/schemas/AgentTaskChannel"
26220
- - $ref: "#/components/schemas/AgentTasksChannel"
26221
25977
  - $ref: "#/components/schemas/ImportRunChannel"
26222
25978
  discriminator:
26223
25979
  propertyName: channel
@@ -26614,6 +26370,8 @@ components:
26614
26370
  $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
26615
26371
  OpenAPISpecSourceURL:
26616
26372
  $ref: "#/components/schemas/URL"
26373
+ AgentsSetupState:
26374
+ $ref: "#/components/schemas/AgentSetupState"
26617
26375
  responses:
26618
26376
  NotFoundError:
26619
26377
  description: Not Found