@gitbook/api 0.103.0 → 0.105.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",
@@ -14022,6 +14189,9 @@
14022
14189
  },
14023
14190
  "model": {
14024
14191
  "$ref": "#/components/schemas/AIModel"
14192
+ },
14193
+ "tools": {
14194
+ "$ref": "#/components/schemas/AIToolCapabilities"
14025
14195
  }
14026
14196
  }
14027
14197
  }
@@ -14507,6 +14677,40 @@
14507
14677
  }
14508
14678
  }
14509
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
+ },
14510
14714
  "/custom-hostnames/{hostname}": {
14511
14715
  "get": {
14512
14716
  "operationId": "getCustomHostname",
@@ -15468,6 +15672,18 @@
15468
15672
  "type": "string"
15469
15673
  }
15470
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
+ },
15471
15687
  "hostname": {
15472
15688
  "name": "hostname",
15473
15689
  "in": "path",
@@ -15720,6 +15936,10 @@
15720
15936
  "GitSyncState": {
15721
15937
  "type": "object",
15722
15938
  "properties": {
15939
+ "repoName": {
15940
+ "type": "string",
15941
+ "description": "Repository name."
15942
+ },
15723
15943
  "installationProvider": {
15724
15944
  "$ref": "#/components/schemas/GitSyncProvider"
15725
15945
  },
@@ -26908,12 +27128,28 @@
26908
27128
  "minLength": 1,
26909
27129
  "maxLength": 100
26910
27130
  },
26911
- "SiteProxy": {
27131
+ "SiteProxyOrigin": {
26912
27132
  "type": "string",
26913
27133
  "description": "Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.",
26914
27134
  "pattern": "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$",
26915
27135
  "maxLength": 512
26916
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
+ },
26917
27153
  "SiteVisibility": {
26918
27154
  "type": "string",
26919
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",
@@ -27035,7 +27271,6 @@
27035
27271
  "header-logo",
27036
27272
  "theme-preset",
27037
27273
  "premium-fonts",
27038
- "custom-fonts",
27039
27274
  "custom-icons",
27040
27275
  "footer-logo",
27041
27276
  "footer-links",
@@ -27062,7 +27297,8 @@
27062
27297
  "sites-pdf-export",
27063
27298
  "sites-page-feedback",
27064
27299
  "sites-unlisted-visibility",
27065
- "sites-share-links"
27300
+ "sites-share-links",
27301
+ "sites-custom-fonts"
27066
27302
  ]
27067
27303
  },
27068
27304
  "plan": {
@@ -29021,6 +29257,10 @@
29021
29257
  "type": "string",
29022
29258
  "description": "A globally unique identifier for the font definition."
29023
29259
  },
29260
+ "custom": {
29261
+ "type": "boolean",
29262
+ "description": "Whether the font is a custom font. If false, this font is provided by GitBook."
29263
+ },
29024
29264
  "fontFamily": {
29025
29265
  "$ref": "#/components/schemas/FontFamily"
29026
29266
  },
@@ -29035,6 +29275,7 @@
29035
29275
  },
29036
29276
  "required": [
29037
29277
  "id",
29278
+ "custom",
29038
29279
  "fontFamily",
29039
29280
  "fontFaces"
29040
29281
  ]
@@ -29307,11 +29548,15 @@
29307
29548
  "none"
29308
29549
  ]
29309
29550
  },
29551
+ "CustomizationContentLinkTitle": {
29552
+ "type": "string",
29553
+ "maxLength": 64
29554
+ },
29310
29555
  "CustomizationContentLink": {
29311
29556
  "type": "object",
29312
29557
  "properties": {
29313
29558
  "title": {
29314
- "type": "string"
29559
+ "$ref": "#/components/schemas/CustomizationContentLinkTitle"
29315
29560
  },
29316
29561
  "to": {
29317
29562
  "$ref": "#/components/schemas/ContentRef"
@@ -29381,6 +29626,12 @@
29381
29626
  "links"
29382
29627
  ]
29383
29628
  },
29629
+ "CustomizationAnnouncementMessage": {
29630
+ "description": "The text content of the announcement.",
29631
+ "type": "string",
29632
+ "minLength": 2,
29633
+ "maxLength": 128
29634
+ },
29384
29635
  "CustomizationAnnouncement": {
29385
29636
  "type": "object",
29386
29637
  "properties": {
@@ -29389,10 +29640,7 @@
29389
29640
  "type": "boolean"
29390
29641
  },
29391
29642
  "message": {
29392
- "description": "The text content of the announcement.",
29393
- "type": "string",
29394
- "minLength": 2,
29395
- "maxLength": 128
29643
+ "$ref": "#/components/schemas/CustomizationAnnouncementMessage"
29396
29644
  },
29397
29645
  "link": {
29398
29646
  "description": "The content or URL the announcement links to when clicked.",
@@ -30151,14 +30399,14 @@
30151
30399
  "developer"
30152
30400
  ]
30153
30401
  },
30154
- "AIMessageAttachmentKnowledge": {
30402
+ "AIMessageAttachmentSearch": {
30155
30403
  "type": "object",
30156
- "description": "Attachment to extract knowledge matching a given query.",
30404
+ "description": "Attachment to attach search results to a message.",
30157
30405
  "properties": {
30158
30406
  "type": {
30159
30407
  "type": "string",
30160
30408
  "enum": [
30161
- "knowledge"
30409
+ "search"
30162
30410
  ]
30163
30411
  },
30164
30412
  "query": {
@@ -30188,7 +30436,7 @@
30188
30436
  },
30189
30437
  "AIMessageAttachmentPage": {
30190
30438
  "type": "object",
30191
- "description": "Attachment to extract and pass the content of a page to the AI",
30439
+ "description": "Attachment to extract and pass the content of a page to the AI.",
30192
30440
  "properties": {
30193
30441
  "type": {
30194
30442
  "type": "string",
@@ -30198,21 +30446,16 @@
30198
30446
  },
30199
30447
  "spaceId": {
30200
30448
  "type": "string",
30201
- "description": "The ID of the space to extract the content from"
30202
- },
30203
- "revisionId": {
30204
- "type": "string",
30205
- "description": "The ID of the revision to extract the content from"
30449
+ "description": "The ID of the space to extract the content from."
30206
30450
  },
30207
30451
  "pageId": {
30208
30452
  "type": "string",
30209
- "description": "The ID of the page to extract the content from"
30453
+ "description": "The ID of the page to extract the content from."
30210
30454
  }
30211
30455
  },
30212
30456
  "required": [
30213
30457
  "type",
30214
30458
  "spaceId",
30215
- "revisionId",
30216
30459
  "pageId"
30217
30460
  ]
30218
30461
  },
@@ -30228,23 +30471,18 @@
30228
30471
  },
30229
30472
  "spaceId": {
30230
30473
  "type": "string",
30231
- "description": "The ID of the space to extract the content from"
30232
- },
30233
- "revisionId": {
30234
- "type": "string",
30235
- "description": "The ID of the revision to extract the content from"
30474
+ "description": "The ID of the space to extract the content from."
30236
30475
  }
30237
30476
  },
30238
30477
  "required": [
30239
30478
  "type",
30240
- "spaceId",
30241
- "revisionId"
30479
+ "spaceId"
30242
30480
  ]
30243
30481
  },
30244
30482
  "AIMessageAttachment": {
30245
30483
  "oneOf": [
30246
30484
  {
30247
- "$ref": "#/components/schemas/AIMessageAttachmentKnowledge"
30485
+ "$ref": "#/components/schemas/AIMessageAttachmentSearch"
30248
30486
  },
30249
30487
  {
30250
30488
  "$ref": "#/components/schemas/AIMessageAttachmentVisitorProfile"
@@ -30264,8 +30502,15 @@
30264
30502
  "$ref": "#/components/schemas/AIMessageRole"
30265
30503
  },
30266
30504
  "content": {
30267
- "type": "string",
30268
- "maxLength": 2048
30505
+ "oneOf": [
30506
+ {
30507
+ "type": "string",
30508
+ "maxLength": 2048
30509
+ },
30510
+ {
30511
+ "$ref": "#/components/schemas/JSONDocument"
30512
+ }
30513
+ ]
30269
30514
  },
30270
30515
  "attachments": {
30271
30516
  "type": "array",
@@ -30279,7 +30524,7 @@
30279
30524
  "content"
30280
30525
  ]
30281
30526
  },
30282
- "AIOutputFormatObject": {
30527
+ "AIOutputObject": {
30283
30528
  "type": "object",
30284
30529
  "description": "Indicate that the AI should response with a JSON object corresponding to the provided schema.\n",
30285
30530
  "properties": {
@@ -30291,22 +30536,7 @@
30291
30536
  },
30292
30537
  "schema": {
30293
30538
  "type": "object",
30294
- "description": "The JSON schema to use for the object.",
30295
- "properties": {
30296
- "type": {
30297
- "type": "string",
30298
- "enum": [
30299
- "object"
30300
- ]
30301
- },
30302
- "properties": {},
30303
- "required": {
30304
- "type": "array",
30305
- "items": {
30306
- "type": "string"
30307
- }
30308
- }
30309
- }
30539
+ "description": "The JSON schema to use for the object."
30310
30540
  }
30311
30541
  },
30312
30542
  "required": [
@@ -30314,7 +30544,7 @@
30314
30544
  "schema"
30315
30545
  ]
30316
30546
  },
30317
- "AIOutputFormatDocument": {
30547
+ "AIOutputDocument": {
30318
30548
  "type": "object",
30319
30549
  "description": "Indicate that the AI should respond with a rich text document.\n",
30320
30550
  "properties": {
@@ -30332,10 +30562,10 @@
30332
30562
  "AIOutputFormat": {
30333
30563
  "oneOf": [
30334
30564
  {
30335
- "$ref": "#/components/schemas/AIOutputFormatObject"
30565
+ "$ref": "#/components/schemas/AIOutputObject"
30336
30566
  },
30337
30567
  {
30338
- "$ref": "#/components/schemas/AIOutputFormatDocument"
30568
+ "$ref": "#/components/schemas/AIOutputDocument"
30339
30569
  }
30340
30570
  ]
30341
30571
  },
@@ -30348,6 +30578,24 @@
30348
30578
  "reasoning-high"
30349
30579
  ]
30350
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
+ },
30351
30599
  "AIStreamResponseFinish": {
30352
30600
  "type": "object",
30353
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",
@@ -30418,6 +30666,138 @@
30418
30666
  "jsonChunk"
30419
30667
  ]
30420
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
+ },
30421
30801
  "AIStreamResponse": {
30422
30802
  "oneOf": [
30423
30803
  {
@@ -30428,6 +30808,9 @@
30428
30808
  },
30429
30809
  {
30430
30810
  "$ref": "#/components/schemas/AIStreamResponseObject"
30811
+ },
30812
+ {
30813
+ "$ref": "#/components/schemas/AIStreamResponseToolCall"
30431
30814
  }
30432
30815
  ]
30433
30816
  },
@@ -30788,6 +31171,7 @@
30788
31171
  "SiteInsightsLinkPosition": {
30789
31172
  "type": "string",
30790
31173
  "enum": [
31174
+ "announcement",
30791
31175
  "header",
30792
31176
  "footer",
30793
31177
  "sidebar",
@@ -32833,6 +33217,40 @@
32833
33217
  "destination"
32834
33218
  ]
32835
33219
  },
33220
+ "Subdomain": {
33221
+ "type": "object",
33222
+ "properties": {
33223
+ "object": {
33224
+ "type": "string",
33225
+ "enum": [
33226
+ "subdomain"
33227
+ ]
33228
+ },
33229
+ "subdomain": {
33230
+ "type": "string",
33231
+ "description": "The GitBook subdomain, for example \"my-company\" in \"my-company.gitbook.io\"",
33232
+ "pattern": "^[a-z0-9][a-z0-9-]{1,30}[a-z0-9]$",
33233
+ "minLength": 3,
33234
+ "maxLength": 32
33235
+ },
33236
+ "target": {
33237
+ "oneOf": [
33238
+ {
33239
+ "$ref": "#/components/schemas/OrganizationPointer"
33240
+ }
33241
+ ]
33242
+ },
33243
+ "isActive": {
33244
+ "type": "boolean"
33245
+ }
33246
+ },
33247
+ "required": [
33248
+ "object",
33249
+ "subdomain",
33250
+ "target",
33251
+ "isActive"
33252
+ ]
33253
+ },
32836
33254
  "CustomHostnameDnsStatus": {
32837
33255
  "type": "string",
32838
33256
  "enum": [
@@ -33451,6 +33869,10 @@
33451
33869
  "contextId": {
33452
33870
  "type": "string",
33453
33871
  "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)."
33872
+ },
33873
+ "canonicalUrl": {
33874
+ "type": "string",
33875
+ "description": "The canonical URL of the resolution."
33454
33876
  }
33455
33877
  },
33456
33878
  "required": [
@@ -33462,7 +33884,8 @@
33462
33884
  "siteBasePath",
33463
33885
  "apiToken",
33464
33886
  "organization",
33465
- "complete"
33887
+ "complete",
33888
+ "canonicalUrl"
33466
33889
  ]
33467
33890
  },
33468
33891
  "PublishedSiteContentLookup": {
@@ -35586,6 +36009,24 @@
35586
36009
  "openAPISpec"
35587
36010
  ]
35588
36011
  },
36012
+ "SubdomainChannel": {
36013
+ "type": "object",
36014
+ "properties": {
36015
+ "channel": {
36016
+ "type": "string",
36017
+ "enum": [
36018
+ "subdomain"
36019
+ ]
36020
+ },
36021
+ "subdomain": {
36022
+ "type": "string"
36023
+ }
36024
+ },
36025
+ "required": [
36026
+ "channel",
36027
+ "subdomain"
36028
+ ]
36029
+ },
35589
36030
  "SubscriptionChannel": {
35590
36031
  "description": "Channel to subscribe to for realtime updates.",
35591
36032
  "oneOf": [
@@ -35774,6 +36215,9 @@
35774
36215
  },
35775
36216
  {
35776
36217
  "$ref": "#/components/schemas/OpenAPISpecChannel"
36218
+ },
36219
+ {
36220
+ "$ref": "#/components/schemas/SubdomainChannel"
35777
36221
  }
35778
36222
  ],
35779
36223
  "discriminator": {