@gitbook/api 0.187.0 → 0.188.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"
@@ -3451,101 +3243,6 @@
3451
3243
  }
3452
3244
  }
3453
3245
  },
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
3246
  "/spaces/{spaceId}/change-requests/{changeRequestId}/comments": {
3550
3247
  "get": {
3551
3248
  "operationId": "listCommentsInChangeRequest",
@@ -4435,74 +4132,6 @@
4435
4132
  }
4436
4133
  }
4437
4134
  },
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
4135
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}": {
4507
4136
  "get": {
4508
4137
  "operationId": "getPageInChangeRequestById",
@@ -4565,147 +4194,6 @@
4565
4194
  }
4566
4195
  }
4567
4196
  },
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
4197
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links": {
4710
4198
  "get": {
4711
4199
  "operationId": "listChangeRequestPageMetaLinks",
@@ -6466,85 +5954,6 @@
6466
5954
  }
6467
5955
  }
6468
5956
  },
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
5957
  "/collections/{collectionId}": {
6549
5958
  "get": {
6550
5959
  "operationId": "getCollectionById",
@@ -11809,6 +11218,49 @@
11809
11218
  }
11810
11219
  }
11811
11220
  },
11221
+ "/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content/raw": {
11222
+ "get": {
11223
+ "operationId": "getLatestOpenAPISpecVersionContentRaw",
11224
+ "summary": "Get the raw content of the latest OpenAPI spec version",
11225
+ "tags": [
11226
+ "openapi-versions"
11227
+ ],
11228
+ "security": [
11229
+ {
11230
+ "user": []
11231
+ },
11232
+ {
11233
+ "oauth": [
11234
+ "openapi:read"
11235
+ ]
11236
+ }
11237
+ ],
11238
+ "parameters": [
11239
+ {
11240
+ "$ref": "#/components/parameters/organizationId"
11241
+ },
11242
+ {
11243
+ "$ref": "#/components/parameters/openapiSpecSlug"
11244
+ }
11245
+ ],
11246
+ "responses": {
11247
+ "200": {
11248
+ "description": "OK",
11249
+ "content": {
11250
+ "application/json": {
11251
+ "schema": {
11252
+ "$ref": "#/components/schemas/OpenAPISpecRawContent"
11253
+ }
11254
+ }
11255
+ }
11256
+ },
11257
+ "404": {
11258
+ "description": "No matching OpenAPI specification version, or no raw source available for it (e.g. legacy versions)",
11259
+ "$ref": "#/components/responses/NotFoundError"
11260
+ }
11261
+ }
11262
+ }
11263
+ },
11812
11264
  "/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}": {
11813
11265
  "get": {
11814
11266
  "operationId": "getOpenAPISpecVersionById",
@@ -13088,9 +12540,6 @@
13088
12540
  "adaptiveContent": {
13089
12541
  "$ref": "#/components/schemas/SiteAdaptiveContent"
13090
12542
  },
13091
- "permissionsModel": {
13092
- "$ref": "#/components/schemas/SitePermissionsModel"
13093
- },
13094
12543
  "defaultLevel": {
13095
12544
  "$ref": "#/components/schemas/DefaultLevel"
13096
12545
  },
@@ -16560,6 +16009,49 @@
16560
16009
  }
16561
16010
  }
16562
16011
  },
16012
+ "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/test": {
16013
+ "post": {
16014
+ "operationId": "testSiteContextConnection",
16015
+ "summary": "Test a context connection's stored credentials",
16016
+ "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`.",
16017
+ "tags": [
16018
+ "site-context"
16019
+ ],
16020
+ "security": [
16021
+ {
16022
+ "user": []
16023
+ },
16024
+ {
16025
+ "oauth": [
16026
+ "site:write"
16027
+ ]
16028
+ }
16029
+ ],
16030
+ "parameters": [
16031
+ {
16032
+ "$ref": "#/components/parameters/organizationId"
16033
+ },
16034
+ {
16035
+ "$ref": "#/components/parameters/siteId"
16036
+ },
16037
+ {
16038
+ "$ref": "#/components/parameters/siteContextConnectionId"
16039
+ }
16040
+ ],
16041
+ "responses": {
16042
+ "200": {
16043
+ "description": "The connection test completed (see `success` for the outcome).",
16044
+ "content": {
16045
+ "application/json": {
16046
+ "schema": {
16047
+ "$ref": "#/components/schemas/ContextConnectionTestResult"
16048
+ }
16049
+ }
16050
+ }
16051
+ }
16052
+ }
16053
+ }
16054
+ },
16563
16055
  "/orgs/{organizationId}/sites/{siteId}/topics": {
16564
16056
  "get": {
16565
16057
  "operationId": "listSiteTopics",
@@ -22417,6 +21909,53 @@
22417
21909
  "urls"
22418
21910
  ]
22419
21911
  },
21912
+ "UserTokenInfo": {
21913
+ "type": "object",
21914
+ "description": "Identity of the token used to authenticate the request.",
21915
+ "properties": {
21916
+ "object": {
21917
+ "type": "string",
21918
+ "enum": [
21919
+ "user-token-info"
21920
+ ]
21921
+ },
21922
+ "userId": {
21923
+ "type": "string",
21924
+ "description": "The user ID the token belongs to."
21925
+ },
21926
+ "tokenType": {
21927
+ "type": "string",
21928
+ "enum": [
21929
+ "personal-api-token",
21930
+ "oauth-token"
21931
+ ],
21932
+ "description": "The type of token used to authenticate the request."
21933
+ },
21934
+ "oauthClient": {
21935
+ "type": "object",
21936
+ "description": "The OAuth client the token was issued to. Only present for OAuth tokens.",
21937
+ "required": [
21938
+ "id",
21939
+ "name"
21940
+ ],
21941
+ "properties": {
21942
+ "id": {
21943
+ "type": "string",
21944
+ "description": "The OAuth client ID."
21945
+ },
21946
+ "name": {
21947
+ "type": "string",
21948
+ "description": "The OAuth client name."
21949
+ }
21950
+ }
21951
+ }
21952
+ },
21953
+ "required": [
21954
+ "object",
21955
+ "userId",
21956
+ "tokenType"
21957
+ ]
21958
+ },
22420
21959
  "APITemporaryToken": {
22421
21960
  "type": "object",
22422
21961
  "properties": {
@@ -28090,6 +27629,14 @@
28090
27629
  "secondary"
28091
27630
  ]
28092
27631
  },
27632
+ "size": {
27633
+ "type": "string",
27634
+ "enum": [
27635
+ "small",
27636
+ "medium",
27637
+ "large"
27638
+ ]
27639
+ },
28093
27640
  "icon": {
28094
27641
  "$ref": "#/components/schemas/Icon"
28095
27642
  }
@@ -29654,6 +29201,14 @@
29654
29201
  "updatedAt": {
29655
29202
  "$ref": "#/components/schemas/Timestamp"
29656
29203
  },
29204
+ "mergedBy": {
29205
+ "$ref": "#/components/schemas/User",
29206
+ "description": "User who merged the change request. Only present when the change request has been merged."
29207
+ },
29208
+ "mergedAt": {
29209
+ "$ref": "#/components/schemas/Timestamp",
29210
+ "description": "Date at which the change request was merged. Only present when the change request has been merged."
29211
+ },
29657
29212
  "space": {
29658
29213
  "type": "string",
29659
29214
  "description": "ID of the space in which the change request was created."
@@ -29896,1488 +29451,309 @@
29896
29451
  "id"
29897
29452
  ]
29898
29453
  },
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": {
29454
+ "ChangeRequestOrderBy": {
29926
29455
  "type": "string",
29927
29456
  "enum": [
29928
- "internalDocs",
29929
- "docsSite",
29930
- "audienceControlledSite",
29931
- "productDocs",
29932
- "teamKnowledgeBase",
29933
- "designSystem",
29934
- "openSourceDocs",
29935
- "notes",
29936
- "other"
29937
- ]
29457
+ "updatedAt",
29458
+ "createdAt"
29459
+ ],
29460
+ "default": "updatedAt",
29461
+ "description": "The field to sort change requests by. Defaults to 'updatedAt'."
29938
29462
  },
29939
- "OrganizationCommunityType": {
29463
+ "ChangeRequestReviewStatus": {
29940
29464
  "type": "string",
29465
+ "description": "Status of a change request review.",
29941
29466
  "enum": [
29942
- "nonProfit",
29943
- "openSource",
29944
- "education"
29467
+ "changes-requested",
29468
+ "approved"
29945
29469
  ]
29946
29470
  },
29947
- "SitePointer": {
29471
+ "EmojiReaction": {
29948
29472
  "type": "object",
29473
+ "description": "An emoji reaction by one or many users",
29949
29474
  "properties": {
29950
- "type": {
29475
+ "emoji": {
29951
29476
  "type": "string",
29952
- "enum": [
29953
- "site"
29954
- ]
29477
+ "description": "The Emoji of the reaction"
29955
29478
  },
29956
- "site": {
29957
- "type": "string",
29958
- "description": "Unique identifier for the site"
29479
+ "count": {
29480
+ "type": "number",
29481
+ "description": "The number of users who reacted with this emoji"
29482
+ },
29483
+ "users": {
29484
+ "type": "array",
29485
+ "description": "The users who reacted with this emoji",
29486
+ "items": {
29487
+ "type": "object",
29488
+ "properties": {
29489
+ "user": {
29490
+ "$ref": "#/components/schemas/User"
29491
+ },
29492
+ "reactedAt": {
29493
+ "$ref": "#/components/schemas/Timestamp"
29494
+ }
29495
+ },
29496
+ "required": [
29497
+ "user",
29498
+ "reactedAt"
29499
+ ]
29500
+ }
29959
29501
  }
29960
29502
  },
29961
29503
  "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"
29504
+ "emoji",
29505
+ "count",
29506
+ "users"
29987
29507
  ]
29988
29508
  },
29989
- "BillingInterval": {
29990
- "type": "string",
29991
- "description": "Interval for a billing subscription",
29992
- "enum": [
29993
- "monthly",
29994
- "yearly"
29995
- ]
29509
+ "EmojiReactions": {
29510
+ "type": "array",
29511
+ "items": {
29512
+ "$ref": "#/components/schemas/EmojiReaction"
29513
+ }
29996
29514
  },
29997
- "OrganizationPricePair": {
29515
+ "UserContributor": {
29998
29516
  "type": "object",
29999
- "description": "Pricing pair for monthly and yearly intervals",
29517
+ "description": "Contributor towards content.",
30000
29518
  "properties": {
30001
- "monthly": {
30002
- "type": "number",
30003
- "description": "Monthly price in USD",
30004
- "minimum": 0
29519
+ "updatedAt": {
29520
+ "$ref": "#/components/schemas/Timestamp"
30005
29521
  },
30006
- "yearly": {
30007
- "type": "number",
30008
- "description": "Yearly price in USD (per month)",
30009
- "minimum": 0
29522
+ "count": {
29523
+ "type": "integer"
29524
+ },
29525
+ "user": {
29526
+ "$ref": "#/components/schemas/User"
30010
29527
  }
30011
29528
  },
30012
29529
  "required": [
30013
- "monthly",
30014
- "yearly"
29530
+ "updatedAt",
29531
+ "count",
29532
+ "user"
30015
29533
  ]
30016
29534
  },
30017
- "OrganizationPricing": {
29535
+ "TableCellTarget": {
30018
29536
  "type": "object",
30019
- "description": "Pricing information for an organization",
29537
+ "description": "Details about the table cell this comment is attached to, if any.",
30020
29538
  "properties": {
30021
- "members": {
29539
+ "record": {
29540
+ "type": "string"
29541
+ },
29542
+ "definition": {
29543
+ "type": "string"
29544
+ }
29545
+ },
29546
+ "required": [
29547
+ "record",
29548
+ "definition"
29549
+ ]
29550
+ },
29551
+ "Comment": {
29552
+ "allOf": [
29553
+ {
30022
29554
  "type": "object",
30023
- "description": "Pricing for members (organization plan)",
30024
29555
  "properties": {
30025
- "plus_2024": {
30026
- "$ref": "#/components/schemas/OrganizationPricePair"
29556
+ "object": {
29557
+ "type": "string",
29558
+ "description": "Type of Object, always equals to \"comment\"",
29559
+ "enum": [
29560
+ "comment"
29561
+ ]
30027
29562
  },
30028
- "pro_2024": {
30029
- "$ref": "#/components/schemas/OrganizationPricePair"
29563
+ "id": {
29564
+ "description": "Unique identifier for the comment.",
29565
+ "type": "string"
29566
+ },
29567
+ "postedBy": {
29568
+ "description": "The user who posted the comment.",
29569
+ "$ref": "#/components/schemas/User"
29570
+ },
29571
+ "postedAt": {
29572
+ "description": "When the comment was posted.",
29573
+ "$ref": "#/components/schemas/Timestamp"
29574
+ },
29575
+ "editedAt": {
29576
+ "description": "Date when the comment was edited, if it has been edited.",
29577
+ "$ref": "#/components/schemas/Timestamp"
29578
+ },
29579
+ "reactions": {
29580
+ "description": "Any emoji reactions to the comment.",
29581
+ "$ref": "#/components/schemas/EmojiReactions"
29582
+ },
29583
+ "replies": {
29584
+ "description": "The number of replies to this comment.",
29585
+ "type": "number"
29586
+ },
29587
+ "repliers": {
29588
+ "description": "The users who replied to this comment.",
29589
+ "type": "array",
29590
+ "items": {
29591
+ "$ref": "#/components/schemas/UserContributor"
29592
+ }
29593
+ },
29594
+ "body": {
29595
+ "description": "The content of the comment.",
29596
+ "$ref": "#/components/schemas/Document"
29597
+ },
29598
+ "target": {
29599
+ "description": "Information about the target of the comment.",
29600
+ "type": "object",
29601
+ "properties": {
29602
+ "node": {
29603
+ "description": "The node this comment is attached to.",
29604
+ "type": "object",
29605
+ "properties": {
29606
+ "id": {
29607
+ "type": "string"
29608
+ }
29609
+ },
29610
+ "required": [
29611
+ "id"
29612
+ ]
29613
+ },
29614
+ "tableCell": {
29615
+ "$ref": "#/components/schemas/TableCellTarget"
29616
+ },
29617
+ "changeRequest": {
29618
+ "description": "The change request containing this comment, if the comment was made inside a change request.",
29619
+ "type": "string"
29620
+ },
29621
+ "review": {
29622
+ "description": "The review containing this comment, if this comment was made as part of a review.",
29623
+ "type": "string"
29624
+ },
29625
+ "page": {
29626
+ "description": "Information about the page, if this comment refers to a specific page.",
29627
+ "type": "object",
29628
+ "properties": {
29629
+ "id": {
29630
+ "type": "string",
29631
+ "description": "The ID of the page"
29632
+ }
29633
+ },
29634
+ "required": [
29635
+ "id"
29636
+ ]
29637
+ },
29638
+ "space": {
29639
+ "description": "The space containing this comment.",
29640
+ "type": "string"
29641
+ },
29642
+ "revision": {
29643
+ "description": "The revision in which the target can be found in.",
29644
+ "type": "string"
29645
+ }
29646
+ },
29647
+ "required": [
29648
+ "space",
29649
+ "revision"
29650
+ ]
29651
+ },
29652
+ "urls": {
29653
+ "type": "object",
29654
+ "description": "URLs associated with the object",
29655
+ "properties": {
29656
+ "location": {
29657
+ "type": "string",
29658
+ "description": "URL of the comment in the API",
29659
+ "format": "uri"
29660
+ }
29661
+ },
29662
+ "required": [
29663
+ "location"
29664
+ ]
29665
+ },
29666
+ "permissions": {
29667
+ "type": "object",
29668
+ "description": "The set of permissions for the comment",
29669
+ "properties": {
29670
+ "view": {
29671
+ "type": "boolean",
29672
+ "description": "Can the user view the comment."
29673
+ },
29674
+ "edit": {
29675
+ "type": "boolean",
29676
+ "description": "Can the user edit the comment."
29677
+ },
29678
+ "reply": {
29679
+ "type": "boolean",
29680
+ "description": "Can the user react or send a reply to the comment."
29681
+ },
29682
+ "delete": {
29683
+ "type": "boolean",
29684
+ "description": "Can the user delete the comment."
29685
+ }
29686
+ },
29687
+ "required": [
29688
+ "view",
29689
+ "edit",
29690
+ "delete"
29691
+ ]
30030
29692
  }
30031
29693
  },
30032
29694
  "required": [
30033
- "plus_2024",
30034
- "pro_2024"
30035
- ],
30036
- "additionalProperties": false
29695
+ "object",
29696
+ "id",
29697
+ "replies",
29698
+ "repliers",
29699
+ "body",
29700
+ "postedBy",
29701
+ "postedAt",
29702
+ "reactions",
29703
+ "target",
29704
+ "urls",
29705
+ "permissions"
29706
+ ]
30037
29707
  },
30038
- "sites": {
30039
- "type": "object",
30040
- "description": "Pricing for site types (site plans)",
30041
- "properties": {
30042
- "premium": {
30043
- "$ref": "#/components/schemas/OrganizationPricePair"
29708
+ {
29709
+ "oneOf": [
29710
+ {
29711
+ "type": "object",
29712
+ "title": "Resolved",
29713
+ "properties": {
29714
+ "status": {
29715
+ "description": "Status of the comment.",
29716
+ "type": "string",
29717
+ "enum": [
29718
+ "resolved"
29719
+ ]
29720
+ },
29721
+ "resolvedAt": {
29722
+ "description": "If the comment has been resolved, the date at which it was resolved. If this field is not defined, the comment is not resolved.",
29723
+ "$ref": "#/components/schemas/Timestamp"
29724
+ },
29725
+ "resolvedBy": {
29726
+ "description": "If the comment has been resolved, the user who resolved it. If this field is not defined, the comment is not resolved.",
29727
+ "$ref": "#/components/schemas/User"
29728
+ }
29729
+ },
29730
+ "required": [
29731
+ "status",
29732
+ "resolvedAt",
29733
+ "resolvedBy"
29734
+ ]
30044
29735
  },
30045
- "ultimate": {
30046
- "$ref": "#/components/schemas/OrganizationPricePair"
29736
+ {
29737
+ "type": "object",
29738
+ "title": "Open",
29739
+ "properties": {
29740
+ "status": {
29741
+ "description": "Status of the comment.",
29742
+ "type": "string",
29743
+ "enum": [
29744
+ "open"
29745
+ ]
29746
+ }
29747
+ },
29748
+ "required": [
29749
+ "status"
29750
+ ]
30047
29751
  }
30048
- },
30049
- "required": [
30050
- "premium",
30051
- "ultimate"
30052
- ],
30053
- "additionalProperties": false
29752
+ ]
30054
29753
  }
30055
- },
30056
- "required": [
30057
- "members",
30058
- "sites"
30059
29754
  ]
30060
29755
  },
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"
30868
- },
30869
- "processingState": {
30870
- "$ref": "#/components/schemas/OpenAPISpecProcessingState"
30871
- },
30872
- "visibility": {
30873
- "$ref": "#/components/schemas/OpenAPISpecVisibility"
30874
- },
30875
- "lastVersion": {
30876
- "type": "string",
30877
- "description": "ID of the latest version of the OpenAPI specification"
30878
- },
30879
- "lastProcessedAt": {
30880
- "description": "Date of the last processing",
30881
- "$ref": "#/components/schemas/Timestamp"
30882
- },
30883
- "lastProcessErrorCode": {
30884
- "$ref": "#/components/schemas/OpenAPISpecProcessingErrorCode"
30885
- },
30886
- "lastProcessedErrors": {
30887
- "type": "array",
30888
- "items": {
30889
- "$ref": "#/components/schemas/OpenAPIErrorObject"
30890
- }
30891
- },
30892
- "lastProcessedErrorCount": {
30893
- "type": "integer",
30894
- "minimum": 0,
30895
- "description": "Total number of processing errors before truncation of lastProcessedErrors."
30896
- },
30897
- "permissions": {
30898
- "type": "object",
30899
- "description": "The set of permissions for the OpenAPI specification.",
30900
- "required": [
30901
- "view",
30902
- "edit"
30903
- ],
30904
- "properties": {
30905
- "view": {
30906
- "type": "boolean",
30907
- "description": "Can the user view the specification."
30908
- },
30909
- "edit": {
30910
- "type": "boolean",
30911
- "description": "Can the user edit the specification."
30912
- }
30913
- }
30914
- },
30915
- "urls": {
30916
- "type": "object",
30917
- "description": "URLs associated with the object",
30918
- "properties": {
30919
- "location": {
30920
- "description": "URL of the OpenAPI specification in the API",
30921
- "$ref": "#/components/schemas/URL"
30922
- },
30923
- "app": {
30924
- "description": "URL of the OpenAPI specification in the application",
30925
- "$ref": "#/components/schemas/URL"
30926
- },
30927
- "published": {
30928
- "type": "string",
30929
- "description": "URL of the published spec. Only defined when visibility is \"published.\"",
30930
- "format": "uri"
30931
- }
30932
- },
30933
- "required": [
30934
- "app",
30935
- "location"
30936
- ]
30937
- }
30938
- },
30939
- "required": [
30940
- "object",
30941
- "id",
30942
- "createdAt",
30943
- "updatedAt",
30944
- "slug",
30945
- "processingState",
30946
- "lastProcessedErrorCount",
30947
- "permissions",
30948
- "urls"
30949
- ]
30950
- },
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"
30962
- },
30963
- "openAPISpec": {
30964
- "$ref": "#/components/schemas/OpenAPISpec"
30965
- }
30966
- },
30967
- "required": [
30968
- "kind",
30969
- "organization",
30970
- "openAPISpec"
30971
- ]
30972
- },
30973
- "ContentLocation": {
30974
- "description": "An absolute reference to content in GitBook.",
30975
- "oneOf": [
30976
- {
30977
- "$ref": "#/components/schemas/ContentLocationFile"
30978
- },
30979
- {
30980
- "$ref": "#/components/schemas/ContentLocationURL"
30981
- },
30982
- {
30983
- "$ref": "#/components/schemas/ContentLocationPage"
30984
- },
30985
- {
30986
- "$ref": "#/components/schemas/ContentLocationUser"
30987
- },
30988
- {
30989
- "$ref": "#/components/schemas/ContentLocationCollection"
30990
- },
30991
- {
30992
- "$ref": "#/components/schemas/ContentLocationSpace"
30993
- },
30994
- {
30995
- "$ref": "#/components/schemas/ContentLocationReusableContent"
30996
- },
30997
- {
30998
- "$ref": "#/components/schemas/ContentLocationOpenAPI"
30999
- }
31000
- ],
31001
- "discriminator": {
31002
- "propertyName": "kind"
31003
- }
31004
- },
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": {
31015
- "type": "object",
31016
- "properties": {
31017
- "total": {
31018
- "description": "Total count of links",
31019
- "type": "number"
31020
- },
31021
- "broken": {
31022
- "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
- ]
31036
- }
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"
31050
- },
31051
- "ContentReferenceUsage": {
31052
- "type": "object",
31053
- "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"
31063
- },
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
- }
31070
- }
31071
- },
31072
- "required": [
31073
- "relation",
31074
- "status",
31075
- "locationReferences"
31076
- ]
31077
- },
31078
- "ChangeRequestOrderBy": {
31079
- "type": "string",
31080
- "enum": [
31081
- "updatedAt",
31082
- "createdAt"
31083
- ],
31084
- "default": "updatedAt",
31085
- "description": "The field to sort change requests by. Defaults to 'updatedAt'."
31086
- },
31087
- "ChangeRequestReviewStatus": {
31088
- "type": "string",
31089
- "description": "Status of a change request review.",
31090
- "enum": [
31091
- "changes-requested",
31092
- "approved"
31093
- ]
31094
- },
31095
- "EmojiReaction": {
31096
- "type": "object",
31097
- "description": "An emoji reaction by one or many users",
31098
- "properties": {
31099
- "emoji": {
31100
- "type": "string",
31101
- "description": "The Emoji of the reaction"
31102
- },
31103
- "count": {
31104
- "type": "number",
31105
- "description": "The number of users who reacted with this emoji"
31106
- },
31107
- "users": {
31108
- "type": "array",
31109
- "description": "The users who reacted with this emoji",
31110
- "items": {
31111
- "type": "object",
31112
- "properties": {
31113
- "user": {
31114
- "$ref": "#/components/schemas/User"
31115
- },
31116
- "reactedAt": {
31117
- "$ref": "#/components/schemas/Timestamp"
31118
- }
31119
- },
31120
- "required": [
31121
- "user",
31122
- "reactedAt"
31123
- ]
31124
- }
31125
- }
31126
- },
31127
- "required": [
31128
- "emoji",
31129
- "count",
31130
- "users"
31131
- ]
31132
- },
31133
- "EmojiReactions": {
31134
- "type": "array",
31135
- "items": {
31136
- "$ref": "#/components/schemas/EmojiReaction"
31137
- }
31138
- },
31139
- "UserContributor": {
31140
- "type": "object",
31141
- "description": "Contributor towards content.",
31142
- "properties": {
31143
- "updatedAt": {
31144
- "$ref": "#/components/schemas/Timestamp"
31145
- },
31146
- "count": {
31147
- "type": "integer"
31148
- },
31149
- "user": {
31150
- "$ref": "#/components/schemas/User"
31151
- }
31152
- },
31153
- "required": [
31154
- "updatedAt",
31155
- "count",
31156
- "user"
31157
- ]
31158
- },
31159
- "TableCellTarget": {
31160
- "type": "object",
31161
- "description": "Details about the table cell this comment is attached to, if any.",
31162
- "properties": {
31163
- "record": {
31164
- "type": "string"
31165
- },
31166
- "definition": {
31167
- "type": "string"
31168
- }
31169
- },
31170
- "required": [
31171
- "record",
31172
- "definition"
31173
- ]
31174
- },
31175
- "Comment": {
31176
- "allOf": [
31177
- {
31178
- "type": "object",
31179
- "properties": {
31180
- "object": {
31181
- "type": "string",
31182
- "description": "Type of Object, always equals to \"comment\"",
31183
- "enum": [
31184
- "comment"
31185
- ]
31186
- },
31187
- "id": {
31188
- "description": "Unique identifier for the comment.",
31189
- "type": "string"
31190
- },
31191
- "postedBy": {
31192
- "description": "The user who posted the comment.",
31193
- "$ref": "#/components/schemas/User"
31194
- },
31195
- "postedAt": {
31196
- "description": "When the comment was posted.",
31197
- "$ref": "#/components/schemas/Timestamp"
31198
- },
31199
- "editedAt": {
31200
- "description": "Date when the comment was edited, if it has been edited.",
31201
- "$ref": "#/components/schemas/Timestamp"
31202
- },
31203
- "reactions": {
31204
- "description": "Any emoji reactions to the comment.",
31205
- "$ref": "#/components/schemas/EmojiReactions"
31206
- },
31207
- "replies": {
31208
- "description": "The number of replies to this comment.",
31209
- "type": "number"
31210
- },
31211
- "repliers": {
31212
- "description": "The users who replied to this comment.",
31213
- "type": "array",
31214
- "items": {
31215
- "$ref": "#/components/schemas/UserContributor"
31216
- }
31217
- },
31218
- "body": {
31219
- "description": "The content of the comment.",
31220
- "$ref": "#/components/schemas/Document"
31221
- },
31222
- "target": {
31223
- "description": "Information about the target of the comment.",
31224
- "type": "object",
31225
- "properties": {
31226
- "node": {
31227
- "description": "The node this comment is attached to.",
31228
- "type": "object",
31229
- "properties": {
31230
- "id": {
31231
- "type": "string"
31232
- }
31233
- },
31234
- "required": [
31235
- "id"
31236
- ]
31237
- },
31238
- "tableCell": {
31239
- "$ref": "#/components/schemas/TableCellTarget"
31240
- },
31241
- "changeRequest": {
31242
- "description": "The change request containing this comment, if the comment was made inside a change request.",
31243
- "type": "string"
31244
- },
31245
- "review": {
31246
- "description": "The review containing this comment, if this comment was made as part of a review.",
31247
- "type": "string"
31248
- },
31249
- "page": {
31250
- "description": "Information about the page, if this comment refers to a specific page.",
31251
- "type": "object",
31252
- "properties": {
31253
- "id": {
31254
- "type": "string",
31255
- "description": "The ID of the page"
31256
- }
31257
- },
31258
- "required": [
31259
- "id"
31260
- ]
31261
- },
31262
- "space": {
31263
- "description": "The space containing this comment.",
31264
- "type": "string"
31265
- },
31266
- "revision": {
31267
- "description": "The revision in which the target can be found in.",
31268
- "type": "string"
31269
- }
31270
- },
31271
- "required": [
31272
- "space",
31273
- "revision"
31274
- ]
31275
- },
31276
- "urls": {
31277
- "type": "object",
31278
- "description": "URLs associated with the object",
31279
- "properties": {
31280
- "location": {
31281
- "type": "string",
31282
- "description": "URL of the comment in the API",
31283
- "format": "uri"
31284
- }
31285
- },
31286
- "required": [
31287
- "location"
31288
- ]
31289
- },
31290
- "permissions": {
31291
- "type": "object",
31292
- "description": "The set of permissions for the comment",
31293
- "properties": {
31294
- "view": {
31295
- "type": "boolean",
31296
- "description": "Can the user view the comment."
31297
- },
31298
- "edit": {
31299
- "type": "boolean",
31300
- "description": "Can the user edit the comment."
31301
- },
31302
- "reply": {
31303
- "type": "boolean",
31304
- "description": "Can the user react or send a reply to the comment."
31305
- },
31306
- "delete": {
31307
- "type": "boolean",
31308
- "description": "Can the user delete the comment."
31309
- }
31310
- },
31311
- "required": [
31312
- "view",
31313
- "edit",
31314
- "delete"
31315
- ]
31316
- }
31317
- },
31318
- "required": [
31319
- "object",
31320
- "id",
31321
- "replies",
31322
- "repliers",
31323
- "body",
31324
- "postedBy",
31325
- "postedAt",
31326
- "reactions",
31327
- "target",
31328
- "urls",
31329
- "permissions"
31330
- ]
31331
- },
31332
- {
31333
- "oneOf": [
31334
- {
31335
- "type": "object",
31336
- "title": "Resolved",
31337
- "properties": {
31338
- "status": {
31339
- "description": "Status of the comment.",
31340
- "type": "string",
31341
- "enum": [
31342
- "resolved"
31343
- ]
31344
- },
31345
- "resolvedAt": {
31346
- "description": "If the comment has been resolved, the date at which it was resolved. If this field is not defined, the comment is not resolved.",
31347
- "$ref": "#/components/schemas/Timestamp"
31348
- },
31349
- "resolvedBy": {
31350
- "description": "If the comment has been resolved, the user who resolved it. If this field is not defined, the comment is not resolved.",
31351
- "$ref": "#/components/schemas/User"
31352
- }
31353
- },
31354
- "required": [
31355
- "status",
31356
- "resolvedAt",
31357
- "resolvedBy"
31358
- ]
31359
- },
31360
- {
31361
- "type": "object",
31362
- "title": "Open",
31363
- "properties": {
31364
- "status": {
31365
- "description": "Status of the comment.",
31366
- "type": "string",
31367
- "enum": [
31368
- "open"
31369
- ]
31370
- }
31371
- },
31372
- "required": [
31373
- "status"
31374
- ]
31375
- }
31376
- ]
31377
- }
31378
- ]
31379
- },
31380
- "ChangeRequestReview": {
29756
+ "ChangeRequestReview": {
31381
29757
  "type": "object",
31382
29758
  "properties": {
31383
29759
  "object": {
@@ -32919,52 +31295,581 @@
32919
31295
  }
32920
31296
  },
32921
31297
  "required": [
32922
- "properties"
31298
+ "properties"
31299
+ ]
31300
+ },
31301
+ "IntegrationConfiguration": {
31302
+ "oneOf": [
31303
+ {
31304
+ "$ref": "#/components/schemas/IntegrationConfigurationSchema"
31305
+ },
31306
+ {
31307
+ "$ref": "#/components/schemas/IntegrationConfigurationComponent"
31308
+ }
31309
+ ]
31310
+ },
31311
+ "IntegrationConfigurations": {
31312
+ "type": "object",
31313
+ "properties": {
31314
+ "account": {
31315
+ "$ref": "#/components/schemas/IntegrationConfiguration"
31316
+ },
31317
+ "space": {
31318
+ "$ref": "#/components/schemas/IntegrationConfiguration"
31319
+ },
31320
+ "site": {
31321
+ "$ref": "#/components/schemas/IntegrationConfiguration"
31322
+ }
31323
+ }
31324
+ },
31325
+ "IntegrationExternalLinks": {
31326
+ "type": "array",
31327
+ "description": "External urls configured by the developer of the integration",
31328
+ "maxItems": 5,
31329
+ "items": {
31330
+ "type": "object",
31331
+ "properties": {
31332
+ "url": {
31333
+ "$ref": "#/components/schemas/URL"
31334
+ },
31335
+ "label": {
31336
+ "type": "string"
31337
+ }
31338
+ },
31339
+ "required": [
31340
+ "url",
31341
+ "label"
31342
+ ]
31343
+ }
31344
+ },
31345
+ "OrganizationTitle": {
31346
+ "type": "string",
31347
+ "description": "Name of the organization",
31348
+ "minLength": 2,
31349
+ "maxLength": 255,
31350
+ "pattern": "\\S.*\\S"
31351
+ },
31352
+ "OrganizationEmailDomains": {
31353
+ "type": "array",
31354
+ "items": {
31355
+ "type": "string"
31356
+ }
31357
+ },
31358
+ "OrganizationHostname": {
31359
+ "type": "string",
31360
+ "description": "Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io",
31361
+ "minLength": 3,
31362
+ "maxLength": 32
31363
+ },
31364
+ "OrganizationType": {
31365
+ "type": "string",
31366
+ "enum": [
31367
+ "business",
31368
+ "community"
31369
+ ]
31370
+ },
31371
+ "OrganizationUseCase": {
31372
+ "type": "string",
31373
+ "enum": [
31374
+ "internalDocs",
31375
+ "docsSite",
31376
+ "audienceControlledSite",
31377
+ "productDocs",
31378
+ "teamKnowledgeBase",
31379
+ "designSystem",
31380
+ "openSourceDocs",
31381
+ "notes",
31382
+ "other"
31383
+ ]
31384
+ },
31385
+ "OrganizationCommunityType": {
31386
+ "type": "string",
31387
+ "enum": [
31388
+ "nonProfit",
31389
+ "openSource",
31390
+ "education"
31391
+ ]
31392
+ },
31393
+ "SitePointer": {
31394
+ "type": "object",
31395
+ "properties": {
31396
+ "type": {
31397
+ "type": "string",
31398
+ "enum": [
31399
+ "site"
31400
+ ]
31401
+ },
31402
+ "site": {
31403
+ "type": "string",
31404
+ "description": "Unique identifier for the site"
31405
+ }
31406
+ },
31407
+ "required": [
31408
+ "type",
31409
+ "site"
31410
+ ]
31411
+ },
31412
+ "OrganizationDefaultContent": {
31413
+ "description": "The default content for the organization",
31414
+ "oneOf": [
31415
+ {
31416
+ "$ref": "#/components/schemas/SitePointer"
31417
+ }
31418
+ ]
31419
+ },
31420
+ "BillingProduct": {
31421
+ "type": "string",
31422
+ "description": "Name of the product",
31423
+ "enum": [
31424
+ "free_2024",
31425
+ "plus_2024",
31426
+ "pro_2024",
31427
+ "enterprise_2024",
31428
+ "community_2024",
31429
+ "free",
31430
+ "plus",
31431
+ "pro",
31432
+ "internal"
31433
+ ]
31434
+ },
31435
+ "BillingInterval": {
31436
+ "type": "string",
31437
+ "description": "Interval for a billing subscription",
31438
+ "enum": [
31439
+ "monthly",
31440
+ "yearly"
31441
+ ]
31442
+ },
31443
+ "OrganizationPricePair": {
31444
+ "type": "object",
31445
+ "description": "Pricing pair for monthly and yearly intervals",
31446
+ "properties": {
31447
+ "monthly": {
31448
+ "type": "number",
31449
+ "description": "Monthly price in USD",
31450
+ "minimum": 0
31451
+ },
31452
+ "yearly": {
31453
+ "type": "number",
31454
+ "description": "Yearly price in USD (per month)",
31455
+ "minimum": 0
31456
+ }
31457
+ },
31458
+ "required": [
31459
+ "monthly",
31460
+ "yearly"
31461
+ ]
31462
+ },
31463
+ "OrganizationPricing": {
31464
+ "type": "object",
31465
+ "description": "Pricing information for an organization",
31466
+ "properties": {
31467
+ "members": {
31468
+ "type": "object",
31469
+ "description": "Pricing for members (organization plan)",
31470
+ "properties": {
31471
+ "plus_2024": {
31472
+ "$ref": "#/components/schemas/OrganizationPricePair"
31473
+ },
31474
+ "pro_2024": {
31475
+ "$ref": "#/components/schemas/OrganizationPricePair"
31476
+ }
31477
+ },
31478
+ "required": [
31479
+ "plus_2024",
31480
+ "pro_2024"
31481
+ ],
31482
+ "additionalProperties": false
31483
+ },
31484
+ "sites": {
31485
+ "type": "object",
31486
+ "description": "Pricing for site types (site plans)",
31487
+ "properties": {
31488
+ "premium": {
31489
+ "$ref": "#/components/schemas/OrganizationPricePair"
31490
+ },
31491
+ "ultimate": {
31492
+ "$ref": "#/components/schemas/OrganizationPricePair"
31493
+ }
31494
+ },
31495
+ "required": [
31496
+ "premium",
31497
+ "ultimate"
31498
+ ],
31499
+ "additionalProperties": false
31500
+ }
31501
+ },
31502
+ "required": [
31503
+ "members",
31504
+ "sites"
32923
31505
  ]
32924
31506
  },
32925
- "IntegrationConfiguration": {
32926
- "oneOf": [
32927
- {
32928
- "$ref": "#/components/schemas/IntegrationConfigurationSchema"
32929
- },
32930
- {
32931
- "$ref": "#/components/schemas/IntegrationConfigurationComponent"
31507
+ "BillingMeterAddon": {
31508
+ "type": "object",
31509
+ "properties": {
31510
+ "enabled": {
31511
+ "type": "boolean"
32932
31512
  }
31513
+ },
31514
+ "required": [
31515
+ "enabled"
32933
31516
  ]
32934
31517
  },
32935
- "IntegrationConfigurations": {
31518
+ "OrganizationBilling": {
32936
31519
  "type": "object",
32937
31520
  "properties": {
32938
- "account": {
32939
- "$ref": "#/components/schemas/IntegrationConfiguration"
31521
+ "interval": {
31522
+ "$ref": "#/components/schemas/BillingInterval"
32940
31523
  },
32941
- "space": {
32942
- "$ref": "#/components/schemas/IntegrationConfiguration"
31524
+ "endDate": {
31525
+ "oneOf": [
31526
+ {
31527
+ "$ref": "#/components/schemas/Timestamp"
31528
+ },
31529
+ {
31530
+ "type": "null"
31531
+ }
31532
+ ]
32943
31533
  },
32944
- "site": {
32945
- "$ref": "#/components/schemas/IntegrationConfiguration"
31534
+ "hasPaymentFailed": {
31535
+ "description": "If true, we were unable to collect the last payment",
31536
+ "type": "boolean"
31537
+ },
31538
+ "canCheckout": {
31539
+ "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",
31540
+ "type": "boolean"
31541
+ },
31542
+ "isScheduledToCancel": {
31543
+ "description": "If true, the billing is set to cancel at the end of its current period",
31544
+ "type": "boolean"
31545
+ },
31546
+ "pricing": {
31547
+ "description": "Pricing information for the organization",
31548
+ "$ref": "#/components/schemas/OrganizationPricing"
31549
+ },
31550
+ "usageAddons": {
31551
+ "description": "Configuration for the usage-based addons",
31552
+ "type": "object",
31553
+ "additionalProperties": {
31554
+ "$ref": "#/components/schemas/BillingMeterAddon"
31555
+ }
31556
+ },
31557
+ "minUsers": {
31558
+ "description": "The minimum number of members allowed for this organization.",
31559
+ "type": "number"
31560
+ },
31561
+ "maxUsers": {
31562
+ "description": "The maximum number of members allowed for this organization",
31563
+ "type": "number"
31564
+ },
31565
+ "minPremiumSites": {
31566
+ "description": "The minimum number of premium sites allowed for this organization.",
31567
+ "type": "number"
31568
+ },
31569
+ "maxPremiumSites": {
31570
+ "description": "The maximum number of premium sites allowed for this organization.",
31571
+ "type": "number"
31572
+ },
31573
+ "minUltimateSites": {
31574
+ "description": "The minimum number of ultimate sites allowed for this organization.",
31575
+ "type": "number"
31576
+ },
31577
+ "maxUltimateSites": {
31578
+ "description": "The maximum number of ultimate sites allowed for this organization.",
31579
+ "type": "number"
31580
+ },
31581
+ "paidMembers": {
31582
+ "description": "The number of paid members on the current subscription.",
31583
+ "type": "number"
31584
+ },
31585
+ "paidPremiumSites": {
31586
+ "description": "The number of paid premium sites on the current subscription.",
31587
+ "type": "number"
31588
+ },
31589
+ "paidUltimateSites": {
31590
+ "description": "The number of paid ultimate sites on the current subscription.",
31591
+ "type": "number"
31592
+ },
31593
+ "canChangeInterval": {
31594
+ "description": "Whether changing billing interval is allowed",
31595
+ "type": "boolean"
31596
+ },
31597
+ "canUseSAML": {
31598
+ "description": "Whether configuring SAML is allowed",
31599
+ "type": "boolean"
32946
31600
  }
32947
- }
31601
+ },
31602
+ "required": [
31603
+ "interval",
31604
+ "endDate",
31605
+ "hasPaymentFailed",
31606
+ "canCheckout",
31607
+ "isScheduledToCancel",
31608
+ "pricing",
31609
+ "usageAddons",
31610
+ "canChangeInterval",
31611
+ "canUseSAML"
31612
+ ]
32948
31613
  },
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"
31614
+ "BillingTrialStatus": {
31615
+ "type": "string",
31616
+ "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",
31617
+ "enum": [
31618
+ "notapplicable",
31619
+ "none",
31620
+ "active",
31621
+ "ended",
31622
+ "expired"
31623
+ ]
31624
+ },
31625
+ "BlockSource": {
31626
+ "type": "string",
31627
+ "description": "Source for an organization block",
31628
+ "enum": [
31629
+ "backoffice",
31630
+ "external",
31631
+ "internal"
31632
+ ]
31633
+ },
31634
+ "BlockReason": {
31635
+ "type": "string",
31636
+ "description": "A short description giving context on the reason for the block.",
31637
+ "minLength": 1,
31638
+ "maxLength": 255
31639
+ },
31640
+ "Organization": {
31641
+ "type": "object",
31642
+ "properties": {
31643
+ "object": {
31644
+ "type": "string",
31645
+ "description": "Type of Object, always equals to \"organization\"",
31646
+ "enum": [
31647
+ "organization"
31648
+ ]
31649
+ },
31650
+ "id": {
31651
+ "type": "string",
31652
+ "description": "Unique identifier for the organization"
31653
+ },
31654
+ "title": {
31655
+ "$ref": "#/components/schemas/OrganizationTitle"
31656
+ },
31657
+ "createdAt": {
31658
+ "$ref": "#/components/schemas/Timestamp"
31659
+ },
31660
+ "emailDomains": {
31661
+ "$ref": "#/components/schemas/OrganizationEmailDomains"
31662
+ },
31663
+ "hostname": {
31664
+ "$ref": "#/components/schemas/OrganizationHostname"
31665
+ },
31666
+ "type": {
31667
+ "$ref": "#/components/schemas/OrganizationType"
31668
+ },
31669
+ "useCase": {
31670
+ "$ref": "#/components/schemas/OrganizationUseCase"
31671
+ },
31672
+ "communityType": {
31673
+ "$ref": "#/components/schemas/OrganizationCommunityType"
31674
+ },
31675
+ "defaultRole": {
31676
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
31677
+ },
31678
+ "defaultContent": {
31679
+ "$ref": "#/components/schemas/OrganizationDefaultContent"
31680
+ },
31681
+ "sso": {
31682
+ "description": "Whether SSO is enforced organization-wide",
31683
+ "type": "boolean"
31684
+ },
31685
+ "ai": {
31686
+ "description": "If true, the organization is configured to use all our AI features.",
31687
+ "type": "boolean"
31688
+ },
31689
+ "inviteLinks": {
31690
+ "description": "If true, invite links are enabled for this organization.",
31691
+ "type": "boolean"
31692
+ },
31693
+ "plan": {
31694
+ "$ref": "#/components/schemas/BillingProduct"
31695
+ },
31696
+ "billing": {
31697
+ "description": "Billing details, only available for org members.",
31698
+ "$ref": "#/components/schemas/OrganizationBilling"
31699
+ },
31700
+ "mergeRules": {
31701
+ "$ref": "#/components/schemas/MergeRulesStandaloneConfiguration"
31702
+ },
31703
+ "urls": {
31704
+ "type": "object",
31705
+ "description": "URLs associated with the object",
31706
+ "properties": {
31707
+ "location": {
31708
+ "type": "string",
31709
+ "description": "URL of the organization in the API",
31710
+ "format": "uri"
31711
+ },
31712
+ "app": {
31713
+ "type": "string",
31714
+ "description": "URL of the organization in the application",
31715
+ "format": "uri"
31716
+ },
31717
+ "logo": {
31718
+ "description": "URL of the logo of this organization, if defined.",
31719
+ "$ref": "#/components/schemas/URL"
31720
+ }
32958
31721
  },
32959
- "label": {
32960
- "type": "string"
31722
+ "required": [
31723
+ "app",
31724
+ "location"
31725
+ ]
31726
+ },
31727
+ "trial": {
31728
+ "type": "object",
31729
+ "properties": {
31730
+ "status": {
31731
+ "$ref": "#/components/schemas/BillingTrialStatus"
31732
+ },
31733
+ "count": {
31734
+ "type": "integer",
31735
+ "description": "Number of trials the organization has consumed."
31736
+ },
31737
+ "endDate": {
31738
+ "description": "The trial's end date, if the organization has or had a trial.",
31739
+ "$ref": "#/components/schemas/Timestamp"
31740
+ },
31741
+ "decision": {
31742
+ "type": "string",
31743
+ "description": "The decision taken by the user at the end of the trial",
31744
+ "enum": [
31745
+ "downgrade"
31746
+ ]
31747
+ }
31748
+ },
31749
+ "required": [
31750
+ "status",
31751
+ "count"
31752
+ ]
31753
+ },
31754
+ "customHostname": {
31755
+ "description": "Custom hostname linked to this organization",
31756
+ "type": "string"
31757
+ },
31758
+ "blocked": {
31759
+ "type": "object",
31760
+ "description": "If the organization is blocked, information about the block will appear here",
31761
+ "properties": {
31762
+ "source": {
31763
+ "$ref": "#/components/schemas/BlockSource"
31764
+ },
31765
+ "reason": {
31766
+ "$ref": "#/components/schemas/BlockReason"
31767
+ }
31768
+ },
31769
+ "required": [
31770
+ "reason"
31771
+ ]
31772
+ },
31773
+ "internal_billingMigration": {
31774
+ "type": "object",
31775
+ "properties": {
31776
+ "deadline": {
31777
+ "description": "When we will upgrade the organization onto new pricing, if they haven't already.",
31778
+ "$ref": "#/components/schemas/Timestamp"
31779
+ },
31780
+ "discountPercent": {
31781
+ "description": "A discount the organization may have received thanks to migrating early.",
31782
+ "type": "number"
31783
+ },
31784
+ "discountEndDate": {
31785
+ "description": "The expiration date of the discount, after wich regular pricing resumes.",
31786
+ "$ref": "#/components/schemas/Timestamp"
31787
+ }
32961
31788
  }
32962
31789
  },
32963
- "required": [
32964
- "url",
32965
- "label"
32966
- ]
32967
- }
31790
+ "permissions": {
31791
+ "type": "object",
31792
+ "description": "The set of permissions for the organization",
31793
+ "properties": {
31794
+ "view": {
31795
+ "type": "boolean",
31796
+ "description": "Can the user view the organization."
31797
+ },
31798
+ "access": {
31799
+ "type": "boolean",
31800
+ "description": "Can the user view the organization in the application."
31801
+ },
31802
+ "admin": {
31803
+ "type": "boolean",
31804
+ "description": "Can the user manage the title, members, etc."
31805
+ },
31806
+ "ownTeam": {
31807
+ "type": "boolean",
31808
+ "description": "Is the user a team owner."
31809
+ },
31810
+ "createContent": {
31811
+ "type": "boolean",
31812
+ "description": "Can the user create new spaces/collections in the organization."
31813
+ },
31814
+ "createOpenAPISpec": {
31815
+ "type": "boolean",
31816
+ "description": "Can the user create new OpenAPI specifications."
31817
+ },
31818
+ "viewBilling": {
31819
+ "type": "boolean",
31820
+ "description": "Can the user view the billing details of the organization."
31821
+ },
31822
+ "listMembers": {
31823
+ "type": "boolean",
31824
+ "description": "Can the user list the members of the organization."
31825
+ },
31826
+ "listTeams": {
31827
+ "type": "boolean",
31828
+ "description": "Can the user list the teams in the organization."
31829
+ },
31830
+ "listIntegrations": {
31831
+ "type": "boolean",
31832
+ "description": "Can the user list the integrations in the organization."
31833
+ },
31834
+ "listInstallations": {
31835
+ "type": "boolean",
31836
+ "description": "Can the user list the integration installations in the organization."
31837
+ },
31838
+ "installIntegration": {
31839
+ "type": "boolean",
31840
+ "description": "Can the user install integrations in the organization."
31841
+ }
31842
+ },
31843
+ "required": [
31844
+ "view",
31845
+ "access",
31846
+ "admin",
31847
+ "ownTeam",
31848
+ "createContent",
31849
+ "createOpenAPISpec",
31850
+ "viewBilling",
31851
+ "listMembers",
31852
+ "listTeams",
31853
+ "listIntegrations",
31854
+ "listInstallations",
31855
+ "installIntegration"
31856
+ ]
31857
+ }
31858
+ },
31859
+ "required": [
31860
+ "object",
31861
+ "id",
31862
+ "plan",
31863
+ "title",
31864
+ "createdAt",
31865
+ "inviteLinks",
31866
+ "type",
31867
+ "emailDomains",
31868
+ "mergeRules",
31869
+ "urls",
31870
+ "trial",
31871
+ "permissions"
31872
+ ]
32968
31873
  },
32969
31874
  "IntegrationContentSecurityPolicy": {
32970
31875
  "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 +32143,107 @@
33238
32143
  }
33239
32144
  }
33240
32145
  },
32146
+ "CollectionTitle": {
32147
+ "type": "string",
32148
+ "description": "Title of the collection",
32149
+ "maxLength": 50
32150
+ },
32151
+ "CollectionDescription": {
32152
+ "type": "string",
32153
+ "description": "Description of the collection",
32154
+ "minLength": 0,
32155
+ "maxLength": 100
32156
+ },
32157
+ "Collection": {
32158
+ "type": "object",
32159
+ "properties": {
32160
+ "object": {
32161
+ "type": "string",
32162
+ "description": "Type of Object, always equals to \"collection\"",
32163
+ "enum": [
32164
+ "collection"
32165
+ ]
32166
+ },
32167
+ "id": {
32168
+ "type": "string",
32169
+ "description": "Unique identifier for the collection"
32170
+ },
32171
+ "title": {
32172
+ "$ref": "#/components/schemas/CollectionTitle"
32173
+ },
32174
+ "description": {
32175
+ "$ref": "#/components/schemas/CollectionDescription"
32176
+ },
32177
+ "organization": {
32178
+ "type": "string",
32179
+ "description": "ID of the organization owning this collection"
32180
+ },
32181
+ "parent": {
32182
+ "type": "string",
32183
+ "description": "ID of the parent collection, if any"
32184
+ },
32185
+ "defaultLevel": {
32186
+ "$ref": "#/components/schemas/DefaultLevel"
32187
+ },
32188
+ "urls": {
32189
+ "type": "object",
32190
+ "description": "URLs associated with the object",
32191
+ "properties": {
32192
+ "location": {
32193
+ "type": "string",
32194
+ "description": "URL of the collection in the API",
32195
+ "format": "uri"
32196
+ },
32197
+ "app": {
32198
+ "type": "string",
32199
+ "description": "URL of the collection in the application",
32200
+ "format": "uri"
32201
+ }
32202
+ },
32203
+ "required": [
32204
+ "app",
32205
+ "location"
32206
+ ]
32207
+ },
32208
+ "permissions": {
32209
+ "type": "object",
32210
+ "description": "The set of permissions for the collection",
32211
+ "properties": {
32212
+ "view": {
32213
+ "type": "boolean",
32214
+ "description": "Can the user view the collection."
32215
+ },
32216
+ "admin": {
32217
+ "type": "boolean",
32218
+ "description": "Can the user edit the title/description."
32219
+ },
32220
+ "viewInviteLinks": {
32221
+ "type": "boolean",
32222
+ "description": "Can the user view the invite links of the collection."
32223
+ },
32224
+ "create": {
32225
+ "type": "boolean",
32226
+ "description": "Can the user create spaces/collections in this collection."
32227
+ }
32228
+ },
32229
+ "required": [
32230
+ "view",
32231
+ "admin",
32232
+ "viewInviteLinks",
32233
+ "create"
32234
+ ]
32235
+ }
32236
+ },
32237
+ "required": [
32238
+ "object",
32239
+ "id",
32240
+ "title",
32241
+ "organization",
32242
+ "urls",
32243
+ "defaultLevel",
32244
+ "permissions"
32245
+ ]
32246
+ },
33241
32247
  "IntegrationSecrets": {
33242
32248
  "type": "object",
33243
32249
  "description": "Secrets stored on the integration and passed at runtime.",
@@ -34907,14 +33913,6 @@
34907
33913
  "visitor-auth"
34908
33914
  ]
34909
33915
  },
34910
- "SitePermissionsModel": {
34911
- "type": "string",
34912
- "description": "Permissions resolution mode for the site.",
34913
- "enum": [
34914
- "legacy",
34915
- "site"
34916
- ]
34917
- },
34918
33916
  "SiteAdaptiveContent": {
34919
33917
  "type": "object",
34920
33918
  "properties": {
@@ -35144,9 +34142,6 @@
35144
34142
  "visibility": {
35145
34143
  "$ref": "#/components/schemas/SiteVisibility"
35146
34144
  },
35147
- "permissionsModel": {
35148
- "$ref": "#/components/schemas/SitePermissionsModel"
35149
- },
35150
34145
  "defaultLevel": {
35151
34146
  "$ref": "#/components/schemas/DefaultLevel"
35152
34147
  },
@@ -35268,7 +34263,6 @@
35268
34263
  "appliedType",
35269
34264
  "title",
35270
34265
  "visibility",
35271
- "permissionsModel",
35272
34266
  "defaultLevel",
35273
34267
  "permissions",
35274
34268
  "published",
@@ -38643,6 +37637,156 @@
38643
37637
  "answer"
38644
37638
  ]
38645
37639
  },
37640
+ "OpenAPISpecSlug": {
37641
+ "description": "Slug used as reference",
37642
+ "type": "string",
37643
+ "minLength": 1,
37644
+ "maxLength": 100,
37645
+ "pattern": "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$"
37646
+ },
37647
+ "OpenAPISpecProcessingState": {
37648
+ "description": "Processing state",
37649
+ "enum": [
37650
+ "pending",
37651
+ "progress",
37652
+ "complete"
37653
+ ]
37654
+ },
37655
+ "OpenAPISpecProcessingErrorCode": {
37656
+ "description": "OpenAPI processing error code",
37657
+ "enum": [
37658
+ "FETCH_TIMEOUT",
37659
+ "FETCH_ERROR",
37660
+ "PARSE_ERROR"
37661
+ ]
37662
+ },
37663
+ "OpenAPIErrorObject": {
37664
+ "type": "object",
37665
+ "description": "OpenAPI error object.",
37666
+ "properties": {
37667
+ "message": {
37668
+ "type": "string",
37669
+ "description": "Description of the error."
37670
+ },
37671
+ "code": {
37672
+ "type": "string",
37673
+ "description": "Unique code of the error."
37674
+ }
37675
+ },
37676
+ "required": [
37677
+ "message"
37678
+ ]
37679
+ },
37680
+ "OpenAPISpec": {
37681
+ "type": "object",
37682
+ "properties": {
37683
+ "object": {
37684
+ "description": "The object type, which is always \"openapi-spec\"",
37685
+ "type": "string",
37686
+ "enum": [
37687
+ "openapi-spec"
37688
+ ]
37689
+ },
37690
+ "id": {
37691
+ "description": "Unique identifier",
37692
+ "type": "string"
37693
+ },
37694
+ "createdAt": {
37695
+ "description": "Date of creation",
37696
+ "$ref": "#/components/schemas/Timestamp"
37697
+ },
37698
+ "updatedAt": {
37699
+ "description": "Date of the last update",
37700
+ "$ref": "#/components/schemas/Timestamp"
37701
+ },
37702
+ "slug": {
37703
+ "$ref": "#/components/schemas/OpenAPISpecSlug"
37704
+ },
37705
+ "sourceURL": {
37706
+ "$ref": "#/components/schemas/URL"
37707
+ },
37708
+ "processingState": {
37709
+ "$ref": "#/components/schemas/OpenAPISpecProcessingState"
37710
+ },
37711
+ "visibility": {
37712
+ "$ref": "#/components/schemas/OpenAPISpecVisibility"
37713
+ },
37714
+ "lastVersion": {
37715
+ "type": "string",
37716
+ "description": "ID of the latest version of the OpenAPI specification"
37717
+ },
37718
+ "lastProcessedAt": {
37719
+ "description": "Date of the last processing",
37720
+ "$ref": "#/components/schemas/Timestamp"
37721
+ },
37722
+ "lastProcessErrorCode": {
37723
+ "$ref": "#/components/schemas/OpenAPISpecProcessingErrorCode"
37724
+ },
37725
+ "lastProcessedErrors": {
37726
+ "type": "array",
37727
+ "items": {
37728
+ "$ref": "#/components/schemas/OpenAPIErrorObject"
37729
+ }
37730
+ },
37731
+ "lastProcessedErrorCount": {
37732
+ "type": "integer",
37733
+ "minimum": 0,
37734
+ "description": "Total number of processing errors before truncation of lastProcessedErrors."
37735
+ },
37736
+ "permissions": {
37737
+ "type": "object",
37738
+ "description": "The set of permissions for the OpenAPI specification.",
37739
+ "required": [
37740
+ "view",
37741
+ "edit"
37742
+ ],
37743
+ "properties": {
37744
+ "view": {
37745
+ "type": "boolean",
37746
+ "description": "Can the user view the specification."
37747
+ },
37748
+ "edit": {
37749
+ "type": "boolean",
37750
+ "description": "Can the user edit the specification."
37751
+ }
37752
+ }
37753
+ },
37754
+ "urls": {
37755
+ "type": "object",
37756
+ "description": "URLs associated with the object",
37757
+ "properties": {
37758
+ "location": {
37759
+ "description": "URL of the OpenAPI specification in the API",
37760
+ "$ref": "#/components/schemas/URL"
37761
+ },
37762
+ "app": {
37763
+ "description": "URL of the OpenAPI specification in the application",
37764
+ "$ref": "#/components/schemas/URL"
37765
+ },
37766
+ "published": {
37767
+ "type": "string",
37768
+ "description": "URL of the published spec. Only defined when visibility is \"published.\"",
37769
+ "format": "uri"
37770
+ }
37771
+ },
37772
+ "required": [
37773
+ "app",
37774
+ "location"
37775
+ ]
37776
+ }
37777
+ },
37778
+ "required": [
37779
+ "object",
37780
+ "id",
37781
+ "createdAt",
37782
+ "updatedAt",
37783
+ "slug",
37784
+ "processingState",
37785
+ "lastProcessedErrorCount",
37786
+ "permissions",
37787
+ "urls"
37788
+ ]
37789
+ },
38646
37790
  "OpenAPISpecSource": {
38647
37791
  "oneOf": [
38648
37792
  {
@@ -38754,6 +37898,28 @@
38754
37898
  "urls"
38755
37899
  ]
38756
37900
  },
37901
+ "OpenAPISpecRawContent": {
37902
+ "description": "Raw original content of the specification entrypoint file.",
37903
+ "type": "object",
37904
+ "properties": {
37905
+ "text": {
37906
+ "type": "string",
37907
+ "description": "Raw specification text, exactly as submitted."
37908
+ },
37909
+ "format": {
37910
+ "type": "string",
37911
+ "enum": [
37912
+ "json",
37913
+ "yaml"
37914
+ ],
37915
+ "description": "Format of the raw specification text."
37916
+ }
37917
+ },
37918
+ "required": [
37919
+ "text",
37920
+ "format"
37921
+ ]
37922
+ },
38757
37923
  "OrganizationAgentInstructions": {
38758
37924
  "type": "object",
38759
37925
  "properties": {
@@ -41329,7 +40495,8 @@
41329
40495
  "builtin:intercom",
41330
40496
  "builtin:zendesk",
41331
40497
  "builtin:pylon",
41332
- "builtin:linear"
40498
+ "builtin:linear",
40499
+ "builtin:jira"
41333
40500
  ]
41334
40501
  }
41335
40502
  ]
@@ -41517,8 +40684,11 @@
41517
40684
  "$ref": "#/components/schemas/SiteScanStatus"
41518
40685
  },
41519
40686
  "topic": {
41520
- "type": "string",
41521
- "description": "The site topic ID associated with the scan"
40687
+ "type": [
40688
+ "string",
40689
+ "null"
40690
+ ],
40691
+ "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
40692
  },
41523
40693
  "createdAt": {
41524
40694
  "$ref": "#/components/schemas/Timestamp"
@@ -41573,10 +40743,10 @@
41573
40743
  },
41574
40744
  "SiteFindingType": {
41575
40745
  "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.",
40746
+ "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
40747
  "enum": [
41578
40748
  "content-outdated",
41579
- "incoherence",
40749
+ "content-incorrect",
41580
40750
  "content-gap",
41581
40751
  "other"
41582
40752
  ]
@@ -41613,8 +40783,11 @@
41613
40783
  "description": "The site scan ID associated with the finding"
41614
40784
  },
41615
40785
  "topic": {
41616
- "type": "string",
41617
- "description": "The site topic ID associated with the finding"
40786
+ "type": [
40787
+ "string",
40788
+ "null"
40789
+ ],
40790
+ "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
40791
  },
41619
40792
  "title": {
41620
40793
  "$ref": "#/components/schemas/SiteFindingTitle"
@@ -41984,6 +41157,10 @@
41984
41157
  "type": "boolean",
41985
41158
  "description": "Whether to expose records in search results"
41986
41159
  },
41160
+ "sync": {
41161
+ "type": "boolean",
41162
+ "description": "Whether the connection syncs GitBook change-request state outward to the connected external system (outbound write). Requires a write-capable token or role."
41163
+ },
41987
41164
  "searchBoost": {
41988
41165
  "$ref": "#/components/schemas/ContextSearchBoost"
41989
41166
  }
@@ -42292,6 +41469,63 @@
42292
41469
  "connector",
42293
41470
  "setupSettings"
42294
41471
  ]
41472
+ },
41473
+ {
41474
+ "type": "object",
41475
+ "properties": {
41476
+ "connector": {
41477
+ "type": "string",
41478
+ "enum": [
41479
+ "builtin:jira"
41480
+ ]
41481
+ },
41482
+ "setupSettings": {
41483
+ "type": "object",
41484
+ "properties": {
41485
+ "baseUrl": {
41486
+ "type": "string",
41487
+ "format": "uri",
41488
+ "minLength": 1,
41489
+ "maxLength": 2048,
41490
+ "description": "Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net."
41491
+ },
41492
+ "apiEmail": {
41493
+ "type": "string",
41494
+ "format": "email",
41495
+ "minLength": 1,
41496
+ "maxLength": 254,
41497
+ "description": "Email of the Atlassian account whose API token is used."
41498
+ },
41499
+ "apiToken": {
41500
+ "type": "string",
41501
+ "minLength": 1,
41502
+ "maxLength": 1024,
41503
+ "description": "Atlassian API token used for outbound writes. Redacted when read back."
41504
+ },
41505
+ "statusMapping": {
41506
+ "type": "object",
41507
+ "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.",
41508
+ "propertyNames": {
41509
+ "$ref": "#/components/schemas/ChangeRequestStatus"
41510
+ },
41511
+ "additionalProperties": {
41512
+ "type": "string",
41513
+ "minLength": 1,
41514
+ "maxLength": 255
41515
+ }
41516
+ }
41517
+ },
41518
+ "required": [
41519
+ "baseUrl",
41520
+ "apiEmail",
41521
+ "apiToken"
41522
+ ]
41523
+ }
41524
+ },
41525
+ "required": [
41526
+ "connector",
41527
+ "setupSettings"
41528
+ ]
42295
41529
  }
42296
41530
  ]
42297
41531
  },
@@ -42377,6 +41611,29 @@
42377
41611
  }
42378
41612
  ]
42379
41613
  },
41614
+ "ContextConnectionTestResult": {
41615
+ "type": "object",
41616
+ "required": [
41617
+ "object",
41618
+ "success"
41619
+ ],
41620
+ "properties": {
41621
+ "object": {
41622
+ "type": "string",
41623
+ "enum": [
41624
+ "context-connection-test-result"
41625
+ ]
41626
+ },
41627
+ "success": {
41628
+ "type": "boolean",
41629
+ "description": "Whether the stored credentials authenticated successfully."
41630
+ },
41631
+ "error": {
41632
+ "type": "string",
41633
+ "description": "A human-readable reason for the failure, when the test failed."
41634
+ }
41635
+ }
41636
+ },
42380
41637
  "SiteTopicUsageSettings": {
42381
41638
  "type": "object",
42382
41639
  "properties": {
@@ -43649,6 +42906,33 @@
43649
42906
  "replyId"
43650
42907
  ]
43651
42908
  },
42909
+ "AIToolCallGetComments": {
42910
+ "type": "object",
42911
+ "properties": {
42912
+ "tool": {
42913
+ "type": "string",
42914
+ "enum": [
42915
+ "getComments"
42916
+ ]
42917
+ },
42918
+ "spaceId": {
42919
+ "type": "string",
42920
+ "description": "The ID of the space the comments were read from."
42921
+ },
42922
+ "commentId": {
42923
+ "type": "string",
42924
+ "description": "The ID of the comment that was read, when a single comment was requested by URL or ID."
42925
+ },
42926
+ "count": {
42927
+ "type": "integer",
42928
+ "description": "The number of comments that were read."
42929
+ }
42930
+ },
42931
+ "required": [
42932
+ "tool",
42933
+ "spaceId"
42934
+ ]
42935
+ },
43652
42936
  "AIToolCallSubmitChangeRequestReview": {
43653
42937
  "type": "object",
43654
42938
  "properties": {
@@ -43827,6 +43111,9 @@
43827
43111
  {
43828
43112
  "$ref": "#/components/schemas/AIToolCallReplyToComment"
43829
43113
  },
43114
+ {
43115
+ "$ref": "#/components/schemas/AIToolCallGetComments"
43116
+ },
43830
43117
  {
43831
43118
  "$ref": "#/components/schemas/AIToolCallSubmitChangeRequestReview"
43832
43119
  },
@@ -49391,6 +48678,332 @@
49391
48678
  "gitbook:agent"
49392
48679
  ]
49393
48680
  },
48681
+ "ContentLocationRevisionContext": {
48682
+ "type": "object",
48683
+ "required": [
48684
+ "type",
48685
+ "revision"
48686
+ ],
48687
+ "properties": {
48688
+ "type": {
48689
+ "type": "string",
48690
+ "enum": [
48691
+ "revision"
48692
+ ]
48693
+ },
48694
+ "revision": {
48695
+ "$ref": "#/components/schemas/Revision"
48696
+ }
48697
+ }
48698
+ },
48699
+ "ContentLocationChangeRequestContext": {
48700
+ "type": "object",
48701
+ "required": [
48702
+ "type",
48703
+ "changeRequest"
48704
+ ],
48705
+ "properties": {
48706
+ "type": {
48707
+ "type": "string",
48708
+ "enum": [
48709
+ "changeRequest"
48710
+ ]
48711
+ },
48712
+ "changeRequest": {
48713
+ "$ref": "#/components/schemas/ChangeRequest"
48714
+ }
48715
+ }
48716
+ },
48717
+ "ContentLocationFile": {
48718
+ "type": "object",
48719
+ "properties": {
48720
+ "kind": {
48721
+ "type": "string",
48722
+ "enum": [
48723
+ "file"
48724
+ ]
48725
+ },
48726
+ "organization": {
48727
+ "$ref": "#/components/schemas/Organization"
48728
+ },
48729
+ "space": {
48730
+ "$ref": "#/components/schemas/Space"
48731
+ },
48732
+ "versionContext": {
48733
+ "oneOf": [
48734
+ {
48735
+ "$ref": "#/components/schemas/ContentLocationRevisionContext"
48736
+ },
48737
+ {
48738
+ "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
48739
+ }
48740
+ ]
48741
+ },
48742
+ "file": {
48743
+ "$ref": "#/components/schemas/RevisionFile"
48744
+ }
48745
+ },
48746
+ "required": [
48747
+ "kind",
48748
+ "organization",
48749
+ "space",
48750
+ "file"
48751
+ ]
48752
+ },
48753
+ "ContentLocationURL": {
48754
+ "type": "object",
48755
+ "properties": {
48756
+ "kind": {
48757
+ "type": "string",
48758
+ "enum": [
48759
+ "url"
48760
+ ]
48761
+ },
48762
+ "url": {
48763
+ "type": "string"
48764
+ }
48765
+ },
48766
+ "required": [
48767
+ "kind",
48768
+ "url"
48769
+ ]
48770
+ },
48771
+ "ContentLocationPageAnchor": {
48772
+ "type": "object",
48773
+ "properties": {
48774
+ "type": {
48775
+ "type": "string",
48776
+ "enum": [
48777
+ "anchor"
48778
+ ]
48779
+ },
48780
+ "anchor": {
48781
+ "description": "The anchor within the page.",
48782
+ "type": "string"
48783
+ }
48784
+ },
48785
+ "required": [
48786
+ "type",
48787
+ "anchor"
48788
+ ]
48789
+ },
48790
+ "ContentLocationPageNode": {
48791
+ "type": "object",
48792
+ "properties": {
48793
+ "type": {
48794
+ "type": "string",
48795
+ "enum": [
48796
+ "node"
48797
+ ]
48798
+ },
48799
+ "node": {
48800
+ "description": "The node id within the page.",
48801
+ "type": "string"
48802
+ }
48803
+ },
48804
+ "required": [
48805
+ "type",
48806
+ "node"
48807
+ ]
48808
+ },
48809
+ "ContentLocationPage": {
48810
+ "type": "object",
48811
+ "properties": {
48812
+ "kind": {
48813
+ "type": "string",
48814
+ "enum": [
48815
+ "page"
48816
+ ]
48817
+ },
48818
+ "organization": {
48819
+ "$ref": "#/components/schemas/Organization"
48820
+ },
48821
+ "page": {
48822
+ "$ref": "#/components/schemas/RevisionPage"
48823
+ },
48824
+ "space": {
48825
+ "$ref": "#/components/schemas/Space"
48826
+ },
48827
+ "versionContext": {
48828
+ "oneOf": [
48829
+ {
48830
+ "$ref": "#/components/schemas/ContentLocationRevisionContext"
48831
+ },
48832
+ {
48833
+ "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
48834
+ }
48835
+ ]
48836
+ },
48837
+ "internalLocation": {
48838
+ "oneOf": [
48839
+ {
48840
+ "$ref": "#/components/schemas/ContentLocationPageAnchor"
48841
+ },
48842
+ {
48843
+ "$ref": "#/components/schemas/ContentLocationPageNode"
48844
+ }
48845
+ ]
48846
+ }
48847
+ },
48848
+ "required": [
48849
+ "kind",
48850
+ "organization",
48851
+ "space",
48852
+ "page"
48853
+ ]
48854
+ },
48855
+ "ContentLocationUser": {
48856
+ "type": "object",
48857
+ "properties": {
48858
+ "kind": {
48859
+ "type": "string",
48860
+ "enum": [
48861
+ "user"
48862
+ ]
48863
+ },
48864
+ "user": {
48865
+ "$ref": "#/components/schemas/User"
48866
+ }
48867
+ },
48868
+ "required": [
48869
+ "kind",
48870
+ "user"
48871
+ ]
48872
+ },
48873
+ "ContentLocationCollection": {
48874
+ "type": "object",
48875
+ "properties": {
48876
+ "kind": {
48877
+ "type": "string",
48878
+ "enum": [
48879
+ "collection"
48880
+ ]
48881
+ },
48882
+ "organization": {
48883
+ "$ref": "#/components/schemas/Organization"
48884
+ },
48885
+ "collection": {
48886
+ "$ref": "#/components/schemas/Collection"
48887
+ }
48888
+ },
48889
+ "required": [
48890
+ "kind",
48891
+ "organization",
48892
+ "collection"
48893
+ ]
48894
+ },
48895
+ "ContentLocationSpace": {
48896
+ "type": "object",
48897
+ "properties": {
48898
+ "kind": {
48899
+ "type": "string",
48900
+ "enum": [
48901
+ "space"
48902
+ ]
48903
+ },
48904
+ "organization": {
48905
+ "$ref": "#/components/schemas/Organization"
48906
+ },
48907
+ "space": {
48908
+ "$ref": "#/components/schemas/Space"
48909
+ }
48910
+ },
48911
+ "required": [
48912
+ "kind",
48913
+ "organization",
48914
+ "space"
48915
+ ]
48916
+ },
48917
+ "ContentLocationReusableContent": {
48918
+ "type": "object",
48919
+ "properties": {
48920
+ "kind": {
48921
+ "type": "string",
48922
+ "enum": [
48923
+ "reusable-content"
48924
+ ]
48925
+ },
48926
+ "organization": {
48927
+ "$ref": "#/components/schemas/Organization"
48928
+ },
48929
+ "space": {
48930
+ "$ref": "#/components/schemas/Space"
48931
+ },
48932
+ "versionContext": {
48933
+ "oneOf": [
48934
+ {
48935
+ "$ref": "#/components/schemas/ContentLocationRevisionContext"
48936
+ },
48937
+ {
48938
+ "$ref": "#/components/schemas/ContentLocationChangeRequestContext"
48939
+ }
48940
+ ]
48941
+ },
48942
+ "reusableContent": {
48943
+ "$ref": "#/components/schemas/RevisionReusableContent"
48944
+ }
48945
+ },
48946
+ "required": [
48947
+ "kind",
48948
+ "organization",
48949
+ "space",
48950
+ "reusableContent"
48951
+ ]
48952
+ },
48953
+ "ContentLocationOpenAPI": {
48954
+ "type": "object",
48955
+ "properties": {
48956
+ "kind": {
48957
+ "type": "string",
48958
+ "enum": [
48959
+ "openapi"
48960
+ ]
48961
+ },
48962
+ "organization": {
48963
+ "$ref": "#/components/schemas/Organization"
48964
+ },
48965
+ "openAPISpec": {
48966
+ "$ref": "#/components/schemas/OpenAPISpec"
48967
+ }
48968
+ },
48969
+ "required": [
48970
+ "kind",
48971
+ "organization",
48972
+ "openAPISpec"
48973
+ ]
48974
+ },
48975
+ "ContentLocation": {
48976
+ "description": "An absolute reference to content in GitBook.",
48977
+ "oneOf": [
48978
+ {
48979
+ "$ref": "#/components/schemas/ContentLocationFile"
48980
+ },
48981
+ {
48982
+ "$ref": "#/components/schemas/ContentLocationURL"
48983
+ },
48984
+ {
48985
+ "$ref": "#/components/schemas/ContentLocationPage"
48986
+ },
48987
+ {
48988
+ "$ref": "#/components/schemas/ContentLocationUser"
48989
+ },
48990
+ {
48991
+ "$ref": "#/components/schemas/ContentLocationCollection"
48992
+ },
48993
+ {
48994
+ "$ref": "#/components/schemas/ContentLocationSpace"
48995
+ },
48996
+ {
48997
+ "$ref": "#/components/schemas/ContentLocationReusableContent"
48998
+ },
48999
+ {
49000
+ "$ref": "#/components/schemas/ContentLocationOpenAPI"
49001
+ }
49002
+ ],
49003
+ "discriminator": {
49004
+ "propertyName": "kind"
49005
+ }
49006
+ },
49394
49007
  "SpaceTemplate": {
49395
49008
  "type": "object",
49396
49009
  "properties": {
@@ -51146,24 +50759,6 @@
51146
50759
  "space"
51147
50760
  ]
51148
50761
  },
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
50762
  "APIChannelSpaceIntegrations": {
51168
50763
  "type": "object",
51169
50764
  "properties": {
@@ -51298,28 +50893,6 @@
51298
50893
  "changeRequest"
51299
50894
  ]
51300
50895
  },
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
50896
  "APIChannelCollection": {
51324
50897
  "type": "object",
51325
50898
  "properties": {
@@ -52494,9 +52067,6 @@
52494
52067
  {
52495
52068
  "$ref": "#/components/schemas/APIChannelSpacePublishingCustomization"
52496
52069
  },
52497
- {
52498
- "$ref": "#/components/schemas/APIChannelSpaceContentRefs"
52499
- },
52500
52070
  {
52501
52071
  "$ref": "#/components/schemas/APIChannelSpaceIntegrations"
52502
52072
  },
@@ -52518,9 +52088,6 @@
52518
52088
  {
52519
52089
  "$ref": "#/components/schemas/APIChannelChangeRequestReviews"
52520
52090
  },
52521
- {
52522
- "$ref": "#/components/schemas/APIChannelChangeRequestContentRefs"
52523
- },
52524
52091
  {
52525
52092
  "$ref": "#/components/schemas/APIChannelCollection"
52526
52093
  },
@@ -52774,70 +52341,6 @@
52774
52341
  "data"
52775
52342
  ]
52776
52343
  },
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
52344
  "APIChannelMutationData": {
52842
52345
  "type": "object",
52843
52346
  "properties": {
@@ -52872,12 +52375,6 @@
52872
52375
  {
52873
52376
  "$ref": "#/components/schemas/APIChannelGitSyncOperationData"
52874
52377
  },
52875
- {
52876
- "$ref": "#/components/schemas/APIChannelSpaceContentRefsData"
52877
- },
52878
- {
52879
- "$ref": "#/components/schemas/APIChannelChangeRequestContentRefsData"
52880
- },
52881
52378
  {
52882
52379
  "$ref": "#/components/schemas/APIChannelTranslationRunData"
52883
52380
  },