@gitbook/api 0.187.0 → 0.189.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
@@ -1882,71 +1882,6 @@
1882
1882
  }
1883
1883
  }
1884
1884
  },
1885
- "/spaces/{spaceId}/content/files/{fileId}/backlinks": {
1886
- "get": {
1887
- "operationId": "listSpaceFileBacklinks",
1888
- "summary": "List all pages in a space that reference a specific file",
1889
- "description": "Returns the content locations (pages and inline positions) within the space that link to or embed the specified file. Use this to find where an asset is used before deleting or replacing it.",
1890
- "x-gitbook-mcp": true,
1891
- "tags": [
1892
- "space-content"
1893
- ],
1894
- "security": [
1895
- {
1896
- "user": []
1897
- },
1898
- {
1899
- "oauth": [
1900
- "space:read"
1901
- ]
1902
- }
1903
- ],
1904
- "parameters": [
1905
- {
1906
- "$ref": "#/components/parameters/spaceId"
1907
- },
1908
- {
1909
- "$ref": "#/components/parameters/fileId"
1910
- },
1911
- {
1912
- "$ref": "#/components/parameters/listPage"
1913
- },
1914
- {
1915
- "$ref": "#/components/parameters/listLimit"
1916
- }
1917
- ],
1918
- "responses": {
1919
- "200": {
1920
- "description": "OK",
1921
- "content": {
1922
- "application/json": {
1923
- "schema": {
1924
- "allOf": [
1925
- {
1926
- "$ref": "#/components/schemas/List"
1927
- },
1928
- {
1929
- "type": "object",
1930
- "required": [
1931
- "items"
1932
- ],
1933
- "properties": {
1934
- "items": {
1935
- "type": "array",
1936
- "items": {
1937
- "$ref": "#/components/schemas/ContentLocation"
1938
- }
1939
- }
1940
- }
1941
- }
1942
- ]
1943
- }
1944
- }
1945
- }
1946
- }
1947
- }
1948
- }
1949
- },
1950
1885
  "/spaces/{spaceId}/content/page/{pageId}": {
1951
1886
  "get": {
1952
1887
  "operationId": "getPageById",
@@ -2006,149 +1941,6 @@
2006
1941
  }
2007
1942
  }
2008
1943
  },
2009
- "/spaces/{spaceId}/content/page/{pageId}/links": {
2010
- "get": {
2011
- "operationId": "listPageLinksInSpace",
2012
- "summary": "List all outbound links from a specific page in a space",
2013
- "description": "Returns all content references (internal links, cross-space links, and external URLs) originating from the specified page. Use this to audit link health or detect broken references on a page.",
2014
- "x-gitbook-mcp": true,
2015
- "tags": [
2016
- "space-content",
2017
- "links",
2018
- "critical"
2019
- ],
2020
- "security": [
2021
- {
2022
- "user": []
2023
- },
2024
- {
2025
- "oauth": [
2026
- "space:read"
2027
- ]
2028
- }
2029
- ],
2030
- "parameters": [
2031
- {
2032
- "$ref": "#/components/parameters/spaceId"
2033
- },
2034
- {
2035
- "$ref": "#/components/parameters/pageId"
2036
- },
2037
- {
2038
- "$ref": "#/components/parameters/listPage"
2039
- },
2040
- {
2041
- "$ref": "#/components/parameters/listLimit"
2042
- },
2043
- {
2044
- "name": "status",
2045
- "in": "query",
2046
- "schema": {
2047
- "$ref": "#/components/schemas/ContentReferenceStatus"
2048
- }
2049
- }
2050
- ],
2051
- "responses": {
2052
- "200": {
2053
- "description": "OK",
2054
- "content": {
2055
- "application/json": {
2056
- "schema": {
2057
- "allOf": [
2058
- {
2059
- "$ref": "#/components/schemas/List"
2060
- },
2061
- {
2062
- "type": "object",
2063
- "properties": {
2064
- "stats": {
2065
- "$ref": "#/components/schemas/ContentReferencesStats"
2066
- },
2067
- "items": {
2068
- "type": "array",
2069
- "items": {
2070
- "$ref": "#/components/schemas/ContentReferenceUsage"
2071
- }
2072
- }
2073
- },
2074
- "required": [
2075
- "items",
2076
- "stats"
2077
- ]
2078
- }
2079
- ]
2080
- }
2081
- }
2082
- }
2083
- }
2084
- }
2085
- }
2086
- },
2087
- "/spaces/{spaceId}/content/page/{pageId}/backlinks": {
2088
- "get": {
2089
- "operationId": "listSpacePageBacklinks",
2090
- "summary": "List all pages in a space that link to a specific page",
2091
- "description": "Returns the content locations (pages and inline positions) within the space that contain links pointing to the specified page. Use this to understand a page's incoming references before moving, deleting, or renaming it.",
2092
- "x-gitbook-mcp": true,
2093
- "tags": [
2094
- "space-content"
2095
- ],
2096
- "security": [
2097
- {
2098
- "user": []
2099
- },
2100
- {
2101
- "oauth": [
2102
- "space:read"
2103
- ]
2104
- }
2105
- ],
2106
- "parameters": [
2107
- {
2108
- "$ref": "#/components/parameters/spaceId"
2109
- },
2110
- {
2111
- "$ref": "#/components/parameters/pageId"
2112
- },
2113
- {
2114
- "$ref": "#/components/parameters/listPage"
2115
- },
2116
- {
2117
- "$ref": "#/components/parameters/listLimit"
2118
- }
2119
- ],
2120
- "responses": {
2121
- "200": {
2122
- "description": "OK",
2123
- "content": {
2124
- "application/json": {
2125
- "schema": {
2126
- "allOf": [
2127
- {
2128
- "$ref": "#/components/schemas/List"
2129
- },
2130
- {
2131
- "type": "object",
2132
- "required": [
2133
- "items"
2134
- ],
2135
- "properties": {
2136
- "items": {
2137
- "type": "array",
2138
- "items": {
2139
- "$ref": "#/components/schemas/ContentLocation"
2140
- }
2141
- }
2142
- }
2143
- }
2144
- ]
2145
- }
2146
- }
2147
- }
2148
- }
2149
- }
2150
- }
2151
- },
2152
1944
  "/spaces/{spaceId}/content/page/{pageId}/meta-links": {
2153
1945
  "get": {
2154
1946
  "operationId": "listSpacePageMetaLinks",
@@ -2260,7 +2052,7 @@
2260
2052
  "get": {
2261
2053
  "operationId": "getReusableContentById",
2262
2054
  "summary": "Get a reusable content block from a space by its ID",
2263
- "description": "Retrieves a reusable content block (a shared snippet that can be embedded across multiple pages) from a space's current revision by its ID. Use this to read the content of a reusable block when you have its ID. To find which pages reference it, check the page backlinks endpoint.",
2055
+ "description": "Retrieves a reusable content block (a shared snippet that can be embedded across multiple pages) from a space's current revision by its ID. Use this to read the content of a reusable block when you have its ID.",
2264
2056
  "x-gitbook-mcp": true,
2265
2057
  "tags": [
2266
2058
  "space-content"
@@ -2768,7 +2560,12 @@
2768
2560
  "$ref": "#/components/schemas/JSONDocument"
2769
2561
  },
2770
2562
  "links": {
2771
- "$ref": "#/components/schemas/ChangeRequestLinks"
2563
+ "type": "array",
2564
+ "description": "External links associated with the change request.",
2565
+ "items": {
2566
+ "$ref": "#/components/schemas/ChangeRequestLinkInput"
2567
+ },
2568
+ "maxItems": 10
2772
2569
  },
2773
2570
  "status": {
2774
2571
  "type": "string",
@@ -3451,101 +3248,6 @@
3451
3248
  }
3452
3249
  }
3453
3250
  },
3454
- "/spaces/{spaceId}/change-requests/{changeRequestId}/links": {
3455
- "get": {
3456
- "operationId": "listChangeRequestLinks",
3457
- "summary": "List all content references across an entire change request",
3458
- "description": "Returns a paginated list of all outbound content references (links) across all pages in the change request. Use this to audit link health across the entire draft before merging.",
3459
- "x-gitbook-mcp": true,
3460
- "tags": [
3461
- "change-requests-links",
3462
- "links",
3463
- "critical"
3464
- ],
3465
- "security": [
3466
- {
3467
- "user": []
3468
- },
3469
- {
3470
- "oauth": [
3471
- "space:read"
3472
- ]
3473
- }
3474
- ],
3475
- "parameters": [
3476
- {
3477
- "$ref": "#/components/parameters/spaceId"
3478
- },
3479
- {
3480
- "$ref": "#/components/parameters/changeRequestId"
3481
- },
3482
- {
3483
- "$ref": "#/components/parameters/listPage"
3484
- },
3485
- {
3486
- "$ref": "#/components/parameters/listLimit"
3487
- },
3488
- {
3489
- "name": "status",
3490
- "in": "query",
3491
- "required": false,
3492
- "schema": {
3493
- "$ref": "#/components/schemas/ContentReferenceStatus"
3494
- }
3495
- },
3496
- {
3497
- "name": "brokenContext",
3498
- "in": "query",
3499
- "required": false,
3500
- "schema": {
3501
- "type": "string",
3502
- "enum": [
3503
- "change-request",
3504
- "space"
3505
- ]
3506
- }
3507
- }
3508
- ],
3509
- "responses": {
3510
- "200": {
3511
- "description": "OK",
3512
- "content": {
3513
- "application/json": {
3514
- "schema": {
3515
- "allOf": [
3516
- {
3517
- "$ref": "#/components/schemas/List"
3518
- },
3519
- {
3520
- "type": "object",
3521
- "properties": {
3522
- "stats": {
3523
- "$ref": "#/components/schemas/ContentReferencesStats"
3524
- },
3525
- "items": {
3526
- "type": "array",
3527
- "items": {
3528
- "$ref": "#/components/schemas/ContentReferenceUsage"
3529
- }
3530
- }
3531
- },
3532
- "required": [
3533
- "items",
3534
- "stats"
3535
- ]
3536
- }
3537
- ]
3538
- }
3539
- }
3540
- }
3541
- },
3542
- "404": {
3543
- "description": "The change request could not be found.",
3544
- "$ref": "#/components/responses/NotFoundError"
3545
- }
3546
- }
3547
- }
3548
- },
3549
3251
  "/spaces/{spaceId}/change-requests/{changeRequestId}/comments": {
3550
3252
  "get": {
3551
3253
  "operationId": "listCommentsInChangeRequest",
@@ -4435,74 +4137,6 @@
4435
4137
  }
4436
4138
  }
4437
4139
  },
4438
- "/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks": {
4439
- "get": {
4440
- "operationId": "listChangeRequestFileBacklinks",
4441
- "summary": "List all pages in a change request that reference a file",
4442
- "description": "Returns a paginated list of content locations (pages and inline positions) within the change request that link to or embed the specified file. Use this to find all usages of an asset before renaming or removing it.",
4443
- "x-gitbook-mcp": true,
4444
- "tags": [
4445
- "change-request-content"
4446
- ],
4447
- "security": [
4448
- {
4449
- "user": []
4450
- },
4451
- {
4452
- "oauth": [
4453
- "space:read"
4454
- ]
4455
- }
4456
- ],
4457
- "parameters": [
4458
- {
4459
- "$ref": "#/components/parameters/spaceId"
4460
- },
4461
- {
4462
- "$ref": "#/components/parameters/changeRequestId"
4463
- },
4464
- {
4465
- "$ref": "#/components/parameters/fileId"
4466
- },
4467
- {
4468
- "$ref": "#/components/parameters/listPage"
4469
- },
4470
- {
4471
- "$ref": "#/components/parameters/listLimit"
4472
- }
4473
- ],
4474
- "responses": {
4475
- "200": {
4476
- "description": "OK",
4477
- "content": {
4478
- "application/json": {
4479
- "schema": {
4480
- "allOf": [
4481
- {
4482
- "$ref": "#/components/schemas/List"
4483
- },
4484
- {
4485
- "type": "object",
4486
- "required": [
4487
- "items"
4488
- ],
4489
- "properties": {
4490
- "items": {
4491
- "type": "array",
4492
- "items": {
4493
- "$ref": "#/components/schemas/ContentLocation"
4494
- }
4495
- }
4496
- }
4497
- }
4498
- ]
4499
- }
4500
- }
4501
- }
4502
- }
4503
- }
4504
- }
4505
- },
4506
4140
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}": {
4507
4141
  "get": {
4508
4142
  "operationId": "getPageInChangeRequestById",
@@ -4565,147 +4199,6 @@
4565
4199
  }
4566
4200
  }
4567
4201
  },
4568
- "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links": {
4569
- "get": {
4570
- "operationId": "listPageLinksInChangeRequest",
4571
- "summary": "List all content references (links) on a change request page",
4572
- "description": "Returns all outbound content references from a specific page within the change request, including their status (valid, broken) and usage context. Use this to audit link health on a draft page before merging. Also returns aggregate stats about broken vs healthy references on the page.",
4573
- "x-gitbook-mcp": true,
4574
- "tags": [
4575
- "change-request-content",
4576
- "critical"
4577
- ],
4578
- "security": [
4579
- {
4580
- "user": []
4581
- },
4582
- {
4583
- "oauth": [
4584
- "space:read"
4585
- ]
4586
- }
4587
- ],
4588
- "parameters": [
4589
- {
4590
- "$ref": "#/components/parameters/spaceId"
4591
- },
4592
- {
4593
- "$ref": "#/components/parameters/changeRequestId"
4594
- },
4595
- {
4596
- "$ref": "#/components/parameters/pageId"
4597
- },
4598
- {
4599
- "$ref": "#/components/parameters/listPage"
4600
- },
4601
- {
4602
- "$ref": "#/components/parameters/listLimit"
4603
- }
4604
- ],
4605
- "responses": {
4606
- "200": {
4607
- "description": "OK",
4608
- "content": {
4609
- "application/json": {
4610
- "schema": {
4611
- "allOf": [
4612
- {
4613
- "$ref": "#/components/schemas/List"
4614
- },
4615
- {
4616
- "type": "object",
4617
- "properties": {
4618
- "stats": {
4619
- "$ref": "#/components/schemas/ContentReferencesStats"
4620
- },
4621
- "items": {
4622
- "type": "array",
4623
- "items": {
4624
- "$ref": "#/components/schemas/ContentReferenceUsage"
4625
- }
4626
- }
4627
- },
4628
- "required": [
4629
- "items",
4630
- "stats"
4631
- ]
4632
- }
4633
- ]
4634
- }
4635
- }
4636
- }
4637
- }
4638
- }
4639
- }
4640
- },
4641
- "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks": {
4642
- "get": {
4643
- "operationId": "listChangeRequestPageBacklinks",
4644
- "summary": "List all pages in a change request that link to a specific page",
4645
- "description": "Returns a paginated list of content locations within the change request that contain links pointing to the specified page. Use this to check what pages would be affected by renaming or removing a page before applying the change.",
4646
- "x-gitbook-mcp": true,
4647
- "tags": [
4648
- "change-request-content"
4649
- ],
4650
- "security": [
4651
- {
4652
- "user": []
4653
- },
4654
- {
4655
- "oauth": [
4656
- "space:read"
4657
- ]
4658
- }
4659
- ],
4660
- "parameters": [
4661
- {
4662
- "$ref": "#/components/parameters/spaceId"
4663
- },
4664
- {
4665
- "$ref": "#/components/parameters/changeRequestId"
4666
- },
4667
- {
4668
- "$ref": "#/components/parameters/pageId"
4669
- },
4670
- {
4671
- "$ref": "#/components/parameters/listPage"
4672
- },
4673
- {
4674
- "$ref": "#/components/parameters/listLimit"
4675
- }
4676
- ],
4677
- "responses": {
4678
- "200": {
4679
- "description": "OK",
4680
- "content": {
4681
- "application/json": {
4682
- "schema": {
4683
- "allOf": [
4684
- {
4685
- "$ref": "#/components/schemas/List"
4686
- },
4687
- {
4688
- "type": "object",
4689
- "required": [
4690
- "items"
4691
- ],
4692
- "properties": {
4693
- "items": {
4694
- "type": "array",
4695
- "items": {
4696
- "$ref": "#/components/schemas/ContentLocation"
4697
- }
4698
- }
4699
- }
4700
- }
4701
- ]
4702
- }
4703
- }
4704
- }
4705
- }
4706
- }
4707
- }
4708
- },
4709
4202
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links": {
4710
4203
  "get": {
4711
4204
  "operationId": "listChangeRequestPageMetaLinks",
@@ -6466,85 +5959,6 @@
6466
5959
  }
6467
5960
  }
6468
5961
  },
6469
- "/spaces/{spaceId}/links": {
6470
- "get": {
6471
- "operationId": "listSpaceLinks",
6472
- "summary": "List all links in a space with their status and location",
6473
- "description": "Returns a paginated list of all internal and external links found in the space's content. Use this to audit link health across an entire space.",
6474
- "x-gitbook-mcp": true,
6475
- "tags": [
6476
- "spaces",
6477
- "links",
6478
- "critical"
6479
- ],
6480
- "security": [
6481
- {
6482
- "user": []
6483
- },
6484
- {
6485
- "oauth": [
6486
- "space:read"
6487
- ]
6488
- }
6489
- ],
6490
- "parameters": [
6491
- {
6492
- "$ref": "#/components/parameters/spaceId"
6493
- },
6494
- {
6495
- "$ref": "#/components/parameters/listPage"
6496
- },
6497
- {
6498
- "$ref": "#/components/parameters/listLimit"
6499
- },
6500
- {
6501
- "name": "status",
6502
- "in": "query",
6503
- "schema": {
6504
- "$ref": "#/components/schemas/ContentReferenceStatus"
6505
- }
6506
- }
6507
- ],
6508
- "responses": {
6509
- "200": {
6510
- "description": "OK",
6511
- "content": {
6512
- "application/json": {
6513
- "schema": {
6514
- "allOf": [
6515
- {
6516
- "$ref": "#/components/schemas/List"
6517
- },
6518
- {
6519
- "type": "object",
6520
- "properties": {
6521
- "stats": {
6522
- "$ref": "#/components/schemas/ContentReferencesStats"
6523
- },
6524
- "items": {
6525
- "type": "array",
6526
- "items": {
6527
- "$ref": "#/components/schemas/ContentReferenceUsage"
6528
- }
6529
- }
6530
- },
6531
- "required": [
6532
- "items",
6533
- "stats"
6534
- ]
6535
- }
6536
- ]
6537
- }
6538
- }
6539
- }
6540
- },
6541
- "404": {
6542
- "description": "The space could not be found.",
6543
- "$ref": "#/components/responses/NotFoundError"
6544
- }
6545
- }
6546
- }
6547
- },
6548
5962
  "/collections/{collectionId}": {
6549
5963
  "get": {
6550
5964
  "operationId": "getCollectionById",
@@ -8851,6 +8265,82 @@
8851
8265
  }
8852
8266
  }
8853
8267
  },
8268
+ "/orgs/{organizationId}/styleguides": {
8269
+ "get": {
8270
+ "operationId": "listOrganizationStyleguides",
8271
+ "summary": "List all styleguides in an organization",
8272
+ "description": "Lists every styleguide (a space holding a team's writing styleguide) in the organization, along with every site that references each one. Styleguides that are not referenced by any site are still returned with an empty `sites` list.\n",
8273
+ "x-gitbook-mcp": true,
8274
+ "tags": [
8275
+ "organizations"
8276
+ ],
8277
+ "security": [
8278
+ {
8279
+ "user": []
8280
+ },
8281
+ {
8282
+ "oauth": [
8283
+ "site:read"
8284
+ ]
8285
+ }
8286
+ ],
8287
+ "parameters": [
8288
+ {
8289
+ "$ref": "#/components/parameters/organizationId"
8290
+ }
8291
+ ],
8292
+ "responses": {
8293
+ "200": {
8294
+ "description": "OK",
8295
+ "content": {
8296
+ "application/json": {
8297
+ "schema": {
8298
+ "$ref": "#/components/schemas/OrganizationStyleguides"
8299
+ }
8300
+ }
8301
+ }
8302
+ }
8303
+ }
8304
+ }
8305
+ },
8306
+ "/orgs/{organizationId}/styleguide-templates": {
8307
+ "get": {
8308
+ "operationId": "listStyleguideTemplates",
8309
+ "summary": "List all built-in styleguide templates",
8310
+ "description": "Lists the built-in styleguide starter templates that can seed a new styleguide, including the markdown content used to render each template's preview.\n",
8311
+ "x-gitbook-mcp": true,
8312
+ "tags": [
8313
+ "organizations"
8314
+ ],
8315
+ "security": [
8316
+ {
8317
+ "user": []
8318
+ },
8319
+ {
8320
+ "oauth": [
8321
+ "site:read"
8322
+ ]
8323
+ }
8324
+ ],
8325
+ "parameters": [
8326
+ {
8327
+ "$ref": "#/components/parameters/organizationId"
8328
+ }
8329
+ ],
8330
+ "responses": {
8331
+ "200": {
8332
+ "description": "OK",
8333
+ "content": {
8334
+ "application/json": {
8335
+ "schema": {
8336
+ "$ref": "#/components/schemas/StyleguideTemplates"
8337
+ }
8338
+ }
8339
+ }
8340
+ }
8341
+ }
8342
+ }
8343
+ },
8854
8344
  "/orgs/{organizationId}/members": {
8855
8345
  "get": {
8856
8346
  "operationId": "listMembersInOrganizationById",
@@ -11809,6 +11299,49 @@
11809
11299
  }
11810
11300
  }
11811
11301
  },
11302
+ "/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content/raw": {
11303
+ "get": {
11304
+ "operationId": "getLatestOpenAPISpecVersionContentRaw",
11305
+ "summary": "Get the raw content of the latest OpenAPI spec version",
11306
+ "tags": [
11307
+ "openapi-versions"
11308
+ ],
11309
+ "security": [
11310
+ {
11311
+ "user": []
11312
+ },
11313
+ {
11314
+ "oauth": [
11315
+ "openapi:read"
11316
+ ]
11317
+ }
11318
+ ],
11319
+ "parameters": [
11320
+ {
11321
+ "$ref": "#/components/parameters/organizationId"
11322
+ },
11323
+ {
11324
+ "$ref": "#/components/parameters/openapiSpecSlug"
11325
+ }
11326
+ ],
11327
+ "responses": {
11328
+ "200": {
11329
+ "description": "OK",
11330
+ "content": {
11331
+ "application/json": {
11332
+ "schema": {
11333
+ "$ref": "#/components/schemas/OpenAPISpecRawContent"
11334
+ }
11335
+ }
11336
+ }
11337
+ },
11338
+ "404": {
11339
+ "description": "No matching OpenAPI specification version, or no raw source available for it (e.g. legacy versions)",
11340
+ "$ref": "#/components/responses/NotFoundError"
11341
+ }
11342
+ }
11343
+ }
11344
+ },
11812
11345
  "/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}": {
11813
11346
  "get": {
11814
11347
  "operationId": "getOpenAPISpecVersionById",
@@ -13088,9 +12621,6 @@
13088
12621
  "adaptiveContent": {
13089
12622
  "$ref": "#/components/schemas/SiteAdaptiveContent"
13090
12623
  },
13091
- "permissionsModel": {
13092
- "$ref": "#/components/schemas/SitePermissionsModel"
13093
- },
13094
12624
  "defaultLevel": {
13095
12625
  "$ref": "#/components/schemas/DefaultLevel"
13096
12626
  },
@@ -16560,6 +16090,49 @@
16560
16090
  }
16561
16091
  }
16562
16092
  },
16093
+ "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/test": {
16094
+ "post": {
16095
+ "operationId": "testSiteContextConnection",
16096
+ "summary": "Test a context connection's stored credentials",
16097
+ "description": "Verifies the stored credentials of a context connection against the external service, without changing anything. A failed verification is reported in the response body with `success` set to `false` rather than as an HTTP error. Connectors that have nothing to verify report `success: true`.",
16098
+ "tags": [
16099
+ "site-context"
16100
+ ],
16101
+ "security": [
16102
+ {
16103
+ "user": []
16104
+ },
16105
+ {
16106
+ "oauth": [
16107
+ "site:write"
16108
+ ]
16109
+ }
16110
+ ],
16111
+ "parameters": [
16112
+ {
16113
+ "$ref": "#/components/parameters/organizationId"
16114
+ },
16115
+ {
16116
+ "$ref": "#/components/parameters/siteId"
16117
+ },
16118
+ {
16119
+ "$ref": "#/components/parameters/siteContextConnectionId"
16120
+ }
16121
+ ],
16122
+ "responses": {
16123
+ "200": {
16124
+ "description": "The connection test completed (see `success` for the outcome).",
16125
+ "content": {
16126
+ "application/json": {
16127
+ "schema": {
16128
+ "$ref": "#/components/schemas/ContextConnectionTestResult"
16129
+ }
16130
+ }
16131
+ }
16132
+ }
16133
+ }
16134
+ }
16135
+ },
16563
16136
  "/orgs/{organizationId}/sites/{siteId}/topics": {
16564
16137
  "get": {
16565
16138
  "operationId": "listSiteTopics",
@@ -22417,6 +21990,53 @@
22417
21990
  "urls"
22418
21991
  ]
22419
21992
  },
21993
+ "UserTokenInfo": {
21994
+ "type": "object",
21995
+ "description": "Identity of the token used to authenticate the request.",
21996
+ "properties": {
21997
+ "object": {
21998
+ "type": "string",
21999
+ "enum": [
22000
+ "user-token-info"
22001
+ ]
22002
+ },
22003
+ "userId": {
22004
+ "type": "string",
22005
+ "description": "The user ID the token belongs to."
22006
+ },
22007
+ "tokenType": {
22008
+ "type": "string",
22009
+ "enum": [
22010
+ "personal-api-token",
22011
+ "oauth-token"
22012
+ ],
22013
+ "description": "The type of token used to authenticate the request."
22014
+ },
22015
+ "oauthClient": {
22016
+ "type": "object",
22017
+ "description": "The OAuth client the token was issued to. Only present for OAuth tokens.",
22018
+ "required": [
22019
+ "id",
22020
+ "name"
22021
+ ],
22022
+ "properties": {
22023
+ "id": {
22024
+ "type": "string",
22025
+ "description": "The OAuth client ID."
22026
+ },
22027
+ "name": {
22028
+ "type": "string",
22029
+ "description": "The OAuth client name."
22030
+ }
22031
+ }
22032
+ }
22033
+ },
22034
+ "required": [
22035
+ "object",
22036
+ "userId",
22037
+ "tokenType"
22038
+ ]
22039
+ },
22420
22040
  "APITemporaryToken": {
22421
22041
  "type": "object",
22422
22042
  "properties": {
@@ -25210,6 +24830,10 @@
25210
24830
  "hideColumnTitle": {
25211
24831
  "type": "boolean",
25212
24832
  "description": "Should we display the column title or not"
24833
+ },
24834
+ "wrap": {
24835
+ "type": "boolean",
24836
+ "description": "Whether the cards wrap onto multiple rows (true, the default) or are laid out in a single horizontally-scrolling carousel row (false)."
25213
24837
  }
25214
24838
  },
25215
24839
  "required": [
@@ -28090,6 +27714,14 @@
28090
27714
  "secondary"
28091
27715
  ]
28092
27716
  },
27717
+ "size": {
27718
+ "type": "string",
27719
+ "enum": [
27720
+ "small",
27721
+ "medium",
27722
+ "large"
27723
+ ]
27724
+ },
28093
27725
  "icon": {
28094
27726
  "$ref": "#/components/schemas/Icon"
28095
27727
  }
@@ -28847,7 +28479,16 @@
28847
28479
  "description": "Size of the cover image.",
28848
28480
  "enum": [
28849
28481
  "hero",
28850
- "full"
28482
+ "full",
28483
+ "background"
28484
+ ]
28485
+ },
28486
+ "RevisionPageLayoutOptionsCoverMask": {
28487
+ "type": "string",
28488
+ "description": "Mask applied to the cover image.",
28489
+ "enum": [
28490
+ "none",
28491
+ "radial"
28851
28492
  ]
28852
28493
  },
28853
28494
  "RevisionPageLayoutOptions": {
@@ -28863,6 +28504,9 @@
28863
28504
  "coverSize": {
28864
28505
  "$ref": "#/components/schemas/RevisionPageLayoutOptionsCoverSize"
28865
28506
  },
28507
+ "coverMask": {
28508
+ "$ref": "#/components/schemas/RevisionPageLayoutOptionsCoverMask"
28509
+ },
28866
28510
  "title": {
28867
28511
  "type": "boolean",
28868
28512
  "description": "Should the title be visible?"
@@ -28900,6 +28544,7 @@
28900
28544
  "width",
28901
28545
  "cover",
28902
28546
  "coverSize",
28547
+ "coverMask",
28903
28548
  "title",
28904
28549
  "description",
28905
28550
  "tableOfContents",
@@ -28910,6 +28555,13 @@
28910
28555
  "actions"
28911
28556
  ]
28912
28557
  },
28558
+ "RevisionPageDocumentCoverTextColor": {
28559
+ "type": "string",
28560
+ "enum": [
28561
+ "black",
28562
+ "white"
28563
+ ]
28564
+ },
28913
28565
  "RevisionPageDocumentCover": {
28914
28566
  "type": "object",
28915
28567
  "properties": {
@@ -28935,6 +28587,14 @@
28935
28587
  }
28936
28588
  ]
28937
28589
  },
28590
+ "textColor": {
28591
+ "description": "Text color to use on top of the cover image when in background mode.",
28592
+ "$ref": "#/components/schemas/RevisionPageDocumentCoverTextColor"
28593
+ },
28594
+ "textColorDark": {
28595
+ "description": "Text color to use on top of the dark mode cover image when in background mode.",
28596
+ "$ref": "#/components/schemas/RevisionPageDocumentCoverTextColor"
28597
+ },
28938
28598
  "yPos": {
28939
28599
  "description": "Vertical position of the cover image.",
28940
28600
  "type": "number",
@@ -29596,8 +29256,9 @@
29596
29256
  "description": "Optional title to display for the link.",
29597
29257
  "maxLength": 128
29598
29258
  },
29599
- "ChangeRequestLink": {
29259
+ "ChangeRequestLinkInput": {
29600
29260
  "type": "object",
29261
+ "description": "External link associated with a change request.",
29601
29262
  "properties": {
29602
29263
  "ref": {
29603
29264
  "$ref": "#/components/schemas/ContentRefURL"
@@ -29610,6 +29271,117 @@
29610
29271
  "ref"
29611
29272
  ]
29612
29273
  },
29274
+ "ChangeRequestLinkExpanded": {
29275
+ "description": "External ticket data resolved for this link by a configured connector.",
29276
+ "oneOf": [
29277
+ {
29278
+ "type": "object",
29279
+ "description": "An external ticket linked to the change request.",
29280
+ "properties": {
29281
+ "kind": {
29282
+ "type": "string",
29283
+ "enum": [
29284
+ "external-ticket"
29285
+ ]
29286
+ },
29287
+ "provider": {
29288
+ "type": "string",
29289
+ "enum": [
29290
+ "jira"
29291
+ ]
29292
+ },
29293
+ "state": {
29294
+ "type": "string",
29295
+ "enum": [
29296
+ "connected"
29297
+ ]
29298
+ },
29299
+ "key": {
29300
+ "type": "string",
29301
+ "description": "The ticket's provider-specific key."
29302
+ },
29303
+ "url": {
29304
+ "type": "string",
29305
+ "format": "uri",
29306
+ "description": "URL to open the ticket."
29307
+ },
29308
+ "status": {
29309
+ "type": "object",
29310
+ "properties": {
29311
+ "id": {
29312
+ "type": "string"
29313
+ },
29314
+ "name": {
29315
+ "type": "string"
29316
+ }
29317
+ },
29318
+ "required": [
29319
+ "id",
29320
+ "name"
29321
+ ]
29322
+ },
29323
+ "summary": {
29324
+ "type": "string",
29325
+ "description": "The ticket's summary."
29326
+ }
29327
+ },
29328
+ "required": [
29329
+ "kind",
29330
+ "provider",
29331
+ "state",
29332
+ "key",
29333
+ "url",
29334
+ "status",
29335
+ "summary"
29336
+ ]
29337
+ },
29338
+ {
29339
+ "type": "object",
29340
+ "description": "An external ticket whose current data could not be loaded.",
29341
+ "properties": {
29342
+ "kind": {
29343
+ "type": "string",
29344
+ "enum": [
29345
+ "external-ticket"
29346
+ ]
29347
+ },
29348
+ "provider": {
29349
+ "type": "string",
29350
+ "enum": [
29351
+ "jira"
29352
+ ]
29353
+ },
29354
+ "state": {
29355
+ "type": "string",
29356
+ "enum": [
29357
+ "error"
29358
+ ]
29359
+ }
29360
+ },
29361
+ "required": [
29362
+ "kind",
29363
+ "provider",
29364
+ "state"
29365
+ ]
29366
+ }
29367
+ ]
29368
+ },
29369
+ "ChangeRequestLink": {
29370
+ "allOf": [
29371
+ {
29372
+ "$ref": "#/components/schemas/ChangeRequestLinkInput"
29373
+ },
29374
+ {
29375
+ "type": "object",
29376
+ "properties": {
29377
+ "expanded": {
29378
+ "$ref": "#/components/schemas/ChangeRequestLinkExpanded",
29379
+ "readOnly": true
29380
+ }
29381
+ }
29382
+ }
29383
+ ]
29384
+ },
29613
29385
  "ChangeRequestLinks": {
29614
29386
  "type": "array",
29615
29387
  "description": "External links associated with the change request.",
@@ -29654,1279 +29426,79 @@
29654
29426
  "updatedAt": {
29655
29427
  "$ref": "#/components/schemas/Timestamp"
29656
29428
  },
29657
- "space": {
29658
- "type": "string",
29659
- "description": "ID of the space in which the change request was created."
29660
- },
29661
- "revision": {
29662
- "type": "string",
29663
- "description": "ID of the active revision in the change request."
29664
- },
29665
- "revisionInitial": {
29666
- "type": "string",
29667
- "description": "ID of the initial revision in the space from which the change request was created."
29668
- },
29669
- "revisionMergedAncestor": {
29670
- "type": "string",
29671
- "description": "ID of the latest revision when updating from main space content."
29672
- },
29673
- "revisionMerged": {
29674
- "type": "string",
29675
- "description": "When merged, ID of the revision resulting from the merge."
29676
- },
29677
- "comments": {
29678
- "type": "number",
29679
- "description": "Count of opened comments on the change request."
29680
- },
29681
- "siteTopic": {
29682
- "type": "object",
29683
- "description": "Site context associated with the change request when it was created from a site topic or finding.",
29684
- "properties": {
29685
- "site": {
29686
- "type": "string",
29687
- "description": "ID of the site associated with the change request."
29688
- },
29689
- "topic": {
29690
- "type": "string",
29691
- "description": "ID of the site topic associated with the change request."
29692
- },
29693
- "finding": {
29694
- "type": "string",
29695
- "description": "ID of the site finding associated with the change request, when applicable."
29696
- }
29697
- },
29698
- "required": [
29699
- "site",
29700
- "topic"
29701
- ]
29702
- },
29703
- "outdated": {
29704
- "type": "boolean",
29705
- "description": "If true, the change request is not up-to-date with latest changes in the main content."
29706
- },
29707
- "links": {
29708
- "$ref": "#/components/schemas/ChangeRequestLinks"
29709
- },
29710
- "urls": {
29711
- "type": "object",
29712
- "description": "URLs associated with the object",
29713
- "properties": {
29714
- "app": {
29715
- "type": "string",
29716
- "description": "URL of the space in the application",
29717
- "format": "uri"
29718
- },
29719
- "location": {
29720
- "type": "string",
29721
- "description": "URL of the user in the API",
29722
- "format": "uri"
29723
- }
29724
- },
29725
- "required": [
29726
- "app",
29727
- "location"
29728
- ]
29729
- }
29730
- },
29731
- "required": [
29732
- "object",
29733
- "id",
29734
- "number",
29735
- "status",
29736
- "subject",
29737
- "createdBy",
29738
- "createdAt",
29739
- "updatedAt",
29740
- "space",
29741
- "revision",
29742
- "revisionInitial",
29743
- "comments",
29744
- "outdated",
29745
- "urls"
29746
- ]
29747
- },
29748
- "RevisionTypeMerge": {
29749
- "allOf": [
29750
- {
29751
- "$ref": "#/components/schemas/RevisionBase"
29752
- },
29753
- {
29754
- "type": "object",
29755
- "properties": {
29756
- "type": {
29757
- "type": "string",
29758
- "description": "Revision created when merging a change request with primary.",
29759
- "enum": [
29760
- "merge"
29761
- ]
29762
- },
29763
- "mergedFrom": {
29764
- "$ref": "#/components/schemas/ChangeRequest"
29765
- }
29766
- },
29767
- "required": [
29768
- "type",
29769
- "mergedFrom"
29770
- ]
29771
- }
29772
- ]
29773
- },
29774
- "RevisionTypeRollback": {
29775
- "allOf": [
29776
- {
29777
- "$ref": "#/components/schemas/RevisionBase"
29778
- },
29779
- {
29780
- "type": "object",
29781
- "properties": {
29782
- "type": {
29783
- "type": "string",
29784
- "description": "Revision created as a rollback of a previous revision.",
29785
- "enum": [
29786
- "rollback"
29787
- ]
29788
- }
29789
- },
29790
- "required": [
29791
- "type"
29792
- ]
29793
- }
29794
- ]
29795
- },
29796
- "RevisionTypeUpdate": {
29797
- "allOf": [
29798
- {
29799
- "$ref": "#/components/schemas/RevisionBase"
29800
- },
29801
- {
29802
- "type": "object",
29803
- "properties": {
29804
- "type": {
29805
- "type": "string",
29806
- "description": "Revision created when updating a change request with changes from primary.",
29807
- "enum": [
29808
- "update"
29809
- ]
29810
- }
29811
- },
29812
- "required": [
29813
- "type"
29814
- ]
29815
- }
29816
- ]
29817
- },
29818
- "RevisionTypeComputed": {
29819
- "allOf": [
29820
- {
29821
- "$ref": "#/components/schemas/RevisionBase"
29822
- },
29823
- {
29824
- "type": "object",
29825
- "properties": {
29826
- "type": {
29827
- "type": "string",
29828
- "description": "Virtual revision, computed from a source revision",
29829
- "enum": [
29830
- "computed"
29831
- ]
29832
- },
29833
- "sourceRevision": {
29834
- "type": "string",
29835
- "description": "ID of the non-computed revision used to compute this revision."
29836
- },
29837
- "mergedFrom": {
29838
- "description": "The change request the source revision was merged from, when the computed revision is derived from a merge revision.",
29839
- "$ref": "#/components/schemas/ChangeRequest"
29840
- }
29841
- },
29842
- "required": [
29843
- "type",
29844
- "sourceRevision"
29845
- ]
29846
- }
29847
- ]
29848
- },
29849
- "Revision": {
29850
- "oneOf": [
29851
- {
29852
- "$ref": "#/components/schemas/RevisionTypeEdits"
29853
- },
29854
- {
29855
- "$ref": "#/components/schemas/RevisionTypeMerge"
29856
- },
29857
- {
29858
- "$ref": "#/components/schemas/RevisionTypeRollback"
29859
- },
29860
- {
29861
- "$ref": "#/components/schemas/RevisionTypeUpdate"
29862
- },
29863
- {
29864
- "$ref": "#/components/schemas/RevisionTypeComputed"
29865
- }
29866
- ],
29867
- "discriminator": {
29868
- "propertyName": "type"
29869
- }
29870
- },
29871
- "SpaceTemplateParams": {
29872
- "type": "object",
29873
- "description": "Parameters for a space template",
29874
- "properties": {
29875
- "contentRefs": {
29876
- "type": "object",
29877
- "additionalProperties": {
29878
- "type": "object",
29879
- "$ref": "#/components/schemas/ContentRef"
29880
- }
29881
- }
29882
- }
29883
- },
29884
- "ApplySpaceTemplate": {
29885
- "type": "object",
29886
- "properties": {
29887
- "id": {
29888
- "type": "string",
29889
- "description": "The ID of the template to use for the space"
29890
- },
29891
- "params": {
29892
- "$ref": "#/components/schemas/SpaceTemplateParams"
29893
- }
29894
- },
29895
- "required": [
29896
- "id"
29897
- ]
29898
- },
29899
- "OrganizationTitle": {
29900
- "type": "string",
29901
- "description": "Name of the organization",
29902
- "minLength": 2,
29903
- "maxLength": 255,
29904
- "pattern": "\\S.*\\S"
29905
- },
29906
- "OrganizationEmailDomains": {
29907
- "type": "array",
29908
- "items": {
29909
- "type": "string"
29910
- }
29911
- },
29912
- "OrganizationHostname": {
29913
- "type": "string",
29914
- "description": "Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io",
29915
- "minLength": 3,
29916
- "maxLength": 32
29917
- },
29918
- "OrganizationType": {
29919
- "type": "string",
29920
- "enum": [
29921
- "business",
29922
- "community"
29923
- ]
29924
- },
29925
- "OrganizationUseCase": {
29926
- "type": "string",
29927
- "enum": [
29928
- "internalDocs",
29929
- "docsSite",
29930
- "audienceControlledSite",
29931
- "productDocs",
29932
- "teamKnowledgeBase",
29933
- "designSystem",
29934
- "openSourceDocs",
29935
- "notes",
29936
- "other"
29937
- ]
29938
- },
29939
- "OrganizationCommunityType": {
29940
- "type": "string",
29941
- "enum": [
29942
- "nonProfit",
29943
- "openSource",
29944
- "education"
29945
- ]
29946
- },
29947
- "SitePointer": {
29948
- "type": "object",
29949
- "properties": {
29950
- "type": {
29951
- "type": "string",
29952
- "enum": [
29953
- "site"
29954
- ]
29955
- },
29956
- "site": {
29957
- "type": "string",
29958
- "description": "Unique identifier for the site"
29959
- }
29960
- },
29961
- "required": [
29962
- "type",
29963
- "site"
29964
- ]
29965
- },
29966
- "OrganizationDefaultContent": {
29967
- "description": "The default content for the organization",
29968
- "oneOf": [
29969
- {
29970
- "$ref": "#/components/schemas/SitePointer"
29971
- }
29972
- ]
29973
- },
29974
- "BillingProduct": {
29975
- "type": "string",
29976
- "description": "Name of the product",
29977
- "enum": [
29978
- "free_2024",
29979
- "plus_2024",
29980
- "pro_2024",
29981
- "enterprise_2024",
29982
- "community_2024",
29983
- "free",
29984
- "plus",
29985
- "pro",
29986
- "internal"
29987
- ]
29988
- },
29989
- "BillingInterval": {
29990
- "type": "string",
29991
- "description": "Interval for a billing subscription",
29992
- "enum": [
29993
- "monthly",
29994
- "yearly"
29995
- ]
29996
- },
29997
- "OrganizationPricePair": {
29998
- "type": "object",
29999
- "description": "Pricing pair for monthly and yearly intervals",
30000
- "properties": {
30001
- "monthly": {
30002
- "type": "number",
30003
- "description": "Monthly price in USD",
30004
- "minimum": 0
30005
- },
30006
- "yearly": {
30007
- "type": "number",
30008
- "description": "Yearly price in USD (per month)",
30009
- "minimum": 0
30010
- }
30011
- },
30012
- "required": [
30013
- "monthly",
30014
- "yearly"
30015
- ]
30016
- },
30017
- "OrganizationPricing": {
30018
- "type": "object",
30019
- "description": "Pricing information for an organization",
30020
- "properties": {
30021
- "members": {
30022
- "type": "object",
30023
- "description": "Pricing for members (organization plan)",
30024
- "properties": {
30025
- "plus_2024": {
30026
- "$ref": "#/components/schemas/OrganizationPricePair"
30027
- },
30028
- "pro_2024": {
30029
- "$ref": "#/components/schemas/OrganizationPricePair"
30030
- }
30031
- },
30032
- "required": [
30033
- "plus_2024",
30034
- "pro_2024"
30035
- ],
30036
- "additionalProperties": false
30037
- },
30038
- "sites": {
30039
- "type": "object",
30040
- "description": "Pricing for site types (site plans)",
30041
- "properties": {
30042
- "premium": {
30043
- "$ref": "#/components/schemas/OrganizationPricePair"
30044
- },
30045
- "ultimate": {
30046
- "$ref": "#/components/schemas/OrganizationPricePair"
30047
- }
30048
- },
30049
- "required": [
30050
- "premium",
30051
- "ultimate"
30052
- ],
30053
- "additionalProperties": false
30054
- }
30055
- },
30056
- "required": [
30057
- "members",
30058
- "sites"
30059
- ]
30060
- },
30061
- "BillingMeterAddon": {
30062
- "type": "object",
30063
- "properties": {
30064
- "enabled": {
30065
- "type": "boolean"
30066
- }
30067
- },
30068
- "required": [
30069
- "enabled"
30070
- ]
30071
- },
30072
- "OrganizationBilling": {
30073
- "type": "object",
30074
- "properties": {
30075
- "interval": {
30076
- "$ref": "#/components/schemas/BillingInterval"
30077
- },
30078
- "endDate": {
30079
- "oneOf": [
30080
- {
30081
- "$ref": "#/components/schemas/Timestamp"
30082
- },
30083
- {
30084
- "type": "null"
30085
- }
30086
- ]
30087
- },
30088
- "hasPaymentFailed": {
30089
- "description": "If true, we were unable to collect the last payment",
30090
- "type": "boolean"
30091
- },
30092
- "canCheckout": {
30093
- "description": "If true, organization can create a checkout session to subscribe/update billing. \nIf false, organization must resolve other billing issues before a checkout can be done.\n",
30094
- "type": "boolean"
30095
- },
30096
- "isScheduledToCancel": {
30097
- "description": "If true, the billing is set to cancel at the end of its current period",
30098
- "type": "boolean"
30099
- },
30100
- "pricing": {
30101
- "description": "Pricing information for the organization",
30102
- "$ref": "#/components/schemas/OrganizationPricing"
30103
- },
30104
- "usageAddons": {
30105
- "description": "Configuration for the usage-based addons",
30106
- "type": "object",
30107
- "additionalProperties": {
30108
- "$ref": "#/components/schemas/BillingMeterAddon"
30109
- }
30110
- },
30111
- "minUsers": {
30112
- "description": "The minimum number of members allowed for this organization.",
30113
- "type": "number"
30114
- },
30115
- "maxUsers": {
30116
- "description": "The maximum number of members allowed for this organization",
30117
- "type": "number"
30118
- },
30119
- "minPremiumSites": {
30120
- "description": "The minimum number of premium sites allowed for this organization.",
30121
- "type": "number"
30122
- },
30123
- "maxPremiumSites": {
30124
- "description": "The maximum number of premium sites allowed for this organization.",
30125
- "type": "number"
30126
- },
30127
- "minUltimateSites": {
30128
- "description": "The minimum number of ultimate sites allowed for this organization.",
30129
- "type": "number"
30130
- },
30131
- "maxUltimateSites": {
30132
- "description": "The maximum number of ultimate sites allowed for this organization.",
30133
- "type": "number"
30134
- },
30135
- "paidMembers": {
30136
- "description": "The number of paid members on the current subscription.",
30137
- "type": "number"
30138
- },
30139
- "paidPremiumSites": {
30140
- "description": "The number of paid premium sites on the current subscription.",
30141
- "type": "number"
30142
- },
30143
- "paidUltimateSites": {
30144
- "description": "The number of paid ultimate sites on the current subscription.",
30145
- "type": "number"
30146
- },
30147
- "canChangeInterval": {
30148
- "description": "Whether changing billing interval is allowed",
30149
- "type": "boolean"
30150
- },
30151
- "canUseSAML": {
30152
- "description": "Whether configuring SAML is allowed",
30153
- "type": "boolean"
30154
- }
30155
- },
30156
- "required": [
30157
- "interval",
30158
- "endDate",
30159
- "hasPaymentFailed",
30160
- "canCheckout",
30161
- "isScheduledToCancel",
30162
- "pricing",
30163
- "usageAddons",
30164
- "canChangeInterval",
30165
- "canUseSAML"
30166
- ]
30167
- },
30168
- "BillingTrialStatus": {
30169
- "type": "string",
30170
- "description": "- notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do.\n",
30171
- "enum": [
30172
- "notapplicable",
30173
- "none",
30174
- "active",
30175
- "ended",
30176
- "expired"
30177
- ]
30178
- },
30179
- "BlockSource": {
30180
- "type": "string",
30181
- "description": "Source for an organization block",
30182
- "enum": [
30183
- "backoffice",
30184
- "external",
30185
- "internal"
30186
- ]
30187
- },
30188
- "BlockReason": {
30189
- "type": "string",
30190
- "description": "A short description giving context on the reason for the block.",
30191
- "minLength": 1,
30192
- "maxLength": 255
30193
- },
30194
- "Organization": {
30195
- "type": "object",
30196
- "properties": {
30197
- "object": {
30198
- "type": "string",
30199
- "description": "Type of Object, always equals to \"organization\"",
30200
- "enum": [
30201
- "organization"
30202
- ]
30203
- },
30204
- "id": {
30205
- "type": "string",
30206
- "description": "Unique identifier for the organization"
30207
- },
30208
- "title": {
30209
- "$ref": "#/components/schemas/OrganizationTitle"
30210
- },
30211
- "createdAt": {
30212
- "$ref": "#/components/schemas/Timestamp"
30213
- },
30214
- "emailDomains": {
30215
- "$ref": "#/components/schemas/OrganizationEmailDomains"
30216
- },
30217
- "hostname": {
30218
- "$ref": "#/components/schemas/OrganizationHostname"
30219
- },
30220
- "type": {
30221
- "$ref": "#/components/schemas/OrganizationType"
30222
- },
30223
- "useCase": {
30224
- "$ref": "#/components/schemas/OrganizationUseCase"
30225
- },
30226
- "communityType": {
30227
- "$ref": "#/components/schemas/OrganizationCommunityType"
30228
- },
30229
- "defaultRole": {
30230
- "$ref": "#/components/schemas/MemberRoleOrGuest"
30231
- },
30232
- "defaultContent": {
30233
- "$ref": "#/components/schemas/OrganizationDefaultContent"
30234
- },
30235
- "sso": {
30236
- "description": "Whether SSO is enforced organization-wide",
30237
- "type": "boolean"
30238
- },
30239
- "ai": {
30240
- "description": "If true, the organization is configured to use all our AI features.",
30241
- "type": "boolean"
30242
- },
30243
- "inviteLinks": {
30244
- "description": "If true, invite links are enabled for this organization.",
30245
- "type": "boolean"
30246
- },
30247
- "plan": {
30248
- "$ref": "#/components/schemas/BillingProduct"
30249
- },
30250
- "billing": {
30251
- "description": "Billing details, only available for org members.",
30252
- "$ref": "#/components/schemas/OrganizationBilling"
30253
- },
30254
- "mergeRules": {
30255
- "$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
30256
- },
30257
- "urls": {
30258
- "type": "object",
30259
- "description": "URLs associated with the object",
30260
- "properties": {
30261
- "location": {
30262
- "type": "string",
30263
- "description": "URL of the organization in the API",
30264
- "format": "uri"
30265
- },
30266
- "app": {
30267
- "type": "string",
30268
- "description": "URL of the organization in the application",
30269
- "format": "uri"
30270
- },
30271
- "logo": {
30272
- "description": "URL of the logo of this organization, if defined.",
30273
- "$ref": "#/components/schemas/URL"
30274
- }
30275
- },
30276
- "required": [
30277
- "app",
30278
- "location"
30279
- ]
30280
- },
30281
- "trial": {
30282
- "type": "object",
30283
- "properties": {
30284
- "status": {
30285
- "$ref": "#/components/schemas/BillingTrialStatus"
30286
- },
30287
- "count": {
30288
- "type": "integer",
30289
- "description": "Number of trials the organization has consumed."
30290
- },
30291
- "endDate": {
30292
- "description": "The trial's end date, if the organization has or had a trial.",
30293
- "$ref": "#/components/schemas/Timestamp"
30294
- },
30295
- "decision": {
30296
- "type": "string",
30297
- "description": "The decision taken by the user at the end of the trial",
30298
- "enum": [
30299
- "downgrade"
30300
- ]
30301
- }
30302
- },
30303
- "required": [
30304
- "status",
30305
- "count"
30306
- ]
30307
- },
30308
- "customHostname": {
30309
- "description": "Custom hostname linked to this organization",
30310
- "type": "string"
30311
- },
30312
- "blocked": {
30313
- "type": "object",
30314
- "description": "If the organization is blocked, information about the block will appear here",
30315
- "properties": {
30316
- "source": {
30317
- "$ref": "#/components/schemas/BlockSource"
30318
- },
30319
- "reason": {
30320
- "$ref": "#/components/schemas/BlockReason"
30321
- }
30322
- },
30323
- "required": [
30324
- "reason"
30325
- ]
30326
- },
30327
- "internal_billingMigration": {
30328
- "type": "object",
30329
- "properties": {
30330
- "deadline": {
30331
- "description": "When we will upgrade the organization onto new pricing, if they haven't already.",
30332
- "$ref": "#/components/schemas/Timestamp"
30333
- },
30334
- "discountPercent": {
30335
- "description": "A discount the organization may have received thanks to migrating early.",
30336
- "type": "number"
30337
- },
30338
- "discountEndDate": {
30339
- "description": "The expiration date of the discount, after wich regular pricing resumes.",
30340
- "$ref": "#/components/schemas/Timestamp"
30341
- }
30342
- }
30343
- },
30344
- "permissions": {
30345
- "type": "object",
30346
- "description": "The set of permissions for the organization",
30347
- "properties": {
30348
- "view": {
30349
- "type": "boolean",
30350
- "description": "Can the user view the organization."
30351
- },
30352
- "access": {
30353
- "type": "boolean",
30354
- "description": "Can the user view the organization in the application."
30355
- },
30356
- "admin": {
30357
- "type": "boolean",
30358
- "description": "Can the user manage the title, members, etc."
30359
- },
30360
- "ownTeam": {
30361
- "type": "boolean",
30362
- "description": "Is the user a team owner."
30363
- },
30364
- "createContent": {
30365
- "type": "boolean",
30366
- "description": "Can the user create new spaces/collections in the organization."
30367
- },
30368
- "createOpenAPISpec": {
30369
- "type": "boolean",
30370
- "description": "Can the user create new OpenAPI specifications."
30371
- },
30372
- "viewBilling": {
30373
- "type": "boolean",
30374
- "description": "Can the user view the billing details of the organization."
30375
- },
30376
- "listMembers": {
30377
- "type": "boolean",
30378
- "description": "Can the user list the members of the organization."
30379
- },
30380
- "listTeams": {
30381
- "type": "boolean",
30382
- "description": "Can the user list the teams in the organization."
30383
- },
30384
- "listIntegrations": {
30385
- "type": "boolean",
30386
- "description": "Can the user list the integrations in the organization."
30387
- },
30388
- "listInstallations": {
30389
- "type": "boolean",
30390
- "description": "Can the user list the integration installations in the organization."
30391
- },
30392
- "installIntegration": {
30393
- "type": "boolean",
30394
- "description": "Can the user install integrations in the organization."
30395
- }
30396
- },
30397
- "required": [
30398
- "view",
30399
- "access",
30400
- "admin",
30401
- "ownTeam",
30402
- "createContent",
30403
- "createOpenAPISpec",
30404
- "viewBilling",
30405
- "listMembers",
30406
- "listTeams",
30407
- "listIntegrations",
30408
- "listInstallations",
30409
- "installIntegration"
30410
- ]
30411
- }
30412
- },
30413
- "required": [
30414
- "object",
30415
- "id",
30416
- "plan",
30417
- "title",
30418
- "createdAt",
30419
- "inviteLinks",
30420
- "type",
30421
- "emailDomains",
30422
- "mergeRules",
30423
- "urls",
30424
- "trial",
30425
- "permissions"
30426
- ]
30427
- },
30428
- "ContentLocationRevisionContext": {
30429
- "type": "object",
30430
- "required": [
30431
- "type",
30432
- "revision"
30433
- ],
30434
- "properties": {
30435
- "type": {
30436
- "type": "string",
30437
- "enum": [
30438
- "revision"
30439
- ]
30440
- },
30441
- "revision": {
30442
- "$ref": "#/components/schemas/Revision"
30443
- }
30444
- }
30445
- },
30446
- "ContentLocationChangeRequestContext": {
30447
- "type": "object",
30448
- "required": [
30449
- "type",
30450
- "changeRequest"
30451
- ],
30452
- "properties": {
30453
- "type": {
30454
- "type": "string",
30455
- "enum": [
30456
- "changeRequest"
30457
- ]
30458
- },
30459
- "changeRequest": {
30460
- "$ref": "#/components/schemas/ChangeRequest"
30461
- }
30462
- }
30463
- },
30464
- "ContentLocationFile": {
30465
- "type": "object",
30466
- "properties": {
30467
- "kind": {
30468
- "type": "string",
30469
- "enum": [
30470
- "file"
30471
- ]
30472
- },
30473
- "organization": {
30474
- "$ref": "#/components/schemas/Organization"
30475
- },
30476
- "space": {
30477
- "$ref": "#/components/schemas/Space"
30478
- },
30479
- "versionContext": {
30480
- "oneOf": [
30481
- {
30482
- "$ref": "#/components/schemas/ContentLocationRevisionContext"
30483
- },
30484
- {
30485
- "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
30486
- }
30487
- ]
30488
- },
30489
- "file": {
30490
- "$ref": "#/components/schemas/RevisionFile"
30491
- }
30492
- },
30493
- "required": [
30494
- "kind",
30495
- "organization",
30496
- "space",
30497
- "file"
30498
- ]
30499
- },
30500
- "ContentLocationURL": {
30501
- "type": "object",
30502
- "properties": {
30503
- "kind": {
30504
- "type": "string",
30505
- "enum": [
30506
- "url"
30507
- ]
30508
- },
30509
- "url": {
30510
- "type": "string"
30511
- }
30512
- },
30513
- "required": [
30514
- "kind",
30515
- "url"
30516
- ]
30517
- },
30518
- "ContentLocationPageAnchor": {
30519
- "type": "object",
30520
- "properties": {
30521
- "type": {
30522
- "type": "string",
30523
- "enum": [
30524
- "anchor"
30525
- ]
30526
- },
30527
- "anchor": {
30528
- "description": "The anchor within the page.",
30529
- "type": "string"
30530
- }
30531
- },
30532
- "required": [
30533
- "type",
30534
- "anchor"
30535
- ]
30536
- },
30537
- "ContentLocationPageNode": {
30538
- "type": "object",
30539
- "properties": {
30540
- "type": {
30541
- "type": "string",
30542
- "enum": [
30543
- "node"
30544
- ]
30545
- },
30546
- "node": {
30547
- "description": "The node id within the page.",
30548
- "type": "string"
30549
- }
30550
- },
30551
- "required": [
30552
- "type",
30553
- "node"
30554
- ]
30555
- },
30556
- "ContentLocationPage": {
30557
- "type": "object",
30558
- "properties": {
30559
- "kind": {
30560
- "type": "string",
30561
- "enum": [
30562
- "page"
30563
- ]
30564
- },
30565
- "organization": {
30566
- "$ref": "#/components/schemas/Organization"
30567
- },
30568
- "page": {
30569
- "$ref": "#/components/schemas/RevisionPage"
30570
- },
30571
- "space": {
30572
- "$ref": "#/components/schemas/Space"
30573
- },
30574
- "versionContext": {
30575
- "oneOf": [
30576
- {
30577
- "$ref": "#/components/schemas/ContentLocationRevisionContext"
30578
- },
30579
- {
30580
- "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
30581
- }
30582
- ]
30583
- },
30584
- "internalLocation": {
30585
- "oneOf": [
30586
- {
30587
- "$ref": "#/components/schemas/ContentLocationPageAnchor"
30588
- },
30589
- {
30590
- "$ref": "#/components/schemas/ContentLocationPageNode"
30591
- }
30592
- ]
30593
- }
30594
- },
30595
- "required": [
30596
- "kind",
30597
- "organization",
30598
- "space",
30599
- "page"
30600
- ]
30601
- },
30602
- "ContentLocationUser": {
30603
- "type": "object",
30604
- "properties": {
30605
- "kind": {
30606
- "type": "string",
30607
- "enum": [
30608
- "user"
30609
- ]
30610
- },
30611
- "user": {
30612
- "$ref": "#/components/schemas/User"
30613
- }
30614
- },
30615
- "required": [
30616
- "kind",
30617
- "user"
30618
- ]
30619
- },
30620
- "CollectionTitle": {
30621
- "type": "string",
30622
- "description": "Title of the collection",
30623
- "maxLength": 50
30624
- },
30625
- "CollectionDescription": {
30626
- "type": "string",
30627
- "description": "Description of the collection",
30628
- "minLength": 0,
30629
- "maxLength": 100
30630
- },
30631
- "Collection": {
30632
- "type": "object",
30633
- "properties": {
30634
- "object": {
30635
- "type": "string",
30636
- "description": "Type of Object, always equals to \"collection\"",
30637
- "enum": [
30638
- "collection"
30639
- ]
30640
- },
30641
- "id": {
30642
- "type": "string",
30643
- "description": "Unique identifier for the collection"
30644
- },
30645
- "title": {
30646
- "$ref": "#/components/schemas/CollectionTitle"
30647
- },
30648
- "description": {
30649
- "$ref": "#/components/schemas/CollectionDescription"
30650
- },
30651
- "organization": {
30652
- "type": "string",
30653
- "description": "ID of the organization owning this collection"
30654
- },
30655
- "parent": {
30656
- "type": "string",
30657
- "description": "ID of the parent collection, if any"
30658
- },
30659
- "defaultLevel": {
30660
- "$ref": "#/components/schemas/DefaultLevel"
30661
- },
30662
- "urls": {
30663
- "type": "object",
30664
- "description": "URLs associated with the object",
30665
- "properties": {
30666
- "location": {
30667
- "type": "string",
30668
- "description": "URL of the collection in the API",
30669
- "format": "uri"
30670
- },
30671
- "app": {
30672
- "type": "string",
30673
- "description": "URL of the collection in the application",
30674
- "format": "uri"
30675
- }
30676
- },
30677
- "required": [
30678
- "app",
30679
- "location"
30680
- ]
30681
- },
30682
- "permissions": {
30683
- "type": "object",
30684
- "description": "The set of permissions for the collection",
30685
- "properties": {
30686
- "view": {
30687
- "type": "boolean",
30688
- "description": "Can the user view the collection."
30689
- },
30690
- "admin": {
30691
- "type": "boolean",
30692
- "description": "Can the user edit the title/description."
30693
- },
30694
- "viewInviteLinks": {
30695
- "type": "boolean",
30696
- "description": "Can the user view the invite links of the collection."
30697
- },
30698
- "create": {
30699
- "type": "boolean",
30700
- "description": "Can the user create spaces/collections in this collection."
30701
- }
30702
- },
30703
- "required": [
30704
- "view",
30705
- "admin",
30706
- "viewInviteLinks",
30707
- "create"
30708
- ]
30709
- }
30710
- },
30711
- "required": [
30712
- "object",
30713
- "id",
30714
- "title",
30715
- "organization",
30716
- "urls",
30717
- "defaultLevel",
30718
- "permissions"
30719
- ]
30720
- },
30721
- "ContentLocationCollection": {
30722
- "type": "object",
30723
- "properties": {
30724
- "kind": {
30725
- "type": "string",
30726
- "enum": [
30727
- "collection"
30728
- ]
30729
- },
30730
- "organization": {
30731
- "$ref": "#/components/schemas/Organization"
30732
- },
30733
- "collection": {
30734
- "$ref": "#/components/schemas/Collection"
30735
- }
30736
- },
30737
- "required": [
30738
- "kind",
30739
- "organization",
30740
- "collection"
30741
- ]
30742
- },
30743
- "ContentLocationSpace": {
30744
- "type": "object",
30745
- "properties": {
30746
- "kind": {
30747
- "type": "string",
30748
- "enum": [
30749
- "space"
30750
- ]
30751
- },
30752
- "organization": {
30753
- "$ref": "#/components/schemas/Organization"
30754
- },
30755
- "space": {
30756
- "$ref": "#/components/schemas/Space"
30757
- }
30758
- },
30759
- "required": [
30760
- "kind",
30761
- "organization",
30762
- "space"
30763
- ]
30764
- },
30765
- "ContentLocationReusableContent": {
30766
- "type": "object",
30767
- "properties": {
30768
- "kind": {
30769
- "type": "string",
30770
- "enum": [
30771
- "reusable-content"
30772
- ]
30773
- },
30774
- "organization": {
30775
- "$ref": "#/components/schemas/Organization"
30776
- },
30777
- "space": {
30778
- "$ref": "#/components/schemas/Space"
30779
- },
30780
- "versionContext": {
30781
- "oneOf": [
30782
- {
30783
- "$ref": "#/components/schemas/ContentLocationRevisionContext"
30784
- },
30785
- {
30786
- "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
30787
- }
30788
- ]
30789
- },
30790
- "reusableContent": {
30791
- "$ref": "#/components/schemas/RevisionReusableContent"
30792
- }
30793
- },
30794
- "required": [
30795
- "kind",
30796
- "organization",
30797
- "space",
30798
- "reusableContent"
30799
- ]
30800
- },
30801
- "OpenAPISpecSlug": {
30802
- "description": "Slug used as reference",
30803
- "type": "string",
30804
- "minLength": 1,
30805
- "maxLength": 100,
30806
- "pattern": "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$"
30807
- },
30808
- "OpenAPISpecProcessingState": {
30809
- "description": "Processing state",
30810
- "enum": [
30811
- "pending",
30812
- "progress",
30813
- "complete"
30814
- ]
30815
- },
30816
- "OpenAPISpecProcessingErrorCode": {
30817
- "description": "OpenAPI processing error code",
30818
- "enum": [
30819
- "FETCH_TIMEOUT",
30820
- "FETCH_ERROR",
30821
- "PARSE_ERROR"
30822
- ]
30823
- },
30824
- "OpenAPIErrorObject": {
30825
- "type": "object",
30826
- "description": "OpenAPI error object.",
30827
- "properties": {
30828
- "message": {
30829
- "type": "string",
30830
- "description": "Description of the error."
30831
- },
30832
- "code": {
30833
- "type": "string",
30834
- "description": "Unique code of the error."
30835
- }
30836
- },
30837
- "required": [
30838
- "message"
30839
- ]
30840
- },
30841
- "OpenAPISpec": {
30842
- "type": "object",
30843
- "properties": {
30844
- "object": {
30845
- "description": "The object type, which is always \"openapi-spec\"",
30846
- "type": "string",
30847
- "enum": [
30848
- "openapi-spec"
30849
- ]
30850
- },
30851
- "id": {
30852
- "description": "Unique identifier",
30853
- "type": "string"
30854
- },
30855
- "createdAt": {
30856
- "description": "Date of creation",
30857
- "$ref": "#/components/schemas/Timestamp"
30858
- },
30859
- "updatedAt": {
30860
- "description": "Date of the last update",
30861
- "$ref": "#/components/schemas/Timestamp"
30862
- },
30863
- "slug": {
30864
- "$ref": "#/components/schemas/OpenAPISpecSlug"
30865
- },
30866
- "sourceURL": {
30867
- "$ref": "#/components/schemas/URL"
29429
+ "mergedBy": {
29430
+ "$ref": "#/components/schemas/User",
29431
+ "description": "User who merged the change request. Only present when the change request has been merged."
30868
29432
  },
30869
- "processingState": {
30870
- "$ref": "#/components/schemas/OpenAPISpecProcessingState"
29433
+ "mergedAt": {
29434
+ "$ref": "#/components/schemas/Timestamp",
29435
+ "description": "Date at which the change request was merged. Only present when the change request has been merged."
30871
29436
  },
30872
- "visibility": {
30873
- "$ref": "#/components/schemas/OpenAPISpecVisibility"
29437
+ "space": {
29438
+ "type": "string",
29439
+ "description": "ID of the space in which the change request was created."
30874
29440
  },
30875
- "lastVersion": {
29441
+ "revision": {
30876
29442
  "type": "string",
30877
- "description": "ID of the latest version of the OpenAPI specification"
29443
+ "description": "ID of the active revision in the change request."
30878
29444
  },
30879
- "lastProcessedAt": {
30880
- "description": "Date of the last processing",
30881
- "$ref": "#/components/schemas/Timestamp"
29445
+ "revisionInitial": {
29446
+ "type": "string",
29447
+ "description": "ID of the initial revision in the space from which the change request was created."
30882
29448
  },
30883
- "lastProcessErrorCode": {
30884
- "$ref": "#/components/schemas/OpenAPISpecProcessingErrorCode"
29449
+ "revisionMergedAncestor": {
29450
+ "type": "string",
29451
+ "description": "ID of the latest revision when updating from main space content."
30885
29452
  },
30886
- "lastProcessedErrors": {
30887
- "type": "array",
30888
- "items": {
30889
- "$ref": "#/components/schemas/OpenAPIErrorObject"
30890
- }
29453
+ "revisionMerged": {
29454
+ "type": "string",
29455
+ "description": "When merged, ID of the revision resulting from the merge."
30891
29456
  },
30892
- "lastProcessedErrorCount": {
30893
- "type": "integer",
30894
- "minimum": 0,
30895
- "description": "Total number of processing errors before truncation of lastProcessedErrors."
29457
+ "comments": {
29458
+ "type": "number",
29459
+ "description": "Count of opened comments on the change request."
30896
29460
  },
30897
- "permissions": {
29461
+ "siteTopic": {
30898
29462
  "type": "object",
30899
- "description": "The set of permissions for the OpenAPI specification.",
30900
- "required": [
30901
- "view",
30902
- "edit"
30903
- ],
29463
+ "description": "Site context associated with the change request when it was created from a site topic or finding.",
30904
29464
  "properties": {
30905
- "view": {
30906
- "type": "boolean",
30907
- "description": "Can the user view the specification."
29465
+ "site": {
29466
+ "type": "string",
29467
+ "description": "ID of the site associated with the change request."
30908
29468
  },
30909
- "edit": {
30910
- "type": "boolean",
30911
- "description": "Can the user edit the specification."
29469
+ "topic": {
29470
+ "type": "string",
29471
+ "description": "ID of the site topic associated with the change request."
29472
+ },
29473
+ "finding": {
29474
+ "type": "string",
29475
+ "description": "ID of the site finding associated with the change request, when applicable."
30912
29476
  }
30913
- }
29477
+ },
29478
+ "required": [
29479
+ "site",
29480
+ "topic"
29481
+ ]
29482
+ },
29483
+ "outdated": {
29484
+ "type": "boolean",
29485
+ "description": "If true, the change request is not up-to-date with latest changes in the main content."
29486
+ },
29487
+ "links": {
29488
+ "$ref": "#/components/schemas/ChangeRequestLinks"
30914
29489
  },
30915
29490
  "urls": {
30916
29491
  "type": "object",
30917
29492
  "description": "URLs associated with the object",
30918
29493
  "properties": {
30919
- "location": {
30920
- "description": "URL of the OpenAPI specification in the API",
30921
- "$ref": "#/components/schemas/URL"
30922
- },
30923
29494
  "app": {
30924
- "description": "URL of the OpenAPI specification in the application",
30925
- "$ref": "#/components/schemas/URL"
29495
+ "type": "string",
29496
+ "description": "URL of the space in the application",
29497
+ "format": "uri"
30926
29498
  },
30927
- "published": {
29499
+ "location": {
30928
29500
  "type": "string",
30929
- "description": "URL of the published spec. Only defined when visibility is \"published.\"",
29501
+ "description": "URL of the user in the API",
30930
29502
  "format": "uri"
30931
29503
  }
30932
29504
  },
@@ -30939,140 +29511,169 @@
30939
29511
  "required": [
30940
29512
  "object",
30941
29513
  "id",
29514
+ "number",
29515
+ "status",
29516
+ "subject",
29517
+ "createdBy",
30942
29518
  "createdAt",
30943
29519
  "updatedAt",
30944
- "slug",
30945
- "processingState",
30946
- "lastProcessedErrorCount",
30947
- "permissions",
29520
+ "space",
29521
+ "revision",
29522
+ "revisionInitial",
29523
+ "comments",
29524
+ "outdated",
30948
29525
  "urls"
30949
29526
  ]
30950
29527
  },
30951
- "ContentLocationOpenAPI": {
30952
- "type": "object",
30953
- "properties": {
30954
- "kind": {
30955
- "type": "string",
30956
- "enum": [
30957
- "openapi"
30958
- ]
30959
- },
30960
- "organization": {
30961
- "$ref": "#/components/schemas/Organization"
29528
+ "RevisionTypeMerge": {
29529
+ "allOf": [
29530
+ {
29531
+ "$ref": "#/components/schemas/RevisionBase"
30962
29532
  },
30963
- "openAPISpec": {
30964
- "$ref": "#/components/schemas/OpenAPISpec"
29533
+ {
29534
+ "type": "object",
29535
+ "properties": {
29536
+ "type": {
29537
+ "type": "string",
29538
+ "description": "Revision created when merging a change request with primary.",
29539
+ "enum": [
29540
+ "merge"
29541
+ ]
29542
+ },
29543
+ "mergedFrom": {
29544
+ "$ref": "#/components/schemas/ChangeRequest"
29545
+ }
29546
+ },
29547
+ "required": [
29548
+ "type",
29549
+ "mergedFrom"
29550
+ ]
30965
29551
  }
30966
- },
30967
- "required": [
30968
- "kind",
30969
- "organization",
30970
- "openAPISpec"
30971
29552
  ]
30972
29553
  },
30973
- "ContentLocation": {
30974
- "description": "An absolute reference to content in GitBook.",
30975
- "oneOf": [
29554
+ "RevisionTypeRollback": {
29555
+ "allOf": [
30976
29556
  {
30977
- "$ref": "#/components/schemas/ContentLocationFile"
29557
+ "$ref": "#/components/schemas/RevisionBase"
30978
29558
  },
30979
29559
  {
30980
- "$ref": "#/components/schemas/ContentLocationURL"
29560
+ "type": "object",
29561
+ "properties": {
29562
+ "type": {
29563
+ "type": "string",
29564
+ "description": "Revision created as a rollback of a previous revision.",
29565
+ "enum": [
29566
+ "rollback"
29567
+ ]
29568
+ }
29569
+ },
29570
+ "required": [
29571
+ "type"
29572
+ ]
29573
+ }
29574
+ ]
29575
+ },
29576
+ "RevisionTypeUpdate": {
29577
+ "allOf": [
29578
+ {
29579
+ "$ref": "#/components/schemas/RevisionBase"
30981
29580
  },
30982
29581
  {
30983
- "$ref": "#/components/schemas/ContentLocationPage"
29582
+ "type": "object",
29583
+ "properties": {
29584
+ "type": {
29585
+ "type": "string",
29586
+ "description": "Revision created when updating a change request with changes from primary.",
29587
+ "enum": [
29588
+ "update"
29589
+ ]
29590
+ }
29591
+ },
29592
+ "required": [
29593
+ "type"
29594
+ ]
29595
+ }
29596
+ ]
29597
+ },
29598
+ "RevisionTypeComputed": {
29599
+ "allOf": [
29600
+ {
29601
+ "$ref": "#/components/schemas/RevisionBase"
30984
29602
  },
30985
29603
  {
30986
- "$ref": "#/components/schemas/ContentLocationUser"
29604
+ "type": "object",
29605
+ "properties": {
29606
+ "type": {
29607
+ "type": "string",
29608
+ "description": "Virtual revision, computed from a source revision",
29609
+ "enum": [
29610
+ "computed"
29611
+ ]
29612
+ },
29613
+ "sourceRevision": {
29614
+ "type": "string",
29615
+ "description": "ID of the non-computed revision used to compute this revision."
29616
+ },
29617
+ "mergedFrom": {
29618
+ "description": "The change request the source revision was merged from, when the computed revision is derived from a merge revision.",
29619
+ "$ref": "#/components/schemas/ChangeRequest"
29620
+ }
29621
+ },
29622
+ "required": [
29623
+ "type",
29624
+ "sourceRevision"
29625
+ ]
29626
+ }
29627
+ ]
29628
+ },
29629
+ "Revision": {
29630
+ "oneOf": [
29631
+ {
29632
+ "$ref": "#/components/schemas/RevisionTypeEdits"
30987
29633
  },
30988
29634
  {
30989
- "$ref": "#/components/schemas/ContentLocationCollection"
29635
+ "$ref": "#/components/schemas/RevisionTypeMerge"
30990
29636
  },
30991
29637
  {
30992
- "$ref": "#/components/schemas/ContentLocationSpace"
29638
+ "$ref": "#/components/schemas/RevisionTypeRollback"
30993
29639
  },
30994
29640
  {
30995
- "$ref": "#/components/schemas/ContentLocationReusableContent"
29641
+ "$ref": "#/components/schemas/RevisionTypeUpdate"
30996
29642
  },
30997
29643
  {
30998
- "$ref": "#/components/schemas/ContentLocationOpenAPI"
29644
+ "$ref": "#/components/schemas/RevisionTypeComputed"
30999
29645
  }
31000
29646
  ],
31001
29647
  "discriminator": {
31002
- "propertyName": "kind"
29648
+ "propertyName": "type"
31003
29649
  }
31004
29650
  },
31005
- "ContentReferenceStatus": {
31006
- "type": "string",
31007
- "enum": [
31008
- "ok",
31009
- "broken",
31010
- "in-app"
31011
- ],
31012
- "description": "Text to display to represent the reference. Possible values include:\n- `ok` - No problems detected for this content reference.\n- `broken` - The target does not exist in the revision.\n- `in-app` - The target is a URL link pointing to an internal location in the app.\n"
31013
- },
31014
- "ContentReferencesStats": {
29651
+ "SpaceTemplateParams": {
31015
29652
  "type": "object",
29653
+ "description": "Parameters for a space template",
31016
29654
  "properties": {
31017
- "total": {
31018
- "description": "Total count of links",
31019
- "type": "number"
31020
- },
31021
- "broken": {
29655
+ "contentRefs": {
31022
29656
  "type": "object",
31023
- "properties": {
31024
- "total": {
31025
- "description": "Count of broken links",
31026
- "type": "number"
31027
- },
31028
- "changeRequest": {
31029
- "description": "Count of broken links that were broken in current change request, if applicable.",
31030
- "type": "number"
31031
- }
31032
- },
31033
- "required": [
31034
- "total"
31035
- ]
29657
+ "additionalProperties": {
29658
+ "type": "object",
29659
+ "$ref": "#/components/schemas/ContentRef"
29660
+ }
31036
29661
  }
31037
- },
31038
- "required": [
31039
- "total",
31040
- "broken"
31041
- ]
31042
- },
31043
- "ContentReferenceRelation": {
31044
- "type": "string",
31045
- "enum": [
31046
- "reference",
31047
- "dependsOn"
31048
- ],
31049
- "description": "Indicator of the relationship with the content ref target.\n- `reference` - The content soft-references the ref target\n- `dependsOn` - The content depends on the ref target\n"
29662
+ }
31050
29663
  },
31051
- "ContentReferenceUsage": {
29664
+ "ApplySpaceTemplate": {
31052
29665
  "type": "object",
31053
29666
  "properties": {
31054
- "status": {
31055
- "$ref": "#/components/schemas/ContentReferenceStatus"
31056
- },
31057
- "relation": {
31058
- "$ref": "#/components/schemas/ContentReferenceRelation"
31059
- },
31060
- "targetReference": {
31061
- "description": "The reference target where a list of pages are pointing at",
31062
- "$ref": "#/components/schemas/ContentLocation"
29667
+ "id": {
29668
+ "type": "string",
29669
+ "description": "The ID of the template to use for the space"
31063
29670
  },
31064
- "locationReferences": {
31065
- "description": "Pages locations where a link to the target is found.",
31066
- "type": "array",
31067
- "items": {
31068
- "$ref": "#/components/schemas/ContentLocation"
31069
- }
29671
+ "params": {
29672
+ "$ref": "#/components/schemas/SpaceTemplateParams"
31070
29673
  }
31071
29674
  },
31072
29675
  "required": [
31073
- "relation",
31074
- "status",
31075
- "locationReferences"
29676
+ "id"
31076
29677
  ]
31077
29678
  },
31078
29679
  "ChangeRequestOrderBy": {
@@ -32919,52 +31520,581 @@
32919
31520
  }
32920
31521
  },
32921
31522
  "required": [
32922
- "properties"
31523
+ "properties"
31524
+ ]
31525
+ },
31526
+ "IntegrationConfiguration": {
31527
+ "oneOf": [
31528
+ {
31529
+ "$ref": "#/components/schemas/IntegrationConfigurationSchema"
31530
+ },
31531
+ {
31532
+ "$ref": "#/components/schemas/IntegrationConfigurationComponent"
31533
+ }
31534
+ ]
31535
+ },
31536
+ "IntegrationConfigurations": {
31537
+ "type": "object",
31538
+ "properties": {
31539
+ "account": {
31540
+ "$ref": "#/components/schemas/IntegrationConfiguration"
31541
+ },
31542
+ "space": {
31543
+ "$ref": "#/components/schemas/IntegrationConfiguration"
31544
+ },
31545
+ "site": {
31546
+ "$ref": "#/components/schemas/IntegrationConfiguration"
31547
+ }
31548
+ }
31549
+ },
31550
+ "IntegrationExternalLinks": {
31551
+ "type": "array",
31552
+ "description": "External urls configured by the developer of the integration",
31553
+ "maxItems": 5,
31554
+ "items": {
31555
+ "type": "object",
31556
+ "properties": {
31557
+ "url": {
31558
+ "$ref": "#/components/schemas/URL"
31559
+ },
31560
+ "label": {
31561
+ "type": "string"
31562
+ }
31563
+ },
31564
+ "required": [
31565
+ "url",
31566
+ "label"
31567
+ ]
31568
+ }
31569
+ },
31570
+ "OrganizationTitle": {
31571
+ "type": "string",
31572
+ "description": "Name of the organization",
31573
+ "minLength": 2,
31574
+ "maxLength": 255,
31575
+ "pattern": "\\S.*\\S"
31576
+ },
31577
+ "OrganizationEmailDomains": {
31578
+ "type": "array",
31579
+ "items": {
31580
+ "type": "string"
31581
+ }
31582
+ },
31583
+ "OrganizationHostname": {
31584
+ "type": "string",
31585
+ "description": "Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io",
31586
+ "minLength": 3,
31587
+ "maxLength": 32
31588
+ },
31589
+ "OrganizationType": {
31590
+ "type": "string",
31591
+ "enum": [
31592
+ "business",
31593
+ "community"
31594
+ ]
31595
+ },
31596
+ "OrganizationUseCase": {
31597
+ "type": "string",
31598
+ "enum": [
31599
+ "internalDocs",
31600
+ "docsSite",
31601
+ "audienceControlledSite",
31602
+ "productDocs",
31603
+ "teamKnowledgeBase",
31604
+ "designSystem",
31605
+ "openSourceDocs",
31606
+ "notes",
31607
+ "other"
31608
+ ]
31609
+ },
31610
+ "OrganizationCommunityType": {
31611
+ "type": "string",
31612
+ "enum": [
31613
+ "nonProfit",
31614
+ "openSource",
31615
+ "education"
31616
+ ]
31617
+ },
31618
+ "SitePointer": {
31619
+ "type": "object",
31620
+ "properties": {
31621
+ "type": {
31622
+ "type": "string",
31623
+ "enum": [
31624
+ "site"
31625
+ ]
31626
+ },
31627
+ "site": {
31628
+ "type": "string",
31629
+ "description": "Unique identifier for the site"
31630
+ }
31631
+ },
31632
+ "required": [
31633
+ "type",
31634
+ "site"
31635
+ ]
31636
+ },
31637
+ "OrganizationDefaultContent": {
31638
+ "description": "The default content for the organization",
31639
+ "oneOf": [
31640
+ {
31641
+ "$ref": "#/components/schemas/SitePointer"
31642
+ }
31643
+ ]
31644
+ },
31645
+ "BillingProduct": {
31646
+ "type": "string",
31647
+ "description": "Name of the product",
31648
+ "enum": [
31649
+ "free_2024",
31650
+ "plus_2024",
31651
+ "pro_2024",
31652
+ "enterprise_2024",
31653
+ "community_2024",
31654
+ "free",
31655
+ "plus",
31656
+ "pro",
31657
+ "internal"
31658
+ ]
31659
+ },
31660
+ "BillingInterval": {
31661
+ "type": "string",
31662
+ "description": "Interval for a billing subscription",
31663
+ "enum": [
31664
+ "monthly",
31665
+ "yearly"
31666
+ ]
31667
+ },
31668
+ "OrganizationPricePair": {
31669
+ "type": "object",
31670
+ "description": "Pricing pair for monthly and yearly intervals",
31671
+ "properties": {
31672
+ "monthly": {
31673
+ "type": "number",
31674
+ "description": "Monthly price in USD",
31675
+ "minimum": 0
31676
+ },
31677
+ "yearly": {
31678
+ "type": "number",
31679
+ "description": "Yearly price in USD (per month)",
31680
+ "minimum": 0
31681
+ }
31682
+ },
31683
+ "required": [
31684
+ "monthly",
31685
+ "yearly"
31686
+ ]
31687
+ },
31688
+ "OrganizationPricing": {
31689
+ "type": "object",
31690
+ "description": "Pricing information for an organization",
31691
+ "properties": {
31692
+ "members": {
31693
+ "type": "object",
31694
+ "description": "Pricing for members (organization plan)",
31695
+ "properties": {
31696
+ "plus_2024": {
31697
+ "$ref": "#/components/schemas/OrganizationPricePair"
31698
+ },
31699
+ "pro_2024": {
31700
+ "$ref": "#/components/schemas/OrganizationPricePair"
31701
+ }
31702
+ },
31703
+ "required": [
31704
+ "plus_2024",
31705
+ "pro_2024"
31706
+ ],
31707
+ "additionalProperties": false
31708
+ },
31709
+ "sites": {
31710
+ "type": "object",
31711
+ "description": "Pricing for site types (site plans)",
31712
+ "properties": {
31713
+ "premium": {
31714
+ "$ref": "#/components/schemas/OrganizationPricePair"
31715
+ },
31716
+ "ultimate": {
31717
+ "$ref": "#/components/schemas/OrganizationPricePair"
31718
+ }
31719
+ },
31720
+ "required": [
31721
+ "premium",
31722
+ "ultimate"
31723
+ ],
31724
+ "additionalProperties": false
31725
+ }
31726
+ },
31727
+ "required": [
31728
+ "members",
31729
+ "sites"
32923
31730
  ]
32924
31731
  },
32925
- "IntegrationConfiguration": {
32926
- "oneOf": [
32927
- {
32928
- "$ref": "#/components/schemas/IntegrationConfigurationSchema"
32929
- },
32930
- {
32931
- "$ref": "#/components/schemas/IntegrationConfigurationComponent"
31732
+ "BillingMeterAddon": {
31733
+ "type": "object",
31734
+ "properties": {
31735
+ "enabled": {
31736
+ "type": "boolean"
32932
31737
  }
31738
+ },
31739
+ "required": [
31740
+ "enabled"
32933
31741
  ]
32934
31742
  },
32935
- "IntegrationConfigurations": {
31743
+ "OrganizationBilling": {
32936
31744
  "type": "object",
32937
31745
  "properties": {
32938
- "account": {
32939
- "$ref": "#/components/schemas/IntegrationConfiguration"
31746
+ "interval": {
31747
+ "$ref": "#/components/schemas/BillingInterval"
32940
31748
  },
32941
- "space": {
32942
- "$ref": "#/components/schemas/IntegrationConfiguration"
31749
+ "endDate": {
31750
+ "oneOf": [
31751
+ {
31752
+ "$ref": "#/components/schemas/Timestamp"
31753
+ },
31754
+ {
31755
+ "type": "null"
31756
+ }
31757
+ ]
32943
31758
  },
32944
- "site": {
32945
- "$ref": "#/components/schemas/IntegrationConfiguration"
31759
+ "hasPaymentFailed": {
31760
+ "description": "If true, we were unable to collect the last payment",
31761
+ "type": "boolean"
31762
+ },
31763
+ "canCheckout": {
31764
+ "description": "If true, organization can create a checkout session to subscribe/update billing. \nIf false, organization must resolve other billing issues before a checkout can be done.\n",
31765
+ "type": "boolean"
31766
+ },
31767
+ "isScheduledToCancel": {
31768
+ "description": "If true, the billing is set to cancel at the end of its current period",
31769
+ "type": "boolean"
31770
+ },
31771
+ "pricing": {
31772
+ "description": "Pricing information for the organization",
31773
+ "$ref": "#/components/schemas/OrganizationPricing"
31774
+ },
31775
+ "usageAddons": {
31776
+ "description": "Configuration for the usage-based addons",
31777
+ "type": "object",
31778
+ "additionalProperties": {
31779
+ "$ref": "#/components/schemas/BillingMeterAddon"
31780
+ }
31781
+ },
31782
+ "minUsers": {
31783
+ "description": "The minimum number of members allowed for this organization.",
31784
+ "type": "number"
31785
+ },
31786
+ "maxUsers": {
31787
+ "description": "The maximum number of members allowed for this organization",
31788
+ "type": "number"
31789
+ },
31790
+ "minPremiumSites": {
31791
+ "description": "The minimum number of premium sites allowed for this organization.",
31792
+ "type": "number"
31793
+ },
31794
+ "maxPremiumSites": {
31795
+ "description": "The maximum number of premium sites allowed for this organization.",
31796
+ "type": "number"
31797
+ },
31798
+ "minUltimateSites": {
31799
+ "description": "The minimum number of ultimate sites allowed for this organization.",
31800
+ "type": "number"
31801
+ },
31802
+ "maxUltimateSites": {
31803
+ "description": "The maximum number of ultimate sites allowed for this organization.",
31804
+ "type": "number"
31805
+ },
31806
+ "paidMembers": {
31807
+ "description": "The number of paid members on the current subscription.",
31808
+ "type": "number"
31809
+ },
31810
+ "paidPremiumSites": {
31811
+ "description": "The number of paid premium sites on the current subscription.",
31812
+ "type": "number"
31813
+ },
31814
+ "paidUltimateSites": {
31815
+ "description": "The number of paid ultimate sites on the current subscription.",
31816
+ "type": "number"
31817
+ },
31818
+ "canChangeInterval": {
31819
+ "description": "Whether changing billing interval is allowed",
31820
+ "type": "boolean"
31821
+ },
31822
+ "canUseSAML": {
31823
+ "description": "Whether configuring SAML is allowed",
31824
+ "type": "boolean"
32946
31825
  }
32947
- }
31826
+ },
31827
+ "required": [
31828
+ "interval",
31829
+ "endDate",
31830
+ "hasPaymentFailed",
31831
+ "canCheckout",
31832
+ "isScheduledToCancel",
31833
+ "pricing",
31834
+ "usageAddons",
31835
+ "canChangeInterval",
31836
+ "canUseSAML"
31837
+ ]
32948
31838
  },
32949
- "IntegrationExternalLinks": {
32950
- "type": "array",
32951
- "description": "External urls configured by the developer of the integration",
32952
- "maxItems": 5,
32953
- "items": {
32954
- "type": "object",
32955
- "properties": {
32956
- "url": {
32957
- "$ref": "#/components/schemas/URL"
31839
+ "BillingTrialStatus": {
31840
+ "type": "string",
31841
+ "description": "- notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do.\n",
31842
+ "enum": [
31843
+ "notapplicable",
31844
+ "none",
31845
+ "active",
31846
+ "ended",
31847
+ "expired"
31848
+ ]
31849
+ },
31850
+ "BlockSource": {
31851
+ "type": "string",
31852
+ "description": "Source for an organization block",
31853
+ "enum": [
31854
+ "backoffice",
31855
+ "external",
31856
+ "internal"
31857
+ ]
31858
+ },
31859
+ "BlockReason": {
31860
+ "type": "string",
31861
+ "description": "A short description giving context on the reason for the block.",
31862
+ "minLength": 1,
31863
+ "maxLength": 255
31864
+ },
31865
+ "Organization": {
31866
+ "type": "object",
31867
+ "properties": {
31868
+ "object": {
31869
+ "type": "string",
31870
+ "description": "Type of Object, always equals to \"organization\"",
31871
+ "enum": [
31872
+ "organization"
31873
+ ]
31874
+ },
31875
+ "id": {
31876
+ "type": "string",
31877
+ "description": "Unique identifier for the organization"
31878
+ },
31879
+ "title": {
31880
+ "$ref": "#/components/schemas/OrganizationTitle"
31881
+ },
31882
+ "createdAt": {
31883
+ "$ref": "#/components/schemas/Timestamp"
31884
+ },
31885
+ "emailDomains": {
31886
+ "$ref": "#/components/schemas/OrganizationEmailDomains"
31887
+ },
31888
+ "hostname": {
31889
+ "$ref": "#/components/schemas/OrganizationHostname"
31890
+ },
31891
+ "type": {
31892
+ "$ref": "#/components/schemas/OrganizationType"
31893
+ },
31894
+ "useCase": {
31895
+ "$ref": "#/components/schemas/OrganizationUseCase"
31896
+ },
31897
+ "communityType": {
31898
+ "$ref": "#/components/schemas/OrganizationCommunityType"
31899
+ },
31900
+ "defaultRole": {
31901
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
31902
+ },
31903
+ "defaultContent": {
31904
+ "$ref": "#/components/schemas/OrganizationDefaultContent"
31905
+ },
31906
+ "sso": {
31907
+ "description": "Whether SSO is enforced organization-wide",
31908
+ "type": "boolean"
31909
+ },
31910
+ "ai": {
31911
+ "description": "If true, the organization is configured to use all our AI features.",
31912
+ "type": "boolean"
31913
+ },
31914
+ "inviteLinks": {
31915
+ "description": "If true, invite links are enabled for this organization.",
31916
+ "type": "boolean"
31917
+ },
31918
+ "plan": {
31919
+ "$ref": "#/components/schemas/BillingProduct"
31920
+ },
31921
+ "billing": {
31922
+ "description": "Billing details, only available for org members.",
31923
+ "$ref": "#/components/schemas/OrganizationBilling"
31924
+ },
31925
+ "mergeRules": {
31926
+ "$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
31927
+ },
31928
+ "urls": {
31929
+ "type": "object",
31930
+ "description": "URLs associated with the object",
31931
+ "properties": {
31932
+ "location": {
31933
+ "type": "string",
31934
+ "description": "URL of the organization in the API",
31935
+ "format": "uri"
31936
+ },
31937
+ "app": {
31938
+ "type": "string",
31939
+ "description": "URL of the organization in the application",
31940
+ "format": "uri"
31941
+ },
31942
+ "logo": {
31943
+ "description": "URL of the logo of this organization, if defined.",
31944
+ "$ref": "#/components/schemas/URL"
31945
+ }
32958
31946
  },
32959
- "label": {
32960
- "type": "string"
31947
+ "required": [
31948
+ "app",
31949
+ "location"
31950
+ ]
31951
+ },
31952
+ "trial": {
31953
+ "type": "object",
31954
+ "properties": {
31955
+ "status": {
31956
+ "$ref": "#/components/schemas/BillingTrialStatus"
31957
+ },
31958
+ "count": {
31959
+ "type": "integer",
31960
+ "description": "Number of trials the organization has consumed."
31961
+ },
31962
+ "endDate": {
31963
+ "description": "The trial's end date, if the organization has or had a trial.",
31964
+ "$ref": "#/components/schemas/Timestamp"
31965
+ },
31966
+ "decision": {
31967
+ "type": "string",
31968
+ "description": "The decision taken by the user at the end of the trial",
31969
+ "enum": [
31970
+ "downgrade"
31971
+ ]
31972
+ }
31973
+ },
31974
+ "required": [
31975
+ "status",
31976
+ "count"
31977
+ ]
31978
+ },
31979
+ "customHostname": {
31980
+ "description": "Custom hostname linked to this organization",
31981
+ "type": "string"
31982
+ },
31983
+ "blocked": {
31984
+ "type": "object",
31985
+ "description": "If the organization is blocked, information about the block will appear here",
31986
+ "properties": {
31987
+ "source": {
31988
+ "$ref": "#/components/schemas/BlockSource"
31989
+ },
31990
+ "reason": {
31991
+ "$ref": "#/components/schemas/BlockReason"
31992
+ }
31993
+ },
31994
+ "required": [
31995
+ "reason"
31996
+ ]
31997
+ },
31998
+ "internal_billingMigration": {
31999
+ "type": "object",
32000
+ "properties": {
32001
+ "deadline": {
32002
+ "description": "When we will upgrade the organization onto new pricing, if they haven't already.",
32003
+ "$ref": "#/components/schemas/Timestamp"
32004
+ },
32005
+ "discountPercent": {
32006
+ "description": "A discount the organization may have received thanks to migrating early.",
32007
+ "type": "number"
32008
+ },
32009
+ "discountEndDate": {
32010
+ "description": "The expiration date of the discount, after wich regular pricing resumes.",
32011
+ "$ref": "#/components/schemas/Timestamp"
32012
+ }
32961
32013
  }
32962
32014
  },
32963
- "required": [
32964
- "url",
32965
- "label"
32966
- ]
32967
- }
32015
+ "permissions": {
32016
+ "type": "object",
32017
+ "description": "The set of permissions for the organization",
32018
+ "properties": {
32019
+ "view": {
32020
+ "type": "boolean",
32021
+ "description": "Can the user view the organization."
32022
+ },
32023
+ "access": {
32024
+ "type": "boolean",
32025
+ "description": "Can the user view the organization in the application."
32026
+ },
32027
+ "admin": {
32028
+ "type": "boolean",
32029
+ "description": "Can the user manage the title, members, etc."
32030
+ },
32031
+ "ownTeam": {
32032
+ "type": "boolean",
32033
+ "description": "Is the user a team owner."
32034
+ },
32035
+ "createContent": {
32036
+ "type": "boolean",
32037
+ "description": "Can the user create new spaces/collections in the organization."
32038
+ },
32039
+ "createOpenAPISpec": {
32040
+ "type": "boolean",
32041
+ "description": "Can the user create new OpenAPI specifications."
32042
+ },
32043
+ "viewBilling": {
32044
+ "type": "boolean",
32045
+ "description": "Can the user view the billing details of the organization."
32046
+ },
32047
+ "listMembers": {
32048
+ "type": "boolean",
32049
+ "description": "Can the user list the members of the organization."
32050
+ },
32051
+ "listTeams": {
32052
+ "type": "boolean",
32053
+ "description": "Can the user list the teams in the organization."
32054
+ },
32055
+ "listIntegrations": {
32056
+ "type": "boolean",
32057
+ "description": "Can the user list the integrations in the organization."
32058
+ },
32059
+ "listInstallations": {
32060
+ "type": "boolean",
32061
+ "description": "Can the user list the integration installations in the organization."
32062
+ },
32063
+ "installIntegration": {
32064
+ "type": "boolean",
32065
+ "description": "Can the user install integrations in the organization."
32066
+ }
32067
+ },
32068
+ "required": [
32069
+ "view",
32070
+ "access",
32071
+ "admin",
32072
+ "ownTeam",
32073
+ "createContent",
32074
+ "createOpenAPISpec",
32075
+ "viewBilling",
32076
+ "listMembers",
32077
+ "listTeams",
32078
+ "listIntegrations",
32079
+ "listInstallations",
32080
+ "installIntegration"
32081
+ ]
32082
+ }
32083
+ },
32084
+ "required": [
32085
+ "object",
32086
+ "id",
32087
+ "plan",
32088
+ "title",
32089
+ "createdAt",
32090
+ "inviteLinks",
32091
+ "type",
32092
+ "emailDomains",
32093
+ "mergeRules",
32094
+ "urls",
32095
+ "trial",
32096
+ "permissions"
32097
+ ]
32968
32098
  },
32969
32099
  "IntegrationContentSecurityPolicy": {
32970
32100
  "description": "Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as \nheaders when processing the script fetch event and the blocks fetch events.\n",
@@ -33238,6 +32368,107 @@
33238
32368
  }
33239
32369
  }
33240
32370
  },
32371
+ "CollectionTitle": {
32372
+ "type": "string",
32373
+ "description": "Title of the collection",
32374
+ "maxLength": 50
32375
+ },
32376
+ "CollectionDescription": {
32377
+ "type": "string",
32378
+ "description": "Description of the collection",
32379
+ "minLength": 0,
32380
+ "maxLength": 100
32381
+ },
32382
+ "Collection": {
32383
+ "type": "object",
32384
+ "properties": {
32385
+ "object": {
32386
+ "type": "string",
32387
+ "description": "Type of Object, always equals to \"collection\"",
32388
+ "enum": [
32389
+ "collection"
32390
+ ]
32391
+ },
32392
+ "id": {
32393
+ "type": "string",
32394
+ "description": "Unique identifier for the collection"
32395
+ },
32396
+ "title": {
32397
+ "$ref": "#/components/schemas/CollectionTitle"
32398
+ },
32399
+ "description": {
32400
+ "$ref": "#/components/schemas/CollectionDescription"
32401
+ },
32402
+ "organization": {
32403
+ "type": "string",
32404
+ "description": "ID of the organization owning this collection"
32405
+ },
32406
+ "parent": {
32407
+ "type": "string",
32408
+ "description": "ID of the parent collection, if any"
32409
+ },
32410
+ "defaultLevel": {
32411
+ "$ref": "#/components/schemas/DefaultLevel"
32412
+ },
32413
+ "urls": {
32414
+ "type": "object",
32415
+ "description": "URLs associated with the object",
32416
+ "properties": {
32417
+ "location": {
32418
+ "type": "string",
32419
+ "description": "URL of the collection in the API",
32420
+ "format": "uri"
32421
+ },
32422
+ "app": {
32423
+ "type": "string",
32424
+ "description": "URL of the collection in the application",
32425
+ "format": "uri"
32426
+ }
32427
+ },
32428
+ "required": [
32429
+ "app",
32430
+ "location"
32431
+ ]
32432
+ },
32433
+ "permissions": {
32434
+ "type": "object",
32435
+ "description": "The set of permissions for the collection",
32436
+ "properties": {
32437
+ "view": {
32438
+ "type": "boolean",
32439
+ "description": "Can the user view the collection."
32440
+ },
32441
+ "admin": {
32442
+ "type": "boolean",
32443
+ "description": "Can the user edit the title/description."
32444
+ },
32445
+ "viewInviteLinks": {
32446
+ "type": "boolean",
32447
+ "description": "Can the user view the invite links of the collection."
32448
+ },
32449
+ "create": {
32450
+ "type": "boolean",
32451
+ "description": "Can the user create spaces/collections in this collection."
32452
+ }
32453
+ },
32454
+ "required": [
32455
+ "view",
32456
+ "admin",
32457
+ "viewInviteLinks",
32458
+ "create"
32459
+ ]
32460
+ }
32461
+ },
32462
+ "required": [
32463
+ "object",
32464
+ "id",
32465
+ "title",
32466
+ "organization",
32467
+ "urls",
32468
+ "defaultLevel",
32469
+ "permissions"
32470
+ ]
32471
+ },
33241
32472
  "IntegrationSecrets": {
33242
32473
  "type": "object",
33243
32474
  "description": "Secrets stored on the integration and passed at runtime.",
@@ -34907,14 +34138,6 @@
34907
34138
  "visitor-auth"
34908
34139
  ]
34909
34140
  },
34910
- "SitePermissionsModel": {
34911
- "type": "string",
34912
- "description": "Permissions resolution mode for the site.",
34913
- "enum": [
34914
- "legacy",
34915
- "site"
34916
- ]
34917
- },
34918
34141
  "SiteAdaptiveContent": {
34919
34142
  "type": "object",
34920
34143
  "properties": {
@@ -35144,9 +34367,6 @@
35144
34367
  "visibility": {
35145
34368
  "$ref": "#/components/schemas/SiteVisibility"
35146
34369
  },
35147
- "permissionsModel": {
35148
- "$ref": "#/components/schemas/SitePermissionsModel"
35149
- },
35150
34370
  "defaultLevel": {
35151
34371
  "$ref": "#/components/schemas/DefaultLevel"
35152
34372
  },
@@ -35268,7 +34488,6 @@
35268
34488
  "appliedType",
35269
34489
  "title",
35270
34490
  "visibility",
35271
- "permissionsModel",
35272
34491
  "defaultLevel",
35273
34492
  "permissions",
35274
34493
  "published",
@@ -38643,6 +37862,156 @@
38643
37862
  "answer"
38644
37863
  ]
38645
37864
  },
37865
+ "OpenAPISpecSlug": {
37866
+ "description": "Slug used as reference",
37867
+ "type": "string",
37868
+ "minLength": 1,
37869
+ "maxLength": 100,
37870
+ "pattern": "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$"
37871
+ },
37872
+ "OpenAPISpecProcessingState": {
37873
+ "description": "Processing state",
37874
+ "enum": [
37875
+ "pending",
37876
+ "progress",
37877
+ "complete"
37878
+ ]
37879
+ },
37880
+ "OpenAPISpecProcessingErrorCode": {
37881
+ "description": "OpenAPI processing error code",
37882
+ "enum": [
37883
+ "FETCH_TIMEOUT",
37884
+ "FETCH_ERROR",
37885
+ "PARSE_ERROR"
37886
+ ]
37887
+ },
37888
+ "OpenAPIErrorObject": {
37889
+ "type": "object",
37890
+ "description": "OpenAPI error object.",
37891
+ "properties": {
37892
+ "message": {
37893
+ "type": "string",
37894
+ "description": "Description of the error."
37895
+ },
37896
+ "code": {
37897
+ "type": "string",
37898
+ "description": "Unique code of the error."
37899
+ }
37900
+ },
37901
+ "required": [
37902
+ "message"
37903
+ ]
37904
+ },
37905
+ "OpenAPISpec": {
37906
+ "type": "object",
37907
+ "properties": {
37908
+ "object": {
37909
+ "description": "The object type, which is always \"openapi-spec\"",
37910
+ "type": "string",
37911
+ "enum": [
37912
+ "openapi-spec"
37913
+ ]
37914
+ },
37915
+ "id": {
37916
+ "description": "Unique identifier",
37917
+ "type": "string"
37918
+ },
37919
+ "createdAt": {
37920
+ "description": "Date of creation",
37921
+ "$ref": "#/components/schemas/Timestamp"
37922
+ },
37923
+ "updatedAt": {
37924
+ "description": "Date of the last update",
37925
+ "$ref": "#/components/schemas/Timestamp"
37926
+ },
37927
+ "slug": {
37928
+ "$ref": "#/components/schemas/OpenAPISpecSlug"
37929
+ },
37930
+ "sourceURL": {
37931
+ "$ref": "#/components/schemas/URL"
37932
+ },
37933
+ "processingState": {
37934
+ "$ref": "#/components/schemas/OpenAPISpecProcessingState"
37935
+ },
37936
+ "visibility": {
37937
+ "$ref": "#/components/schemas/OpenAPISpecVisibility"
37938
+ },
37939
+ "lastVersion": {
37940
+ "type": "string",
37941
+ "description": "ID of the latest version of the OpenAPI specification"
37942
+ },
37943
+ "lastProcessedAt": {
37944
+ "description": "Date of the last processing",
37945
+ "$ref": "#/components/schemas/Timestamp"
37946
+ },
37947
+ "lastProcessErrorCode": {
37948
+ "$ref": "#/components/schemas/OpenAPISpecProcessingErrorCode"
37949
+ },
37950
+ "lastProcessedErrors": {
37951
+ "type": "array",
37952
+ "items": {
37953
+ "$ref": "#/components/schemas/OpenAPIErrorObject"
37954
+ }
37955
+ },
37956
+ "lastProcessedErrorCount": {
37957
+ "type": "integer",
37958
+ "minimum": 0,
37959
+ "description": "Total number of processing errors before truncation of lastProcessedErrors."
37960
+ },
37961
+ "permissions": {
37962
+ "type": "object",
37963
+ "description": "The set of permissions for the OpenAPI specification.",
37964
+ "required": [
37965
+ "view",
37966
+ "edit"
37967
+ ],
37968
+ "properties": {
37969
+ "view": {
37970
+ "type": "boolean",
37971
+ "description": "Can the user view the specification."
37972
+ },
37973
+ "edit": {
37974
+ "type": "boolean",
37975
+ "description": "Can the user edit the specification."
37976
+ }
37977
+ }
37978
+ },
37979
+ "urls": {
37980
+ "type": "object",
37981
+ "description": "URLs associated with the object",
37982
+ "properties": {
37983
+ "location": {
37984
+ "description": "URL of the OpenAPI specification in the API",
37985
+ "$ref": "#/components/schemas/URL"
37986
+ },
37987
+ "app": {
37988
+ "description": "URL of the OpenAPI specification in the application",
37989
+ "$ref": "#/components/schemas/URL"
37990
+ },
37991
+ "published": {
37992
+ "type": "string",
37993
+ "description": "URL of the published spec. Only defined when visibility is \"published.\"",
37994
+ "format": "uri"
37995
+ }
37996
+ },
37997
+ "required": [
37998
+ "app",
37999
+ "location"
38000
+ ]
38001
+ }
38002
+ },
38003
+ "required": [
38004
+ "object",
38005
+ "id",
38006
+ "createdAt",
38007
+ "updatedAt",
38008
+ "slug",
38009
+ "processingState",
38010
+ "lastProcessedErrorCount",
38011
+ "permissions",
38012
+ "urls"
38013
+ ]
38014
+ },
38646
38015
  "OpenAPISpecSource": {
38647
38016
  "oneOf": [
38648
38017
  {
@@ -38754,6 +38123,28 @@
38754
38123
  "urls"
38755
38124
  ]
38756
38125
  },
38126
+ "OpenAPISpecRawContent": {
38127
+ "description": "Raw original content of the specification entrypoint file.",
38128
+ "type": "object",
38129
+ "properties": {
38130
+ "text": {
38131
+ "type": "string",
38132
+ "description": "Raw specification text, exactly as submitted."
38133
+ },
38134
+ "format": {
38135
+ "type": "string",
38136
+ "enum": [
38137
+ "json",
38138
+ "yaml"
38139
+ ],
38140
+ "description": "Format of the raw specification text."
38141
+ }
38142
+ },
38143
+ "required": [
38144
+ "text",
38145
+ "format"
38146
+ ]
38147
+ },
38757
38148
  "OrganizationAgentInstructions": {
38758
38149
  "type": "object",
38759
38150
  "properties": {
@@ -39588,6 +38979,10 @@
39588
38979
  "spaceId": {
39589
38980
  "type": "string",
39590
38981
  "description": "Unique identifier of the space targeted by the Git Sync installation."
38982
+ },
38983
+ "siteId": {
38984
+ "type": "string",
38985
+ "description": "Unique identifier of the site whose Git Sync installation should manage the space installation. Omit to install Git Sync directly on the space."
39591
38986
  }
39592
38987
  },
39593
38988
  "required": [
@@ -41328,8 +40723,10 @@
41328
40723
  "builtin:github-issues",
41329
40724
  "builtin:intercom",
41330
40725
  "builtin:zendesk",
40726
+ "builtin:zoho-desk",
41331
40727
  "builtin:pylon",
41332
- "builtin:linear"
40728
+ "builtin:linear",
40729
+ "builtin:jira"
41333
40730
  ]
41334
40731
  }
41335
40732
  ]
@@ -41517,8 +40914,11 @@
41517
40914
  "$ref": "#/components/schemas/SiteScanStatus"
41518
40915
  },
41519
40916
  "topic": {
41520
- "type": "string",
41521
- "description": "The site topic ID associated with the scan"
40917
+ "type": [
40918
+ "string",
40919
+ "null"
40920
+ ],
40921
+ "description": "The site topic ID associated with the scan. It is null for scans that are not associated with a current topic in the site."
41522
40922
  },
41523
40923
  "createdAt": {
41524
40924
  "$ref": "#/components/schemas/Timestamp"
@@ -41573,10 +40973,10 @@
41573
40973
  },
41574
40974
  "SiteFindingType": {
41575
40975
  "type": "string",
41576
- "description": "Classification of a site finding:\n - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.\n - Incoherent content: The content contains information that is inconsistent or contradictory.\n - Content gap: The content is missing important information that should be present to answer user questions effectively.\n - Other: Any other type of finding not covered by the above categories.",
40976
+ "description": "Classification of a site finding:\n - Outdated content: The content was correct but is no longer up to date with external context and may be misleading or incorrect.\n - Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.\n - Content gap: The content is missing important information that should be present to answer user questions effectively.\n - Other: Any other type of finding not covered by the above categories.",
41577
40977
  "enum": [
41578
40978
  "content-outdated",
41579
- "incoherence",
40979
+ "content-incorrect",
41580
40980
  "content-gap",
41581
40981
  "other"
41582
40982
  ]
@@ -41613,8 +41013,11 @@
41613
41013
  "description": "The site scan ID associated with the finding"
41614
41014
  },
41615
41015
  "topic": {
41616
- "type": "string",
41617
- "description": "The site topic ID associated with the finding"
41016
+ "type": [
41017
+ "string",
41018
+ "null"
41019
+ ],
41020
+ "description": "The site topic ID associated with the finding. It is null for findings that are not associated with a current topic in the site."
41618
41021
  },
41619
41022
  "title": {
41620
41023
  "$ref": "#/components/schemas/SiteFindingTitle"
@@ -41984,6 +41387,10 @@
41984
41387
  "type": "boolean",
41985
41388
  "description": "Whether to expose records in search results"
41986
41389
  },
41390
+ "sync": {
41391
+ "type": "boolean",
41392
+ "description": "Whether the connection syncs GitBook change-request state outward to the connected external system (outbound write). Requires a write-capable token or role."
41393
+ },
41987
41394
  "searchBoost": {
41988
41395
  "$ref": "#/components/schemas/ContextSearchBoost"
41989
41396
  }
@@ -42239,6 +41646,55 @@
42239
41646
  "setupSettings"
42240
41647
  ]
42241
41648
  },
41649
+ {
41650
+ "type": "object",
41651
+ "properties": {
41652
+ "connector": {
41653
+ "type": "string",
41654
+ "enum": [
41655
+ "builtin:zoho-desk"
41656
+ ]
41657
+ },
41658
+ "setupSettings": {
41659
+ "type": "object",
41660
+ "properties": {
41661
+ "dataCenter": {
41662
+ "type": "string",
41663
+ "minLength": 1,
41664
+ "description": "Zoho data center hosting the account, given as its API domain suffix (e.g. `com`, `eu`, `in`, `com.au`). Zoho scopes both the accounts and desk API hosts by data center."
41665
+ },
41666
+ "orgId": {
41667
+ "type": "string",
41668
+ "minLength": 1,
41669
+ "description": "Zoho Desk organization id the tickets belong to."
41670
+ },
41671
+ "clientId": {
41672
+ "type": "string",
41673
+ "minLength": 1
41674
+ },
41675
+ "clientSecret": {
41676
+ "type": "string",
41677
+ "minLength": 1
41678
+ },
41679
+ "refreshToken": {
41680
+ "type": "string",
41681
+ "minLength": 1
41682
+ }
41683
+ },
41684
+ "required": [
41685
+ "dataCenter",
41686
+ "orgId",
41687
+ "clientId",
41688
+ "clientSecret",
41689
+ "refreshToken"
41690
+ ]
41691
+ }
41692
+ },
41693
+ "required": [
41694
+ "connector",
41695
+ "setupSettings"
41696
+ ]
41697
+ },
42242
41698
  {
42243
41699
  "type": "object",
42244
41700
  "properties": {
@@ -42292,6 +41748,63 @@
42292
41748
  "connector",
42293
41749
  "setupSettings"
42294
41750
  ]
41751
+ },
41752
+ {
41753
+ "type": "object",
41754
+ "properties": {
41755
+ "connector": {
41756
+ "type": "string",
41757
+ "enum": [
41758
+ "builtin:jira"
41759
+ ]
41760
+ },
41761
+ "setupSettings": {
41762
+ "type": "object",
41763
+ "properties": {
41764
+ "baseUrl": {
41765
+ "type": "string",
41766
+ "format": "uri",
41767
+ "minLength": 1,
41768
+ "maxLength": 2048,
41769
+ "description": "Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net."
41770
+ },
41771
+ "apiEmail": {
41772
+ "type": "string",
41773
+ "format": "email",
41774
+ "minLength": 1,
41775
+ "maxLength": 254,
41776
+ "description": "Email of the Atlassian account whose API token is used."
41777
+ },
41778
+ "apiToken": {
41779
+ "type": "string",
41780
+ "minLength": 1,
41781
+ "maxLength": 1024,
41782
+ "description": "Atlassian API token used for outbound writes. Redacted when read back."
41783
+ },
41784
+ "statusMapping": {
41785
+ "type": "object",
41786
+ "description": "Jira status to move the linked issue to when the change request reaches a given status, e.g. `{ \"merged\": \"Done\" }`. A status left out is not synced.",
41787
+ "propertyNames": {
41788
+ "$ref": "#/components/schemas/ChangeRequestStatus"
41789
+ },
41790
+ "additionalProperties": {
41791
+ "type": "string",
41792
+ "minLength": 1,
41793
+ "maxLength": 255
41794
+ }
41795
+ }
41796
+ },
41797
+ "required": [
41798
+ "baseUrl",
41799
+ "apiEmail",
41800
+ "apiToken"
41801
+ ]
41802
+ }
41803
+ },
41804
+ "required": [
41805
+ "connector",
41806
+ "setupSettings"
41807
+ ]
42295
41808
  }
42296
41809
  ]
42297
41810
  },
@@ -42377,6 +41890,29 @@
42377
41890
  }
42378
41891
  ]
42379
41892
  },
41893
+ "ContextConnectionTestResult": {
41894
+ "type": "object",
41895
+ "required": [
41896
+ "object",
41897
+ "success"
41898
+ ],
41899
+ "properties": {
41900
+ "object": {
41901
+ "type": "string",
41902
+ "enum": [
41903
+ "context-connection-test-result"
41904
+ ]
41905
+ },
41906
+ "success": {
41907
+ "type": "boolean",
41908
+ "description": "Whether the stored credentials authenticated successfully."
41909
+ },
41910
+ "error": {
41911
+ "type": "string",
41912
+ "description": "A human-readable reason for the failure, when the test failed."
41913
+ }
41914
+ }
41915
+ },
42380
41916
  "SiteTopicUsageSettings": {
42381
41917
  "type": "object",
42382
41918
  "properties": {
@@ -43649,6 +43185,33 @@
43649
43185
  "replyId"
43650
43186
  ]
43651
43187
  },
43188
+ "AIToolCallGetComments": {
43189
+ "type": "object",
43190
+ "properties": {
43191
+ "tool": {
43192
+ "type": "string",
43193
+ "enum": [
43194
+ "getComments"
43195
+ ]
43196
+ },
43197
+ "spaceId": {
43198
+ "type": "string",
43199
+ "description": "The ID of the space the comments were read from."
43200
+ },
43201
+ "commentId": {
43202
+ "type": "string",
43203
+ "description": "The ID of the comment that was read, when a single comment was requested by URL or ID."
43204
+ },
43205
+ "count": {
43206
+ "type": "integer",
43207
+ "description": "The number of comments that were read."
43208
+ }
43209
+ },
43210
+ "required": [
43211
+ "tool",
43212
+ "spaceId"
43213
+ ]
43214
+ },
43652
43215
  "AIToolCallSubmitChangeRequestReview": {
43653
43216
  "type": "object",
43654
43217
  "properties": {
@@ -43827,6 +43390,9 @@
43827
43390
  {
43828
43391
  "$ref": "#/components/schemas/AIToolCallReplyToComment"
43829
43392
  },
43393
+ {
43394
+ "$ref": "#/components/schemas/AIToolCallGetComments"
43395
+ },
43830
43396
  {
43831
43397
  "$ref": "#/components/schemas/AIToolCallSubmitChangeRequestReview"
43832
43398
  },
@@ -49391,6 +48957,332 @@
49391
48957
  "gitbook:agent"
49392
48958
  ]
49393
48959
  },
48960
+ "ContentLocationRevisionContext": {
48961
+ "type": "object",
48962
+ "required": [
48963
+ "type",
48964
+ "revision"
48965
+ ],
48966
+ "properties": {
48967
+ "type": {
48968
+ "type": "string",
48969
+ "enum": [
48970
+ "revision"
48971
+ ]
48972
+ },
48973
+ "revision": {
48974
+ "$ref": "#/components/schemas/Revision"
48975
+ }
48976
+ }
48977
+ },
48978
+ "ContentLocationChangeRequestContext": {
48979
+ "type": "object",
48980
+ "required": [
48981
+ "type",
48982
+ "changeRequest"
48983
+ ],
48984
+ "properties": {
48985
+ "type": {
48986
+ "type": "string",
48987
+ "enum": [
48988
+ "changeRequest"
48989
+ ]
48990
+ },
48991
+ "changeRequest": {
48992
+ "$ref": "#/components/schemas/ChangeRequest"
48993
+ }
48994
+ }
48995
+ },
48996
+ "ContentLocationFile": {
48997
+ "type": "object",
48998
+ "properties": {
48999
+ "kind": {
49000
+ "type": "string",
49001
+ "enum": [
49002
+ "file"
49003
+ ]
49004
+ },
49005
+ "organization": {
49006
+ "$ref": "#/components/schemas/Organization"
49007
+ },
49008
+ "space": {
49009
+ "$ref": "#/components/schemas/Space"
49010
+ },
49011
+ "versionContext": {
49012
+ "oneOf": [
49013
+ {
49014
+ "$ref": "#/components/schemas/ContentLocationRevisionContext"
49015
+ },
49016
+ {
49017
+ "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
49018
+ }
49019
+ ]
49020
+ },
49021
+ "file": {
49022
+ "$ref": "#/components/schemas/RevisionFile"
49023
+ }
49024
+ },
49025
+ "required": [
49026
+ "kind",
49027
+ "organization",
49028
+ "space",
49029
+ "file"
49030
+ ]
49031
+ },
49032
+ "ContentLocationURL": {
49033
+ "type": "object",
49034
+ "properties": {
49035
+ "kind": {
49036
+ "type": "string",
49037
+ "enum": [
49038
+ "url"
49039
+ ]
49040
+ },
49041
+ "url": {
49042
+ "type": "string"
49043
+ }
49044
+ },
49045
+ "required": [
49046
+ "kind",
49047
+ "url"
49048
+ ]
49049
+ },
49050
+ "ContentLocationPageAnchor": {
49051
+ "type": "object",
49052
+ "properties": {
49053
+ "type": {
49054
+ "type": "string",
49055
+ "enum": [
49056
+ "anchor"
49057
+ ]
49058
+ },
49059
+ "anchor": {
49060
+ "description": "The anchor within the page.",
49061
+ "type": "string"
49062
+ }
49063
+ },
49064
+ "required": [
49065
+ "type",
49066
+ "anchor"
49067
+ ]
49068
+ },
49069
+ "ContentLocationPageNode": {
49070
+ "type": "object",
49071
+ "properties": {
49072
+ "type": {
49073
+ "type": "string",
49074
+ "enum": [
49075
+ "node"
49076
+ ]
49077
+ },
49078
+ "node": {
49079
+ "description": "The node id within the page.",
49080
+ "type": "string"
49081
+ }
49082
+ },
49083
+ "required": [
49084
+ "type",
49085
+ "node"
49086
+ ]
49087
+ },
49088
+ "ContentLocationPage": {
49089
+ "type": "object",
49090
+ "properties": {
49091
+ "kind": {
49092
+ "type": "string",
49093
+ "enum": [
49094
+ "page"
49095
+ ]
49096
+ },
49097
+ "organization": {
49098
+ "$ref": "#/components/schemas/Organization"
49099
+ },
49100
+ "page": {
49101
+ "$ref": "#/components/schemas/RevisionPage"
49102
+ },
49103
+ "space": {
49104
+ "$ref": "#/components/schemas/Space"
49105
+ },
49106
+ "versionContext": {
49107
+ "oneOf": [
49108
+ {
49109
+ "$ref": "#/components/schemas/ContentLocationRevisionContext"
49110
+ },
49111
+ {
49112
+ "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
49113
+ }
49114
+ ]
49115
+ },
49116
+ "internalLocation": {
49117
+ "oneOf": [
49118
+ {
49119
+ "$ref": "#/components/schemas/ContentLocationPageAnchor"
49120
+ },
49121
+ {
49122
+ "$ref": "#/components/schemas/ContentLocationPageNode"
49123
+ }
49124
+ ]
49125
+ }
49126
+ },
49127
+ "required": [
49128
+ "kind",
49129
+ "organization",
49130
+ "space",
49131
+ "page"
49132
+ ]
49133
+ },
49134
+ "ContentLocationUser": {
49135
+ "type": "object",
49136
+ "properties": {
49137
+ "kind": {
49138
+ "type": "string",
49139
+ "enum": [
49140
+ "user"
49141
+ ]
49142
+ },
49143
+ "user": {
49144
+ "$ref": "#/components/schemas/User"
49145
+ }
49146
+ },
49147
+ "required": [
49148
+ "kind",
49149
+ "user"
49150
+ ]
49151
+ },
49152
+ "ContentLocationCollection": {
49153
+ "type": "object",
49154
+ "properties": {
49155
+ "kind": {
49156
+ "type": "string",
49157
+ "enum": [
49158
+ "collection"
49159
+ ]
49160
+ },
49161
+ "organization": {
49162
+ "$ref": "#/components/schemas/Organization"
49163
+ },
49164
+ "collection": {
49165
+ "$ref": "#/components/schemas/Collection"
49166
+ }
49167
+ },
49168
+ "required": [
49169
+ "kind",
49170
+ "organization",
49171
+ "collection"
49172
+ ]
49173
+ },
49174
+ "ContentLocationSpace": {
49175
+ "type": "object",
49176
+ "properties": {
49177
+ "kind": {
49178
+ "type": "string",
49179
+ "enum": [
49180
+ "space"
49181
+ ]
49182
+ },
49183
+ "organization": {
49184
+ "$ref": "#/components/schemas/Organization"
49185
+ },
49186
+ "space": {
49187
+ "$ref": "#/components/schemas/Space"
49188
+ }
49189
+ },
49190
+ "required": [
49191
+ "kind",
49192
+ "organization",
49193
+ "space"
49194
+ ]
49195
+ },
49196
+ "ContentLocationReusableContent": {
49197
+ "type": "object",
49198
+ "properties": {
49199
+ "kind": {
49200
+ "type": "string",
49201
+ "enum": [
49202
+ "reusable-content"
49203
+ ]
49204
+ },
49205
+ "organization": {
49206
+ "$ref": "#/components/schemas/Organization"
49207
+ },
49208
+ "space": {
49209
+ "$ref": "#/components/schemas/Space"
49210
+ },
49211
+ "versionContext": {
49212
+ "oneOf": [
49213
+ {
49214
+ "$ref": "#/components/schemas/ContentLocationRevisionContext"
49215
+ },
49216
+ {
49217
+ "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
49218
+ }
49219
+ ]
49220
+ },
49221
+ "reusableContent": {
49222
+ "$ref": "#/components/schemas/RevisionReusableContent"
49223
+ }
49224
+ },
49225
+ "required": [
49226
+ "kind",
49227
+ "organization",
49228
+ "space",
49229
+ "reusableContent"
49230
+ ]
49231
+ },
49232
+ "ContentLocationOpenAPI": {
49233
+ "type": "object",
49234
+ "properties": {
49235
+ "kind": {
49236
+ "type": "string",
49237
+ "enum": [
49238
+ "openapi"
49239
+ ]
49240
+ },
49241
+ "organization": {
49242
+ "$ref": "#/components/schemas/Organization"
49243
+ },
49244
+ "openAPISpec": {
49245
+ "$ref": "#/components/schemas/OpenAPISpec"
49246
+ }
49247
+ },
49248
+ "required": [
49249
+ "kind",
49250
+ "organization",
49251
+ "openAPISpec"
49252
+ ]
49253
+ },
49254
+ "ContentLocation": {
49255
+ "description": "An absolute reference to content in GitBook.",
49256
+ "oneOf": [
49257
+ {
49258
+ "$ref": "#/components/schemas/ContentLocationFile"
49259
+ },
49260
+ {
49261
+ "$ref": "#/components/schemas/ContentLocationURL"
49262
+ },
49263
+ {
49264
+ "$ref": "#/components/schemas/ContentLocationPage"
49265
+ },
49266
+ {
49267
+ "$ref": "#/components/schemas/ContentLocationUser"
49268
+ },
49269
+ {
49270
+ "$ref": "#/components/schemas/ContentLocationCollection"
49271
+ },
49272
+ {
49273
+ "$ref": "#/components/schemas/ContentLocationSpace"
49274
+ },
49275
+ {
49276
+ "$ref": "#/components/schemas/ContentLocationReusableContent"
49277
+ },
49278
+ {
49279
+ "$ref": "#/components/schemas/ContentLocationOpenAPI"
49280
+ }
49281
+ ],
49282
+ "discriminator": {
49283
+ "propertyName": "kind"
49284
+ }
49285
+ },
49394
49286
  "SpaceTemplate": {
49395
49287
  "type": "object",
49396
49288
  "properties": {
@@ -51146,24 +51038,6 @@
51146
51038
  "space"
51147
51039
  ]
51148
51040
  },
51149
- "APIChannelSpaceContentRefs": {
51150
- "type": "object",
51151
- "properties": {
51152
- "channel": {
51153
- "type": "string",
51154
- "enum": [
51155
- "space-content-refs"
51156
- ]
51157
- },
51158
- "space": {
51159
- "type": "string"
51160
- }
51161
- },
51162
- "required": [
51163
- "channel",
51164
- "space"
51165
- ]
51166
- },
51167
51041
  "APIChannelSpaceIntegrations": {
51168
51042
  "type": "object",
51169
51043
  "properties": {
@@ -51298,28 +51172,6 @@
51298
51172
  "changeRequest"
51299
51173
  ]
51300
51174
  },
51301
- "APIChannelChangeRequestContentRefs": {
51302
- "type": "object",
51303
- "properties": {
51304
- "channel": {
51305
- "type": "string",
51306
- "enum": [
51307
- "space-change-request-content-refs"
51308
- ]
51309
- },
51310
- "space": {
51311
- "type": "string"
51312
- },
51313
- "changeRequest": {
51314
- "type": "string"
51315
- }
51316
- },
51317
- "required": [
51318
- "channel",
51319
- "space",
51320
- "changeRequest"
51321
- ]
51322
- },
51323
51175
  "APIChannelCollection": {
51324
51176
  "type": "object",
51325
51177
  "properties": {
@@ -52494,9 +52346,6 @@
52494
52346
  {
52495
52347
  "$ref": "#/components/schemas/APIChannelSpacePublishingCustomization"
52496
52348
  },
52497
- {
52498
- "$ref": "#/components/schemas/APIChannelSpaceContentRefs"
52499
- },
52500
52349
  {
52501
52350
  "$ref": "#/components/schemas/APIChannelSpaceIntegrations"
52502
52351
  },
@@ -52518,9 +52367,6 @@
52518
52367
  {
52519
52368
  "$ref": "#/components/schemas/APIChannelChangeRequestReviews"
52520
52369
  },
52521
- {
52522
- "$ref": "#/components/schemas/APIChannelChangeRequestContentRefs"
52523
- },
52524
52370
  {
52525
52371
  "$ref": "#/components/schemas/APIChannelCollection"
52526
52372
  },
@@ -52774,70 +52620,6 @@
52774
52620
  "data"
52775
52621
  ]
52776
52622
  },
52777
- "APIChannelSpaceContentRefsData": {
52778
- "type": "object",
52779
- "properties": {
52780
- "channel": {
52781
- "type": "string",
52782
- "enum": [
52783
- "space-content-refs"
52784
- ]
52785
- },
52786
- "data": {
52787
- "type": "object",
52788
- "description": "Data passed on the channel messages for content refs indexation.",
52789
- "properties": {
52790
- "revision": {
52791
- "type": "string",
52792
- "description": "ID of the latest indexed revision"
52793
- },
52794
- "updatedAt": {
52795
- "type": "number"
52796
- }
52797
- },
52798
- "required": [
52799
- "revision",
52800
- "updatedAt"
52801
- ]
52802
- }
52803
- },
52804
- "required": [
52805
- "channel",
52806
- "data"
52807
- ]
52808
- },
52809
- "APIChannelChangeRequestContentRefsData": {
52810
- "type": "object",
52811
- "properties": {
52812
- "channel": {
52813
- "type": "string",
52814
- "enum": [
52815
- "space-change-request-content-refs"
52816
- ]
52817
- },
52818
- "data": {
52819
- "type": "object",
52820
- "description": "Data passed on the channel messages for content refs indexation.",
52821
- "properties": {
52822
- "revision": {
52823
- "type": "string",
52824
- "description": "ID of the latest indexed revision"
52825
- },
52826
- "updatedAt": {
52827
- "type": "number"
52828
- }
52829
- },
52830
- "required": [
52831
- "revision",
52832
- "updatedAt"
52833
- ]
52834
- }
52835
- },
52836
- "required": [
52837
- "channel",
52838
- "data"
52839
- ]
52840
- },
52841
52623
  "APIChannelMutationData": {
52842
52624
  "type": "object",
52843
52625
  "properties": {
@@ -52872,12 +52654,6 @@
52872
52654
  {
52873
52655
  "$ref": "#/components/schemas/APIChannelGitSyncOperationData"
52874
52656
  },
52875
- {
52876
- "$ref": "#/components/schemas/APIChannelSpaceContentRefsData"
52877
- },
52878
- {
52879
- "$ref": "#/components/schemas/APIChannelChangeRequestContentRefsData"
52880
- },
52881
52657
  {
52882
52658
  "$ref": "#/components/schemas/APIChannelTranslationRunData"
52883
52659
  },