@gitbook/api 0.145.0 → 0.147.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
@@ -1572,7 +1572,20 @@
1572
1572
  "content": {
1573
1573
  "application/json": {
1574
1574
  "schema": {
1575
- "$ref": "#/components/schemas/ApplySpaceTemplate"
1575
+ "allOf": [
1576
+ {
1577
+ "$ref": "#/components/schemas/ApplySpaceTemplate"
1578
+ },
1579
+ {
1580
+ "type": "object",
1581
+ "properties": {
1582
+ "changeRequestId": {
1583
+ "type": "string",
1584
+ "description": "The ID of the change request to apply the template to. If not provided, the template is applied to the main content."
1585
+ }
1586
+ }
1587
+ }
1588
+ ]
1576
1589
  }
1577
1590
  }
1578
1591
  }
@@ -2275,17 +2288,54 @@
2275
2288
  "content": {
2276
2289
  "application/json": {
2277
2290
  "schema": {
2278
- "type": "object",
2279
- "properties": {
2280
- "subject": {
2281
- "type": "string",
2282
- "description": "Subject of the change-request"
2291
+ "allOf": [
2292
+ {
2293
+ "type": "object",
2294
+ "properties": {
2295
+ "subject": {
2296
+ "type": "string",
2297
+ "description": "Subject of the change-request"
2298
+ }
2299
+ }
2283
2300
  },
2284
- "agentTaskId": {
2285
- "type": "string",
2286
- "description": "ID of the agent task to implement"
2301
+ {
2302
+ "anyOf": [
2303
+ {
2304
+ "type": "object",
2305
+ "properties": {},
2306
+ "additionalProperties": true
2307
+ },
2308
+ {
2309
+ "oneOf": [
2310
+ {
2311
+ "type": "object",
2312
+ "properties": {
2313
+ "agentTaskId": {
2314
+ "type": "string",
2315
+ "description": "ID of the agent task to implement"
2316
+ }
2317
+ },
2318
+ "required": [
2319
+ "agentTaskId"
2320
+ ]
2321
+ },
2322
+ {
2323
+ "type": "object",
2324
+ "properties": {
2325
+ "template": {
2326
+ "$ref": "#/components/schemas/ApplySpaceTemplate",
2327
+ "description": "Template to apply to the change request"
2328
+ }
2329
+ },
2330
+ "required": [
2331
+ "template"
2332
+ ]
2333
+ }
2334
+ ]
2335
+ }
2336
+ ]
2287
2337
  }
2288
- }
2338
+ ]
2289
2339
  }
2290
2340
  }
2291
2341
  }
@@ -15351,7 +15401,6 @@
15351
15401
  "tags": [
15352
15402
  "sites"
15353
15403
  ],
15354
- "x-internal": true,
15355
15404
  "security": [
15356
15405
  {
15357
15406
  "user": []
@@ -18415,6 +18464,21 @@
18415
18464
  "$ref": "#/components/schemas/SearchSectionResult"
18416
18465
  }
18417
18466
  },
18467
+ "ancestors": {
18468
+ "type": "array",
18469
+ "description": "Data about the ancestors of the current page, from top-level to direct parent.",
18470
+ "items": {
18471
+ "type": "object",
18472
+ "properties": {
18473
+ "title": {
18474
+ "type": "string"
18475
+ }
18476
+ },
18477
+ "required": [
18478
+ "title"
18479
+ ]
18480
+ }
18481
+ },
18418
18482
  "urls": {
18419
18483
  "type": "object",
18420
18484
  "description": "URLs associated with the object",
@@ -18434,6 +18498,7 @@
18434
18498
  "id",
18435
18499
  "title",
18436
18500
  "path",
18501
+ "ancestors",
18437
18502
  "urls"
18438
18503
  ]
18439
18504
  },
@@ -20202,6 +20267,10 @@
20202
20267
  },
20203
20268
  "objectFit": {
20204
20269
  "$ref": "#/components/schemas/CardsImageObjectFit"
20270
+ },
20271
+ "alt": {
20272
+ "type": "string",
20273
+ "description": "Alternative text for the cover image"
20205
20274
  }
20206
20275
  },
20207
20276
  "required": [
@@ -23061,6 +23130,10 @@
23061
23130
  "properties": {
23062
23131
  "models": {
23063
23132
  "type": "boolean"
23133
+ },
23134
+ "downloadLink": {
23135
+ "type": "boolean",
23136
+ "description": "Whether to show a link to download the OpenAPI spec."
23064
23137
  }
23065
23138
  },
23066
23139
  "required": [
@@ -23441,6 +23514,13 @@
23441
23514
  "description": "Vertical position of the cover image.",
23442
23515
  "type": "number",
23443
23516
  "default": 0
23517
+ },
23518
+ "height": {
23519
+ "description": "Height of the cover image in pixels.",
23520
+ "type": "number",
23521
+ "minimum": 10,
23522
+ "maximum": 700,
23523
+ "default": 240
23444
23524
  }
23445
23525
  },
23446
23526
  "required": [
@@ -25010,7 +25090,7 @@
25010
25090
  "type": "string",
25011
25091
  "minLength": 1,
25012
25092
  "maxLength": 100,
25013
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
25093
+ "pattern": "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$"
25014
25094
  },
25015
25095
  "OpenAPISpecProcessingState": {
25016
25096
  "description": "Processing state",
@@ -31158,6 +31238,7 @@
31158
31238
  "$ref": "#/components/schemas/SiteType"
31159
31239
  }
31160
31240
  },
31241
+ "additionalProperties": false,
31161
31242
  "required": [
31162
31243
  "id",
31163
31244
  "type"
@@ -31171,15 +31252,36 @@
31171
31252
  "type": "string"
31172
31253
  },
31173
31254
  "isPublished": {
31174
- "description": "Can be set to `false` to unpublish a site",
31175
- "type": "boolean",
31176
- "enum": [
31177
- false
31178
- ]
31255
+ "description": "Can be set to `false` or `true` to either unpublish or publish a site",
31256
+ "type": "boolean"
31257
+ }
31258
+ },
31259
+ "additionalProperties": false,
31260
+ "required": [
31261
+ "id",
31262
+ "isPublished"
31263
+ ]
31264
+ },
31265
+ {
31266
+ "type": "object",
31267
+ "properties": {
31268
+ "id": {
31269
+ "description": "The site identifier",
31270
+ "type": "string"
31271
+ },
31272
+ "type": {
31273
+ "description": "The site type to migrate to",
31274
+ "$ref": "#/components/schemas/SiteType"
31275
+ },
31276
+ "isPublished": {
31277
+ "description": "Can be set to `false` or `true` to either unpublish or publish a site",
31278
+ "type": "boolean"
31179
31279
  }
31180
31280
  },
31281
+ "additionalProperties": false,
31181
31282
  "required": [
31182
31283
  "id",
31284
+ "type",
31183
31285
  "isPublished"
31184
31286
  ]
31185
31287
  }
@@ -35516,6 +35618,80 @@
35516
35618
  "page"
35517
35619
  ]
35518
35620
  },
35621
+ "AIToolCallCreateReusableContent": {
35622
+ "type": "object",
35623
+ "properties": {
35624
+ "tool": {
35625
+ "type": "string",
35626
+ "enum": [
35627
+ "createReusableContent"
35628
+ ]
35629
+ },
35630
+ "spaceId": {
35631
+ "type": "string",
35632
+ "description": "The ID of the space being edited."
35633
+ },
35634
+ "reusableContent": {
35635
+ "$ref": "#/components/schemas/ChangedRevisionReusableContent"
35636
+ }
35637
+ },
35638
+ "required": [
35639
+ "tool",
35640
+ "spaceId",
35641
+ "reusableContent"
35642
+ ]
35643
+ },
35644
+ "AIToolCallEditReusableContent": {
35645
+ "type": "object",
35646
+ "properties": {
35647
+ "tool": {
35648
+ "type": "string",
35649
+ "enum": [
35650
+ "editReusableContent"
35651
+ ]
35652
+ },
35653
+ "spaceId": {
35654
+ "type": "string",
35655
+ "description": "The ID of the space being edited."
35656
+ },
35657
+ "reusableContent": {
35658
+ "$ref": "#/components/schemas/ChangedRevisionReusableContent"
35659
+ }
35660
+ },
35661
+ "required": [
35662
+ "tool",
35663
+ "spaceId",
35664
+ "reusableContent"
35665
+ ]
35666
+ },
35667
+ "AIToolCallGetReusableContent": {
35668
+ "type": "object",
35669
+ "properties": {
35670
+ "tool": {
35671
+ "type": "string",
35672
+ "enum": [
35673
+ "getReusableContent"
35674
+ ]
35675
+ },
35676
+ "spaceId": {
35677
+ "type": "string",
35678
+ "description": "The ID of the space being accessed."
35679
+ },
35680
+ "revisionId": {
35681
+ "type": "string",
35682
+ "description": "The ID of the revision within which the reusable content is being fetched."
35683
+ },
35684
+ "reusableContent": {
35685
+ "$ref": "#/components/schemas/ChangedRevisionReusableContent"
35686
+ }
35687
+ },
35688
+ "required": [
35689
+ "tool",
35690
+ "spaceId",
35691
+ "reusableContent",
35692
+ "revisionId"
35693
+ ]
35694
+ },
35519
35695
  "AIToolCallCreateChangeRequest": {
35520
35696
  "type": "object",
35521
35697
  "properties": {
@@ -35746,6 +35922,15 @@
35746
35922
  {
35747
35923
  "$ref": "#/components/schemas/AIToolCallGetPageDiff"
35748
35924
  },
35925
+ {
35926
+ "$ref": "#/components/schemas/AIToolCallCreateReusableContent"
35927
+ },
35928
+ {
35929
+ "$ref": "#/components/schemas/AIToolCallEditReusableContent"
35930
+ },
35931
+ {
35932
+ "$ref": "#/components/schemas/AIToolCallGetReusableContent"
35933
+ },
35749
35934
  {
35750
35935
  "$ref": "#/components/schemas/AIToolCallCreateChangeRequest"
35751
35936
  },
package/spec/openapi.yaml CHANGED
@@ -1135,7 +1135,13 @@ paths:
1135
1135
  content:
1136
1136
  application/json:
1137
1137
  schema:
1138
- $ref: "#/components/schemas/ApplySpaceTemplate"
1138
+ allOf:
1139
+ - $ref: "#/components/schemas/ApplySpaceTemplate"
1140
+ - type: object
1141
+ properties:
1142
+ changeRequestId:
1143
+ type: string
1144
+ description: The ID of the change request to apply the template to. If not provided, the template is applied to the main content.
1139
1145
  "/spaces/{spaceId}/content/pages":
1140
1146
  get:
1141
1147
  operationId: listPages
@@ -1507,14 +1513,31 @@ paths:
1507
1513
  content:
1508
1514
  application/json:
1509
1515
  schema:
1510
- type: object
1511
- properties:
1512
- subject:
1513
- type: string
1514
- description: Subject of the change-request
1515
- agentTaskId:
1516
- type: string
1517
- description: ID of the agent task to implement
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
1518
1541
  get:
1519
1542
  operationId: listChangeRequestsForSpace
1520
1543
  summary: List all change requests
@@ -8692,7 +8715,6 @@ paths:
8692
8715
  Generate an AI response in a conversation.
8693
8716
  tags:
8694
8717
  - sites
8695
- x-internal: true
8696
8718
  security:
8697
8719
  - user: []
8698
8720
  parameters:
@@ -10710,6 +10732,16 @@ components:
10710
10732
  type: array
10711
10733
  items:
10712
10734
  $ref: "#/components/schemas/SearchSectionResult"
10735
+ ancestors:
10736
+ type: array
10737
+ description: Data about the ancestors of the current page, from top-level to direct parent.
10738
+ items:
10739
+ type: object
10740
+ properties:
10741
+ title:
10742
+ type: string
10743
+ required:
10744
+ - title
10713
10745
  urls:
10714
10746
  type: object
10715
10747
  description: URLs associated with the object
@@ -10724,6 +10756,7 @@ components:
10724
10756
  - id
10725
10757
  - title
10726
10758
  - path
10759
+ - ancestors
10727
10760
  - urls
10728
10761
  UpdateSpaceGitInfo:
10729
10762
  type: object
@@ -11894,6 +11927,9 @@ components:
11894
11927
  - $ref: "#/components/schemas/ContentRefURL"
11895
11928
  objectFit:
11896
11929
  $ref: "#/components/schemas/CardsImageObjectFit"
11930
+ alt:
11931
+ type: string
11932
+ description: Alternative text for the cover image
11897
11933
  required:
11898
11934
  - ref
11899
11935
  DocumentTableRecord:
@@ -13607,6 +13643,9 @@ components:
13607
13643
  properties:
13608
13644
  models:
13609
13645
  type: boolean
13646
+ downloadLink:
13647
+ type: boolean
13648
+ description: Whether to show a link to download the OpenAPI spec.
13610
13649
  required:
13611
13650
  - models
13612
13651
  TranslationRef:
@@ -13848,6 +13887,12 @@ components:
13848
13887
  description: Vertical position of the cover image.
13849
13888
  type: number
13850
13889
  default: 0
13890
+ height:
13891
+ description: Height of the cover image in pixels.
13892
+ type: number
13893
+ minimum: 10
13894
+ maximum: 700
13895
+ default: 240
13851
13896
  required:
13852
13897
  - yPos
13853
13898
  VariableValue:
@@ -14910,7 +14955,7 @@ components:
14910
14955
  type: string
14911
14956
  minLength: 1
14912
14957
  maxLength: 100
14913
- pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
14958
+ pattern: ^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$
14914
14959
  OpenAPISpecProcessingState:
14915
14960
  description: Processing state
14916
14961
  enum:
@@ -18986,6 +19031,7 @@ components:
18986
19031
  type:
18987
19032
  description: The site type to migrate to
18988
19033
  $ref: "#/components/schemas/SiteType"
19034
+ additionalProperties: false
18989
19035
  required:
18990
19036
  - id
18991
19037
  - type
@@ -18995,12 +19041,27 @@ components:
18995
19041
  description: The site identifier
18996
19042
  type: string
18997
19043
  isPublished:
18998
- description: Can be set to `false` to unpublish a site
19044
+ description: Can be set to `false` or `true` to either unpublish or publish a site
18999
19045
  type: boolean
19000
- enum:
19001
- - false
19046
+ additionalProperties: false
19047
+ required:
19048
+ - id
19049
+ - isPublished
19050
+ - type: object
19051
+ properties:
19052
+ id:
19053
+ description: The site identifier
19054
+ type: string
19055
+ type:
19056
+ description: The site type to migrate to
19057
+ $ref: "#/components/schemas/SiteType"
19058
+ isPublished:
19059
+ description: Can be set to `false` or `true` to either unpublish or publish a site
19060
+ type: boolean
19061
+ additionalProperties: false
19002
19062
  required:
19003
19063
  - id
19064
+ - type
19004
19065
  - isPublished
19005
19066
  required:
19006
19067
  - removeMembers
@@ -22054,6 +22115,58 @@ components:
22054
22115
  - tool
22055
22116
  - spaceId
22056
22117
  - page
22118
+ AIToolCallCreateReusableContent:
22119
+ type: object
22120
+ properties:
22121
+ tool:
22122
+ type: string
22123
+ enum:
22124
+ - createReusableContent
22125
+ spaceId:
22126
+ type: string
22127
+ description: The ID of the space being edited.
22128
+ reusableContent:
22129
+ $ref: "#/components/schemas/ChangedRevisionReusableContent"
22130
+ required:
22131
+ - tool
22132
+ - spaceId
22133
+ - reusableContent
22134
+ AIToolCallEditReusableContent:
22135
+ type: object
22136
+ properties:
22137
+ tool:
22138
+ type: string
22139
+ enum:
22140
+ - editReusableContent
22141
+ spaceId:
22142
+ type: string
22143
+ description: The ID of the space being edited.
22144
+ reusableContent:
22145
+ $ref: "#/components/schemas/ChangedRevisionReusableContent"
22146
+ required:
22147
+ - tool
22148
+ - spaceId
22149
+ - reusableContent
22150
+ AIToolCallGetReusableContent:
22151
+ type: object
22152
+ properties:
22153
+ tool:
22154
+ type: string
22155
+ enum:
22156
+ - getReusableContent
22157
+ spaceId:
22158
+ type: string
22159
+ description: The ID of the space being accessed.
22160
+ revisionId:
22161
+ type: string
22162
+ description: The ID of the revision within which the reusable content is being fetched.
22163
+ reusableContent:
22164
+ $ref: "#/components/schemas/ChangedRevisionReusableContent"
22165
+ required:
22166
+ - tool
22167
+ - spaceId
22168
+ - reusableContent
22169
+ - revisionId
22057
22170
  AIToolCallCreateChangeRequest:
22058
22171
  type: object
22059
22172
  properties:
@@ -22209,6 +22322,9 @@ components:
22209
22322
  - $ref: "#/components/schemas/AIToolCallMovePage"
22210
22323
  - $ref: "#/components/schemas/AIToolCallListModifiedPages"
22211
22324
  - $ref: "#/components/schemas/AIToolCallGetPageDiff"
22325
+ - $ref: "#/components/schemas/AIToolCallCreateReusableContent"
22326
+ - $ref: "#/components/schemas/AIToolCallEditReusableContent"
22327
+ - $ref: "#/components/schemas/AIToolCallGetReusableContent"
22212
22328
  - $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
22213
22329
  - $ref: "#/components/schemas/AIToolCallComment"
22214
22330
  - $ref: "#/components/schemas/AIToolCallReplyToComment"