@gitbook/api 0.102.0 → 0.104.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
@@ -109,6 +109,11 @@
109
109
  "x-page-title": "Hive",
110
110
  "x-page-description": "Manage Hive for team collaboration and resource sharing."
111
111
  },
112
+ {
113
+ "name": "subdomains",
114
+ "x-page-title": "Subdomains",
115
+ "x-page-description": "Configure and manage subdomains for your organization."
116
+ },
112
117
  {
113
118
  "name": "custom-hostnames",
114
119
  "x-page-title": "Custom hostnames",
@@ -8692,6 +8697,41 @@
8692
8697
  }
8693
8698
  },
8694
8699
  "/orgs/{organizationId}/link-invites/{inviteId}": {
8700
+ "get": {
8701
+ "operationId": "getOrganizationInviteLink",
8702
+ "summary": "Get an invite link to an organization",
8703
+ "tags": [
8704
+ "organizations"
8705
+ ],
8706
+ "security": [
8707
+ {
8708
+ "user": []
8709
+ }
8710
+ ],
8711
+ "parameters": [
8712
+ {
8713
+ "$ref": "#/components/parameters/organizationId"
8714
+ },
8715
+ {
8716
+ "$ref": "#/components/parameters/inviteId"
8717
+ }
8718
+ ],
8719
+ "responses": {
8720
+ "200": {
8721
+ "description": "Invite link in the organization.",
8722
+ "content": {
8723
+ "application/json": {
8724
+ "schema": {
8725
+ "$ref": "#/components/schemas/OrganizationInviteLink"
8726
+ }
8727
+ }
8728
+ }
8729
+ },
8730
+ "default": {
8731
+ "$ref": "#/components/responses/UnexpectedError"
8732
+ }
8733
+ }
8734
+ },
8695
8735
  "patch": {
8696
8736
  "operationId": "updateOrganizationInviteById",
8697
8737
  "summary": "Update an organization invite.",
@@ -10764,6 +10804,133 @@
10764
10804
  }
10765
10805
  },
10766
10806
  "/orgs/{organizationId}/fonts/{fontId}": {
10807
+ "get": {
10808
+ "operationId": "getCustomFont",
10809
+ "summary": "Get a custom font by its id",
10810
+ "tags": [
10811
+ "organizations"
10812
+ ],
10813
+ "security": [
10814
+ {
10815
+ "user-internal": []
10816
+ }
10817
+ ],
10818
+ "parameters": [
10819
+ {
10820
+ "$ref": "#/components/parameters/organizationId"
10821
+ },
10822
+ {
10823
+ "$ref": "#/components/parameters/fontId"
10824
+ }
10825
+ ],
10826
+ "responses": {
10827
+ "200": {
10828
+ "description": "Custom font.",
10829
+ "content": {
10830
+ "application/json": {
10831
+ "schema": {
10832
+ "$ref": "#/components/schemas/CustomizationFontDefinition"
10833
+ }
10834
+ }
10835
+ }
10836
+ },
10837
+ "404": {
10838
+ "description": "Organization or font not found.",
10839
+ "$ref": "#/components/responses/NotFoundError"
10840
+ },
10841
+ "default": {
10842
+ "$ref": "#/components/responses/UnexpectedError"
10843
+ }
10844
+ }
10845
+ },
10846
+ "post": {
10847
+ "operationId": "updateCustomFont",
10848
+ "summary": "Update a custom font",
10849
+ "tags": [
10850
+ "organizations"
10851
+ ],
10852
+ "security": [
10853
+ {
10854
+ "user-internal": []
10855
+ }
10856
+ ],
10857
+ "parameters": [
10858
+ {
10859
+ "$ref": "#/components/parameters/organizationId"
10860
+ },
10861
+ {
10862
+ "$ref": "#/components/parameters/fontId"
10863
+ }
10864
+ ],
10865
+ "requestBody": {
10866
+ "required": true,
10867
+ "content": {
10868
+ "application/json": {
10869
+ "schema": {
10870
+ "type": "object",
10871
+ "description": "Defines a custom font and associated font faces with storage references.",
10872
+ "properties": {
10873
+ "fontFamily": {
10874
+ "$ref": "#/components/schemas/FontFamily"
10875
+ },
10876
+ "fontFaces": {
10877
+ "type": "array",
10878
+ "description": "Array of font faces specifying weights and their corresponding storage keys. Passing null as the storage key will remove that weight.\n",
10879
+ "items": {
10880
+ "type": "object",
10881
+ "properties": {
10882
+ "weight": {
10883
+ "$ref": "#/components/schemas/FontWeight"
10884
+ },
10885
+ "storageKey": {
10886
+ "oneOf": [
10887
+ {
10888
+ "$ref": "#/components/schemas/StorageFileKey"
10889
+ },
10890
+ {
10891
+ "type": "string",
10892
+ "nullable": true,
10893
+ "enum": [
10894
+ null
10895
+ ]
10896
+ }
10897
+ ]
10898
+ }
10899
+ },
10900
+ "required": [
10901
+ "weight",
10902
+ "storageKey"
10903
+ ]
10904
+ }
10905
+ }
10906
+ }
10907
+ }
10908
+ }
10909
+ }
10910
+ },
10911
+ "responses": {
10912
+ "201": {
10913
+ "description": "Custom font created successfully.",
10914
+ "content": {
10915
+ "application/json": {
10916
+ "schema": {
10917
+ "$ref": "#/components/schemas/CustomizationFontDefinition"
10918
+ }
10919
+ }
10920
+ }
10921
+ },
10922
+ "404": {
10923
+ "$ref": "#/components/responses/NotFoundError"
10924
+ },
10925
+ "412": {
10926
+ "description": "Invalid request data, such as missing required font weights.",
10927
+ "$ref": "#/components/responses/PreconditionFailedError"
10928
+ },
10929
+ "default": {
10930
+ "$ref": "#/components/responses/UnexpectedError"
10931
+ }
10932
+ }
10933
+ },
10767
10934
  "delete": {
10768
10935
  "operationId": "deleteCustomFont",
10769
10936
  "summary": "Delete a custom font from an organization",
@@ -11065,7 +11232,7 @@
11065
11232
  "description": "Configure a proxy URL for a site. For example, you can use it to host the site on a subdirectory of your domain like `https://company.com/docs`.\nUse `null` to remove the proxy.\n",
11066
11233
  "oneOf": [
11067
11234
  {
11068
- "$ref": "#/components/schemas/SiteProxy"
11235
+ "$ref": "#/components/schemas/SiteProxyOrigin"
11069
11236
  },
11070
11237
  {
11071
11238
  "type": "string",
@@ -13974,6 +14141,80 @@
13974
14141
  }
13975
14142
  }
13976
14143
  },
14144
+ "/orgs/{organizationId}/sites/{siteId}/ai/response": {
14145
+ "post": {
14146
+ "operationId": "streamAIResponseInSite",
14147
+ "summary": "Generate an AI response in a site",
14148
+ "description": "Experimental operation to generate an AI response in a site.\n",
14149
+ "tags": [
14150
+ "sites"
14151
+ ],
14152
+ "x-internal": true,
14153
+ "security": [
14154
+ {
14155
+ "user": []
14156
+ }
14157
+ ],
14158
+ "parameters": [
14159
+ {
14160
+ "$ref": "#/components/parameters/organizationId"
14161
+ },
14162
+ {
14163
+ "$ref": "#/components/parameters/siteId"
14164
+ }
14165
+ ],
14166
+ "requestBody": {
14167
+ "required": true,
14168
+ "content": {
14169
+ "application/json": {
14170
+ "schema": {
14171
+ "type": "object",
14172
+ "required": [
14173
+ "input",
14174
+ "output"
14175
+ ],
14176
+ "properties": {
14177
+ "previousResponseId": {
14178
+ "type": "string",
14179
+ "description": "The ID of the previous response to continue from"
14180
+ },
14181
+ "input": {
14182
+ "type": "array",
14183
+ "items": {
14184
+ "$ref": "#/components/schemas/AIMessageInput"
14185
+ }
14186
+ },
14187
+ "output": {
14188
+ "$ref": "#/components/schemas/AIOutputFormat"
14189
+ },
14190
+ "model": {
14191
+ "$ref": "#/components/schemas/AIModel"
14192
+ },
14193
+ "tools": {
14194
+ "$ref": "#/components/schemas/AIToolCapabilities"
14195
+ }
14196
+ }
14197
+ }
14198
+ }
14199
+ }
14200
+ },
14201
+ "responses": {
14202
+ "200": {
14203
+ "description": "OK",
14204
+ "content": {
14205
+ "text/event-stream": {
14206
+ "schema": {
14207
+ "$ref": "#/components/schemas/AIStreamResponse"
14208
+ }
14209
+ }
14210
+ }
14211
+ },
14212
+ "default": {
14213
+ "$ref": "#/components/responses/UnexpectedError"
14214
+ }
14215
+ }
14216
+ }
14217
+ },
13977
14218
  "/orgs/{organizationId}/sites/{siteId}/insights/events": {
13978
14219
  "post": {
13979
14220
  "operationId": "trackEventsInSiteById",
@@ -14436,6 +14677,40 @@
14436
14677
  }
14437
14678
  }
14438
14679
  },
14680
+ "/subdomains/{subdomain}": {
14681
+ "get": {
14682
+ "operationId": "getSubdomain",
14683
+ "summary": "Get the details about a subdomain.",
14684
+ "tags": [
14685
+ "subdomains"
14686
+ ],
14687
+ "security": [
14688
+ {
14689
+ "user": []
14690
+ }
14691
+ ],
14692
+ "parameters": [
14693
+ {
14694
+ "$ref": "#/components/parameters/subdomain"
14695
+ }
14696
+ ],
14697
+ "responses": {
14698
+ "200": {
14699
+ "description": "OK",
14700
+ "content": {
14701
+ "application/json": {
14702
+ "schema": {
14703
+ "$ref": "#/components/schemas/Subdomain"
14704
+ }
14705
+ }
14706
+ }
14707
+ },
14708
+ "default": {
14709
+ "$ref": "#/components/responses/UnexpectedError"
14710
+ }
14711
+ }
14712
+ }
14713
+ },
14439
14714
  "/custom-hostnames/{hostname}": {
14440
14715
  "get": {
14441
14716
  "operationId": "getCustomHostname",
@@ -15397,6 +15672,18 @@
15397
15672
  "type": "string"
15398
15673
  }
15399
15674
  },
15675
+ "subdomain": {
15676
+ "name": "subdomain",
15677
+ "in": "path",
15678
+ "required": true,
15679
+ "description": "The subdomain, for example \"my-company\" in \"my-company.gitbook.io\"",
15680
+ "schema": {
15681
+ "type": "string",
15682
+ "pattern": "^[a-z0-9][a-z0-9-]{1,30}[a-z0-9]$",
15683
+ "minLength": 3,
15684
+ "maxLength": 32
15685
+ }
15686
+ },
15400
15687
  "hostname": {
15401
15688
  "name": "hostname",
15402
15689
  "in": "path",
@@ -15649,6 +15936,10 @@
15649
15936
  "GitSyncState": {
15650
15937
  "type": "object",
15651
15938
  "properties": {
15939
+ "repoName": {
15940
+ "type": "string",
15941
+ "description": "Repository name."
15942
+ },
15652
15943
  "installationProvider": {
15653
15944
  "$ref": "#/components/schemas/GitSyncProvider"
15654
15945
  },
@@ -26837,12 +27128,28 @@
26837
27128
  "minLength": 1,
26838
27129
  "maxLength": 100
26839
27130
  },
26840
- "SiteProxy": {
27131
+ "SiteProxyOrigin": {
26841
27132
  "type": "string",
26842
27133
  "description": "Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.",
26843
27134
  "pattern": "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$",
26844
27135
  "maxLength": 512
26845
27136
  },
27137
+ "SiteProxy": {
27138
+ "type": "object",
27139
+ "properties": {
27140
+ "origin": {
27141
+ "$ref": "#/components/schemas/SiteProxyOrigin"
27142
+ },
27143
+ "target": {
27144
+ "type": "string",
27145
+ "description": "The target URL to which the requests at the origin URL should be proxied to."
27146
+ }
27147
+ },
27148
+ "required": [
27149
+ "origin",
27150
+ "target"
27151
+ ]
27152
+ },
26846
27153
  "SiteVisibility": {
26847
27154
  "type": "string",
26848
27155
  "description": "The visibility setting of the site determines the audience of the site.\n* `public`: Anyone can access the site, and the site is indexed by search engines.\n* `unlisted`: Anyone can access the site, and the site is not indexed by search engines\n* `share-link`: Anyone with a secret token in the url can access the site.\n* `visitor-auth`: Anyone authenticated through a JWT token can access the site.\n",
@@ -26964,7 +27271,6 @@
26964
27271
  "header-logo",
26965
27272
  "theme-preset",
26966
27273
  "premium-fonts",
26967
- "custom-fonts",
26968
27274
  "custom-icons",
26969
27275
  "footer-logo",
26970
27276
  "footer-links",
@@ -26991,7 +27297,8 @@
26991
27297
  "sites-pdf-export",
26992
27298
  "sites-page-feedback",
26993
27299
  "sites-unlisted-visibility",
26994
- "sites-share-links"
27300
+ "sites-share-links",
27301
+ "sites-custom-fonts"
26995
27302
  ]
26996
27303
  },
26997
27304
  "plan": {
@@ -28950,6 +29257,10 @@
28950
29257
  "type": "string",
28951
29258
  "description": "A globally unique identifier for the font definition."
28952
29259
  },
29260
+ "custom": {
29261
+ "type": "boolean",
29262
+ "description": "Whether the font is a custom font. If false, this font is provided by GitBook."
29263
+ },
28953
29264
  "fontFamily": {
28954
29265
  "$ref": "#/components/schemas/FontFamily"
28955
29266
  },
@@ -28964,6 +29275,7 @@
28964
29275
  },
28965
29276
  "required": [
28966
29277
  "id",
29278
+ "custom",
28967
29279
  "fontFamily",
28968
29280
  "fontFaces"
28969
29281
  ]
@@ -29236,11 +29548,15 @@
29236
29548
  "none"
29237
29549
  ]
29238
29550
  },
29551
+ "CustomizationContentLinkTitle": {
29552
+ "type": "string",
29553
+ "maxLength": 64
29554
+ },
29239
29555
  "CustomizationContentLink": {
29240
29556
  "type": "object",
29241
29557
  "properties": {
29242
29558
  "title": {
29243
- "type": "string"
29559
+ "$ref": "#/components/schemas/CustomizationContentLinkTitle"
29244
29560
  },
29245
29561
  "to": {
29246
29562
  "$ref": "#/components/schemas/ContentRef"
@@ -29310,6 +29626,12 @@
29310
29626
  "links"
29311
29627
  ]
29312
29628
  },
29629
+ "CustomizationAnnouncementMessage": {
29630
+ "description": "The text content of the announcement.",
29631
+ "type": "string",
29632
+ "minLength": 2,
29633
+ "maxLength": 128
29634
+ },
29313
29635
  "CustomizationAnnouncement": {
29314
29636
  "type": "object",
29315
29637
  "properties": {
@@ -29318,10 +29640,7 @@
29318
29640
  "type": "boolean"
29319
29641
  },
29320
29642
  "message": {
29321
- "description": "The text content of the announcement.",
29322
- "type": "string",
29323
- "minLength": 2,
29324
- "maxLength": 128
29643
+ "$ref": "#/components/schemas/CustomizationAnnouncementMessage"
29325
29644
  },
29326
29645
  "link": {
29327
29646
  "description": "The content or URL the announcement links to when clicked.",
@@ -30073,6 +30392,428 @@
30073
30392
  "origin"
30074
30393
  ]
30075
30394
  },
30395
+ "AIMessageRole": {
30396
+ "type": "string",
30397
+ "enum": [
30398
+ "user",
30399
+ "developer"
30400
+ ]
30401
+ },
30402
+ "AIMessageAttachmentSearch": {
30403
+ "type": "object",
30404
+ "description": "Attachment to attach search results to a message.",
30405
+ "properties": {
30406
+ "type": {
30407
+ "type": "string",
30408
+ "enum": [
30409
+ "search"
30410
+ ]
30411
+ },
30412
+ "query": {
30413
+ "type": "string",
30414
+ "description": "The query to use to extract the knowledge."
30415
+ }
30416
+ },
30417
+ "required": [
30418
+ "type",
30419
+ "query"
30420
+ ]
30421
+ },
30422
+ "AIMessageAttachmentVisitorProfile": {
30423
+ "type": "object",
30424
+ "description": "Attachment representing the profile of the visitor",
30425
+ "properties": {
30426
+ "type": {
30427
+ "type": "string",
30428
+ "enum": [
30429
+ "visitor_profile"
30430
+ ]
30431
+ }
30432
+ },
30433
+ "required": [
30434
+ "type"
30435
+ ]
30436
+ },
30437
+ "AIMessageAttachmentPage": {
30438
+ "type": "object",
30439
+ "description": "Attachment to extract and pass the content of a page to the AI.",
30440
+ "properties": {
30441
+ "type": {
30442
+ "type": "string",
30443
+ "enum": [
30444
+ "page"
30445
+ ]
30446
+ },
30447
+ "spaceId": {
30448
+ "type": "string",
30449
+ "description": "The ID of the space to extract the content from."
30450
+ },
30451
+ "pageId": {
30452
+ "type": "string",
30453
+ "description": "The ID of the page to extract the content from."
30454
+ }
30455
+ },
30456
+ "required": [
30457
+ "type",
30458
+ "spaceId",
30459
+ "pageId"
30460
+ ]
30461
+ },
30462
+ "AIMessageAttachmentPages": {
30463
+ "type": "object",
30464
+ "description": "Attachment to pass the tree of pages to the AI",
30465
+ "properties": {
30466
+ "type": {
30467
+ "type": "string",
30468
+ "enum": [
30469
+ "pages"
30470
+ ]
30471
+ },
30472
+ "spaceId": {
30473
+ "type": "string",
30474
+ "description": "The ID of the space to extract the content from."
30475
+ }
30476
+ },
30477
+ "required": [
30478
+ "type",
30479
+ "spaceId"
30480
+ ]
30481
+ },
30482
+ "AIMessageAttachment": {
30483
+ "oneOf": [
30484
+ {
30485
+ "$ref": "#/components/schemas/AIMessageAttachmentSearch"
30486
+ },
30487
+ {
30488
+ "$ref": "#/components/schemas/AIMessageAttachmentVisitorProfile"
30489
+ },
30490
+ {
30491
+ "$ref": "#/components/schemas/AIMessageAttachmentPage"
30492
+ },
30493
+ {
30494
+ "$ref": "#/components/schemas/AIMessageAttachmentPages"
30495
+ }
30496
+ ]
30497
+ },
30498
+ "AIMessageInput": {
30499
+ "type": "object",
30500
+ "properties": {
30501
+ "role": {
30502
+ "$ref": "#/components/schemas/AIMessageRole"
30503
+ },
30504
+ "content": {
30505
+ "oneOf": [
30506
+ {
30507
+ "type": "string",
30508
+ "maxLength": 2048
30509
+ },
30510
+ {
30511
+ "$ref": "#/components/schemas/JSONDocument"
30512
+ }
30513
+ ]
30514
+ },
30515
+ "attachments": {
30516
+ "type": "array",
30517
+ "items": {
30518
+ "$ref": "#/components/schemas/AIMessageAttachment"
30519
+ }
30520
+ }
30521
+ },
30522
+ "required": [
30523
+ "role",
30524
+ "content"
30525
+ ]
30526
+ },
30527
+ "AIOutputObject": {
30528
+ "type": "object",
30529
+ "description": "Indicate that the AI should response with a JSON object corresponding to the provided schema.\n",
30530
+ "properties": {
30531
+ "type": {
30532
+ "type": "string",
30533
+ "enum": [
30534
+ "object"
30535
+ ]
30536
+ },
30537
+ "schema": {
30538
+ "type": "object",
30539
+ "description": "The JSON schema to use for the object."
30540
+ }
30541
+ },
30542
+ "required": [
30543
+ "type",
30544
+ "schema"
30545
+ ]
30546
+ },
30547
+ "AIOutputDocument": {
30548
+ "type": "object",
30549
+ "description": "Indicate that the AI should respond with a rich text document.\n",
30550
+ "properties": {
30551
+ "type": {
30552
+ "type": "string",
30553
+ "enum": [
30554
+ "document"
30555
+ ]
30556
+ }
30557
+ },
30558
+ "required": [
30559
+ "type"
30560
+ ]
30561
+ },
30562
+ "AIOutputFormat": {
30563
+ "oneOf": [
30564
+ {
30565
+ "$ref": "#/components/schemas/AIOutputObject"
30566
+ },
30567
+ {
30568
+ "$ref": "#/components/schemas/AIOutputDocument"
30569
+ }
30570
+ ]
30571
+ },
30572
+ "AIModel": {
30573
+ "type": "string",
30574
+ "enum": [
30575
+ "fast",
30576
+ "reasoning-low",
30577
+ "reasoning-medium",
30578
+ "reasoning-high"
30579
+ ]
30580
+ },
30581
+ "AIToolCapabilities": {
30582
+ "type": "object",
30583
+ "description": "Tools provided to the AI",
30584
+ "properties": {
30585
+ "getPageContent": {
30586
+ "type": "boolean",
30587
+ "description": "Whether the AI can read the content of a page"
30588
+ },
30589
+ "getPages": {
30590
+ "type": "boolean",
30591
+ "description": "Whether the AI can read the table of contents of a space"
30592
+ },
30593
+ "search": {
30594
+ "type": "boolean",
30595
+ "description": "Whether the AI can search for content"
30596
+ }
30597
+ }
30598
+ },
30599
+ "AIStreamResponseFinish": {
30600
+ "type": "object",
30601
+ "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",
30602
+ "properties": {
30603
+ "type": {
30604
+ "type": "string",
30605
+ "enum": [
30606
+ "response_finish"
30607
+ ]
30608
+ },
30609
+ "responseId": {
30610
+ "type": "string",
30611
+ "description": "The ID of the response"
30612
+ }
30613
+ },
30614
+ "required": [
30615
+ "type",
30616
+ "responseId"
30617
+ ]
30618
+ },
30619
+ "AIStreamResponseDocument": {
30620
+ "type": "object",
30621
+ "description": "Message emitted by the server to indicate the latest block of the document. The block can either be a new block or an update to the previous block.\n",
30622
+ "properties": {
30623
+ "type": {
30624
+ "type": "string",
30625
+ "enum": [
30626
+ "response_document"
30627
+ ]
30628
+ },
30629
+ "operation": {
30630
+ "type": "string",
30631
+ "enum": [
30632
+ "insert",
30633
+ "update"
30634
+ ]
30635
+ },
30636
+ "blocks": {
30637
+ "type": "array",
30638
+ "items": {
30639
+ "$ref": "#/components/schemas/DocumentBlock"
30640
+ }
30641
+ }
30642
+ },
30643
+ "required": [
30644
+ "type",
30645
+ "operation",
30646
+ "blocks"
30647
+ ]
30648
+ },
30649
+ "AIStreamResponseObject": {
30650
+ "type": "object",
30651
+ "description": "Message emitted by the server to indicate a chunk of the JSON object response.\n",
30652
+ "properties": {
30653
+ "type": {
30654
+ "type": "string",
30655
+ "enum": [
30656
+ "response_object"
30657
+ ]
30658
+ },
30659
+ "jsonChunk": {
30660
+ "type": "string",
30661
+ "description": "The chunk of the JSON object response"
30662
+ }
30663
+ },
30664
+ "required": [
30665
+ "type",
30666
+ "jsonChunk"
30667
+ ]
30668
+ },
30669
+ "AIToolCallGetPageContent": {
30670
+ "type": "object",
30671
+ "properties": {
30672
+ "tool": {
30673
+ "type": "string",
30674
+ "enum": [
30675
+ "getPageContent"
30676
+ ]
30677
+ },
30678
+ "spaceId": {
30679
+ "type": "string",
30680
+ "description": "The ID of the space being accessed."
30681
+ },
30682
+ "page": {
30683
+ "$ref": "#/components/schemas/ChangedRevisionPage"
30684
+ }
30685
+ },
30686
+ "required": [
30687
+ "tool",
30688
+ "spaceId",
30689
+ "page"
30690
+ ]
30691
+ },
30692
+ "AIToolCallGetPages": {
30693
+ "type": "object",
30694
+ "properties": {
30695
+ "tool": {
30696
+ "type": "string",
30697
+ "enum": [
30698
+ "getPages"
30699
+ ]
30700
+ },
30701
+ "spaceId": {
30702
+ "type": "string",
30703
+ "description": "The ID of the space being accessed."
30704
+ }
30705
+ },
30706
+ "required": [
30707
+ "tool",
30708
+ "spaceId"
30709
+ ]
30710
+ },
30711
+ "AIToolCallSearchResult": {
30712
+ "type": "object",
30713
+ "description": "Result of a search",
30714
+ "properties": {
30715
+ "spaceId": {
30716
+ "type": "string",
30717
+ "description": "The ID of the space"
30718
+ },
30719
+ "pageId": {
30720
+ "type": "string",
30721
+ "description": "The ID of the page"
30722
+ },
30723
+ "anchor": {
30724
+ "type": "string",
30725
+ "description": "The anchor of the result"
30726
+ },
30727
+ "title": {
30728
+ "type": "string",
30729
+ "description": "The title of the result"
30730
+ },
30731
+ "description": {
30732
+ "type": "string",
30733
+ "description": "The description of the result"
30734
+ }
30735
+ },
30736
+ "required": [
30737
+ "spaceId",
30738
+ "pageId",
30739
+ "title"
30740
+ ]
30741
+ },
30742
+ "AIToolCallSearch": {
30743
+ "type": "object",
30744
+ "description": "Tool to search for content",
30745
+ "properties": {
30746
+ "tool": {
30747
+ "type": "string",
30748
+ "enum": [
30749
+ "search"
30750
+ ]
30751
+ },
30752
+ "query": {
30753
+ "type": "string",
30754
+ "description": "The query that has been searched for."
30755
+ },
30756
+ "results": {
30757
+ "type": "array",
30758
+ "items": {
30759
+ "$ref": "#/components/schemas/AIToolCallSearchResult"
30760
+ }
30761
+ }
30762
+ },
30763
+ "required": [
30764
+ "tool",
30765
+ "query",
30766
+ "results"
30767
+ ]
30768
+ },
30769
+ "AIToolCall": {
30770
+ "oneOf": [
30771
+ {
30772
+ "$ref": "#/components/schemas/AIToolCallGetPageContent"
30773
+ },
30774
+ {
30775
+ "$ref": "#/components/schemas/AIToolCallGetPages"
30776
+ },
30777
+ {
30778
+ "$ref": "#/components/schemas/AIToolCallSearch"
30779
+ }
30780
+ ]
30781
+ },
30782
+ "AIStreamResponseToolCall": {
30783
+ "type": "object",
30784
+ "description": "Message emitted by the server to indicate that the AI has called a tool.\n",
30785
+ "properties": {
30786
+ "type": {
30787
+ "type": "string",
30788
+ "enum": [
30789
+ "response_tool_call"
30790
+ ]
30791
+ },
30792
+ "toolCall": {
30793
+ "$ref": "#/components/schemas/AIToolCall"
30794
+ }
30795
+ },
30796
+ "required": [
30797
+ "type",
30798
+ "toolCall"
30799
+ ]
30800
+ },
30801
+ "AIStreamResponse": {
30802
+ "oneOf": [
30803
+ {
30804
+ "$ref": "#/components/schemas/AIStreamResponseFinish"
30805
+ },
30806
+ {
30807
+ "$ref": "#/components/schemas/AIStreamResponseDocument"
30808
+ },
30809
+ {
30810
+ "$ref": "#/components/schemas/AIStreamResponseObject"
30811
+ },
30812
+ {
30813
+ "$ref": "#/components/schemas/AIStreamResponseToolCall"
30814
+ }
30815
+ ]
30816
+ },
30076
30817
  "SiteInsightsEventSession": {
30077
30818
  "type": "object",
30078
30819
  "description": "Analytics info on the GitBook's site session.",
@@ -32475,6 +33216,40 @@
32475
33216
  "destination"
32476
33217
  ]
32477
33218
  },
33219
+ "Subdomain": {
33220
+ "type": "object",
33221
+ "properties": {
33222
+ "object": {
33223
+ "type": "string",
33224
+ "enum": [
33225
+ "subdomain"
33226
+ ]
33227
+ },
33228
+ "subdomain": {
33229
+ "type": "string",
33230
+ "description": "The GitBook subdomain, for example \"my-company\" in \"my-company.gitbook.io\"",
33231
+ "pattern": "^[a-z0-9][a-z0-9-]{1,30}[a-z0-9]$",
33232
+ "minLength": 3,
33233
+ "maxLength": 32
33234
+ },
33235
+ "target": {
33236
+ "oneOf": [
33237
+ {
33238
+ "$ref": "#/components/schemas/OrganizationPointer"
33239
+ }
33240
+ ]
33241
+ },
33242
+ "isActive": {
33243
+ "type": "boolean"
33244
+ }
33245
+ },
33246
+ "required": [
33247
+ "object",
33248
+ "subdomain",
33249
+ "target",
33250
+ "isActive"
33251
+ ]
33252
+ },
32478
33253
  "CustomHostnameDnsStatus": {
32479
33254
  "type": "string",
32480
33255
  "enum": [
@@ -33093,6 +33868,10 @@
33093
33868
  "contextId": {
33094
33869
  "type": "string",
33095
33870
  "description": "Context returned only for a visitor authentication session to track changes in the visitor session context that affect content rendering (used for cache invalidation)."
33871
+ },
33872
+ "canonicalUrl": {
33873
+ "type": "string",
33874
+ "description": "The canonical URL of the resolution."
33096
33875
  }
33097
33876
  },
33098
33877
  "required": [
@@ -33104,7 +33883,8 @@
33104
33883
  "siteBasePath",
33105
33884
  "apiToken",
33106
33885
  "organization",
33107
- "complete"
33886
+ "complete",
33887
+ "canonicalUrl"
33108
33888
  ]
33109
33889
  },
33110
33890
  "PublishedSiteContentLookup": {
@@ -35228,6 +36008,24 @@
35228
36008
  "openAPISpec"
35229
36009
  ]
35230
36010
  },
36011
+ "SubdomainChannel": {
36012
+ "type": "object",
36013
+ "properties": {
36014
+ "channel": {
36015
+ "type": "string",
36016
+ "enum": [
36017
+ "subdomain"
36018
+ ]
36019
+ },
36020
+ "subdomain": {
36021
+ "type": "string"
36022
+ }
36023
+ },
36024
+ "required": [
36025
+ "channel",
36026
+ "subdomain"
36027
+ ]
36028
+ },
35231
36029
  "SubscriptionChannel": {
35232
36030
  "description": "Channel to subscribe to for realtime updates.",
35233
36031
  "oneOf": [
@@ -35416,6 +36214,9 @@
35416
36214
  },
35417
36215
  {
35418
36216
  "$ref": "#/components/schemas/OpenAPISpecChannel"
36217
+ },
36218
+ {
36219
+ "$ref": "#/components/schemas/SubdomainChannel"
35419
36220
  }
35420
36221
  ],
35421
36222
  "discriminator": {