@gitbook/api 0.206.0 → 0.208.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/dist/client.d.ts +791 -84
- package/dist/constants.d.ts +19 -6
- package/dist/index.cjs +191 -13
- package/dist/index.js +170 -13
- package/package.json +1 -1
- package/spec/openapi.json +2139 -378
- package/spec/openapi.yaml +1386 -184
package/spec/openapi.json
CHANGED
|
@@ -446,6 +446,13 @@
|
|
|
446
446
|
"x-page-description": "Configure Single Sign-On solutions to unify your organization's authentication.",
|
|
447
447
|
"description": "Tie GitBook into your corporate identity management and authentication providers (like SAML or OAuth). This centralizes user authentication and improves security.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"Subdomain\" grouped=\"false\" %}\n The Subdomain object\n{% endopenapi-schemas %}\n"
|
|
448
448
|
},
|
|
449
|
+
{
|
|
450
|
+
"name": "scim",
|
|
451
|
+
"x-page-icon": "users",
|
|
452
|
+
"x-page-title": "SCIM",
|
|
453
|
+
"x-page-description": "Provision organization members automatically from an identity provider.",
|
|
454
|
+
"description": "Connect an identity provider such as Okta or Microsoft Entra ID to provision your organization's members with SCIM.\n"
|
|
455
|
+
},
|
|
449
456
|
{
|
|
450
457
|
"name": "storage",
|
|
451
458
|
"x-page-icon": "database",
|
|
@@ -924,7 +931,9 @@
|
|
|
924
931
|
"operationId": "moveSpace",
|
|
925
932
|
"summary": "Move a space to a different collection or position",
|
|
926
933
|
"description": "Moves a space to a new parent collection and/or a new position within the hierarchy.",
|
|
927
|
-
"x-gitbook-mcp":
|
|
934
|
+
"x-gitbook-mcp": {
|
|
935
|
+
"destructive": true
|
|
936
|
+
},
|
|
928
937
|
"tags": [
|
|
929
938
|
"spaces"
|
|
930
939
|
],
|
|
@@ -1116,7 +1125,9 @@
|
|
|
1116
1125
|
"operationId": "importGitRepository",
|
|
1117
1126
|
"summary": "Pull content into a space from a connected Git repository",
|
|
1118
1127
|
"description": "Triggers an import from provided Git repository into the space, updating the space's content to match the repository (if not standalone). This is an async operation — it runs in the background after the request returns 204.",
|
|
1119
|
-
"x-gitbook-mcp":
|
|
1128
|
+
"x-gitbook-mcp": {
|
|
1129
|
+
"destructive": true
|
|
1130
|
+
},
|
|
1120
1131
|
"tags": [
|
|
1121
1132
|
"space-git"
|
|
1122
1133
|
],
|
|
@@ -1163,7 +1174,9 @@
|
|
|
1163
1174
|
"operationId": "exportToGitRepository",
|
|
1164
1175
|
"summary": "Push space content to a connected Git repository",
|
|
1165
1176
|
"description": "Triggers an export of the space's current content to the provided Git repository. This is an async operation — the export runs in the background after the request returns 204.",
|
|
1166
|
-
"x-gitbook-mcp":
|
|
1177
|
+
"x-gitbook-mcp": {
|
|
1178
|
+
"destructive": true
|
|
1179
|
+
},
|
|
1167
1180
|
"tags": [
|
|
1168
1181
|
"space-git"
|
|
1169
1182
|
],
|
|
@@ -1658,7 +1671,9 @@
|
|
|
1658
1671
|
"operationId": "applyTemplateToSpace",
|
|
1659
1672
|
"summary": "Apply a content template to populate a space with initial pages",
|
|
1660
1673
|
"description": "Populates a space with pages and structure from a specified template, bootstrapping it with a standard documentation layout. Use this to initialise a new space rather than creating pages manually. Optionally apply the template to a specific change request instead of main content by providing the changeRequestId field.",
|
|
1661
|
-
"x-gitbook-mcp":
|
|
1674
|
+
"x-gitbook-mcp": {
|
|
1675
|
+
"destructive": true
|
|
1676
|
+
},
|
|
1662
1677
|
"tags": [
|
|
1663
1678
|
"space-content"
|
|
1664
1679
|
],
|
|
@@ -1882,7 +1897,9 @@
|
|
|
1882
1897
|
"operationId": "getPageById",
|
|
1883
1898
|
"summary": "Get a single page from a space by its ID",
|
|
1884
1899
|
"description": "Retrieves a page's metadata, content, and document structure from a space's current revision by its page ID. Use this when you know the exact page ID and need its content or path. For lookup by URL path, use the content/path endpoint instead.",
|
|
1885
|
-
"x-gitbook-mcp":
|
|
1900
|
+
"x-gitbook-mcp": {
|
|
1901
|
+
"curatedBy": "get_page"
|
|
1902
|
+
},
|
|
1886
1903
|
"tags": [
|
|
1887
1904
|
"space-content"
|
|
1888
1905
|
],
|
|
@@ -1982,7 +1999,9 @@
|
|
|
1982
1999
|
"operationId": "getPageByPath",
|
|
1983
2000
|
"summary": "Get a page from a space by its URL path",
|
|
1984
2001
|
"description": "Retrieves a page by its URL path (e.g. /guides/getting-started) from the space's current revision. Use this when you have a page's path rather than its ID. Returns either a document page or a group/section page depending on the path.",
|
|
1985
|
-
"x-gitbook-mcp":
|
|
2002
|
+
"x-gitbook-mcp": {
|
|
2003
|
+
"curatedBy": "get_page"
|
|
2004
|
+
},
|
|
1986
2005
|
"tags": [
|
|
1987
2006
|
"space-content"
|
|
1988
2007
|
],
|
|
@@ -2098,7 +2117,9 @@
|
|
|
2098
2117
|
"operationId": "getComputedDocument",
|
|
2099
2118
|
"summary": "Compute and render a document from a structured content source",
|
|
2100
2119
|
"description": "Server-renders a document from a provided content source definition, evaluating template expressions and resolving variables to produce a fully computed document. Use this to preview how dynamic content will look without publishing a full revision.",
|
|
2101
|
-
"x-gitbook-mcp":
|
|
2120
|
+
"x-gitbook-mcp": {
|
|
2121
|
+
"readOnly": true
|
|
2122
|
+
},
|
|
2102
2123
|
"tags": [
|
|
2103
2124
|
"space-content"
|
|
2104
2125
|
],
|
|
@@ -2162,7 +2183,9 @@
|
|
|
2162
2183
|
"operationId": "getComputedRevision",
|
|
2163
2184
|
"summary": "Compute and render a full revision from a structured content source",
|
|
2164
2185
|
"description": "Server-renders an entire revision — pages, files, and reusable contents — from a provided content source definition, resolving all template expressions and variables. Use this to evaluate and preview computed content before publishing. Returns the full set of pages and files with all dynamic content fully resolved.",
|
|
2165
|
-
"x-gitbook-mcp":
|
|
2186
|
+
"x-gitbook-mcp": {
|
|
2187
|
+
"readOnly": true
|
|
2188
|
+
},
|
|
2166
2189
|
"tags": [
|
|
2167
2190
|
"space-content"
|
|
2168
2191
|
],
|
|
@@ -2298,7 +2321,9 @@
|
|
|
2298
2321
|
"operationId": "createChangeRequest",
|
|
2299
2322
|
"summary": "Create a new change request in a space",
|
|
2300
2323
|
"description": "Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready. Pass `siteFindingIds` to link the documentation findings this change request fixes. Outbound broken links are resolved by the outbound checker, rather than by merging.",
|
|
2301
|
-
"x-gitbook-mcp":
|
|
2324
|
+
"x-gitbook-mcp": {
|
|
2325
|
+
"curatedBy": "create_change_request"
|
|
2326
|
+
},
|
|
2302
2327
|
"tags": [
|
|
2303
2328
|
"change-requests"
|
|
2304
2329
|
],
|
|
@@ -2645,7 +2670,10 @@
|
|
|
2645
2670
|
"operationId": "mergeChangeRequest",
|
|
2646
2671
|
"summary": "Merge a change request into the space's live content",
|
|
2647
2672
|
"description": "Merges the change request's draft content into the space's primary (published) content, making all changes live. If the result is \"conflicts\", the merge was still applied but the space may need manual conflict resolution. Consider running updateChangeRequest first to sync with the latest live content and reduce conflicts.",
|
|
2648
|
-
"x-gitbook-mcp":
|
|
2673
|
+
"x-gitbook-mcp": {
|
|
2674
|
+
"destructive": true,
|
|
2675
|
+
"curatedBy": "submit_or_merge_change_request"
|
|
2676
|
+
},
|
|
2649
2677
|
"tags": [
|
|
2650
2678
|
"change-requests"
|
|
2651
2679
|
],
|
|
@@ -2703,7 +2731,9 @@
|
|
|
2703
2731
|
"operationId": "updateChangeRequest",
|
|
2704
2732
|
"summary": "Sync a change request with the latest live space content",
|
|
2705
2733
|
"description": "Rebases the change request onto the latest primary revision of the space, pulling in any changes that were merged to the live space since this change request was created. Run this before merging to minimise conflicts, especially if the change request has been open for a while.",
|
|
2706
|
-
"x-gitbook-mcp":
|
|
2734
|
+
"x-gitbook-mcp": {
|
|
2735
|
+
"destructive": true
|
|
2736
|
+
},
|
|
2707
2737
|
"tags": [
|
|
2708
2738
|
"change-requests"
|
|
2709
2739
|
],
|
|
@@ -3993,8 +4023,10 @@
|
|
|
3993
4023
|
"post": {
|
|
3994
4024
|
"operationId": "updateChangeRequestContent",
|
|
3995
4025
|
"summary": "Apply a batch of content changes to a change request",
|
|
3996
|
-
"description": "Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, rename, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.\n**Renaming a page** — `update_page` can change a page's `title` and/or its `slug` (the path segment used to build its URL within its current parent). Both fields are independent: to rename only the title without changing the URL, set `title` and omit `slug`; to change the URL without changing the title, set `slug` and omit `title`.\n**Moving a page** — `update_page` can also change a page's parent and/or its position among siblings with `into`/`at`. Set `into` to the new parent's page ID, or `null` to move the page to the root of the tree; omit `into` to leave the parent unchanged. Set `at` to place the page at a specific zero-based index among its new siblings; omit it to leave the position unchanged (when the parent isn't changing) or append at the end (when it is). A page cannot be moved under itself or one of its own descendants. `insert_page`'s `into`/`at` remain the way to place a **new** page at creation time.\nTo put an image or attachment in a page, upload it with an `insert_files` change. Give the file a `ref` and a page inserted in the same batch can reference it as `` or `[File](./<ref>)`, which resolves to the file's ID at apply time regardless of operation order. Uploaded files are also listed as `insertedFiles` when `compat=false`, and a file already in the change request can be referenced directly as `/files/<fileId>`. Inline `data:` URIs in markdown are not ingested and large image blocks are dropped, so upload the bytes with `insert_files` instead.\n**Publishing an OpenAPI spec** — an OpenAPI spec belongs to the organization (see `createOpenAPISpec`) and appears in a space only through a page that renders it. Insert that page with an `insert_computed_page` change: `{ \"operation\": \"insert_computed_page\", \"title\": \"API reference\", \"computed\": { \"type\": \"builtin:openapi\", \"props\": { \"models\": true }, \"dependencies\": { \"spec\": { \"ref\": { \"kind\": \"openapi\", \"spec\": \"<spec slug>\" } } } } }`. GitBook replaces that page, at its position, with the API reference: one page per tag (or per operation with `\"grouping\": \"by-operation\"` in `props`), plus a models page when `models` is true, regenerated whenever the spec changes. Use `into` to nest the reference under an existing page. Do not recreate a spec with `insert_page`: `openapi-operation` blocks in a document only render the operations they name.\nWhen page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:\n- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).\n- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`\n for a nested page (e.g. `/pages/guides/getting-started`).\n\n- Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page,\n or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is\n `/pages/README.md`.\n\n- Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`,\n `../other.md`, or `../README.md` (the parent page). Folder-style links without an\n extension (e.g. `./section`) resolve to that folder's page.\n\nExternal URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail.\nGitBook normalizes submitted content, so the stored page may differ from what was sent. To help callers reconcile local state with the stored result, the response can list each created and modified page with its resolved ID and a `urls.location` to fetch the page's persisted content.\n
|
|
3997
|
-
"x-gitbook-mcp":
|
|
4026
|
+
"description": "Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, rename, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.\n**Renaming a page** — `update_page` can change a page's `title` and/or its `slug` (the path segment used to build its URL within its current parent). Both fields are independent: to rename only the title without changing the URL, set `title` and omit `slug`; to change the URL without changing the title, set `slug` and omit `title`.\n**Moving a page** — `update_page` can also change a page's parent and/or its position among siblings with `into`/`at`. Set `into` to the new parent's page ID, or `null` to move the page to the root of the tree; omit `into` to leave the parent unchanged. Set `at` to place the page at a specific zero-based index among its new siblings; omit it to leave the position unchanged (when the parent isn't changing) or append at the end (when it is). A page cannot be moved under itself or one of its own descendants. `insert_page`'s `into`/`at` remain the way to place a **new** page at creation time.\nTo put an image or attachment in a page, upload it with an `insert_files` change. Give the file a `ref` and a page inserted in the same batch can reference it as `` or `[File](./<ref>)`, which resolves to the file's ID at apply time regardless of operation order. Uploaded files are also listed as `insertedFiles` when `compat=false`, and a file already in the change request can be referenced directly as `/files/<fileId>`. Inline `data:` URIs in markdown are not ingested and large image blocks are dropped, so upload the bytes with `insert_files` instead.\n**Reusable content** (snippets shared by several pages, Git Sync's `.gitbook/includes/`) is created with `insert_reusable_contents`, changed with `update_reusable_content` and removed with `delete_reusable_content`. A page includes one in markdown as `{% include \"/reusable-content/<reusableContentId>\" %}`; give a new one a `ref` and a page in the same batch can include it as `{% include \"./<ref>\" %}`, regardless of operation order. Created reusable contents are listed as `insertedReusableContents` when `compat=false`. An update keeps the ID, so every page including it shows the change. Deleting one leaves the includes in pages unresolved, as in the editor: remove them from those pages too. Reusable content cannot include other reusable content, so an include in its document is dropped. Unlike a link, an include that matches no reusable content of the change request (or of the batch) rejects the batch, since dropping it would remove it from the page silently.\n**Variables** (space variables, Git Sync's `.gitbook/vars.yaml`) are created with `insert_variables` and changed with `update_variable`. A variable is identified by its name, which content references as an expression: `<code class=\"expression\">space.vars.<name></code>` in markdown. Inserting a name the change request already uses, or updating one it does not, rejects the batch.\n**Publishing an OpenAPI spec** — an OpenAPI spec belongs to the organization (see `createOpenAPISpec`) and appears in a space only through a page that renders it. Insert that page with an `insert_computed_page` change: `{ \"operation\": \"insert_computed_page\", \"title\": \"API reference\", \"computed\": { \"type\": \"builtin:openapi\", \"props\": { \"models\": true }, \"dependencies\": { \"spec\": { \"ref\": { \"kind\": \"openapi\", \"spec\": \"<spec slug>\" } } } } }`. GitBook replaces that page, at its position, with the API reference: one page per tag (or per operation with `\"grouping\": \"by-operation\"` in `props`), plus a models page when `models` is true, regenerated whenever the spec changes. Use `into` to nest the reference under an existing page. Do not recreate a spec with `insert_page`: `openapi-operation` blocks in a document only render the operations they name.\nWhen page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:\n- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).\n- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`\n for a nested page (e.g. `/pages/guides/getting-started`).\n\n- Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page,\n or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is\n `/pages/README.md`.\n\n- Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`,\n `../other.md`, or `../README.md` (the parent page). Folder-style links without an\n extension (e.g. `./section`) resolve to that folder's page.\n\nExternal URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail.\nGitBook normalizes submitted content, so the stored page may differ from what was sent. To help callers reconcile local state with the stored result, the response can list each created and modified page with its resolved ID and a `urls.location` to fetch the page's persisted content.\nFor change requests with frequent concurrent edits, consider `expectedRevision` to protect against overwriting changes made since your read. If the branch has changed since the supplied revision, the batch is rejected with HTTP 409 and none of the submitted changes are applied.\n**Response shape (`compat`)** — this endpoint is changing what it returns:\n- `compat=true` (current default) returns the updated change request, matching the endpoint's\n original behavior.\n\n- `compat=false` returns the updated change request **and** the list of affected pages (see\n the response schema).\n\nThe default is `true` for now to preserve backwards compatibility, but **will switch to `false` in a future release**, at which point the affected-page list is always included. You should pass `compat=false` if you want the new behavior today and avoid unexpected errors when the default flips in the future.",
|
|
4027
|
+
"x-gitbook-mcp": {
|
|
4028
|
+
"destructive": true
|
|
4029
|
+
},
|
|
3998
4030
|
"tags": [
|
|
3999
4031
|
"change-request-content"
|
|
4000
4032
|
],
|
|
@@ -4035,6 +4067,11 @@
|
|
|
4035
4067
|
"changes"
|
|
4036
4068
|
],
|
|
4037
4069
|
"properties": {
|
|
4070
|
+
"expectedRevision": {
|
|
4071
|
+
"type": "string",
|
|
4072
|
+
"minLength": 1,
|
|
4073
|
+
"description": "The saved branch revision on which these changes are based, available in getChangeRequestById's revision field. If the branch has changed, including pending realtime edits, the batch is rejected with 409 and none of the submitted changes are applied. This field is optional and most changes can omit it."
|
|
4074
|
+
},
|
|
4038
4075
|
"changes": {
|
|
4039
4076
|
"type": "array",
|
|
4040
4077
|
"minItems": 1,
|
|
@@ -4070,6 +4107,10 @@
|
|
|
4070
4107
|
"404": {
|
|
4071
4108
|
"description": "The change request could not be found.",
|
|
4072
4109
|
"$ref": "#/components/responses/NotFoundError"
|
|
4110
|
+
},
|
|
4111
|
+
"409": {
|
|
4112
|
+
"description": "The branch changed since the expected revision; read the latest content before retrying.",
|
|
4113
|
+
"$ref": "#/components/responses/ConflictError"
|
|
4073
4114
|
}
|
|
4074
4115
|
}
|
|
4075
4116
|
}
|
|
@@ -8795,6 +8836,38 @@
|
|
|
8795
8836
|
"schema": {
|
|
8796
8837
|
"type": "string"
|
|
8797
8838
|
}
|
|
8839
|
+
},
|
|
8840
|
+
{
|
|
8841
|
+
"name": "includeFacets",
|
|
8842
|
+
"in": "query",
|
|
8843
|
+
"description": "Include matching counts for action and actor options, excluding the option's own filter.",
|
|
8844
|
+
"schema": {
|
|
8845
|
+
"type": "boolean"
|
|
8846
|
+
}
|
|
8847
|
+
},
|
|
8848
|
+
{
|
|
8849
|
+
"name": "actions",
|
|
8850
|
+
"in": "query",
|
|
8851
|
+
"description": "Include any of these action names. Combined with other filters using AND.",
|
|
8852
|
+
"schema": {
|
|
8853
|
+
"type": "array",
|
|
8854
|
+
"maxItems": 100,
|
|
8855
|
+
"items": {
|
|
8856
|
+
"type": "string"
|
|
8857
|
+
}
|
|
8858
|
+
}
|
|
8859
|
+
},
|
|
8860
|
+
{
|
|
8861
|
+
"name": "actors",
|
|
8862
|
+
"in": "query",
|
|
8863
|
+
"description": "Include any of these stable actor identifiers, including system actors. Combined with other filters using AND.",
|
|
8864
|
+
"schema": {
|
|
8865
|
+
"type": "array",
|
|
8866
|
+
"maxItems": 100,
|
|
8867
|
+
"items": {
|
|
8868
|
+
"type": "string"
|
|
8869
|
+
}
|
|
8870
|
+
}
|
|
8798
8871
|
}
|
|
8799
8872
|
],
|
|
8800
8873
|
"responses": {
|
|
@@ -8810,6 +8883,27 @@
|
|
|
8810
8883
|
{
|
|
8811
8884
|
"type": "object",
|
|
8812
8885
|
"properties": {
|
|
8886
|
+
"facets": {
|
|
8887
|
+
"type": "object",
|
|
8888
|
+
"required": [
|
|
8889
|
+
"actions",
|
|
8890
|
+
"actors"
|
|
8891
|
+
],
|
|
8892
|
+
"properties": {
|
|
8893
|
+
"actions": {
|
|
8894
|
+
"type": "object",
|
|
8895
|
+
"additionalProperties": {
|
|
8896
|
+
"type": "integer"
|
|
8897
|
+
}
|
|
8898
|
+
},
|
|
8899
|
+
"actors": {
|
|
8900
|
+
"type": "object",
|
|
8901
|
+
"additionalProperties": {
|
|
8902
|
+
"type": "integer"
|
|
8903
|
+
}
|
|
8904
|
+
}
|
|
8905
|
+
}
|
|
8906
|
+
},
|
|
8813
8907
|
"items": {
|
|
8814
8908
|
"type": "array",
|
|
8815
8909
|
"items": {
|
|
@@ -8974,6 +9068,7 @@
|
|
|
8974
9068
|
"operationId": "listMembersInOrganizationById",
|
|
8975
9069
|
"x-gitbook-mcp": true,
|
|
8976
9070
|
"summary": "List all organization members",
|
|
9071
|
+
"description": "Lists the members of the organization. Guests can list members too, but the list they get leaves out every guest, themselves included, and filtering by the `guest` role returns no one.",
|
|
8977
9072
|
"tags": [
|
|
8978
9073
|
"organization-members"
|
|
8979
9074
|
],
|
|
@@ -9047,6 +9142,7 @@
|
|
|
9047
9142
|
"operationId": "getMemberInOrganizationById",
|
|
9048
9143
|
"x-gitbook-mcp": true,
|
|
9049
9144
|
"summary": "Get an organization member by its ID",
|
|
9145
|
+
"description": "Returns a member of the organization. Guests can get any member who isn't a guest, and themselves. Another guest is reported as not found.",
|
|
9050
9146
|
"tags": [
|
|
9051
9147
|
"organization-members",
|
|
9052
9148
|
"critical"
|
|
@@ -9127,6 +9223,10 @@
|
|
|
9127
9223
|
"properties": {
|
|
9128
9224
|
"role": {
|
|
9129
9225
|
"$ref": "#/components/schemas/MemberRoleOrGuest"
|
|
9226
|
+
},
|
|
9227
|
+
"disabled": {
|
|
9228
|
+
"type": "boolean",
|
|
9229
|
+
"description": "Disable or re-enable the member. Only members disabled by an admin can be re-enabled."
|
|
9130
9230
|
}
|
|
9131
9231
|
}
|
|
9132
9232
|
}
|
|
@@ -9137,6 +9237,7 @@
|
|
|
9137
9237
|
"delete": {
|
|
9138
9238
|
"operationId": "removeMemberFromOrganizationById",
|
|
9139
9239
|
"summary": "Remove an organization member or request an organization admin to do it",
|
|
9240
|
+
"description": "Users cannot remove their own membership. Ask another organization admin to remove it.",
|
|
9140
9241
|
"tags": [
|
|
9141
9242
|
"organization-members"
|
|
9142
9243
|
],
|
|
@@ -11384,6 +11485,283 @@
|
|
|
11384
11485
|
}
|
|
11385
11486
|
}
|
|
11386
11487
|
},
|
|
11488
|
+
"/orgs/{organizationId}/scim/connections": {
|
|
11489
|
+
"get": {
|
|
11490
|
+
"operationId": "listOrganizationSCIMConnections",
|
|
11491
|
+
"summary": "List SCIM connections",
|
|
11492
|
+
"tags": [
|
|
11493
|
+
"scim"
|
|
11494
|
+
],
|
|
11495
|
+
"security": [
|
|
11496
|
+
{
|
|
11497
|
+
"user-internal": []
|
|
11498
|
+
}
|
|
11499
|
+
],
|
|
11500
|
+
"parameters": [
|
|
11501
|
+
{
|
|
11502
|
+
"$ref": "#/components/parameters/organizationId"
|
|
11503
|
+
}
|
|
11504
|
+
],
|
|
11505
|
+
"responses": {
|
|
11506
|
+
"200": {
|
|
11507
|
+
"description": "OK",
|
|
11508
|
+
"content": {
|
|
11509
|
+
"application/json": {
|
|
11510
|
+
"schema": {
|
|
11511
|
+
"allOf": [
|
|
11512
|
+
{
|
|
11513
|
+
"$ref": "#/components/schemas/List"
|
|
11514
|
+
},
|
|
11515
|
+
{
|
|
11516
|
+
"type": "object",
|
|
11517
|
+
"required": [
|
|
11518
|
+
"items"
|
|
11519
|
+
],
|
|
11520
|
+
"properties": {
|
|
11521
|
+
"items": {
|
|
11522
|
+
"type": "array",
|
|
11523
|
+
"items": {
|
|
11524
|
+
"$ref": "#/components/schemas/OrganizationSCIMConnection"
|
|
11525
|
+
}
|
|
11526
|
+
}
|
|
11527
|
+
}
|
|
11528
|
+
}
|
|
11529
|
+
]
|
|
11530
|
+
}
|
|
11531
|
+
}
|
|
11532
|
+
}
|
|
11533
|
+
},
|
|
11534
|
+
"404": {
|
|
11535
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
11536
|
+
}
|
|
11537
|
+
}
|
|
11538
|
+
},
|
|
11539
|
+
"post": {
|
|
11540
|
+
"operationId": "createOrganizationSCIMConnection",
|
|
11541
|
+
"summary": "Create a SCIM connection",
|
|
11542
|
+
"description": "Creates a SCIM connection and its token. The token is only returned in this response.\n",
|
|
11543
|
+
"tags": [
|
|
11544
|
+
"scim"
|
|
11545
|
+
],
|
|
11546
|
+
"security": [
|
|
11547
|
+
{
|
|
11548
|
+
"user-internal": []
|
|
11549
|
+
}
|
|
11550
|
+
],
|
|
11551
|
+
"parameters": [
|
|
11552
|
+
{
|
|
11553
|
+
"$ref": "#/components/parameters/organizationId"
|
|
11554
|
+
}
|
|
11555
|
+
],
|
|
11556
|
+
"requestBody": {
|
|
11557
|
+
"required": true,
|
|
11558
|
+
"content": {
|
|
11559
|
+
"application/json": {
|
|
11560
|
+
"schema": {
|
|
11561
|
+
"type": "object",
|
|
11562
|
+
"properties": {
|
|
11563
|
+
"label": {
|
|
11564
|
+
"$ref": "#/components/schemas/SCIMConnectionLabel"
|
|
11565
|
+
},
|
|
11566
|
+
"provider": {
|
|
11567
|
+
"$ref": "#/components/schemas/SCIMConnectionProvider"
|
|
11568
|
+
}
|
|
11569
|
+
},
|
|
11570
|
+
"required": [
|
|
11571
|
+
"label",
|
|
11572
|
+
"provider"
|
|
11573
|
+
]
|
|
11574
|
+
}
|
|
11575
|
+
}
|
|
11576
|
+
}
|
|
11577
|
+
},
|
|
11578
|
+
"responses": {
|
|
11579
|
+
"201": {
|
|
11580
|
+
"description": "SCIM connection created",
|
|
11581
|
+
"content": {
|
|
11582
|
+
"application/json": {
|
|
11583
|
+
"schema": {
|
|
11584
|
+
"$ref": "#/components/schemas/OrganizationSCIMConnectionWithToken"
|
|
11585
|
+
}
|
|
11586
|
+
}
|
|
11587
|
+
}
|
|
11588
|
+
},
|
|
11589
|
+
"400": {
|
|
11590
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
11591
|
+
},
|
|
11592
|
+
"404": {
|
|
11593
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
11594
|
+
},
|
|
11595
|
+
"412": {
|
|
11596
|
+
"description": "The organization has SAML providers configured.",
|
|
11597
|
+
"$ref": "#/components/responses/PreconditionFailedError"
|
|
11598
|
+
}
|
|
11599
|
+
}
|
|
11600
|
+
}
|
|
11601
|
+
},
|
|
11602
|
+
"/orgs/{organizationId}/scim/connections/{scimConnectionId}": {
|
|
11603
|
+
"get": {
|
|
11604
|
+
"operationId": "getOrganizationSCIMConnection",
|
|
11605
|
+
"summary": "Get a SCIM connection by its ID",
|
|
11606
|
+
"tags": [
|
|
11607
|
+
"scim"
|
|
11608
|
+
],
|
|
11609
|
+
"security": [
|
|
11610
|
+
{
|
|
11611
|
+
"user-internal": []
|
|
11612
|
+
}
|
|
11613
|
+
],
|
|
11614
|
+
"parameters": [
|
|
11615
|
+
{
|
|
11616
|
+
"$ref": "#/components/parameters/organizationId"
|
|
11617
|
+
},
|
|
11618
|
+
{
|
|
11619
|
+
"$ref": "#/components/parameters/scimConnectionId"
|
|
11620
|
+
}
|
|
11621
|
+
],
|
|
11622
|
+
"responses": {
|
|
11623
|
+
"200": {
|
|
11624
|
+
"description": "OK",
|
|
11625
|
+
"content": {
|
|
11626
|
+
"application/json": {
|
|
11627
|
+
"schema": {
|
|
11628
|
+
"$ref": "#/components/schemas/OrganizationSCIMConnection"
|
|
11629
|
+
}
|
|
11630
|
+
}
|
|
11631
|
+
}
|
|
11632
|
+
},
|
|
11633
|
+
"404": {
|
|
11634
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
11635
|
+
}
|
|
11636
|
+
}
|
|
11637
|
+
},
|
|
11638
|
+
"patch": {
|
|
11639
|
+
"operationId": "updateOrganizationSCIMConnection",
|
|
11640
|
+
"summary": "Update a SCIM connection",
|
|
11641
|
+
"tags": [
|
|
11642
|
+
"scim"
|
|
11643
|
+
],
|
|
11644
|
+
"security": [
|
|
11645
|
+
{
|
|
11646
|
+
"user-internal": []
|
|
11647
|
+
}
|
|
11648
|
+
],
|
|
11649
|
+
"parameters": [
|
|
11650
|
+
{
|
|
11651
|
+
"$ref": "#/components/parameters/organizationId"
|
|
11652
|
+
},
|
|
11653
|
+
{
|
|
11654
|
+
"$ref": "#/components/parameters/scimConnectionId"
|
|
11655
|
+
}
|
|
11656
|
+
],
|
|
11657
|
+
"requestBody": {
|
|
11658
|
+
"required": true,
|
|
11659
|
+
"content": {
|
|
11660
|
+
"application/json": {
|
|
11661
|
+
"schema": {
|
|
11662
|
+
"type": "object",
|
|
11663
|
+
"properties": {
|
|
11664
|
+
"label": {
|
|
11665
|
+
"$ref": "#/components/schemas/SCIMConnectionLabel"
|
|
11666
|
+
}
|
|
11667
|
+
},
|
|
11668
|
+
"required": [
|
|
11669
|
+
"label"
|
|
11670
|
+
]
|
|
11671
|
+
}
|
|
11672
|
+
}
|
|
11673
|
+
}
|
|
11674
|
+
},
|
|
11675
|
+
"responses": {
|
|
11676
|
+
"200": {
|
|
11677
|
+
"description": "SCIM connection updated",
|
|
11678
|
+
"content": {
|
|
11679
|
+
"application/json": {
|
|
11680
|
+
"schema": {
|
|
11681
|
+
"$ref": "#/components/schemas/OrganizationSCIMConnection"
|
|
11682
|
+
}
|
|
11683
|
+
}
|
|
11684
|
+
}
|
|
11685
|
+
},
|
|
11686
|
+
"400": {
|
|
11687
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
11688
|
+
},
|
|
11689
|
+
"404": {
|
|
11690
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
11691
|
+
}
|
|
11692
|
+
}
|
|
11693
|
+
},
|
|
11694
|
+
"delete": {
|
|
11695
|
+
"operationId": "deleteOrganizationSCIMConnection",
|
|
11696
|
+
"summary": "Delete a SCIM connection",
|
|
11697
|
+
"description": "Deletes a SCIM connection. Its token stops working immediately.\n",
|
|
11698
|
+
"tags": [
|
|
11699
|
+
"scim"
|
|
11700
|
+
],
|
|
11701
|
+
"security": [
|
|
11702
|
+
{
|
|
11703
|
+
"user-internal": []
|
|
11704
|
+
}
|
|
11705
|
+
],
|
|
11706
|
+
"parameters": [
|
|
11707
|
+
{
|
|
11708
|
+
"$ref": "#/components/parameters/organizationId"
|
|
11709
|
+
},
|
|
11710
|
+
{
|
|
11711
|
+
"$ref": "#/components/parameters/scimConnectionId"
|
|
11712
|
+
}
|
|
11713
|
+
],
|
|
11714
|
+
"responses": {
|
|
11715
|
+
"204": {
|
|
11716
|
+
"description": "SCIM connection not found"
|
|
11717
|
+
},
|
|
11718
|
+
"205": {
|
|
11719
|
+
"description": "SCIM connection deleted"
|
|
11720
|
+
},
|
|
11721
|
+
"404": {
|
|
11722
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
11723
|
+
}
|
|
11724
|
+
}
|
|
11725
|
+
}
|
|
11726
|
+
},
|
|
11727
|
+
"/orgs/{organizationId}/scim/connections/{scimConnectionId}/token": {
|
|
11728
|
+
"post": {
|
|
11729
|
+
"operationId": "rotateOrganizationSCIMConnectionToken",
|
|
11730
|
+
"summary": "Rotate the token of a SCIM connection",
|
|
11731
|
+
"description": "Replaces the token of a SCIM connection. The previous token stops working immediately, and the new token is only returned in this response.\n",
|
|
11732
|
+
"tags": [
|
|
11733
|
+
"scim"
|
|
11734
|
+
],
|
|
11735
|
+
"security": [
|
|
11736
|
+
{
|
|
11737
|
+
"user-internal": []
|
|
11738
|
+
}
|
|
11739
|
+
],
|
|
11740
|
+
"parameters": [
|
|
11741
|
+
{
|
|
11742
|
+
"$ref": "#/components/parameters/organizationId"
|
|
11743
|
+
},
|
|
11744
|
+
{
|
|
11745
|
+
"$ref": "#/components/parameters/scimConnectionId"
|
|
11746
|
+
}
|
|
11747
|
+
],
|
|
11748
|
+
"responses": {
|
|
11749
|
+
"200": {
|
|
11750
|
+
"description": "Token rotated",
|
|
11751
|
+
"content": {
|
|
11752
|
+
"application/json": {
|
|
11753
|
+
"schema": {
|
|
11754
|
+
"$ref": "#/components/schemas/OrganizationSCIMConnectionWithToken"
|
|
11755
|
+
}
|
|
11756
|
+
}
|
|
11757
|
+
}
|
|
11758
|
+
},
|
|
11759
|
+
"404": {
|
|
11760
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
11761
|
+
}
|
|
11762
|
+
}
|
|
11763
|
+
}
|
|
11764
|
+
},
|
|
11387
11765
|
"/orgs/{organizationId}/sso": {
|
|
11388
11766
|
"get": {
|
|
11389
11767
|
"operationId": "listSSOProviderLoginsInOrganization",
|
|
@@ -13509,7 +13887,9 @@
|
|
|
13509
13887
|
"operationId": "listSites",
|
|
13510
13888
|
"summary": "List all documentation sites in an organization",
|
|
13511
13889
|
"description": "Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure. Members with access only to individual spaces receive the sites that use those spaces as site items, with site administration fields omitted.",
|
|
13512
|
-
"x-gitbook-mcp":
|
|
13890
|
+
"x-gitbook-mcp": {
|
|
13891
|
+
"curatedBy": "list_sites"
|
|
13892
|
+
},
|
|
13513
13893
|
"tags": [
|
|
13514
13894
|
"sites",
|
|
13515
13895
|
"critical"
|
|
@@ -14115,7 +14495,10 @@
|
|
|
14115
14495
|
"operationId": "publishSite",
|
|
14116
14496
|
"summary": "Publish a site to make it publicly accessible",
|
|
14117
14497
|
"description": "Makes the site publicly accessible at its configured URL by publishing it. If the organization's plan requires an upgrade, the response includes a Stripe checkout session ID instead of the site object. Use unpublish to take the site offline again.",
|
|
14118
|
-
"x-gitbook-mcp":
|
|
14498
|
+
"x-gitbook-mcp": {
|
|
14499
|
+
"destructive": true,
|
|
14500
|
+
"idempotent": true
|
|
14501
|
+
},
|
|
14119
14502
|
"tags": [
|
|
14120
14503
|
"sites"
|
|
14121
14504
|
],
|
|
@@ -14190,12 +14573,59 @@
|
|
|
14190
14573
|
}
|
|
14191
14574
|
}
|
|
14192
14575
|
},
|
|
14576
|
+
"/orgs/{organizationId}/sites/{siteId}/setup": {
|
|
14577
|
+
"get": {
|
|
14578
|
+
"operationId": "getSiteSetup",
|
|
14579
|
+
"summary": "Get the setup steps of a site",
|
|
14580
|
+
"description": "Lists the steps to set up a site, from a first edit to publishing, and whether each one is completed. Use it to know what is left to do on a site. Returns no steps once the site has been published.",
|
|
14581
|
+
"x-gitbook-mcp": true,
|
|
14582
|
+
"tags": [
|
|
14583
|
+
"sites"
|
|
14584
|
+
],
|
|
14585
|
+
"security": [
|
|
14586
|
+
{
|
|
14587
|
+
"user": []
|
|
14588
|
+
},
|
|
14589
|
+
{
|
|
14590
|
+
"oauth": [
|
|
14591
|
+
"site:read"
|
|
14592
|
+
]
|
|
14593
|
+
}
|
|
14594
|
+
],
|
|
14595
|
+
"parameters": [
|
|
14596
|
+
{
|
|
14597
|
+
"$ref": "#/components/parameters/organizationId"
|
|
14598
|
+
},
|
|
14599
|
+
{
|
|
14600
|
+
"$ref": "#/components/parameters/siteId"
|
|
14601
|
+
}
|
|
14602
|
+
],
|
|
14603
|
+
"responses": {
|
|
14604
|
+
"200": {
|
|
14605
|
+
"description": "OK",
|
|
14606
|
+
"content": {
|
|
14607
|
+
"application/json": {
|
|
14608
|
+
"schema": {
|
|
14609
|
+
"$ref": "#/components/schemas/SiteSetup"
|
|
14610
|
+
}
|
|
14611
|
+
}
|
|
14612
|
+
}
|
|
14613
|
+
},
|
|
14614
|
+
"400": {
|
|
14615
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
14616
|
+
}
|
|
14617
|
+
}
|
|
14618
|
+
}
|
|
14619
|
+
},
|
|
14193
14620
|
"/orgs/{organizationId}/sites/{siteId}/unpublish": {
|
|
14194
14621
|
"post": {
|
|
14195
14622
|
"operationId": "unpublishSite",
|
|
14196
14623
|
"summary": "Take a site offline by unpublishing it",
|
|
14197
14624
|
"description": "Removes the site from public access by unpublishing it. The site's configuration and content are preserved; use the publish endpoint to make it accessible again. Use this when you need to temporarily hide a site or take it down for maintenance.",
|
|
14198
|
-
"x-gitbook-mcp":
|
|
14625
|
+
"x-gitbook-mcp": {
|
|
14626
|
+
"destructive": true,
|
|
14627
|
+
"idempotent": true
|
|
14628
|
+
},
|
|
14199
14629
|
"tags": [
|
|
14200
14630
|
"sites"
|
|
14201
14631
|
],
|
|
@@ -14843,7 +15273,9 @@
|
|
|
14843
15273
|
"operationId": "getSiteStructure",
|
|
14844
15274
|
"summary": "Get the full navigation structure of a site",
|
|
14845
15275
|
"description": "Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site. Members with access only to individual spaces receive only the site items backed by those spaces and their parent sections.",
|
|
14846
|
-
"x-gitbook-mcp":
|
|
15276
|
+
"x-gitbook-mcp": {
|
|
15277
|
+
"curatedBy": "get_site_structure"
|
|
15278
|
+
},
|
|
14847
15279
|
"tags": [
|
|
14848
15280
|
"site-structure"
|
|
14849
15281
|
],
|
|
@@ -15075,7 +15507,9 @@
|
|
|
15075
15507
|
"operationId": "regenerateSitePublishingAuthById",
|
|
15076
15508
|
"summary": "Regenerate the private key for a site's published content authentication",
|
|
15077
15509
|
"description": "Re-generates the private key used for the site's publishing authentication (e.g., JWT signing key for SSO). Existing tokens signed with the old key will become invalid immediately. Use this to rotate credentials after a security incident or as part of a regular key rotation policy.",
|
|
15078
|
-
"x-gitbook-mcp":
|
|
15510
|
+
"x-gitbook-mcp": {
|
|
15511
|
+
"destructive": true
|
|
15512
|
+
},
|
|
15079
15513
|
"tags": [
|
|
15080
15514
|
"site-publishing-auth"
|
|
15081
15515
|
],
|
|
@@ -15442,7 +15876,9 @@
|
|
|
15442
15876
|
"operationId": "addSpaceToSite",
|
|
15443
15877
|
"summary": "Add a space to a site as a content source",
|
|
15444
15878
|
"description": "Pass an existing space ID to link it, or pass `null` to create and link a new space. New spaces start with a blank page unless a template is provided or `empty` is `true`, which creates the space with no page at all (use it when you are about to add the pages yourself).",
|
|
15445
|
-
"x-gitbook-mcp":
|
|
15879
|
+
"x-gitbook-mcp": {
|
|
15880
|
+
"destructive": true
|
|
15881
|
+
},
|
|
15446
15882
|
"x-gitbook-return-preference": true,
|
|
15447
15883
|
"tags": [
|
|
15448
15884
|
"site-spaces"
|
|
@@ -15700,7 +16136,9 @@
|
|
|
15700
16136
|
"operationId": "addSectionGroupToSite",
|
|
15701
16137
|
"summary": "Add a section group to a site's navigation structure",
|
|
15702
16138
|
"description": "Creates a new section group to organize multiple sections under a shared navigation label. Section groups can be nested by providing a parent group ID. Existing sections can be assigned to the group at creation time via their IDs. Create the group in draft mode to stage it before publishing.",
|
|
15703
|
-
"x-gitbook-mcp":
|
|
16139
|
+
"x-gitbook-mcp": {
|
|
16140
|
+
"destructive": true
|
|
16141
|
+
},
|
|
15704
16142
|
"tags": [
|
|
15705
16143
|
"site-section-groups"
|
|
15706
16144
|
],
|
|
@@ -15732,6 +16170,10 @@
|
|
|
15732
16170
|
"title": {
|
|
15733
16171
|
"$ref": "#/components/schemas/SiteSectionGroupTitle"
|
|
15734
16172
|
},
|
|
16173
|
+
"condition": {
|
|
16174
|
+
"description": "Conditional expression used to evaluate whether the site section group should be shown to the site's visitor (should evaluate to a boolean).",
|
|
16175
|
+
"$ref": "#/components/schemas/Expression"
|
|
16176
|
+
},
|
|
15735
16177
|
"icon": {
|
|
15736
16178
|
"oneOf": [
|
|
15737
16179
|
{
|
|
@@ -15846,6 +16288,17 @@
|
|
|
15846
16288
|
"localizedTitle": {
|
|
15847
16289
|
"$ref": "#/components/schemas/LocalizedString128"
|
|
15848
16290
|
},
|
|
16291
|
+
"condition": {
|
|
16292
|
+
"description": "Conditional expression used to evaluate whether the site section group should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.",
|
|
16293
|
+
"oneOf": [
|
|
16294
|
+
{
|
|
16295
|
+
"$ref": "#/components/schemas/Expression"
|
|
16296
|
+
},
|
|
16297
|
+
{
|
|
16298
|
+
"type": "null"
|
|
16299
|
+
}
|
|
16300
|
+
]
|
|
16301
|
+
},
|
|
15849
16302
|
"icon": {
|
|
15850
16303
|
"oneOf": [
|
|
15851
16304
|
{
|
|
@@ -15939,7 +16392,9 @@
|
|
|
15939
16392
|
"operationId": "addSectionToSite",
|
|
15940
16393
|
"summary": "Add a new navigation section to a site backed by a space",
|
|
15941
16394
|
"description": "Creates a new top-level navigation section in the site. The section appears as a tab or sidebar entry in the site navigation. Pass an existing space ID to link it as the section's primary content source, or pass `null` to create and link a new space. New spaces start with a blank page unless a template is provided or `empty` is `true`, which creates the space with no page at all (use it when you are about to add the pages yourself).",
|
|
15942
|
-
"x-gitbook-mcp":
|
|
16395
|
+
"x-gitbook-mcp": {
|
|
16396
|
+
"destructive": true
|
|
16397
|
+
},
|
|
15943
16398
|
"tags": [
|
|
15944
16399
|
"site-sections"
|
|
15945
16400
|
],
|
|
@@ -16184,6 +16639,10 @@
|
|
|
16184
16639
|
"type": "string",
|
|
16185
16640
|
"description": "ID of the site-space to be used as the default in this section."
|
|
16186
16641
|
},
|
|
16642
|
+
"hidden": {
|
|
16643
|
+
"type": "boolean",
|
|
16644
|
+
"description": "Whether to hide the site section from the site's navigation. Setting it updates all the site spaces of the section, and site spaces added to a hidden section are hidden too. The default site section cannot be hidden."
|
|
16645
|
+
},
|
|
16187
16646
|
"condition": {
|
|
16188
16647
|
"description": "Conditional expression used to evaluate whether the site section should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.",
|
|
16189
16648
|
"oneOf": [
|
|
@@ -16301,7 +16760,9 @@
|
|
|
16301
16760
|
"operationId": "addExternalLinkToSite",
|
|
16302
16761
|
"summary": "Add an external link to a site's navigation",
|
|
16303
16762
|
"description": "Creates an external navigation link at the site root or in a section group. On a site with root variants and no sections, creating the first external link enables sections and moves those variants into a default section. Links cannot be placed inside a section. The destination must be an absolute HTTP or HTTPS URL. Draft links and links whose adaptive condition does not match are omitted from published structure responses. Use the generic structure sort operation after creation to change sibling order.",
|
|
16304
|
-
"x-gitbook-mcp":
|
|
16763
|
+
"x-gitbook-mcp": {
|
|
16764
|
+
"destructive": true
|
|
16765
|
+
},
|
|
16305
16766
|
"tags": [
|
|
16306
16767
|
"site-external-links"
|
|
16307
16768
|
],
|
|
@@ -16628,7 +17089,9 @@
|
|
|
16628
17089
|
"operationId": "searchSiteContent",
|
|
16629
17090
|
"summary": "Full-text search across all content in a site",
|
|
16630
17091
|
"description": "Performs a full-text search across all published spaces in the site and returns matching pages with relevant excerpts. Use the scope parameter to restrict the search to specific site spaces or sections. Prefer this over the space-level search when you need to search across a multi-section site in one call.",
|
|
16631
|
-
"x-gitbook-mcp":
|
|
17092
|
+
"x-gitbook-mcp": {
|
|
17093
|
+
"readOnly": true
|
|
17094
|
+
},
|
|
16632
17095
|
"tags": [
|
|
16633
17096
|
"sites"
|
|
16634
17097
|
],
|
|
@@ -17000,6 +17463,12 @@
|
|
|
17000
17463
|
{
|
|
17001
17464
|
"$ref": "#/components/parameters/siteId"
|
|
17002
17465
|
},
|
|
17466
|
+
{
|
|
17467
|
+
"$ref": "#/components/parameters/xOriginalUserAgent"
|
|
17468
|
+
},
|
|
17469
|
+
{
|
|
17470
|
+
"$ref": "#/components/parameters/xOriginalSignatureAgent"
|
|
17471
|
+
},
|
|
17003
17472
|
{
|
|
17004
17473
|
"$ref": "#/components/parameters/documentFormat"
|
|
17005
17474
|
}
|
|
@@ -17498,6 +17967,23 @@
|
|
|
17498
17967
|
"$ref": "#/components/schemas/SiteFindingSeverity"
|
|
17499
17968
|
}
|
|
17500
17969
|
},
|
|
17970
|
+
{
|
|
17971
|
+
"name": "autoResolution",
|
|
17972
|
+
"in": "query",
|
|
17973
|
+
"description": "Filter findings by what GitBook did on its own to resolve them: `drafted` fixes wait for approval, `applied` ones were made live, `undone` ones were reversed by a person.",
|
|
17974
|
+
"schema": {
|
|
17975
|
+
"$ref": "#/components/schemas/SiteFindingAutoResolution"
|
|
17976
|
+
}
|
|
17977
|
+
},
|
|
17978
|
+
{
|
|
17979
|
+
"name": "autoResolvedAfter",
|
|
17980
|
+
"in": "query",
|
|
17981
|
+
"description": "Only return findings GitBook drafted or applied a fix for at or after this date. Combine with `autoResolution` and `status` to count recent automatic fixes.",
|
|
17982
|
+
"schema": {
|
|
17983
|
+
"type": "string",
|
|
17984
|
+
"format": "date-time"
|
|
17985
|
+
}
|
|
17986
|
+
},
|
|
17501
17987
|
{
|
|
17502
17988
|
"name": "hasChangeRequests",
|
|
17503
17989
|
"in": "query",
|
|
@@ -17506,6 +17992,14 @@
|
|
|
17506
17992
|
"type": "boolean"
|
|
17507
17993
|
}
|
|
17508
17994
|
},
|
|
17995
|
+
{
|
|
17996
|
+
"name": "state",
|
|
17997
|
+
"in": "query",
|
|
17998
|
+
"description": "Filter link findings by where they stand, for example `awaiting-approval` for broken links with a redirect GitBook drafted.",
|
|
17999
|
+
"schema": {
|
|
18000
|
+
"$ref": "#/components/schemas/SiteFindingState"
|
|
18001
|
+
}
|
|
18002
|
+
},
|
|
17509
18003
|
{
|
|
17510
18004
|
"name": "source",
|
|
17511
18005
|
"in": "query",
|
|
@@ -17628,8 +18122,9 @@
|
|
|
17628
18122
|
},
|
|
17629
18123
|
"patch": {
|
|
17630
18124
|
"operationId": "updateSiteFindingById",
|
|
17631
|
-
"
|
|
17632
|
-
"
|
|
18125
|
+
"deprecated": true,
|
|
18126
|
+
"summary": "Resolve, dismiss, or reopen a documentation issue. (Deprecated) use applySiteFindingAction instead.",
|
|
18127
|
+
"description": "Changes the status of a documentation issue found by GitBook's AI. Refuses `broken-link` findings, whose status follows the redirects at their path.\n\nDeprecated in favour of `applySiteFindingAction`, which applies one of the `actions` a finding lists: `mark-resolved`, `ignore`, `reopen` or `restore`.",
|
|
17633
18128
|
"x-gitbook-mcp": true,
|
|
17634
18129
|
"tags": [
|
|
17635
18130
|
"site-context"
|
|
@@ -17994,6 +18489,70 @@
|
|
|
17994
18489
|
}
|
|
17995
18490
|
}
|
|
17996
18491
|
},
|
|
18492
|
+
"/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/actions": {
|
|
18493
|
+
"post": {
|
|
18494
|
+
"operationId": "applySiteFindingAction",
|
|
18495
|
+
"summary": "Apply an action to a finding",
|
|
18496
|
+
"description": "Applies one of the `actions` a finding lists, with the site permission it gives: resolve, dismiss or reopen it, act on a broken link's redirect, or reject the change request GitBook drafted for an outbound link. Returns 409 when the finding doesn't allow the action now.",
|
|
18497
|
+
"x-gitbook-mcp": {
|
|
18498
|
+
"destructive": true
|
|
18499
|
+
},
|
|
18500
|
+
"tags": [
|
|
18501
|
+
"site-context"
|
|
18502
|
+
],
|
|
18503
|
+
"security": [
|
|
18504
|
+
{
|
|
18505
|
+
"user": []
|
|
18506
|
+
},
|
|
18507
|
+
{
|
|
18508
|
+
"oauth": [
|
|
18509
|
+
"site:write"
|
|
18510
|
+
]
|
|
18511
|
+
}
|
|
18512
|
+
],
|
|
18513
|
+
"parameters": [
|
|
18514
|
+
{
|
|
18515
|
+
"$ref": "#/components/parameters/organizationId"
|
|
18516
|
+
},
|
|
18517
|
+
{
|
|
18518
|
+
"$ref": "#/components/parameters/siteId"
|
|
18519
|
+
},
|
|
18520
|
+
{
|
|
18521
|
+
"$ref": "#/components/parameters/siteFindingId"
|
|
18522
|
+
}
|
|
18523
|
+
],
|
|
18524
|
+
"requestBody": {
|
|
18525
|
+
"required": true,
|
|
18526
|
+
"content": {
|
|
18527
|
+
"application/json": {
|
|
18528
|
+
"schema": {
|
|
18529
|
+
"type": "object",
|
|
18530
|
+
"properties": {
|
|
18531
|
+
"action": {
|
|
18532
|
+
"$ref": "#/components/schemas/SiteFindingAction"
|
|
18533
|
+
}
|
|
18534
|
+
},
|
|
18535
|
+
"required": [
|
|
18536
|
+
"action"
|
|
18537
|
+
]
|
|
18538
|
+
}
|
|
18539
|
+
}
|
|
18540
|
+
}
|
|
18541
|
+
},
|
|
18542
|
+
"responses": {
|
|
18543
|
+
"200": {
|
|
18544
|
+
"description": "Action applied",
|
|
18545
|
+
"content": {
|
|
18546
|
+
"application/json": {
|
|
18547
|
+
"schema": {
|
|
18548
|
+
"$ref": "#/components/schemas/SiteFinding"
|
|
18549
|
+
}
|
|
18550
|
+
}
|
|
18551
|
+
}
|
|
18552
|
+
}
|
|
18553
|
+
}
|
|
18554
|
+
}
|
|
18555
|
+
},
|
|
17997
18556
|
"/orgs/{organizationId}/sites/{siteId}/stats/findings": {
|
|
17998
18557
|
"get": {
|
|
17999
18558
|
"operationId": "getSiteFindingStats",
|
|
@@ -18055,6 +18614,23 @@
|
|
|
18055
18614
|
"$ref": "#/components/schemas/SiteFindingSeverity"
|
|
18056
18615
|
}
|
|
18057
18616
|
},
|
|
18617
|
+
{
|
|
18618
|
+
"name": "autoResolution",
|
|
18619
|
+
"in": "query",
|
|
18620
|
+
"description": "Filter findings by what GitBook did on its own to resolve them: `drafted` fixes wait for approval, `applied` ones were made live, `undone` ones were reversed by a person.",
|
|
18621
|
+
"schema": {
|
|
18622
|
+
"$ref": "#/components/schemas/SiteFindingAutoResolution"
|
|
18623
|
+
}
|
|
18624
|
+
},
|
|
18625
|
+
{
|
|
18626
|
+
"name": "autoResolvedAfter",
|
|
18627
|
+
"in": "query",
|
|
18628
|
+
"description": "Only return findings GitBook drafted or applied a fix for at or after this date. Combine with `autoResolution` and `status` to count recent automatic fixes.",
|
|
18629
|
+
"schema": {
|
|
18630
|
+
"type": "string",
|
|
18631
|
+
"format": "date-time"
|
|
18632
|
+
}
|
|
18633
|
+
},
|
|
18058
18634
|
{
|
|
18059
18635
|
"name": "hasChangeRequests",
|
|
18060
18636
|
"in": "query",
|
|
@@ -18554,6 +19130,9 @@
|
|
|
18554
19130
|
}
|
|
18555
19131
|
}
|
|
18556
19132
|
},
|
|
19133
|
+
{
|
|
19134
|
+
"$ref": "#/components/parameters/siteQuestionVisitorType"
|
|
19135
|
+
},
|
|
18557
19136
|
{
|
|
18558
19137
|
"name": "answered",
|
|
18559
19138
|
"in": "query",
|
|
@@ -18697,7 +19276,7 @@
|
|
|
18697
19276
|
"delete": {
|
|
18698
19277
|
"operationId": "deleteSiteTopicFindings",
|
|
18699
19278
|
"summary": "Delete all documentation issues found under a topic",
|
|
18700
|
-
"description": "Permanently deletes every finding associated with a site topic, regardless of status. This is a bulk, irreversible cleanup operation — use `
|
|
19279
|
+
"description": "Permanently deletes every finding associated with a site topic, regardless of status. This is a bulk, irreversible cleanup operation — use `applySiteFindingAction` to resolve or dismiss individual issues instead unless the intent is to wipe every issue under a topic, for example when the topic itself is being removed.",
|
|
18701
19280
|
"x-gitbook-mcp": true,
|
|
18702
19281
|
"tags": [
|
|
18703
19282
|
"site-context"
|
|
@@ -18805,6 +19384,9 @@
|
|
|
18805
19384
|
}
|
|
18806
19385
|
}
|
|
18807
19386
|
},
|
|
19387
|
+
{
|
|
19388
|
+
"$ref": "#/components/parameters/siteQuestionVisitorType"
|
|
19389
|
+
},
|
|
18808
19390
|
{
|
|
18809
19391
|
"name": "answered",
|
|
18810
19392
|
"in": "query",
|
|
@@ -18950,6 +19532,9 @@
|
|
|
18950
19532
|
}
|
|
18951
19533
|
}
|
|
18952
19534
|
},
|
|
19535
|
+
{
|
|
19536
|
+
"$ref": "#/components/parameters/siteQuestionVisitorType"
|
|
19537
|
+
},
|
|
18953
19538
|
{
|
|
18954
19539
|
"name": "answered",
|
|
18955
19540
|
"in": "query",
|
|
@@ -19049,6 +19634,9 @@
|
|
|
19049
19634
|
}
|
|
19050
19635
|
}
|
|
19051
19636
|
},
|
|
19637
|
+
{
|
|
19638
|
+
"$ref": "#/components/parameters/siteQuestionVisitorType"
|
|
19639
|
+
},
|
|
19052
19640
|
{
|
|
19053
19641
|
"name": "answered",
|
|
19054
19642
|
"in": "query",
|
|
@@ -19168,6 +19756,9 @@
|
|
|
19168
19756
|
}
|
|
19169
19757
|
}
|
|
19170
19758
|
},
|
|
19759
|
+
{
|
|
19760
|
+
"$ref": "#/components/parameters/siteQuestionVisitorType"
|
|
19761
|
+
},
|
|
19171
19762
|
{
|
|
19172
19763
|
"name": "answered",
|
|
19173
19764
|
"in": "query",
|
|
@@ -19194,11 +19785,11 @@
|
|
|
19194
19785
|
}
|
|
19195
19786
|
}
|
|
19196
19787
|
},
|
|
19197
|
-
"/orgs/{organizationId}/sites/{siteId}/
|
|
19788
|
+
"/orgs/{organizationId}/sites/{siteId}/question-timeline": {
|
|
19198
19789
|
"get": {
|
|
19199
|
-
"operationId": "
|
|
19200
|
-
"summary": "
|
|
19201
|
-
"description": "Returns
|
|
19790
|
+
"operationId": "getSiteQuestionTimeline",
|
|
19791
|
+
"summary": "Get Ask AI answers over time for a site",
|
|
19792
|
+
"description": "Returns how many answers the site's Ask AI assistant gave, and to how many visitors, in each UTC bucket of the interval between `from` and `to`, optionally filtered by topic, relevance, channel, visitor type or resolution. Buckets without answers are omitted.",
|
|
19202
19793
|
"x-gitbook-mcp": true,
|
|
19203
19794
|
"tags": [
|
|
19204
19795
|
"site-questions"
|
|
@@ -19220,18 +19811,11 @@
|
|
|
19220
19811
|
{
|
|
19221
19812
|
"$ref": "#/components/parameters/siteId"
|
|
19222
19813
|
},
|
|
19223
|
-
{
|
|
19224
|
-
"name": "question",
|
|
19225
|
-
"in": "query",
|
|
19226
|
-
"description": "Filter answers to a specific site question ID.",
|
|
19227
|
-
"schema": {
|
|
19228
|
-
"type": "string"
|
|
19229
|
-
}
|
|
19230
|
-
},
|
|
19231
19814
|
{
|
|
19232
19815
|
"name": "from",
|
|
19233
19816
|
"in": "query",
|
|
19234
|
-
"
|
|
19817
|
+
"required": true,
|
|
19818
|
+
"description": "Count answers created at or after this timestamp.",
|
|
19235
19819
|
"schema": {
|
|
19236
19820
|
"$ref": "#/components/schemas/Timestamp"
|
|
19237
19821
|
}
|
|
@@ -19239,38 +19823,32 @@
|
|
|
19239
19823
|
{
|
|
19240
19824
|
"name": "to",
|
|
19241
19825
|
"in": "query",
|
|
19242
|
-
"
|
|
19826
|
+
"required": true,
|
|
19827
|
+
"description": "Count answers created at or before this timestamp.",
|
|
19243
19828
|
"schema": {
|
|
19244
19829
|
"$ref": "#/components/schemas/Timestamp"
|
|
19245
19830
|
}
|
|
19246
19831
|
},
|
|
19247
19832
|
{
|
|
19248
|
-
"name": "
|
|
19833
|
+
"name": "interval",
|
|
19249
19834
|
"in": "query",
|
|
19250
|
-
"
|
|
19835
|
+
"required": true,
|
|
19836
|
+
"description": "Size of each bucket. An hourly timeline covers at most 31 days.",
|
|
19251
19837
|
"schema": {
|
|
19252
|
-
"
|
|
19838
|
+
"$ref": "#/components/schemas/SiteQuestionTimelineInterval"
|
|
19253
19839
|
}
|
|
19254
19840
|
},
|
|
19255
19841
|
{
|
|
19256
|
-
"name": "
|
|
19842
|
+
"name": "topic",
|
|
19257
19843
|
"in": "query",
|
|
19258
|
-
"description": "Filter answers by
|
|
19844
|
+
"description": "Filter answers by associated site topic IDs.",
|
|
19259
19845
|
"schema": {
|
|
19260
19846
|
"type": "array",
|
|
19261
19847
|
"items": {
|
|
19262
|
-
"
|
|
19848
|
+
"type": "string"
|
|
19263
19849
|
}
|
|
19264
19850
|
}
|
|
19265
19851
|
},
|
|
19266
|
-
{
|
|
19267
|
-
"name": "helpfulness",
|
|
19268
|
-
"in": "query",
|
|
19269
|
-
"description": "Filter answers by answered helpfulness.",
|
|
19270
|
-
"schema": {
|
|
19271
|
-
"$ref": "#/components/schemas/SiteQuestionAnswerHelpfulness"
|
|
19272
|
-
}
|
|
19273
|
-
},
|
|
19274
19852
|
{
|
|
19275
19853
|
"name": "relevance",
|
|
19276
19854
|
"in": "query",
|
|
@@ -19285,7 +19863,7 @@
|
|
|
19285
19863
|
{
|
|
19286
19864
|
"name": "channelType",
|
|
19287
19865
|
"in": "query",
|
|
19288
|
-
"description": "Filter answers by
|
|
19866
|
+
"description": "Filter answers by channel type.",
|
|
19289
19867
|
"schema": {
|
|
19290
19868
|
"type": "array",
|
|
19291
19869
|
"items": {
|
|
@@ -19294,34 +19872,18 @@
|
|
|
19294
19872
|
}
|
|
19295
19873
|
},
|
|
19296
19874
|
{
|
|
19297
|
-
"
|
|
19298
|
-
"in": "query",
|
|
19299
|
-
"description": "Filter answers by question type.",
|
|
19300
|
-
"schema": {
|
|
19301
|
-
"$ref": "#/components/schemas/SiteQuestionType"
|
|
19302
|
-
}
|
|
19875
|
+
"$ref": "#/components/parameters/siteQuestionVisitorType"
|
|
19303
19876
|
},
|
|
19304
19877
|
{
|
|
19305
|
-
"name": "
|
|
19306
|
-
"in": "query",
|
|
19307
|
-
"description": "Filter answers by associated site topic ID.",
|
|
19308
|
-
"schema": {
|
|
19309
|
-
"type": "string"
|
|
19310
|
-
}
|
|
19311
|
-
},
|
|
19312
|
-
{
|
|
19313
|
-
"name": "thread",
|
|
19878
|
+
"name": "answered",
|
|
19314
19879
|
"in": "query",
|
|
19315
|
-
"description": "Filter answers by
|
|
19880
|
+
"description": "Filter answers by resolution.",
|
|
19316
19881
|
"schema": {
|
|
19317
|
-
"type": "
|
|
19882
|
+
"type": "array",
|
|
19883
|
+
"items": {
|
|
19884
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerResolution"
|
|
19885
|
+
}
|
|
19318
19886
|
}
|
|
19319
|
-
},
|
|
19320
|
-
{
|
|
19321
|
-
"$ref": "#/components/parameters/listPage"
|
|
19322
|
-
},
|
|
19323
|
-
{
|
|
19324
|
-
"$ref": "#/components/parameters/listLimit"
|
|
19325
19887
|
}
|
|
19326
19888
|
],
|
|
19327
19889
|
"responses": {
|
|
@@ -19330,25 +19892,7 @@
|
|
|
19330
19892
|
"content": {
|
|
19331
19893
|
"application/json": {
|
|
19332
19894
|
"schema": {
|
|
19333
|
-
"
|
|
19334
|
-
{
|
|
19335
|
-
"$ref": "#/components/schemas/List"
|
|
19336
|
-
},
|
|
19337
|
-
{
|
|
19338
|
-
"type": "object",
|
|
19339
|
-
"required": [
|
|
19340
|
-
"items"
|
|
19341
|
-
],
|
|
19342
|
-
"properties": {
|
|
19343
|
-
"items": {
|
|
19344
|
-
"type": "array",
|
|
19345
|
-
"items": {
|
|
19346
|
-
"$ref": "#/components/schemas/SiteQuestionAnswer"
|
|
19347
|
-
}
|
|
19348
|
-
}
|
|
19349
|
-
}
|
|
19350
|
-
}
|
|
19351
|
-
]
|
|
19895
|
+
"$ref": "#/components/schemas/SiteQuestionTimeline"
|
|
19352
19896
|
}
|
|
19353
19897
|
}
|
|
19354
19898
|
}
|
|
@@ -19356,11 +19900,176 @@
|
|
|
19356
19900
|
}
|
|
19357
19901
|
}
|
|
19358
19902
|
},
|
|
19359
|
-
"/orgs/{organizationId}/sites/{siteId}/answers
|
|
19903
|
+
"/orgs/{organizationId}/sites/{siteId}/answers": {
|
|
19360
19904
|
"get": {
|
|
19361
|
-
"operationId": "
|
|
19362
|
-
"summary": "
|
|
19363
|
-
"description": "
|
|
19905
|
+
"operationId": "listSiteQuestionAnswers",
|
|
19906
|
+
"summary": "List the answers a site's Ask AI assistant generated",
|
|
19907
|
+
"description": "Returns a paginated list of individual Ask AI answers generated for a site. Each is the assistant's response to a specific asked question, with the raw question text, channel, and feedback. Use it to review answer quality and what users asked across the site.",
|
|
19908
|
+
"x-gitbook-mcp": true,
|
|
19909
|
+
"tags": [
|
|
19910
|
+
"site-questions"
|
|
19911
|
+
],
|
|
19912
|
+
"security": [
|
|
19913
|
+
{
|
|
19914
|
+
"user": []
|
|
19915
|
+
},
|
|
19916
|
+
{
|
|
19917
|
+
"oauth": [
|
|
19918
|
+
"site:insights:read"
|
|
19919
|
+
]
|
|
19920
|
+
}
|
|
19921
|
+
],
|
|
19922
|
+
"parameters": [
|
|
19923
|
+
{
|
|
19924
|
+
"$ref": "#/components/parameters/organizationId"
|
|
19925
|
+
},
|
|
19926
|
+
{
|
|
19927
|
+
"$ref": "#/components/parameters/siteId"
|
|
19928
|
+
},
|
|
19929
|
+
{
|
|
19930
|
+
"name": "question",
|
|
19931
|
+
"in": "query",
|
|
19932
|
+
"description": "Filter answers to a specific site question ID.",
|
|
19933
|
+
"schema": {
|
|
19934
|
+
"type": "string"
|
|
19935
|
+
}
|
|
19936
|
+
},
|
|
19937
|
+
{
|
|
19938
|
+
"name": "from",
|
|
19939
|
+
"in": "query",
|
|
19940
|
+
"description": "Filter answers created at or after this timestamp.",
|
|
19941
|
+
"schema": {
|
|
19942
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
19943
|
+
}
|
|
19944
|
+
},
|
|
19945
|
+
{
|
|
19946
|
+
"name": "to",
|
|
19947
|
+
"in": "query",
|
|
19948
|
+
"description": "Filter answers created at or before this timestamp.",
|
|
19949
|
+
"schema": {
|
|
19950
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
19951
|
+
}
|
|
19952
|
+
},
|
|
19953
|
+
{
|
|
19954
|
+
"name": "language",
|
|
19955
|
+
"in": "query",
|
|
19956
|
+
"description": "Filter answers by ISO language code.",
|
|
19957
|
+
"schema": {
|
|
19958
|
+
"type": "string"
|
|
19959
|
+
}
|
|
19960
|
+
},
|
|
19961
|
+
{
|
|
19962
|
+
"name": "answered",
|
|
19963
|
+
"in": "query",
|
|
19964
|
+
"description": "Filter answers by answered resolution.",
|
|
19965
|
+
"schema": {
|
|
19966
|
+
"type": "array",
|
|
19967
|
+
"items": {
|
|
19968
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerResolution"
|
|
19969
|
+
}
|
|
19970
|
+
}
|
|
19971
|
+
},
|
|
19972
|
+
{
|
|
19973
|
+
"name": "helpfulness",
|
|
19974
|
+
"in": "query",
|
|
19975
|
+
"description": "Filter answers by answered helpfulness.",
|
|
19976
|
+
"schema": {
|
|
19977
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerHelpfulness"
|
|
19978
|
+
}
|
|
19979
|
+
},
|
|
19980
|
+
{
|
|
19981
|
+
"name": "relevance",
|
|
19982
|
+
"in": "query",
|
|
19983
|
+
"description": "Filter answers by question relevance.",
|
|
19984
|
+
"schema": {
|
|
19985
|
+
"type": "array",
|
|
19986
|
+
"items": {
|
|
19987
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerRelevance"
|
|
19988
|
+
}
|
|
19989
|
+
}
|
|
19990
|
+
},
|
|
19991
|
+
{
|
|
19992
|
+
"name": "channelType",
|
|
19993
|
+
"in": "query",
|
|
19994
|
+
"description": "Filter answers by answer channel type.",
|
|
19995
|
+
"schema": {
|
|
19996
|
+
"type": "array",
|
|
19997
|
+
"items": {
|
|
19998
|
+
"$ref": "#/components/schemas/SiteChannelType"
|
|
19999
|
+
}
|
|
20000
|
+
}
|
|
20001
|
+
},
|
|
20002
|
+
{
|
|
20003
|
+
"$ref": "#/components/parameters/siteQuestionVisitorType"
|
|
20004
|
+
},
|
|
20005
|
+
{
|
|
20006
|
+
"name": "question.type",
|
|
20007
|
+
"in": "query",
|
|
20008
|
+
"description": "Filter answers by question type.",
|
|
20009
|
+
"schema": {
|
|
20010
|
+
"$ref": "#/components/schemas/SiteQuestionType"
|
|
20011
|
+
}
|
|
20012
|
+
},
|
|
20013
|
+
{
|
|
20014
|
+
"name": "topic",
|
|
20015
|
+
"in": "query",
|
|
20016
|
+
"description": "Filter answers by associated site topic ID.",
|
|
20017
|
+
"schema": {
|
|
20018
|
+
"type": "string"
|
|
20019
|
+
}
|
|
20020
|
+
},
|
|
20021
|
+
{
|
|
20022
|
+
"name": "thread",
|
|
20023
|
+
"in": "query",
|
|
20024
|
+
"description": "Filter answers by thread root answer ID. Includes the root answer itself.",
|
|
20025
|
+
"schema": {
|
|
20026
|
+
"type": "string"
|
|
20027
|
+
}
|
|
20028
|
+
},
|
|
20029
|
+
{
|
|
20030
|
+
"$ref": "#/components/parameters/listPage"
|
|
20031
|
+
},
|
|
20032
|
+
{
|
|
20033
|
+
"$ref": "#/components/parameters/listLimit"
|
|
20034
|
+
}
|
|
20035
|
+
],
|
|
20036
|
+
"responses": {
|
|
20037
|
+
"200": {
|
|
20038
|
+
"description": "OK",
|
|
20039
|
+
"content": {
|
|
20040
|
+
"application/json": {
|
|
20041
|
+
"schema": {
|
|
20042
|
+
"allOf": [
|
|
20043
|
+
{
|
|
20044
|
+
"$ref": "#/components/schemas/List"
|
|
20045
|
+
},
|
|
20046
|
+
{
|
|
20047
|
+
"type": "object",
|
|
20048
|
+
"required": [
|
|
20049
|
+
"items"
|
|
20050
|
+
],
|
|
20051
|
+
"properties": {
|
|
20052
|
+
"items": {
|
|
20053
|
+
"type": "array",
|
|
20054
|
+
"items": {
|
|
20055
|
+
"$ref": "#/components/schemas/SiteQuestionAnswer"
|
|
20056
|
+
}
|
|
20057
|
+
}
|
|
20058
|
+
}
|
|
20059
|
+
}
|
|
20060
|
+
]
|
|
20061
|
+
}
|
|
20062
|
+
}
|
|
20063
|
+
}
|
|
20064
|
+
}
|
|
20065
|
+
}
|
|
20066
|
+
}
|
|
20067
|
+
},
|
|
20068
|
+
"/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}": {
|
|
20069
|
+
"get": {
|
|
20070
|
+
"operationId": "getSiteQuestionAnswerById",
|
|
20071
|
+
"summary": "Get a single Ask AI answer by ID",
|
|
20072
|
+
"description": "Retrieves one Ask AI answer, including the question that prompted it, the response, and its feedback. Use it to inspect a specific answer discovered via listSiteQuestionAnswers.",
|
|
19364
20073
|
"x-gitbook-mcp": true,
|
|
19365
20074
|
"tags": [
|
|
19366
20075
|
"site-questions"
|
|
@@ -19661,7 +20370,9 @@
|
|
|
19661
20370
|
"operationId": "duplicateSiteSpace",
|
|
19662
20371
|
"summary": "Duplicate a space in a site",
|
|
19663
20372
|
"description": "Creates a full copy of the space linked by the specified site space. When the site space is the only variant in a section, the copy is placed in a new sibling section. Otherwise, it is added as a variant under the same parent. Prefer this operation over duplicateSpace whenever the request originates from a site or needs to preserve site placement.",
|
|
19664
|
-
"x-gitbook-mcp":
|
|
20373
|
+
"x-gitbook-mcp": {
|
|
20374
|
+
"destructive": true
|
|
20375
|
+
},
|
|
19665
20376
|
"tags": [
|
|
19666
20377
|
"site-spaces",
|
|
19667
20378
|
"spaces"
|
|
@@ -19859,6 +20570,17 @@
|
|
|
19859
20570
|
}
|
|
19860
20571
|
]
|
|
19861
20572
|
},
|
|
20573
|
+
"secondaryColor": {
|
|
20574
|
+
"description": "The secondary brand color used for secondary buttons and content colored with `$secondary`. Set to null to reset the override.",
|
|
20575
|
+
"oneOf": [
|
|
20576
|
+
{
|
|
20577
|
+
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
20578
|
+
},
|
|
20579
|
+
{
|
|
20580
|
+
"type": "null"
|
|
20581
|
+
}
|
|
20582
|
+
]
|
|
20583
|
+
},
|
|
19862
20584
|
"infoColor": {
|
|
19863
20585
|
"description": "Used for informational messages and neutral alerts. Set to null to reset the override.",
|
|
19864
20586
|
"oneOf": [
|
|
@@ -21023,6 +21745,12 @@
|
|
|
21023
21745
|
},
|
|
21024
21746
|
{
|
|
21025
21747
|
"$ref": "#/components/parameters/siteId"
|
|
21748
|
+
},
|
|
21749
|
+
{
|
|
21750
|
+
"$ref": "#/components/parameters/xOriginalUserAgent"
|
|
21751
|
+
},
|
|
21752
|
+
{
|
|
21753
|
+
"$ref": "#/components/parameters/xOriginalSignatureAgent"
|
|
21026
21754
|
}
|
|
21027
21755
|
],
|
|
21028
21756
|
"requestBody": {
|
|
@@ -21098,7 +21826,9 @@
|
|
|
21098
21826
|
"operationId": "applyTemplateToSite",
|
|
21099
21827
|
"summary": "Apply the default documentation template to a site",
|
|
21100
21828
|
"description": "Populates an empty site with GitBook's default documentation structure, content, and customization. Use this after creating a site without spaces to give it a ready-to-edit starting point.",
|
|
21101
|
-
"x-gitbook-mcp":
|
|
21829
|
+
"x-gitbook-mcp": {
|
|
21830
|
+
"destructive": true
|
|
21831
|
+
},
|
|
21102
21832
|
"tags": [
|
|
21103
21833
|
"sites"
|
|
21104
21834
|
],
|
|
@@ -21231,7 +21961,9 @@
|
|
|
21231
21961
|
"operationId": "createSiteStyleguideById",
|
|
21232
21962
|
"summary": "Create or retrieve the style guide space for a site",
|
|
21233
21963
|
"description": "Ensures the site has a dedicated style guide space and returns it. The style guide defines writing style and tone guidelines that the AI editor agent references when generating or refining content for the site. If a style guide already exists, this is idempotent and returns the existing space.",
|
|
21234
|
-
"x-gitbook-mcp":
|
|
21964
|
+
"x-gitbook-mcp": {
|
|
21965
|
+
"idempotent": true
|
|
21966
|
+
},
|
|
21235
21967
|
"tags": [
|
|
21236
21968
|
"sites"
|
|
21237
21969
|
],
|
|
@@ -21481,7 +22213,9 @@
|
|
|
21481
22213
|
"operationId": "aggregateSiteEvents",
|
|
21482
22214
|
"summary": "Query a site's analytics events",
|
|
21483
22215
|
"description": "Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. Use it to answer analytics questions about how visitors engage with a site's documentation: page views, visitors, searches, referrers, and broken URLs (404s). A 404 is a `page_view` or `search_open_result` event whose `page` is `null`, in the `site` display context; filter `eventPageNotFoundType` not in `conditional` to leave out 404s that adaptive content explains. Group by `datetime` for a trend over time and by `urlPath` for the top broken URLs.",
|
|
21484
|
-
"x-gitbook-mcp":
|
|
22216
|
+
"x-gitbook-mcp": {
|
|
22217
|
+
"readOnly": true
|
|
22218
|
+
},
|
|
21485
22219
|
"security": [
|
|
21486
22220
|
{
|
|
21487
22221
|
"user": []
|
|
@@ -21579,7 +22313,10 @@
|
|
|
21579
22313
|
"operationId": "updateSiteAdsById",
|
|
21580
22314
|
"summary": "Update the advertising settings for a site",
|
|
21581
22315
|
"description": "Updates the advertising configuration for a site, including the review status and topic category used to select relevant ads. This controls GitBook's monetization feature for sites opted into the ads program.",
|
|
21582
|
-
"x-gitbook-mcp":
|
|
22316
|
+
"x-gitbook-mcp": {
|
|
22317
|
+
"destructive": true,
|
|
22318
|
+
"idempotent": true
|
|
22319
|
+
},
|
|
21583
22320
|
"tags": [
|
|
21584
22321
|
"site-ads"
|
|
21585
22322
|
],
|
|
@@ -21635,87 +22372,89 @@
|
|
|
21635
22372
|
"operationId": "createSiteRedirect",
|
|
21636
22373
|
"summary": "Create a URL redirect rule for a site",
|
|
21637
22374
|
"description": "Creates a new redirect rule mapping a source path to a destination URL or content reference. Creating a live redirect also resolves open broken-link findings for the same source path. Use the bulk upsert endpoint instead when creating many redirects at once.",
|
|
21638
|
-
"x-gitbook-mcp":
|
|
21639
|
-
|
|
21640
|
-
"site-redirects"
|
|
21641
|
-
],
|
|
21642
|
-
"security": [
|
|
21643
|
-
{
|
|
21644
|
-
"user": []
|
|
21645
|
-
},
|
|
21646
|
-
{
|
|
21647
|
-
"oauth": [
|
|
21648
|
-
"site:write"
|
|
21649
|
-
]
|
|
21650
|
-
}
|
|
21651
|
-
],
|
|
21652
|
-
"parameters": [
|
|
21653
|
-
{
|
|
21654
|
-
"$ref": "#/components/parameters/organizationId"
|
|
21655
|
-
},
|
|
21656
|
-
{
|
|
21657
|
-
"$ref": "#/components/parameters/siteId"
|
|
21658
|
-
}
|
|
21659
|
-
],
|
|
21660
|
-
"requestBody": {
|
|
21661
|
-
"required": true,
|
|
21662
|
-
"content": {
|
|
21663
|
-
"application/json": {
|
|
21664
|
-
"schema": {
|
|
21665
|
-
"type": "object",
|
|
21666
|
-
"properties": {
|
|
21667
|
-
"siteFindingId": {
|
|
21668
|
-
"type": "string",
|
|
21669
|
-
"description": "The broken-link finding that prompted this redirect. Must belong to this site. Used to attribute redirect creation, including drafts, to the finding."
|
|
21670
|
-
},
|
|
21671
|
-
"source": {
|
|
21672
|
-
"$ref": "#/components/schemas/SiteRedirectSourcePath"
|
|
21673
|
-
},
|
|
21674
|
-
"captureWildcard": {
|
|
21675
|
-
"type": "boolean",
|
|
21676
|
-
"default": false,
|
|
21677
|
-
"description": "Capture and append the wildcard-matched suffix to the destination URL."
|
|
21678
|
-
},
|
|
21679
|
-
"draft": {
|
|
21680
|
-
"type": "boolean",
|
|
21681
|
-
"default": false,
|
|
21682
|
-
"description": "Whether the redirect is draft and not live."
|
|
21683
|
-
},
|
|
21684
|
-
"permanent": {
|
|
21685
|
-
"type": "boolean",
|
|
21686
|
-
"default": false,
|
|
21687
|
-
"description": "Whether the redirect is permanent for public live traffic."
|
|
21688
|
-
},
|
|
21689
|
-
"destination": {
|
|
21690
|
-
"$ref": "#/components/schemas/SiteRedirectInputDestination"
|
|
21691
|
-
}
|
|
21692
|
-
},
|
|
21693
|
-
"required": [
|
|
21694
|
-
"source",
|
|
21695
|
-
"destination"
|
|
21696
|
-
]
|
|
21697
|
-
}
|
|
21698
|
-
}
|
|
21699
|
-
}
|
|
22375
|
+
"x-gitbook-mcp": {
|
|
22376
|
+
"destructive": true
|
|
21700
22377
|
},
|
|
21701
|
-
"
|
|
21702
|
-
"
|
|
21703
|
-
|
|
21704
|
-
|
|
21705
|
-
|
|
21706
|
-
|
|
21707
|
-
|
|
21708
|
-
|
|
21709
|
-
|
|
21710
|
-
|
|
21711
|
-
|
|
21712
|
-
|
|
21713
|
-
|
|
21714
|
-
|
|
21715
|
-
|
|
21716
|
-
|
|
21717
|
-
|
|
21718
|
-
|
|
22378
|
+
"tags": [
|
|
22379
|
+
"site-redirects"
|
|
22380
|
+
],
|
|
22381
|
+
"security": [
|
|
22382
|
+
{
|
|
22383
|
+
"user": []
|
|
22384
|
+
},
|
|
22385
|
+
{
|
|
22386
|
+
"oauth": [
|
|
22387
|
+
"site:write"
|
|
22388
|
+
]
|
|
22389
|
+
}
|
|
22390
|
+
],
|
|
22391
|
+
"parameters": [
|
|
22392
|
+
{
|
|
22393
|
+
"$ref": "#/components/parameters/organizationId"
|
|
22394
|
+
},
|
|
22395
|
+
{
|
|
22396
|
+
"$ref": "#/components/parameters/siteId"
|
|
22397
|
+
}
|
|
22398
|
+
],
|
|
22399
|
+
"requestBody": {
|
|
22400
|
+
"required": true,
|
|
22401
|
+
"content": {
|
|
22402
|
+
"application/json": {
|
|
22403
|
+
"schema": {
|
|
22404
|
+
"type": "object",
|
|
22405
|
+
"properties": {
|
|
22406
|
+
"siteFindingId": {
|
|
22407
|
+
"type": "string",
|
|
22408
|
+
"description": "The broken-link finding that prompted this redirect. Must belong to this site. Used to attribute redirect creation, including drafts, to the finding."
|
|
22409
|
+
},
|
|
22410
|
+
"source": {
|
|
22411
|
+
"$ref": "#/components/schemas/SiteRedirectSourcePath"
|
|
22412
|
+
},
|
|
22413
|
+
"captureWildcard": {
|
|
22414
|
+
"type": "boolean",
|
|
22415
|
+
"default": false,
|
|
22416
|
+
"description": "Capture and append the wildcard-matched suffix to the destination URL."
|
|
22417
|
+
},
|
|
22418
|
+
"draft": {
|
|
22419
|
+
"type": "boolean",
|
|
22420
|
+
"default": false,
|
|
22421
|
+
"description": "Whether the redirect is draft and not live."
|
|
22422
|
+
},
|
|
22423
|
+
"permanent": {
|
|
22424
|
+
"type": "boolean",
|
|
22425
|
+
"default": false,
|
|
22426
|
+
"description": "Whether the redirect is permanent for public live traffic."
|
|
22427
|
+
},
|
|
22428
|
+
"destination": {
|
|
22429
|
+
"$ref": "#/components/schemas/SiteRedirectInputDestination"
|
|
22430
|
+
}
|
|
22431
|
+
},
|
|
22432
|
+
"required": [
|
|
22433
|
+
"source",
|
|
22434
|
+
"destination"
|
|
22435
|
+
]
|
|
22436
|
+
}
|
|
22437
|
+
}
|
|
22438
|
+
}
|
|
22439
|
+
},
|
|
22440
|
+
"responses": {
|
|
22441
|
+
"201": {
|
|
22442
|
+
"description": "The redirect was created successfully.",
|
|
22443
|
+
"content": {
|
|
22444
|
+
"application/json": {
|
|
22445
|
+
"schema": {
|
|
22446
|
+
"$ref": "#/components/schemas/SiteRedirect"
|
|
22447
|
+
}
|
|
22448
|
+
}
|
|
22449
|
+
}
|
|
22450
|
+
}
|
|
22451
|
+
}
|
|
22452
|
+
},
|
|
22453
|
+
"put": {
|
|
22454
|
+
"operationId": "bulkUpsertSiteRedirects",
|
|
22455
|
+
"summary": "Create, update, delete, or publish site redirect rules in bulk",
|
|
22456
|
+
"description": "Processes up to 500 redirect operations in a single request. Each redirect in the array is processed independently and the response includes per-item status. Prefer this over individual create/update calls when managing large sets of redirects.",
|
|
22457
|
+
"x-gitbook-mcp": true,
|
|
21719
22458
|
"tags": [
|
|
21720
22459
|
"site-redirects"
|
|
21721
22460
|
],
|
|
@@ -22688,7 +23427,9 @@
|
|
|
22688
23427
|
"operationId": "listSiteChannelScopes",
|
|
22689
23428
|
"summary": "List available site channel scopes",
|
|
22690
23429
|
"description": "Lists accessible Linear teams, GitHub repositories, Slack channels or Jira projects. Requires site admin permission. Linear, GitHub and Slack require an already-connected channel belonging to this site and matching the provider. Jira uses either the credentials supplied, verified without saving a connection, or those stored on an existing Jira context connection of this site. Slack includes public channels and accessible private channels, excluding archived channels. To fetch another page, pass the opaque token from `next.page` as the `page` query parameter with the same request body. An absent `next` means there are no more pages; an empty `items` array alone does not indicate the end of the list.",
|
|
22691
|
-
"x-gitbook-mcp":
|
|
23430
|
+
"x-gitbook-mcp": {
|
|
23431
|
+
"readOnly": true
|
|
23432
|
+
},
|
|
22692
23433
|
"tags": [
|
|
22693
23434
|
"site-channels"
|
|
22694
23435
|
],
|
|
@@ -24845,6 +25586,15 @@
|
|
|
24845
25586
|
"type": "string"
|
|
24846
25587
|
}
|
|
24847
25588
|
},
|
|
25589
|
+
"scimConnectionId": {
|
|
25590
|
+
"name": "scimConnectionId",
|
|
25591
|
+
"in": "path",
|
|
25592
|
+
"required": true,
|
|
25593
|
+
"description": "The unique id of the SCIM connection",
|
|
25594
|
+
"schema": {
|
|
25595
|
+
"type": "string"
|
|
25596
|
+
}
|
|
25597
|
+
},
|
|
24848
25598
|
"openapiSpecSlug": {
|
|
24849
25599
|
"name": "specSlug",
|
|
24850
25600
|
"in": "path",
|
|
@@ -24954,6 +25704,24 @@
|
|
|
24954
25704
|
"type": "string"
|
|
24955
25705
|
}
|
|
24956
25706
|
},
|
|
25707
|
+
"xOriginalUserAgent": {
|
|
25708
|
+
"in": "header",
|
|
25709
|
+
"name": "X-Original-User-Agent",
|
|
25710
|
+
"description": "User agent of the visitor, when calling on behalf of one, such as from a server rendering a\ndocs site. When omitted, the request's own `User-Agent` is used.\n",
|
|
25711
|
+
"required": false,
|
|
25712
|
+
"schema": {
|
|
25713
|
+
"type": "string"
|
|
25714
|
+
}
|
|
25715
|
+
},
|
|
25716
|
+
"xOriginalSignatureAgent": {
|
|
25717
|
+
"in": "header",
|
|
25718
|
+
"name": "X-Original-Signature-Agent",
|
|
25719
|
+
"description": "`Signature-Agent` header sent by the visitor, when calling on behalf of one, for agents that\nsign their requests. When omitted, the request's own `Signature-Agent` is used.\nhttps://datatracker.ietf.org/doc/draft-meunier-web-bot-auth-architecture/\n",
|
|
25720
|
+
"required": false,
|
|
25721
|
+
"schema": {
|
|
25722
|
+
"type": "string"
|
|
25723
|
+
}
|
|
25724
|
+
},
|
|
24957
25725
|
"siteContextRecordId": {
|
|
24958
25726
|
"name": "siteContextRecordId",
|
|
24959
25727
|
"in": "path",
|
|
@@ -24990,6 +25758,17 @@
|
|
|
24990
25758
|
"type": "string"
|
|
24991
25759
|
}
|
|
24992
25760
|
},
|
|
25761
|
+
"siteQuestionVisitorType": {
|
|
25762
|
+
"name": "visitorType",
|
|
25763
|
+
"in": "query",
|
|
25764
|
+
"description": "Filter by whether a person or an AI agent asked the question.",
|
|
25765
|
+
"schema": {
|
|
25766
|
+
"type": "array",
|
|
25767
|
+
"items": {
|
|
25768
|
+
"$ref": "#/components/schemas/SiteQuestionVisitorType"
|
|
25769
|
+
}
|
|
25770
|
+
}
|
|
25771
|
+
},
|
|
24993
25772
|
"siteTopicId": {
|
|
24994
25773
|
"name": "siteTopicId",
|
|
24995
25774
|
"in": "path",
|
|
@@ -27009,6 +27788,7 @@
|
|
|
27009
27788
|
"violet",
|
|
27010
27789
|
"cyan",
|
|
27011
27790
|
"$primary",
|
|
27791
|
+
"$secondary",
|
|
27012
27792
|
"$info",
|
|
27013
27793
|
"$success",
|
|
27014
27794
|
"$warning",
|
|
@@ -30107,6 +30887,9 @@
|
|
|
30107
30887
|
},
|
|
30108
30888
|
{
|
|
30109
30889
|
"$ref": "#/components/schemas/DocumentBlockStepper"
|
|
30890
|
+
},
|
|
30891
|
+
{
|
|
30892
|
+
"$ref": "#/components/schemas/DocumentBlockTabs"
|
|
30110
30893
|
}
|
|
30111
30894
|
]
|
|
30112
30895
|
},
|
|
@@ -32483,7 +33266,7 @@
|
|
|
32483
33266
|
]
|
|
32484
33267
|
},
|
|
32485
33268
|
"VariableValue": {
|
|
32486
|
-
"
|
|
33269
|
+
"anyOf": [
|
|
32487
33270
|
{
|
|
32488
33271
|
"type": "string",
|
|
32489
33272
|
"maxLength": 256
|
|
@@ -34525,6 +35308,12 @@
|
|
|
34525
35308
|
"type": "string",
|
|
34526
35309
|
"description": "Temporary local reference for the page, used only for the lifetime of this request and never persisted. Other pages inserted in the same batch can link to this page by its ref (e.g. `[Page](./<ref>.md)`), which resolves to the page's ID at apply time — regardless of operation order or the page's eventual slug. A ref must be unique within the batch and must not collide with an existing page's path."
|
|
34527
35310
|
},
|
|
35311
|
+
"stableKey": {
|
|
35312
|
+
"type": "string",
|
|
35313
|
+
"minLength": 1,
|
|
35314
|
+
"maxLength": 255,
|
|
35315
|
+
"description": "Stable identifier for the page's content, such as the ID of the record it is generated from. The page's ID is derived from it, so re-inserting a deleted page with the same key restores its ID and links to it keep working. The same key gives the same page ID in every space, including duplicated spaces. To change a page that exists, use `update_page`: an insert whose key matches an existing page, or another insert in the batch, is rejected, so deleting a page and re-inserting its key must be done in separate requests. A re-created page takes over the old page's comments, redirects, insights and history. When two change requests insert the same key, merging both keeps only one of the pages, without a conflict."
|
|
35316
|
+
},
|
|
34528
35317
|
"document": {
|
|
34529
35318
|
"description": "Document for the new page. When provided as markdown, its frontmatter is read to set the page metadata.",
|
|
34530
35319
|
"$ref": "#/components/schemas/Document"
|
|
@@ -34732,6 +35521,206 @@
|
|
|
34732
35521
|
}
|
|
34733
35522
|
}
|
|
34734
35523
|
},
|
|
35524
|
+
"ChangeRequestContentChangeInsertReusableContents": {
|
|
35525
|
+
"type": "object",
|
|
35526
|
+
"description": "Create reusable content (snippets shared by several pages) in the change request. A markdown document includes one as `{% include \"/reusable-content/<reusableContentId>\" %}` — use a `ref` to include it from a page in the same batch, or read the generated IDs from `insertedReusableContents`.",
|
|
35527
|
+
"required": [
|
|
35528
|
+
"operation",
|
|
35529
|
+
"reusableContents"
|
|
35530
|
+
],
|
|
35531
|
+
"properties": {
|
|
35532
|
+
"operation": {
|
|
35533
|
+
"type": "string",
|
|
35534
|
+
"enum": [
|
|
35535
|
+
"insert_reusable_contents"
|
|
35536
|
+
]
|
|
35537
|
+
},
|
|
35538
|
+
"reusableContents": {
|
|
35539
|
+
"type": "array",
|
|
35540
|
+
"minItems": 1,
|
|
35541
|
+
"maxItems": 20,
|
|
35542
|
+
"items": {
|
|
35543
|
+
"type": "object",
|
|
35544
|
+
"description": "A reusable content to create.",
|
|
35545
|
+
"required": [
|
|
35546
|
+
"title",
|
|
35547
|
+
"document"
|
|
35548
|
+
],
|
|
35549
|
+
"properties": {
|
|
35550
|
+
"ref": {
|
|
35551
|
+
"type": "string",
|
|
35552
|
+
"description": "Temporary local reference for the reusable content, used only for the lifetime of this request and never persisted. Pages in the same batch can include it by its ref (e.g. `{% include \"./<ref>\" %}`), which resolves to the reusable content's ID at apply time — regardless of operation order. A ref must be unique among the reusable content refs of the batch."
|
|
35553
|
+
},
|
|
35554
|
+
"title": {
|
|
35555
|
+
"type": "string",
|
|
35556
|
+
"minLength": 1,
|
|
35557
|
+
"maxLength": 100,
|
|
35558
|
+
"description": "Title of the reusable content, shown when picking it in the editor."
|
|
35559
|
+
},
|
|
35560
|
+
"document": {
|
|
35561
|
+
"description": "Body of the reusable content.",
|
|
35562
|
+
"$ref": "#/components/schemas/Document"
|
|
35563
|
+
}
|
|
35564
|
+
}
|
|
35565
|
+
}
|
|
35566
|
+
}
|
|
35567
|
+
},
|
|
35568
|
+
"example": {
|
|
35569
|
+
"operation": "insert_reusable_contents",
|
|
35570
|
+
"reusableContents": [
|
|
35571
|
+
{
|
|
35572
|
+
"ref": "disclaimer",
|
|
35573
|
+
"title": "Disclaimer",
|
|
35574
|
+
"document": {
|
|
35575
|
+
"markdown": "{% hint style=\"warning\" %}\nThis feature is in beta.\n{% endhint %}\n"
|
|
35576
|
+
}
|
|
35577
|
+
}
|
|
35578
|
+
]
|
|
35579
|
+
}
|
|
35580
|
+
},
|
|
35581
|
+
"ChangeRequestContentChangeUpdateReusableContent": {
|
|
35582
|
+
"type": "object",
|
|
35583
|
+
"description": "Update an existing reusable content's title and/or document. Its ID is unchanged, so every page including it shows the update.",
|
|
35584
|
+
"required": [
|
|
35585
|
+
"operation",
|
|
35586
|
+
"reusableContent"
|
|
35587
|
+
],
|
|
35588
|
+
"properties": {
|
|
35589
|
+
"operation": {
|
|
35590
|
+
"type": "string",
|
|
35591
|
+
"enum": [
|
|
35592
|
+
"update_reusable_content"
|
|
35593
|
+
]
|
|
35594
|
+
},
|
|
35595
|
+
"reusableContent": {
|
|
35596
|
+
"type": "string",
|
|
35597
|
+
"description": "ID of the reusable content to update."
|
|
35598
|
+
},
|
|
35599
|
+
"title": {
|
|
35600
|
+
"type": "string",
|
|
35601
|
+
"minLength": 1,
|
|
35602
|
+
"maxLength": 100,
|
|
35603
|
+
"description": "New title of the reusable content. Omit to keep the current title."
|
|
35604
|
+
},
|
|
35605
|
+
"document": {
|
|
35606
|
+
"description": "New body of the reusable content. Omit to keep the current body.",
|
|
35607
|
+
"$ref": "#/components/schemas/Document"
|
|
35608
|
+
}
|
|
35609
|
+
},
|
|
35610
|
+
"example": {
|
|
35611
|
+
"operation": "update_reusable_content",
|
|
35612
|
+
"reusableContent": "reusable_content_id",
|
|
35613
|
+
"title": "Beta disclaimer"
|
|
35614
|
+
}
|
|
35615
|
+
},
|
|
35616
|
+
"ChangeRequestContentChangeDeleteReusableContent": {
|
|
35617
|
+
"type": "object",
|
|
35618
|
+
"description": "Delete an existing reusable content from the change request.",
|
|
35619
|
+
"required": [
|
|
35620
|
+
"operation",
|
|
35621
|
+
"reusableContent"
|
|
35622
|
+
],
|
|
35623
|
+
"properties": {
|
|
35624
|
+
"operation": {
|
|
35625
|
+
"type": "string",
|
|
35626
|
+
"enum": [
|
|
35627
|
+
"delete_reusable_content"
|
|
35628
|
+
]
|
|
35629
|
+
},
|
|
35630
|
+
"reusableContent": {
|
|
35631
|
+
"type": "string",
|
|
35632
|
+
"description": "ID of the reusable content to delete."
|
|
35633
|
+
}
|
|
35634
|
+
},
|
|
35635
|
+
"example": {
|
|
35636
|
+
"operation": "delete_reusable_content",
|
|
35637
|
+
"reusableContent": "reusable_content_id"
|
|
35638
|
+
}
|
|
35639
|
+
},
|
|
35640
|
+
"VariableName": {
|
|
35641
|
+
"type": "string",
|
|
35642
|
+
"description": "Name of a variable, referenced in content as `space.vars.<name>`. It starts with a letter, `_` or `$` and contains only letters, digits, `_` and `$`.",
|
|
35643
|
+
"minLength": 1,
|
|
35644
|
+
"maxLength": 64,
|
|
35645
|
+
"pattern": "^[a-zA-Z_$][a-zA-Z0-9_$]*$"
|
|
35646
|
+
},
|
|
35647
|
+
"ChangeRequestContentChangeInsertVariables": {
|
|
35648
|
+
"type": "object",
|
|
35649
|
+
"description": "Create space variables in the change request (Git Sync's `.gitbook/vars.yaml`). Content references one as an expression, `<code class=\"expression\">space.vars.<name></code>` in markdown, which renders the variable's value.",
|
|
35650
|
+
"required": [
|
|
35651
|
+
"operation",
|
|
35652
|
+
"variables"
|
|
35653
|
+
],
|
|
35654
|
+
"properties": {
|
|
35655
|
+
"operation": {
|
|
35656
|
+
"type": "string",
|
|
35657
|
+
"enum": [
|
|
35658
|
+
"insert_variables"
|
|
35659
|
+
]
|
|
35660
|
+
},
|
|
35661
|
+
"variables": {
|
|
35662
|
+
"type": "array",
|
|
35663
|
+
"minItems": 1,
|
|
35664
|
+
"maxItems": 50,
|
|
35665
|
+
"items": {
|
|
35666
|
+
"type": "object",
|
|
35667
|
+
"description": "A variable to create. Its name must not already be used by a space variable of the change request.",
|
|
35668
|
+
"required": [
|
|
35669
|
+
"name",
|
|
35670
|
+
"value"
|
|
35671
|
+
],
|
|
35672
|
+
"properties": {
|
|
35673
|
+
"name": {
|
|
35674
|
+
"$ref": "#/components/schemas/VariableName"
|
|
35675
|
+
},
|
|
35676
|
+
"value": {
|
|
35677
|
+
"description": "Value of the variable.",
|
|
35678
|
+
"$ref": "#/components/schemas/VariableValue"
|
|
35679
|
+
}
|
|
35680
|
+
}
|
|
35681
|
+
}
|
|
35682
|
+
}
|
|
35683
|
+
},
|
|
35684
|
+
"example": {
|
|
35685
|
+
"operation": "insert_variables",
|
|
35686
|
+
"variables": [
|
|
35687
|
+
{
|
|
35688
|
+
"name": "version",
|
|
35689
|
+
"value": "2.0"
|
|
35690
|
+
}
|
|
35691
|
+
]
|
|
35692
|
+
}
|
|
35693
|
+
},
|
|
35694
|
+
"ChangeRequestContentChangeUpdateVariable": {
|
|
35695
|
+
"type": "object",
|
|
35696
|
+
"description": "Change the value of an existing space variable. Every expression referencing it shows the new value.",
|
|
35697
|
+
"required": [
|
|
35698
|
+
"operation",
|
|
35699
|
+
"variable",
|
|
35700
|
+
"value"
|
|
35701
|
+
],
|
|
35702
|
+
"properties": {
|
|
35703
|
+
"operation": {
|
|
35704
|
+
"type": "string",
|
|
35705
|
+
"enum": [
|
|
35706
|
+
"update_variable"
|
|
35707
|
+
]
|
|
35708
|
+
},
|
|
35709
|
+
"variable": {
|
|
35710
|
+
"description": "Name of the variable to update.",
|
|
35711
|
+
"$ref": "#/components/schemas/VariableName"
|
|
35712
|
+
},
|
|
35713
|
+
"value": {
|
|
35714
|
+
"description": "New value of the variable.",
|
|
35715
|
+
"$ref": "#/components/schemas/VariableValue"
|
|
35716
|
+
}
|
|
35717
|
+
},
|
|
35718
|
+
"example": {
|
|
35719
|
+
"operation": "update_variable",
|
|
35720
|
+
"variable": "version",
|
|
35721
|
+
"value": "2.1"
|
|
35722
|
+
}
|
|
35723
|
+
},
|
|
34735
35724
|
"ChangeRequestContentChange": {
|
|
34736
35725
|
"oneOf": [
|
|
34737
35726
|
{
|
|
@@ -34751,6 +35740,21 @@
|
|
|
34751
35740
|
},
|
|
34752
35741
|
{
|
|
34753
35742
|
"$ref": "#/components/schemas/ChangeRequestContentChangeInsertComputedPage"
|
|
35743
|
+
},
|
|
35744
|
+
{
|
|
35745
|
+
"$ref": "#/components/schemas/ChangeRequestContentChangeInsertReusableContents"
|
|
35746
|
+
},
|
|
35747
|
+
{
|
|
35748
|
+
"$ref": "#/components/schemas/ChangeRequestContentChangeUpdateReusableContent"
|
|
35749
|
+
},
|
|
35750
|
+
{
|
|
35751
|
+
"$ref": "#/components/schemas/ChangeRequestContentChangeDeleteReusableContent"
|
|
35752
|
+
},
|
|
35753
|
+
{
|
|
35754
|
+
"$ref": "#/components/schemas/ChangeRequestContentChangeInsertVariables"
|
|
35755
|
+
},
|
|
35756
|
+
{
|
|
35757
|
+
"$ref": "#/components/schemas/ChangeRequestContentChangeUpdateVariable"
|
|
34754
35758
|
}
|
|
34755
35759
|
],
|
|
34756
35760
|
"discriminator": {
|
|
@@ -34761,7 +35765,12 @@
|
|
|
34761
35765
|
"delete_page": "#/components/schemas/ChangeRequestContentChangeDeletePage",
|
|
34762
35766
|
"revert_page": "#/components/schemas/ChangeRequestContentChangeRevertPage",
|
|
34763
35767
|
"insert_files": "#/components/schemas/ChangeRequestContentChangeInsertFiles",
|
|
34764
|
-
"insert_computed_page": "#/components/schemas/ChangeRequestContentChangeInsertComputedPage"
|
|
35768
|
+
"insert_computed_page": "#/components/schemas/ChangeRequestContentChangeInsertComputedPage",
|
|
35769
|
+
"insert_reusable_contents": "#/components/schemas/ChangeRequestContentChangeInsertReusableContents",
|
|
35770
|
+
"update_reusable_content": "#/components/schemas/ChangeRequestContentChangeUpdateReusableContent",
|
|
35771
|
+
"delete_reusable_content": "#/components/schemas/ChangeRequestContentChangeDeleteReusableContent",
|
|
35772
|
+
"insert_variables": "#/components/schemas/ChangeRequestContentChangeInsertVariables",
|
|
35773
|
+
"update_variable": "#/components/schemas/ChangeRequestContentChangeUpdateVariable"
|
|
34765
35774
|
}
|
|
34766
35775
|
}
|
|
34767
35776
|
},
|
|
@@ -34912,6 +35921,13 @@
|
|
|
34912
35921
|
"items": {
|
|
34913
35922
|
"$ref": "#/components/schemas/RevisionFile"
|
|
34914
35923
|
}
|
|
35924
|
+
},
|
|
35925
|
+
"insertedReusableContents": {
|
|
35926
|
+
"type": "array",
|
|
35927
|
+
"description": "Reusable contents created by the `insert_reusable_contents` changes in this batch, in the order they were inserted. Use their IDs to include them from a document.",
|
|
35928
|
+
"items": {
|
|
35929
|
+
"$ref": "#/components/schemas/RevisionReusableContent"
|
|
35930
|
+
}
|
|
34915
35931
|
}
|
|
34916
35932
|
}
|
|
34917
35933
|
},
|
|
@@ -35494,6 +36510,12 @@
|
|
|
35494
36510
|
"properties": {
|
|
35495
36511
|
"label": {
|
|
35496
36512
|
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
36513
|
+
},
|
|
36514
|
+
"group": {
|
|
36515
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
36516
|
+
},
|
|
36517
|
+
"parent": {
|
|
36518
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
35497
36519
|
}
|
|
35498
36520
|
}
|
|
35499
36521
|
},
|
|
@@ -35519,6 +36541,102 @@
|
|
|
35519
36541
|
"attributes"
|
|
35520
36542
|
]
|
|
35521
36543
|
},
|
|
36544
|
+
"RevisionTagGroup": {
|
|
36545
|
+
"type": "object",
|
|
36546
|
+
"description": "A space-scoped group of tags in this revision. Groups may contain other groups.",
|
|
36547
|
+
"required": [
|
|
36548
|
+
"slug",
|
|
36549
|
+
"label",
|
|
36550
|
+
"orderIndex"
|
|
36551
|
+
],
|
|
36552
|
+
"properties": {
|
|
36553
|
+
"slug": {
|
|
36554
|
+
"type": "string",
|
|
36555
|
+
"description": "Immutable group identifier, unique within the revision."
|
|
36556
|
+
},
|
|
36557
|
+
"label": {
|
|
36558
|
+
"type": "string",
|
|
36559
|
+
"description": "Display name of the group."
|
|
36560
|
+
},
|
|
36561
|
+
"parent": {
|
|
36562
|
+
"type": "string",
|
|
36563
|
+
"description": "Parent group slug. Omitted for root groups."
|
|
36564
|
+
},
|
|
36565
|
+
"orderIndex": {
|
|
36566
|
+
"type": "string",
|
|
36567
|
+
"description": "Lexicographic sibling sort key. Break ties using the slug."
|
|
36568
|
+
}
|
|
36569
|
+
}
|
|
36570
|
+
},
|
|
36571
|
+
"RevisionSemanticChangeTagGroupCreated": {
|
|
36572
|
+
"type": "object",
|
|
36573
|
+
"required": [
|
|
36574
|
+
"type",
|
|
36575
|
+
"tagGroup"
|
|
36576
|
+
],
|
|
36577
|
+
"properties": {
|
|
36578
|
+
"type": {
|
|
36579
|
+
"type": "string",
|
|
36580
|
+
"enum": [
|
|
36581
|
+
"tag_group_created"
|
|
36582
|
+
]
|
|
36583
|
+
},
|
|
36584
|
+
"tagGroup": {
|
|
36585
|
+
"$ref": "#/components/schemas/RevisionTagGroup"
|
|
36586
|
+
}
|
|
36587
|
+
}
|
|
36588
|
+
},
|
|
36589
|
+
"RevisionSemanticChangeTagGroupEdited": {
|
|
36590
|
+
"type": "object",
|
|
36591
|
+
"required": [
|
|
36592
|
+
"type",
|
|
36593
|
+
"tagGroup",
|
|
36594
|
+
"attributes"
|
|
36595
|
+
],
|
|
36596
|
+
"properties": {
|
|
36597
|
+
"type": {
|
|
36598
|
+
"type": "string",
|
|
36599
|
+
"enum": [
|
|
36600
|
+
"tag_group_edited"
|
|
36601
|
+
]
|
|
36602
|
+
},
|
|
36603
|
+
"tagGroup": {
|
|
36604
|
+
"$ref": "#/components/schemas/RevisionTagGroup"
|
|
36605
|
+
},
|
|
36606
|
+
"attributes": {
|
|
36607
|
+
"type": "object",
|
|
36608
|
+
"properties": {
|
|
36609
|
+
"label": {
|
|
36610
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
36611
|
+
},
|
|
36612
|
+
"parent": {
|
|
36613
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
36614
|
+
},
|
|
36615
|
+
"orderIndex": {
|
|
36616
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
36617
|
+
}
|
|
36618
|
+
}
|
|
36619
|
+
}
|
|
36620
|
+
}
|
|
36621
|
+
},
|
|
36622
|
+
"RevisionSemanticChangeTagGroupDeleted": {
|
|
36623
|
+
"type": "object",
|
|
36624
|
+
"required": [
|
|
36625
|
+
"type",
|
|
36626
|
+
"tagGroup"
|
|
36627
|
+
],
|
|
36628
|
+
"properties": {
|
|
36629
|
+
"type": {
|
|
36630
|
+
"type": "string",
|
|
36631
|
+
"enum": [
|
|
36632
|
+
"tag_group_deleted"
|
|
36633
|
+
]
|
|
36634
|
+
},
|
|
36635
|
+
"tagGroup": {
|
|
36636
|
+
"$ref": "#/components/schemas/RevisionTagGroup"
|
|
36637
|
+
}
|
|
36638
|
+
}
|
|
36639
|
+
},
|
|
35522
36640
|
"RevisionSemanticChange": {
|
|
35523
36641
|
"oneOf": [
|
|
35524
36642
|
{
|
|
@@ -35562,6 +36680,15 @@
|
|
|
35562
36680
|
},
|
|
35563
36681
|
{
|
|
35564
36682
|
"$ref": "#/components/schemas/RevisionSemanticChangeTagEdited"
|
|
36683
|
+
},
|
|
36684
|
+
{
|
|
36685
|
+
"$ref": "#/components/schemas/RevisionSemanticChangeTagGroupCreated"
|
|
36686
|
+
},
|
|
36687
|
+
{
|
|
36688
|
+
"$ref": "#/components/schemas/RevisionSemanticChangeTagGroupEdited"
|
|
36689
|
+
},
|
|
36690
|
+
{
|
|
36691
|
+
"$ref": "#/components/schemas/RevisionSemanticChangeTagGroupDeleted"
|
|
35565
36692
|
}
|
|
35566
36693
|
]
|
|
35567
36694
|
},
|
|
@@ -35610,6 +36737,29 @@
|
|
|
35610
36737
|
}
|
|
35611
36738
|
}
|
|
35612
36739
|
},
|
|
36740
|
+
"MemberDisabledReason": {
|
|
36741
|
+
"type": "string",
|
|
36742
|
+
"description": "Why a member is disabled in an organization.\n\"billing\": The organization's plan has reached its maximum number of members.\n\"scim\": The member was deactivated by the organization's identity provider.\n\"admin\": An organization admin disabled the member.\n",
|
|
36743
|
+
"enum": [
|
|
36744
|
+
"billing",
|
|
36745
|
+
"scim",
|
|
36746
|
+
"admin"
|
|
36747
|
+
]
|
|
36748
|
+
},
|
|
36749
|
+
"MemberDisabled": {
|
|
36750
|
+
"description": "Why the member is disabled, or false when the member is active. A disabled member cannot access the organization or its content.",
|
|
36751
|
+
"oneOf": [
|
|
36752
|
+
{
|
|
36753
|
+
"type": "boolean",
|
|
36754
|
+
"enum": [
|
|
36755
|
+
false
|
|
36756
|
+
]
|
|
36757
|
+
},
|
|
36758
|
+
{
|
|
36759
|
+
"$ref": "#/components/schemas/MemberDisabledReason"
|
|
36760
|
+
}
|
|
36761
|
+
]
|
|
36762
|
+
},
|
|
35613
36763
|
"OrganizationMember": {
|
|
35614
36764
|
"type": "object",
|
|
35615
36765
|
"properties": {
|
|
@@ -35631,8 +36781,7 @@
|
|
|
35631
36781
|
"$ref": "#/components/schemas/User"
|
|
35632
36782
|
},
|
|
35633
36783
|
"disabled": {
|
|
35634
|
-
"
|
|
35635
|
-
"description": "Whatever the membership of this user is disabled and prevent them from accessing content."
|
|
36784
|
+
"$ref": "#/components/schemas/MemberDisabled"
|
|
35636
36785
|
},
|
|
35637
36786
|
"joinedAt": {
|
|
35638
36787
|
"description": "Date at which the user joined the organization.",
|
|
@@ -36150,9 +37299,6 @@
|
|
|
36150
37299
|
"pro_2024",
|
|
36151
37300
|
"enterprise_2024",
|
|
36152
37301
|
"community_2024",
|
|
36153
|
-
"free",
|
|
36154
|
-
"plus",
|
|
36155
|
-
"pro",
|
|
36156
37302
|
"internal"
|
|
36157
37303
|
]
|
|
36158
37304
|
},
|
|
@@ -36502,6 +37648,10 @@
|
|
|
36502
37648
|
"description": "If true, the organization is configured to use all our AI features.",
|
|
36503
37649
|
"type": "boolean"
|
|
36504
37650
|
},
|
|
37651
|
+
"aiPreference": {
|
|
37652
|
+
"description": "Whether the master AI setting is turned on, regardless of plan availability. Contract overrides forcing AI off take precedence.",
|
|
37653
|
+
"type": "boolean"
|
|
37654
|
+
},
|
|
36505
37655
|
"aiSettings": {
|
|
36506
37656
|
"$ref": "#/components/schemas/OrganizationAISettings"
|
|
36507
37657
|
},
|
|
@@ -36601,23 +37751,6 @@
|
|
|
36601
37751
|
"reason"
|
|
36602
37752
|
]
|
|
36603
37753
|
},
|
|
36604
|
-
"internal_billingMigration": {
|
|
36605
|
-
"type": "object",
|
|
36606
|
-
"properties": {
|
|
36607
|
-
"deadline": {
|
|
36608
|
-
"description": "When we will upgrade the organization onto new pricing, if they haven't already.",
|
|
36609
|
-
"$ref": "#/components/schemas/Timestamp"
|
|
36610
|
-
},
|
|
36611
|
-
"discountPercent": {
|
|
36612
|
-
"description": "A discount the organization may have received thanks to migrating early.",
|
|
36613
|
-
"type": "number"
|
|
36614
|
-
},
|
|
36615
|
-
"discountEndDate": {
|
|
36616
|
-
"description": "The expiration date of the discount, after wich regular pricing resumes.",
|
|
36617
|
-
"$ref": "#/components/schemas/Timestamp"
|
|
36618
|
-
}
|
|
36619
|
-
}
|
|
36620
|
-
},
|
|
36621
37754
|
"permissions": {
|
|
36622
37755
|
"type": "object",
|
|
36623
37756
|
"description": "The set of permissions for the organization",
|
|
@@ -38650,9 +39783,7 @@
|
|
|
38650
39783
|
"basic",
|
|
38651
39784
|
"premium",
|
|
38652
39785
|
"ultimate",
|
|
38653
|
-
"sponsored"
|
|
38654
|
-
"legacy-basic",
|
|
38655
|
-
"legacy-premium"
|
|
39786
|
+
"sponsored"
|
|
38656
39787
|
]
|
|
38657
39788
|
},
|
|
38658
39789
|
"SiteTitle": {
|
|
@@ -38874,7 +40005,6 @@
|
|
|
38874
40005
|
"sites-basic-customization",
|
|
38875
40006
|
"sites-broken-links",
|
|
38876
40007
|
"sites-custom-domain",
|
|
38877
|
-
"sites-custom-fonts",
|
|
38878
40008
|
"sites-custom-subdirectory",
|
|
38879
40009
|
"sites-full-text-search",
|
|
38880
40010
|
"sites-multivariant-site",
|
|
@@ -38959,6 +40089,14 @@
|
|
|
38959
40089
|
"$ref": "#/components/schemas/SiteType",
|
|
38960
40090
|
"description": "The currently applied type of the site. For example, frozen sites will have this set to Basic."
|
|
38961
40091
|
},
|
|
40092
|
+
"unpublishedBy": {
|
|
40093
|
+
"type": "string",
|
|
40094
|
+
"enum": [
|
|
40095
|
+
"user",
|
|
40096
|
+
"system"
|
|
40097
|
+
],
|
|
40098
|
+
"description": "Who unpublished this site last. Cleared when the site is published again."
|
|
40099
|
+
},
|
|
38962
40100
|
"title": {
|
|
38963
40101
|
"$ref": "#/components/schemas/SiteTitle"
|
|
38964
40102
|
},
|
|
@@ -40916,6 +42054,10 @@
|
|
|
40916
42054
|
"type": "boolean",
|
|
40917
42055
|
"description": "Whether the site section is draft and not live."
|
|
40918
42056
|
},
|
|
42057
|
+
"hidden": {
|
|
42058
|
+
"type": "boolean",
|
|
42059
|
+
"description": "Whether the site section is hidden. It is hidden when all of its site spaces are hidden, in which case it is not shown in the site's navigation."
|
|
42060
|
+
},
|
|
40919
42061
|
"path": {
|
|
40920
42062
|
"$ref": "#/components/schemas/SiteSectionPath"
|
|
40921
42063
|
},
|
|
@@ -40992,6 +42134,10 @@
|
|
|
40992
42134
|
"$ref": "#/components/schemas/SiteSection"
|
|
40993
42135
|
}
|
|
40994
42136
|
},
|
|
42137
|
+
"condition": {
|
|
42138
|
+
"description": "Conditional expression used to evaluate whether the site section group should be shown to the site's visitor.",
|
|
42139
|
+
"$ref": "#/components/schemas/Expression"
|
|
42140
|
+
},
|
|
40995
42141
|
"sectionGroup": {
|
|
40996
42142
|
"type": "string",
|
|
40997
42143
|
"description": "ID of the parent section group this group belongs to"
|
|
@@ -42806,97 +43952,6 @@
|
|
|
42806
43952
|
}
|
|
42807
43953
|
]
|
|
42808
43954
|
},
|
|
42809
|
-
"MigrateOrganizationParameters": {
|
|
42810
|
-
"type": "object",
|
|
42811
|
-
"properties": {
|
|
42812
|
-
"interval": {
|
|
42813
|
-
"description": "The desired billing interval",
|
|
42814
|
-
"$ref": "#/components/schemas/BillingInterval"
|
|
42815
|
-
},
|
|
42816
|
-
"product": {
|
|
42817
|
-
"type": "string",
|
|
42818
|
-
"description": "The new product to upgrade to",
|
|
42819
|
-
"enum": [
|
|
42820
|
-
"free_2024",
|
|
42821
|
-
"plus_2024",
|
|
42822
|
-
"pro_2024"
|
|
42823
|
-
]
|
|
42824
|
-
},
|
|
42825
|
-
"changes": {
|
|
42826
|
-
"$ref": "#/components/schemas/SubscriptionChanges"
|
|
42827
|
-
}
|
|
42828
|
-
},
|
|
42829
|
-
"required": [
|
|
42830
|
-
"product",
|
|
42831
|
-
"interval",
|
|
42832
|
-
"changes"
|
|
42833
|
-
]
|
|
42834
|
-
},
|
|
42835
|
-
"Error": {
|
|
42836
|
-
"type": "object",
|
|
42837
|
-
"required": [
|
|
42838
|
-
"error"
|
|
42839
|
-
],
|
|
42840
|
-
"properties": {
|
|
42841
|
-
"error": {
|
|
42842
|
-
"type": "object",
|
|
42843
|
-
"properties": {
|
|
42844
|
-
"code": {
|
|
42845
|
-
"type": "integer",
|
|
42846
|
-
"format": "int32"
|
|
42847
|
-
},
|
|
42848
|
-
"message": {
|
|
42849
|
-
"type": "string"
|
|
42850
|
-
}
|
|
42851
|
-
},
|
|
42852
|
-
"required": [
|
|
42853
|
-
"code",
|
|
42854
|
-
"message"
|
|
42855
|
-
]
|
|
42856
|
-
}
|
|
42857
|
-
}
|
|
42858
|
-
},
|
|
42859
|
-
"BillingDiscount": {
|
|
42860
|
-
"type": "object",
|
|
42861
|
-
"properties": {
|
|
42862
|
-
"duration": {
|
|
42863
|
-
"description": "How many months the discount will last",
|
|
42864
|
-
"type": "number"
|
|
42865
|
-
},
|
|
42866
|
-
"percentOff": {
|
|
42867
|
-
"description": "Percent that will be deducted from the subtotal of the invoice",
|
|
42868
|
-
"type": "number"
|
|
42869
|
-
}
|
|
42870
|
-
},
|
|
42871
|
-
"required": [
|
|
42872
|
-
"duration",
|
|
42873
|
-
"percentOff"
|
|
42874
|
-
]
|
|
42875
|
-
},
|
|
42876
|
-
"SitePageviews": {
|
|
42877
|
-
"type": "object",
|
|
42878
|
-
"properties": {
|
|
42879
|
-
"object": {
|
|
42880
|
-
"type": "string",
|
|
42881
|
-
"enum": [
|
|
42882
|
-
"site-pageviews"
|
|
42883
|
-
]
|
|
42884
|
-
},
|
|
42885
|
-
"siteId": {
|
|
42886
|
-
"type": "string",
|
|
42887
|
-
"description": "The identifier of the site"
|
|
42888
|
-
},
|
|
42889
|
-
"pageviews": {
|
|
42890
|
-
"description": "Number of pageviews in the past 30 days",
|
|
42891
|
-
"type": "number"
|
|
42892
|
-
}
|
|
42893
|
-
},
|
|
42894
|
-
"required": [
|
|
42895
|
-
"object",
|
|
42896
|
-
"siteId",
|
|
42897
|
-
"pageviews"
|
|
42898
|
-
]
|
|
42899
|
-
},
|
|
42900
43955
|
"BillingPortal": {
|
|
42901
43956
|
"type": "object",
|
|
42902
43957
|
"properties": {
|
|
@@ -43046,6 +44101,7 @@
|
|
|
43046
44101
|
"members-teams",
|
|
43047
44102
|
"members-team-owners",
|
|
43048
44103
|
"security-saml",
|
|
44104
|
+
"scim",
|
|
43049
44105
|
"change-requests-merge-rules"
|
|
43050
44106
|
]
|
|
43051
44107
|
},
|
|
@@ -43353,6 +44409,110 @@
|
|
|
43353
44409
|
"urls"
|
|
43354
44410
|
]
|
|
43355
44411
|
},
|
|
44412
|
+
"SCIMConnectionLabel": {
|
|
44413
|
+
"type": "string",
|
|
44414
|
+
"description": "Name of the SCIM connection, shown to organization admins.",
|
|
44415
|
+
"minLength": 1,
|
|
44416
|
+
"maxLength": 100
|
|
44417
|
+
},
|
|
44418
|
+
"SCIMConnectionProvider": {
|
|
44419
|
+
"type": "string",
|
|
44420
|
+
"description": "Identity provider that provisions members through the SCIM connection.",
|
|
44421
|
+
"enum": [
|
|
44422
|
+
"okta",
|
|
44423
|
+
"entra",
|
|
44424
|
+
"generic"
|
|
44425
|
+
]
|
|
44426
|
+
},
|
|
44427
|
+
"OrganizationSCIMConnection": {
|
|
44428
|
+
"type": "object",
|
|
44429
|
+
"description": "A SCIM connection through which an identity provider provisions organization members.",
|
|
44430
|
+
"properties": {
|
|
44431
|
+
"object": {
|
|
44432
|
+
"type": "string",
|
|
44433
|
+
"description": "The object type, which is always \"scim-connection\"",
|
|
44434
|
+
"enum": [
|
|
44435
|
+
"scim-connection"
|
|
44436
|
+
]
|
|
44437
|
+
},
|
|
44438
|
+
"id": {
|
|
44439
|
+
"type": "string",
|
|
44440
|
+
"description": "Unique identifier of the SCIM connection"
|
|
44441
|
+
},
|
|
44442
|
+
"label": {
|
|
44443
|
+
"$ref": "#/components/schemas/SCIMConnectionLabel"
|
|
44444
|
+
},
|
|
44445
|
+
"provider": {
|
|
44446
|
+
"$ref": "#/components/schemas/SCIMConnectionProvider"
|
|
44447
|
+
},
|
|
44448
|
+
"baseURL": {
|
|
44449
|
+
"description": "SCIM base URL to configure in the identity provider",
|
|
44450
|
+
"$ref": "#/components/schemas/URL"
|
|
44451
|
+
},
|
|
44452
|
+
"tokenHint": {
|
|
44453
|
+
"type": "string",
|
|
44454
|
+
"description": "Last characters of the current token, to identify it"
|
|
44455
|
+
},
|
|
44456
|
+
"tokenCreatedAt": {
|
|
44457
|
+
"description": "Date the current token was created",
|
|
44458
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
44459
|
+
},
|
|
44460
|
+
"lastUsedAt": {
|
|
44461
|
+
"description": "Date of the last request authenticated with the token",
|
|
44462
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
44463
|
+
},
|
|
44464
|
+
"createdAt": {
|
|
44465
|
+
"description": "Date of creation",
|
|
44466
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
44467
|
+
},
|
|
44468
|
+
"updatedAt": {
|
|
44469
|
+
"description": "Date of the last update",
|
|
44470
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
44471
|
+
},
|
|
44472
|
+
"urls": {
|
|
44473
|
+
"type": "object",
|
|
44474
|
+
"description": "URLs associated with the object",
|
|
44475
|
+
"properties": {
|
|
44476
|
+
"location": {
|
|
44477
|
+
"description": "URL of the SCIM connection in the API",
|
|
44478
|
+
"$ref": "#/components/schemas/URL"
|
|
44479
|
+
}
|
|
44480
|
+
},
|
|
44481
|
+
"required": [
|
|
44482
|
+
"location"
|
|
44483
|
+
]
|
|
44484
|
+
}
|
|
44485
|
+
},
|
|
44486
|
+
"required": [
|
|
44487
|
+
"object",
|
|
44488
|
+
"id",
|
|
44489
|
+
"label",
|
|
44490
|
+
"provider",
|
|
44491
|
+
"baseURL",
|
|
44492
|
+
"tokenHint",
|
|
44493
|
+
"tokenCreatedAt",
|
|
44494
|
+
"createdAt",
|
|
44495
|
+
"updatedAt",
|
|
44496
|
+
"urls"
|
|
44497
|
+
]
|
|
44498
|
+
},
|
|
44499
|
+
"OrganizationSCIMConnectionWithToken": {
|
|
44500
|
+
"description": "A SCIM connection with its token, returned only when the token is created.",
|
|
44501
|
+
"type": "object",
|
|
44502
|
+
"properties": {
|
|
44503
|
+
"connection": {
|
|
44504
|
+
"$ref": "#/components/schemas/OrganizationSCIMConnection"
|
|
44505
|
+
},
|
|
44506
|
+
"token": {
|
|
44507
|
+
"type": "string",
|
|
44508
|
+
"description": "Bearer token to configure in the identity provider. It can't be retrieved again."
|
|
44509
|
+
}
|
|
44510
|
+
},
|
|
44511
|
+
"required": [
|
|
44512
|
+
"connection",
|
|
44513
|
+
"token"
|
|
44514
|
+
]
|
|
44515
|
+
},
|
|
43356
44516
|
"OrganizationSSOProviderLogin": {
|
|
43357
44517
|
"type": "object",
|
|
43358
44518
|
"properties": {
|
|
@@ -43404,59 +44564,34 @@
|
|
|
43404
44564
|
"OrganizationUsageSites": {
|
|
43405
44565
|
"type": "object",
|
|
43406
44566
|
"description": "Sites usage metrics of an organization",
|
|
43407
|
-
"
|
|
43408
|
-
{
|
|
43409
|
-
"
|
|
43410
|
-
|
|
43411
|
-
"description": "Count of all sites",
|
|
43412
|
-
"type": "number"
|
|
43413
|
-
},
|
|
43414
|
-
"legacyBasic": {
|
|
43415
|
-
"description": "Count of all legacy basic sites",
|
|
43416
|
-
"type": "number"
|
|
43417
|
-
},
|
|
43418
|
-
"legacyPremium": {
|
|
43419
|
-
"description": "Count of all legacy premium sites",
|
|
43420
|
-
"type": "number"
|
|
43421
|
-
}
|
|
43422
|
-
},
|
|
43423
|
-
"required": [
|
|
43424
|
-
"total",
|
|
43425
|
-
"legacyBasic",
|
|
43426
|
-
"legacyPremium"
|
|
43427
|
-
]
|
|
44567
|
+
"properties": {
|
|
44568
|
+
"total": {
|
|
44569
|
+
"description": "Count of all sites",
|
|
44570
|
+
"type": "number"
|
|
43428
44571
|
},
|
|
43429
|
-
{
|
|
43430
|
-
"
|
|
43431
|
-
|
|
43432
|
-
|
|
43433
|
-
|
|
43434
|
-
|
|
43435
|
-
|
|
43436
|
-
|
|
43437
|
-
|
|
43438
|
-
|
|
43439
|
-
|
|
43440
|
-
|
|
43441
|
-
|
|
43442
|
-
|
|
43443
|
-
|
|
43444
|
-
"description": "Count of all ultimate sites",
|
|
43445
|
-
"type": "number"
|
|
43446
|
-
},
|
|
43447
|
-
"sponsored": {
|
|
43448
|
-
"description": "Count of all sponsored sites",
|
|
43449
|
-
"type": "number"
|
|
43450
|
-
}
|
|
43451
|
-
},
|
|
43452
|
-
"required": [
|
|
43453
|
-
"total",
|
|
43454
|
-
"basic",
|
|
43455
|
-
"premium",
|
|
43456
|
-
"ultimate",
|
|
43457
|
-
"sponsored"
|
|
43458
|
-
]
|
|
44572
|
+
"basic": {
|
|
44573
|
+
"description": "Count of all basic sites",
|
|
44574
|
+
"type": "number"
|
|
44575
|
+
},
|
|
44576
|
+
"premium": {
|
|
44577
|
+
"description": "Count of all premium sites",
|
|
44578
|
+
"type": "number"
|
|
44579
|
+
},
|
|
44580
|
+
"ultimate": {
|
|
44581
|
+
"description": "Count of all ultimate sites",
|
|
44582
|
+
"type": "number"
|
|
44583
|
+
},
|
|
44584
|
+
"sponsored": {
|
|
44585
|
+
"description": "Count of all sponsored sites",
|
|
44586
|
+
"type": "number"
|
|
43459
44587
|
}
|
|
44588
|
+
},
|
|
44589
|
+
"required": [
|
|
44590
|
+
"total",
|
|
44591
|
+
"basic",
|
|
44592
|
+
"premium",
|
|
44593
|
+
"ultimate",
|
|
44594
|
+
"sponsored"
|
|
43460
44595
|
]
|
|
43461
44596
|
},
|
|
43462
44597
|
"OrganizationUsageTeams": {
|
|
@@ -43477,11 +44612,35 @@
|
|
|
43477
44612
|
"description": "Members usage metrics of an organization",
|
|
43478
44613
|
"properties": {
|
|
43479
44614
|
"total": {
|
|
43480
|
-
"description": "Count of all members",
|
|
44615
|
+
"description": "Count of all members, including disabled ones",
|
|
43481
44616
|
"type": "number"
|
|
43482
44617
|
},
|
|
44618
|
+
"active": {
|
|
44619
|
+
"description": "Count of members that are not disabled",
|
|
44620
|
+
"type": "number"
|
|
44621
|
+
},
|
|
44622
|
+
"disabled": {
|
|
44623
|
+
"description": "Count of disabled members, by the reason they are disabled",
|
|
44624
|
+
"type": "object",
|
|
44625
|
+
"properties": {
|
|
44626
|
+
"billing": {
|
|
44627
|
+
"type": "number"
|
|
44628
|
+
},
|
|
44629
|
+
"scim": {
|
|
44630
|
+
"type": "number"
|
|
44631
|
+
},
|
|
44632
|
+
"admin": {
|
|
44633
|
+
"type": "number"
|
|
44634
|
+
}
|
|
44635
|
+
},
|
|
44636
|
+
"required": [
|
|
44637
|
+
"billing",
|
|
44638
|
+
"scim",
|
|
44639
|
+
"admin"
|
|
44640
|
+
]
|
|
44641
|
+
},
|
|
43483
44642
|
"seats": {
|
|
43484
|
-
"description": "Count of
|
|
44643
|
+
"description": "Count of paid seats. On the Free plan, it includes members disabled for billing, since\nupgrading re-enables them. On paid plans, it only includes active members.\n",
|
|
43485
44644
|
"type": "number"
|
|
43486
44645
|
},
|
|
43487
44646
|
"admin": {
|
|
@@ -43515,6 +44674,8 @@
|
|
|
43515
44674
|
},
|
|
43516
44675
|
"required": [
|
|
43517
44676
|
"total",
|
|
44677
|
+
"active",
|
|
44678
|
+
"disabled",
|
|
43518
44679
|
"seats",
|
|
43519
44680
|
"admin",
|
|
43520
44681
|
"create",
|
|
@@ -44115,7 +45276,8 @@
|
|
|
44115
45276
|
"enum": [
|
|
44116
45277
|
"pending",
|
|
44117
45278
|
"running",
|
|
44118
|
-
"completed"
|
|
45279
|
+
"completed",
|
|
45280
|
+
"failed"
|
|
44119
45281
|
]
|
|
44120
45282
|
},
|
|
44121
45283
|
"TranslationSource": {
|
|
@@ -45069,6 +46231,30 @@
|
|
|
45069
46231
|
}
|
|
45070
46232
|
]
|
|
45071
46233
|
},
|
|
46234
|
+
"Error": {
|
|
46235
|
+
"type": "object",
|
|
46236
|
+
"required": [
|
|
46237
|
+
"error"
|
|
46238
|
+
],
|
|
46239
|
+
"properties": {
|
|
46240
|
+
"error": {
|
|
46241
|
+
"type": "object",
|
|
46242
|
+
"properties": {
|
|
46243
|
+
"code": {
|
|
46244
|
+
"type": "integer",
|
|
46245
|
+
"format": "int32"
|
|
46246
|
+
},
|
|
46247
|
+
"message": {
|
|
46248
|
+
"type": "string"
|
|
46249
|
+
}
|
|
46250
|
+
},
|
|
46251
|
+
"required": [
|
|
46252
|
+
"code",
|
|
46253
|
+
"message"
|
|
46254
|
+
]
|
|
46255
|
+
}
|
|
46256
|
+
}
|
|
46257
|
+
},
|
|
45072
46258
|
"SiteAdaptiveRegions": {
|
|
45073
46259
|
"type": "object",
|
|
45074
46260
|
"description": "Groups of countries exposed to adaptive content as `visitor.region`. The key of each entry is the region name; `visitor.region` is undefined for a visitor whose country is in none of the regions. A site can declare at most 10 regions.",
|
|
@@ -46206,6 +47392,10 @@
|
|
|
46206
47392
|
"primaryColor": {
|
|
46207
47393
|
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
46208
47394
|
},
|
|
47395
|
+
"secondaryColor": {
|
|
47396
|
+
"description": "Secondary brand color, used for secondary buttons and for content colored with `$secondary`. When not set, these elements use the neutral colors of the site.",
|
|
47397
|
+
"$ref": "#/components/schemas/CustomizationThemedColor"
|
|
47398
|
+
},
|
|
46209
47399
|
"tint": {
|
|
46210
47400
|
"$ref": "#/components/schemas/CustomizationTint"
|
|
46211
47401
|
},
|
|
@@ -46625,6 +47815,49 @@
|
|
|
46625
47815
|
"scripts"
|
|
46626
47816
|
]
|
|
46627
47817
|
},
|
|
47818
|
+
"SiteSetupStepId": {
|
|
47819
|
+
"type": "string",
|
|
47820
|
+
"description": "A step of the setup of a site, in the order they are done.",
|
|
47821
|
+
"enum": [
|
|
47822
|
+
"first-edit",
|
|
47823
|
+
"customize",
|
|
47824
|
+
"git-sync",
|
|
47825
|
+
"domain",
|
|
47826
|
+
"publish"
|
|
47827
|
+
]
|
|
47828
|
+
},
|
|
47829
|
+
"SiteSetup": {
|
|
47830
|
+
"type": "object",
|
|
47831
|
+
"description": "Steps to set up a site, each completed or not from the site's current data.",
|
|
47832
|
+
"properties": {
|
|
47833
|
+
"steps": {
|
|
47834
|
+
"type": "array",
|
|
47835
|
+
"description": "Every setup step, in order. Empty once the site has been published, which ends the setup even if other steps are not completed.",
|
|
47836
|
+
"items": {
|
|
47837
|
+
"type": "object",
|
|
47838
|
+
"properties": {
|
|
47839
|
+
"id": {
|
|
47840
|
+
"$ref": "#/components/schemas/SiteSetupStepId"
|
|
47841
|
+
},
|
|
47842
|
+
"completed": {
|
|
47843
|
+
"type": "boolean"
|
|
47844
|
+
},
|
|
47845
|
+
"action": {
|
|
47846
|
+
"type": "string",
|
|
47847
|
+
"description": "How to complete the step. Only present when it is not completed."
|
|
47848
|
+
}
|
|
47849
|
+
},
|
|
47850
|
+
"required": [
|
|
47851
|
+
"id",
|
|
47852
|
+
"completed"
|
|
47853
|
+
]
|
|
47854
|
+
}
|
|
47855
|
+
}
|
|
47856
|
+
},
|
|
47857
|
+
"required": [
|
|
47858
|
+
"steps"
|
|
47859
|
+
]
|
|
47860
|
+
},
|
|
46628
47861
|
"SiteChangeRequestMemberStatus": {
|
|
46629
47862
|
"type": "string",
|
|
46630
47863
|
"description": "Whether the member is part of the change request, or a tombstone kept so that a member removed and later re-added keeps its identity, comments and history.",
|
|
@@ -47862,6 +49095,25 @@
|
|
|
47862
49095
|
"high"
|
|
47863
49096
|
]
|
|
47864
49097
|
},
|
|
49098
|
+
"SiteFindingAutoResolution": {
|
|
49099
|
+
"type": "string",
|
|
49100
|
+
"description": "What GitBook did on its own to resolve a finding.\n - `drafted` drafted a fix that waits for approval.\n - `applied` has its fix live, applied on its own or approved from a draft, resolving the finding.\n - `undone` had its fix undone or rejected, so GitBook won't try again.\n",
|
|
49101
|
+
"enum": [
|
|
49102
|
+
"drafted",
|
|
49103
|
+
"applied",
|
|
49104
|
+
"undone"
|
|
49105
|
+
]
|
|
49106
|
+
},
|
|
49107
|
+
"SiteFindingState": {
|
|
49108
|
+
"type": "string",
|
|
49109
|
+
"description": "Where a link finding stands, from its status and what GitBook did with it.\n - `open` needs a fix.\n - `awaiting-approval` has a fix GitBook drafted, waiting to be approved or rejected: a redirect at a `broken-link` finding's path, or an unmerged change request for an `outbound-link-error` finding (`awaitingChangeRequest`).\n - `resolved` was fixed or closed: `servingRedirect` says whether a live redirect serves its path.\n - `ignored` was dismissed.\n",
|
|
49110
|
+
"enum": [
|
|
49111
|
+
"open",
|
|
49112
|
+
"awaiting-approval",
|
|
49113
|
+
"resolved",
|
|
49114
|
+
"ignored"
|
|
49115
|
+
]
|
|
49116
|
+
},
|
|
47865
49117
|
"SiteTriageFilterQuestions": {
|
|
47866
49118
|
"type": "string",
|
|
47867
49119
|
"description": "Findings source filter matching evidence coming from site questions.\n",
|
|
@@ -47890,6 +49142,89 @@
|
|
|
47890
49142
|
"description": "Short finding title",
|
|
47891
49143
|
"maxLength": 256
|
|
47892
49144
|
},
|
|
49145
|
+
"SiteFindingServingRedirect": {
|
|
49146
|
+
"type": "object",
|
|
49147
|
+
"title": "Serving redirect",
|
|
49148
|
+
"description": "The live redirect serving a `broken-link` finding's path.",
|
|
49149
|
+
"properties": {
|
|
49150
|
+
"redirect": {
|
|
49151
|
+
"type": "string",
|
|
49152
|
+
"description": "ID of the redirect."
|
|
49153
|
+
},
|
|
49154
|
+
"wildcard": {
|
|
49155
|
+
"type": "boolean",
|
|
49156
|
+
"description": "Whether a wildcard redirect covers the path rather than one at the path itself. Reopening the finding would delete it, so `reopen` isn't offered."
|
|
49157
|
+
},
|
|
49158
|
+
"createdByAgent": {
|
|
49159
|
+
"type": "boolean",
|
|
49160
|
+
"description": "Whether GitBook created the redirect on its own."
|
|
49161
|
+
}
|
|
49162
|
+
},
|
|
49163
|
+
"required": [
|
|
49164
|
+
"redirect",
|
|
49165
|
+
"wildcard",
|
|
49166
|
+
"createdByAgent"
|
|
49167
|
+
]
|
|
49168
|
+
},
|
|
49169
|
+
"SiteFindingAwaitingChangeRequest": {
|
|
49170
|
+
"type": "object",
|
|
49171
|
+
"title": "Awaiting change request",
|
|
49172
|
+
"description": "The change request GitBook drafted to fix an `outbound-link-error` finding, waiting to be approved or rejected. Approving it means merging it. Reject it with `applySiteFindingAction`.",
|
|
49173
|
+
"properties": {
|
|
49174
|
+
"space": {
|
|
49175
|
+
"type": "string",
|
|
49176
|
+
"description": "ID of the space the change request is in."
|
|
49177
|
+
},
|
|
49178
|
+
"changeRequest": {
|
|
49179
|
+
"type": "string",
|
|
49180
|
+
"description": "ID of the change request."
|
|
49181
|
+
},
|
|
49182
|
+
"findings": {
|
|
49183
|
+
"type": "number",
|
|
49184
|
+
"description": "Number of open outbound links on the site the change request fixes."
|
|
49185
|
+
}
|
|
49186
|
+
},
|
|
49187
|
+
"required": [
|
|
49188
|
+
"space",
|
|
49189
|
+
"changeRequest",
|
|
49190
|
+
"findings"
|
|
49191
|
+
]
|
|
49192
|
+
},
|
|
49193
|
+
"SiteFindingAction": {
|
|
49194
|
+
"type": "string",
|
|
49195
|
+
"description": "An action that moves a finding to another state. A finding's `actions` lists the ones it allows.\n - `approve` makes the redirect GitBook drafted for a broken link live, which resolves the finding. A change request GitBook drafted for an outbound link is approved by merging it.\n - `reject` deletes the redirect GitBook drafted for a broken link; the finding stays open and GitBook won't draft a fix for it again. For an outbound link, it archives the change request GitBook drafted (`awaitingChangeRequest`) and unlinks every link it fixes. They are open again, marked `undone`, and GitBook won't draft a fix for them again.\n - `create-redirect` creates a redirect for a broken link's path with `createSiteRedirect`, prefilled with the suggestion; it resolves the finding.\n - `mark-resolved` resolves it. A broken link resolved this way has no redirect: visitors still get a 404.\n - `reopen` reopens a resolved finding. For a broken link, it deletes the live redirect at its path; for a fix GitBook applied, this undoes the fix and GitBook won't fix the link again.\n - `ignore` dismisses it.\n - `restore` reopens a dismissed finding.\n",
|
|
49196
|
+
"enum": [
|
|
49197
|
+
"approve",
|
|
49198
|
+
"reject",
|
|
49199
|
+
"create-redirect",
|
|
49200
|
+
"mark-resolved",
|
|
49201
|
+
"reopen",
|
|
49202
|
+
"ignore",
|
|
49203
|
+
"restore"
|
|
49204
|
+
]
|
|
49205
|
+
},
|
|
49206
|
+
"SiteFindingAvailableAction": {
|
|
49207
|
+
"type": "object",
|
|
49208
|
+
"title": "Available action",
|
|
49209
|
+
"description": "An action a finding allows now, with the site permission it needs.",
|
|
49210
|
+
"properties": {
|
|
49211
|
+
"action": {
|
|
49212
|
+
"$ref": "#/components/schemas/SiteFindingAction"
|
|
49213
|
+
},
|
|
49214
|
+
"permission": {
|
|
49215
|
+
"type": "string",
|
|
49216
|
+
"description": "Site permission the action needs.",
|
|
49217
|
+
"enum": [
|
|
49218
|
+
"edit",
|
|
49219
|
+
"admin"
|
|
49220
|
+
]
|
|
49221
|
+
}
|
|
49222
|
+
},
|
|
49223
|
+
"required": [
|
|
49224
|
+
"action",
|
|
49225
|
+
"permission"
|
|
49226
|
+
]
|
|
49227
|
+
},
|
|
47893
49228
|
"SiteRedirectSourcePath": {
|
|
47894
49229
|
"type": "string",
|
|
47895
49230
|
"description": "The source path to redirect from.",
|
|
@@ -47941,16 +49276,20 @@
|
|
|
47941
49276
|
},
|
|
47942
49277
|
"SiteFindingOutboundLink": {
|
|
47943
49278
|
"type": "object",
|
|
47944
|
-
"description": "Details of an `outbound-link-error` finding: the failing external URL and the observed failure, sourced from the site's outbound link checks. Absent on findings of any other type.",
|
|
49279
|
+
"description": "Details of an `outbound-link-error` finding: the failing external URL, or the domain when it doesn't resolve, and the observed failure, sourced from the site's outbound link checks. A resolved finding has either `url` or `host` and no other field. Absent on findings of any other type.",
|
|
47945
49280
|
"properties": {
|
|
47946
49281
|
"url": {
|
|
47947
49282
|
"type": "string",
|
|
47948
49283
|
"format": "uri",
|
|
47949
|
-
"description": "The external URL that fails
|
|
49284
|
+
"description": "The external URL that fails. Absent when `host` is set."
|
|
49285
|
+
},
|
|
49286
|
+
"host": {
|
|
49287
|
+
"type": "string",
|
|
49288
|
+
"description": "The domain that doesn't resolve, set instead of `url` when the finding covers every link to that domain on the site."
|
|
47950
49289
|
},
|
|
47951
49290
|
"status": {
|
|
47952
49291
|
"type": "string",
|
|
47953
|
-
"description": "Current health status of the URL for this site.",
|
|
49292
|
+
"description": "Current health status of the URL or domain for this site.",
|
|
47954
49293
|
"enum": [
|
|
47955
49294
|
"pending",
|
|
47956
49295
|
"healthy",
|
|
@@ -47979,13 +49318,9 @@
|
|
|
47979
49318
|
},
|
|
47980
49319
|
"checkedAt": {
|
|
47981
49320
|
"$ref": "#/components/schemas/Timestamp",
|
|
47982
|
-
"description": "When the URL was last observed
|
|
49321
|
+
"description": "When the URL or domain was last observed."
|
|
47983
49322
|
}
|
|
47984
|
-
}
|
|
47985
|
-
"required": [
|
|
47986
|
-
"url",
|
|
47987
|
-
"status"
|
|
47988
|
-
]
|
|
49323
|
+
}
|
|
47989
49324
|
},
|
|
47990
49325
|
"SiteFinding": {
|
|
47991
49326
|
"type": "object",
|
|
@@ -48046,6 +49381,33 @@
|
|
|
48046
49381
|
"type": "boolean",
|
|
48047
49382
|
"description": "Whether an AI agent should be able to fix this finding directly"
|
|
48048
49383
|
},
|
|
49384
|
+
"autoResolution": {
|
|
49385
|
+
"description": "What GitBook did on its own to resolve the finding. Null when it never acted on the finding.",
|
|
49386
|
+
"oneOf": [
|
|
49387
|
+
{
|
|
49388
|
+
"$ref": "#/components/schemas/SiteFindingAutoResolution"
|
|
49389
|
+
},
|
|
49390
|
+
{
|
|
49391
|
+
"type": "null"
|
|
49392
|
+
}
|
|
49393
|
+
]
|
|
49394
|
+
},
|
|
49395
|
+
"state": {
|
|
49396
|
+
"$ref": "#/components/schemas/SiteFindingState"
|
|
49397
|
+
},
|
|
49398
|
+
"servingRedirect": {
|
|
49399
|
+
"$ref": "#/components/schemas/SiteFindingServingRedirect"
|
|
49400
|
+
},
|
|
49401
|
+
"awaitingChangeRequest": {
|
|
49402
|
+
"$ref": "#/components/schemas/SiteFindingAwaitingChangeRequest"
|
|
49403
|
+
},
|
|
49404
|
+
"actions": {
|
|
49405
|
+
"type": "array",
|
|
49406
|
+
"description": "Actions the finding allows now, applied with `applySiteFindingAction`.",
|
|
49407
|
+
"items": {
|
|
49408
|
+
"$ref": "#/components/schemas/SiteFindingAvailableAction"
|
|
49409
|
+
}
|
|
49410
|
+
},
|
|
48049
49411
|
"brokenLinkAction": {
|
|
48050
49412
|
"$ref": "#/components/schemas/SiteFindingBrokenLinkAction"
|
|
48051
49413
|
},
|
|
@@ -48088,6 +49450,7 @@
|
|
|
48088
49450
|
"severity",
|
|
48089
49451
|
"description",
|
|
48090
49452
|
"autoFixable",
|
|
49453
|
+
"autoResolution",
|
|
48091
49454
|
"createdAt",
|
|
48092
49455
|
"updatedAt",
|
|
48093
49456
|
"urls"
|
|
@@ -48237,6 +49600,30 @@
|
|
|
48237
49600
|
"type": "number"
|
|
48238
49601
|
}
|
|
48239
49602
|
},
|
|
49603
|
+
"SiteQuestionStatsVisitorTypes": {
|
|
49604
|
+
"type": "object",
|
|
49605
|
+
"description": "Count of answers by visitor type.",
|
|
49606
|
+
"properties": {
|
|
49607
|
+
"human": {
|
|
49608
|
+
"type": "number"
|
|
49609
|
+
},
|
|
49610
|
+
"agent": {
|
|
49611
|
+
"type": "number"
|
|
49612
|
+
},
|
|
49613
|
+
"bot": {
|
|
49614
|
+
"type": "number"
|
|
49615
|
+
},
|
|
49616
|
+
"unknown": {
|
|
49617
|
+
"type": "number"
|
|
49618
|
+
}
|
|
49619
|
+
},
|
|
49620
|
+
"required": [
|
|
49621
|
+
"human",
|
|
49622
|
+
"agent",
|
|
49623
|
+
"bot",
|
|
49624
|
+
"unknown"
|
|
49625
|
+
]
|
|
49626
|
+
},
|
|
48240
49627
|
"SiteQuestionStats": {
|
|
48241
49628
|
"type": "object",
|
|
48242
49629
|
"description": "Aggregated stats for questions and linked answers.",
|
|
@@ -48267,6 +49654,9 @@
|
|
|
48267
49654
|
"channels": {
|
|
48268
49655
|
"$ref": "#/components/schemas/SiteQuestionStatsChannels"
|
|
48269
49656
|
},
|
|
49657
|
+
"visitorTypes": {
|
|
49658
|
+
"$ref": "#/components/schemas/SiteQuestionStatsVisitorTypes"
|
|
49659
|
+
},
|
|
48270
49660
|
"weeklyPulse": {
|
|
48271
49661
|
"type": "array",
|
|
48272
49662
|
"minItems": 13,
|
|
@@ -48286,6 +49676,7 @@
|
|
|
48286
49676
|
"types",
|
|
48287
49677
|
"channelTypes",
|
|
48288
49678
|
"channels",
|
|
49679
|
+
"visitorTypes",
|
|
48289
49680
|
"weeklyPulse"
|
|
48290
49681
|
]
|
|
48291
49682
|
},
|
|
@@ -49232,6 +50623,16 @@
|
|
|
49232
50623
|
}
|
|
49233
50624
|
]
|
|
49234
50625
|
},
|
|
50626
|
+
"SiteQuestionVisitorType": {
|
|
50627
|
+
"type": "string",
|
|
50628
|
+
"description": "Who asked the question: `human` for a person using a web browser, `agent` for an AI agent, `bot` for another automated client that names itself, such as a search engine crawler, and `unknown` when it can't be told, such as for a script calling the API.",
|
|
50629
|
+
"enum": [
|
|
50630
|
+
"human",
|
|
50631
|
+
"agent",
|
|
50632
|
+
"bot",
|
|
50633
|
+
"unknown"
|
|
50634
|
+
]
|
|
50635
|
+
},
|
|
49235
50636
|
"SiteQuestionAnswerResolution": {
|
|
49236
50637
|
"type": "string",
|
|
49237
50638
|
"description": "Whether the response answered the question.",
|
|
@@ -49487,6 +50888,53 @@
|
|
|
49487
50888
|
"propertyName": "type"
|
|
49488
50889
|
}
|
|
49489
50890
|
},
|
|
50891
|
+
"SiteQuestionTimelineInterval": {
|
|
50892
|
+
"type": "string",
|
|
50893
|
+
"description": "Size of a timeline bucket. Weeks start on Sunday, and every bucket is in UTC.",
|
|
50894
|
+
"enum": [
|
|
50895
|
+
"hour",
|
|
50896
|
+
"day",
|
|
50897
|
+
"week",
|
|
50898
|
+
"month"
|
|
50899
|
+
]
|
|
50900
|
+
},
|
|
50901
|
+
"SiteQuestionTimelineBucket": {
|
|
50902
|
+
"type": "object",
|
|
50903
|
+
"properties": {
|
|
50904
|
+
"time": {
|
|
50905
|
+
"description": "Start of the bucket.",
|
|
50906
|
+
"$ref": "#/components/schemas/Timestamp"
|
|
50907
|
+
},
|
|
50908
|
+
"answers": {
|
|
50909
|
+
"type": "number",
|
|
50910
|
+
"description": "Count of answers given during the bucket."
|
|
50911
|
+
},
|
|
50912
|
+
"visitors": {
|
|
50913
|
+
"type": "number",
|
|
50914
|
+
"description": "Count of distinct visitors who received those answers."
|
|
50915
|
+
}
|
|
50916
|
+
},
|
|
50917
|
+
"required": [
|
|
50918
|
+
"time",
|
|
50919
|
+
"answers",
|
|
50920
|
+
"visitors"
|
|
50921
|
+
]
|
|
50922
|
+
},
|
|
50923
|
+
"SiteQuestionTimeline": {
|
|
50924
|
+
"type": "object",
|
|
50925
|
+
"description": "Ask AI answers counted per bucket, oldest first.",
|
|
50926
|
+
"properties": {
|
|
50927
|
+
"items": {
|
|
50928
|
+
"type": "array",
|
|
50929
|
+
"items": {
|
|
50930
|
+
"$ref": "#/components/schemas/SiteQuestionTimelineBucket"
|
|
50931
|
+
}
|
|
50932
|
+
}
|
|
50933
|
+
},
|
|
50934
|
+
"required": [
|
|
50935
|
+
"items"
|
|
50936
|
+
]
|
|
50937
|
+
},
|
|
49490
50938
|
"SiteQuestionAnswerHelpfulness": {
|
|
49491
50939
|
"type": "string",
|
|
49492
50940
|
"description": "Helpfulness of the response for the end user need.",
|
|
@@ -49636,6 +51084,9 @@
|
|
|
49636
51084
|
}
|
|
49637
51085
|
]
|
|
49638
51086
|
},
|
|
51087
|
+
"visitorType": {
|
|
51088
|
+
"$ref": "#/components/schemas/SiteQuestionVisitorType"
|
|
51089
|
+
},
|
|
49639
51090
|
"createdAt": {
|
|
49640
51091
|
"$ref": "#/components/schemas/Timestamp"
|
|
49641
51092
|
},
|
|
@@ -49669,6 +51120,7 @@
|
|
|
49669
51120
|
"helpfulness",
|
|
49670
51121
|
"relevance",
|
|
49671
51122
|
"channel",
|
|
51123
|
+
"visitorType",
|
|
49672
51124
|
"createdAt",
|
|
49673
51125
|
"urls"
|
|
49674
51126
|
]
|
|
@@ -50459,6 +51911,30 @@
|
|
|
50459
51911
|
"reason"
|
|
50460
51912
|
]
|
|
50461
51913
|
},
|
|
51914
|
+
"AIToolCallMergeChangeRequest": {
|
|
51915
|
+
"type": "object",
|
|
51916
|
+
"properties": {
|
|
51917
|
+
"tool": {
|
|
51918
|
+
"type": "string",
|
|
51919
|
+
"enum": [
|
|
51920
|
+
"mergeChangeRequest"
|
|
51921
|
+
]
|
|
51922
|
+
},
|
|
51923
|
+
"spaceId": {
|
|
51924
|
+
"type": "string",
|
|
51925
|
+
"description": "The ID of the space the change request belongs to."
|
|
51926
|
+
},
|
|
51927
|
+
"changeRequestId": {
|
|
51928
|
+
"type": "string",
|
|
51929
|
+
"description": "The ID of the change request that was merged."
|
|
51930
|
+
}
|
|
51931
|
+
},
|
|
51932
|
+
"required": [
|
|
51933
|
+
"tool",
|
|
51934
|
+
"spaceId",
|
|
51935
|
+
"changeRequestId"
|
|
51936
|
+
]
|
|
51937
|
+
},
|
|
50462
51938
|
"AIToolCallComment": {
|
|
50463
51939
|
"type": "object",
|
|
50464
51940
|
"properties": {
|
|
@@ -50667,6 +52143,72 @@
|
|
|
50667
52143
|
"totalPages"
|
|
50668
52144
|
]
|
|
50669
52145
|
},
|
|
52146
|
+
"AIToolCallImportOpenAPISpec": {
|
|
52147
|
+
"type": "object",
|
|
52148
|
+
"properties": {
|
|
52149
|
+
"tool": {
|
|
52150
|
+
"type": "string",
|
|
52151
|
+
"enum": [
|
|
52152
|
+
"importOpenAPISpec"
|
|
52153
|
+
]
|
|
52154
|
+
},
|
|
52155
|
+
"spaceId": {
|
|
52156
|
+
"type": "string",
|
|
52157
|
+
"description": "The ID of the space the API reference is added to."
|
|
52158
|
+
},
|
|
52159
|
+
"changeRequestId": {
|
|
52160
|
+
"type": "string",
|
|
52161
|
+
"description": "The ID of the change request the API reference is added to."
|
|
52162
|
+
},
|
|
52163
|
+
"specSlug": {
|
|
52164
|
+
"type": "string",
|
|
52165
|
+
"description": "The slug of the OpenAPI spec the reference is generated from."
|
|
52166
|
+
},
|
|
52167
|
+
"url": {
|
|
52168
|
+
"type": "string",
|
|
52169
|
+
"description": "The URL the spec is imported from, when importing from a URL."
|
|
52170
|
+
},
|
|
52171
|
+
"file": {
|
|
52172
|
+
"type": "string",
|
|
52173
|
+
"description": "Name of the attached file the spec is imported from, when importing a file."
|
|
52174
|
+
}
|
|
52175
|
+
},
|
|
52176
|
+
"required": [
|
|
52177
|
+
"tool",
|
|
52178
|
+
"spaceId",
|
|
52179
|
+
"changeRequestId",
|
|
52180
|
+
"specSlug"
|
|
52181
|
+
]
|
|
52182
|
+
},
|
|
52183
|
+
"AIToolCallSiteSetupStep": {
|
|
52184
|
+
"type": "object",
|
|
52185
|
+
"properties": {
|
|
52186
|
+
"tool": {
|
|
52187
|
+
"type": "string",
|
|
52188
|
+
"enum": [
|
|
52189
|
+
"siteSetupStep"
|
|
52190
|
+
]
|
|
52191
|
+
},
|
|
52192
|
+
"step": {
|
|
52193
|
+
"$ref": "#/components/schemas/SiteSetupStepId"
|
|
52194
|
+
},
|
|
52195
|
+
"status": {
|
|
52196
|
+
"type": "string",
|
|
52197
|
+
"description": "Where the setup step stands in the conversation.\n* `current`: The step is being worked on.\n* `done`: The step is completed.\n* `skipped`: The user skipped the step.\n* `pending`: The step is not started: it waits again after the user went back to an earlier step.\n",
|
|
52198
|
+
"enum": [
|
|
52199
|
+
"current",
|
|
52200
|
+
"done",
|
|
52201
|
+
"skipped",
|
|
52202
|
+
"pending"
|
|
52203
|
+
]
|
|
52204
|
+
}
|
|
52205
|
+
},
|
|
52206
|
+
"required": [
|
|
52207
|
+
"tool",
|
|
52208
|
+
"step",
|
|
52209
|
+
"status"
|
|
52210
|
+
]
|
|
52211
|
+
},
|
|
50670
52212
|
"AIToolCallStartBackgroundAgent": {
|
|
50671
52213
|
"type": "object",
|
|
50672
52214
|
"description": "Tool call recording that the agent started a background agent: a child conversation running one bounded task on its own, in parallel with the conversation that started it. The client renders its live status from `AgentState.backgroundAgents`, matched on `agentId`, and can open the child conversation to read what it did.\n",
|
|
@@ -50845,6 +52387,9 @@
|
|
|
50845
52387
|
{
|
|
50846
52388
|
"$ref": "#/components/schemas/AIToolCallArchiveChangeRequest"
|
|
50847
52389
|
},
|
|
52390
|
+
{
|
|
52391
|
+
"$ref": "#/components/schemas/AIToolCallMergeChangeRequest"
|
|
52392
|
+
},
|
|
50848
52393
|
{
|
|
50849
52394
|
"$ref": "#/components/schemas/AIToolCallComment"
|
|
50850
52395
|
},
|
|
@@ -50863,6 +52408,12 @@
|
|
|
50863
52408
|
{
|
|
50864
52409
|
"$ref": "#/components/schemas/AIToolCallCheckContentImport"
|
|
50865
52410
|
},
|
|
52411
|
+
{
|
|
52412
|
+
"$ref": "#/components/schemas/AIToolCallImportOpenAPISpec"
|
|
52413
|
+
},
|
|
52414
|
+
{
|
|
52415
|
+
"$ref": "#/components/schemas/AIToolCallSiteSetupStep"
|
|
52416
|
+
},
|
|
50866
52417
|
{
|
|
50867
52418
|
"$ref": "#/components/schemas/AIToolCallStartBackgroundAgent"
|
|
50868
52419
|
},
|
|
@@ -51265,6 +52816,10 @@
|
|
|
51265
52816
|
"type": "string",
|
|
51266
52817
|
"format": "date-time",
|
|
51267
52818
|
"description": "When the message was added to the conversation. Absent on messages recorded before this field existed.\n"
|
|
52819
|
+
},
|
|
52820
|
+
"clientMessageId": {
|
|
52821
|
+
"type": "string",
|
|
52822
|
+
"description": "The identifier the client gave the message when it sent it. Absent on messages the agent wrote, and on messages sent without one.\n"
|
|
51268
52823
|
}
|
|
51269
52824
|
},
|
|
51270
52825
|
"required": [
|
|
@@ -51531,8 +53086,7 @@
|
|
|
51531
53086
|
"$ref": "#/components/schemas/UserSitePermissionOrigin"
|
|
51532
53087
|
},
|
|
51533
53088
|
"disabled": {
|
|
51534
|
-
"
|
|
51535
|
-
"description": "Whether the user is disabled"
|
|
53089
|
+
"$ref": "#/components/schemas/MemberDisabled"
|
|
51536
53090
|
},
|
|
51537
53091
|
"lastSeenAt": {
|
|
51538
53092
|
"description": "Date at which the user was last seen",
|
|
@@ -51604,6 +53158,11 @@
|
|
|
51604
53158
|
"items": {
|
|
51605
53159
|
"$ref": "#/components/schemas/AIAttachment"
|
|
51606
53160
|
}
|
|
53161
|
+
},
|
|
53162
|
+
"clientMessageId": {
|
|
53163
|
+
"type": "string",
|
|
53164
|
+
"maxLength": 64,
|
|
53165
|
+
"description": "Identifier the client gives the message it sends, echoed on the message the agent adds to the conversation, so the client can tell its own message apart from any other.\n"
|
|
51607
53166
|
}
|
|
51608
53167
|
},
|
|
51609
53168
|
"required": [
|
|
@@ -52231,6 +53790,10 @@
|
|
|
52231
53790
|
"createdBy"
|
|
52232
53791
|
]
|
|
52233
53792
|
},
|
|
53793
|
+
"SiteInsightsUserAgent": {
|
|
53794
|
+
"type": "string",
|
|
53795
|
+
"description": "User agent of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent\n"
|
|
53796
|
+
},
|
|
52234
53797
|
"SiteInsightsEventSession": {
|
|
52235
53798
|
"allOf": [
|
|
52236
53799
|
{
|
|
@@ -52252,8 +53815,7 @@
|
|
|
52252
53815
|
"description": "IP address of the visitor.\nIf not defined, it'll default to the IP executing the request.\n"
|
|
52253
53816
|
},
|
|
52254
53817
|
"userAgent": {
|
|
52255
|
-
"
|
|
52256
|
-
"description": "User-agent of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent\n"
|
|
53818
|
+
"$ref": "#/components/schemas/SiteInsightsUserAgent"
|
|
52257
53819
|
},
|
|
52258
53820
|
"language": {
|
|
52259
53821
|
"type": [
|
|
@@ -53173,7 +54735,7 @@
|
|
|
53173
54735
|
},
|
|
53174
54736
|
{
|
|
53175
54737
|
"type": "object",
|
|
53176
|
-
"description": "Day of the week the event happened
|
|
54738
|
+
"description": "Day of the week the event happened in `timezone`, from 1 (Monday) to 7 (Sunday). Group by it alongside `hourOfDay` to fold any range into a weekly activity profile.",
|
|
53177
54739
|
"required": [
|
|
53178
54740
|
"column"
|
|
53179
54741
|
],
|
|
@@ -53183,12 +54745,17 @@
|
|
|
53183
54745
|
"enum": [
|
|
53184
54746
|
"dayOfWeek"
|
|
53185
54747
|
]
|
|
54748
|
+
},
|
|
54749
|
+
"timezone": {
|
|
54750
|
+
"type": "string",
|
|
54751
|
+
"description": "IANA time zone the event is read in, UTC when omitted.",
|
|
54752
|
+
"example": "Europe/Paris"
|
|
53186
54753
|
}
|
|
53187
54754
|
}
|
|
53188
54755
|
},
|
|
53189
54756
|
{
|
|
53190
54757
|
"type": "object",
|
|
53191
|
-
"description": "Hour of the day the event happened
|
|
54758
|
+
"description": "Hour of the day the event happened in `timezone`, from 0 to 23.",
|
|
53192
54759
|
"required": [
|
|
53193
54760
|
"column"
|
|
53194
54761
|
],
|
|
@@ -53198,6 +54765,11 @@
|
|
|
53198
54765
|
"enum": [
|
|
53199
54766
|
"hourOfDay"
|
|
53200
54767
|
]
|
|
54768
|
+
},
|
|
54769
|
+
"timezone": {
|
|
54770
|
+
"type": "string",
|
|
54771
|
+
"description": "IANA time zone the event is read in, UTC when omitted.",
|
|
54772
|
+
"example": "Europe/Paris"
|
|
53201
54773
|
}
|
|
53202
54774
|
}
|
|
53203
54775
|
},
|
|
@@ -56169,6 +57741,141 @@
|
|
|
56169
57741
|
"expiresAt"
|
|
56170
57742
|
]
|
|
56171
57743
|
},
|
|
57744
|
+
"APIProfilingSession": {
|
|
57745
|
+
"type": "object",
|
|
57746
|
+
"required": [
|
|
57747
|
+
"object",
|
|
57748
|
+
"id",
|
|
57749
|
+
"status",
|
|
57750
|
+
"releaseVersion",
|
|
57751
|
+
"releaseBuild",
|
|
57752
|
+
"createdAt",
|
|
57753
|
+
"expiresAt",
|
|
57754
|
+
"startedBy",
|
|
57755
|
+
"urls"
|
|
57756
|
+
],
|
|
57757
|
+
"properties": {
|
|
57758
|
+
"object": {
|
|
57759
|
+
"type": "string",
|
|
57760
|
+
"enum": [
|
|
57761
|
+
"api_cpu_profiling_session"
|
|
57762
|
+
]
|
|
57763
|
+
},
|
|
57764
|
+
"id": {
|
|
57765
|
+
"type": "string",
|
|
57766
|
+
"format": "uuid"
|
|
57767
|
+
},
|
|
57768
|
+
"status": {
|
|
57769
|
+
"type": "string",
|
|
57770
|
+
"enum": [
|
|
57771
|
+
"active",
|
|
57772
|
+
"stopped",
|
|
57773
|
+
"expired"
|
|
57774
|
+
]
|
|
57775
|
+
},
|
|
57776
|
+
"mode": {
|
|
57777
|
+
"type": "string",
|
|
57778
|
+
"enum": [
|
|
57779
|
+
"cpu",
|
|
57780
|
+
"allocations"
|
|
57781
|
+
],
|
|
57782
|
+
"description": "The profiler selected for this session. Earlier sessions without this field use CPU profiling."
|
|
57783
|
+
},
|
|
57784
|
+
"releaseVersion": {
|
|
57785
|
+
"type": "string"
|
|
57786
|
+
},
|
|
57787
|
+
"releaseBuild": {
|
|
57788
|
+
"type": "string"
|
|
57789
|
+
},
|
|
57790
|
+
"createdAt": {
|
|
57791
|
+
"type": "string",
|
|
57792
|
+
"format": "date-time"
|
|
57793
|
+
},
|
|
57794
|
+
"expiresAt": {
|
|
57795
|
+
"type": "string",
|
|
57796
|
+
"format": "date-time"
|
|
57797
|
+
},
|
|
57798
|
+
"stoppedAt": {
|
|
57799
|
+
"type": "string",
|
|
57800
|
+
"format": "date-time"
|
|
57801
|
+
},
|
|
57802
|
+
"startedBy": {
|
|
57803
|
+
"type": "string"
|
|
57804
|
+
},
|
|
57805
|
+
"urls": {
|
|
57806
|
+
"type": "object",
|
|
57807
|
+
"required": [
|
|
57808
|
+
"location"
|
|
57809
|
+
],
|
|
57810
|
+
"properties": {
|
|
57811
|
+
"location": {
|
|
57812
|
+
"type": "string"
|
|
57813
|
+
}
|
|
57814
|
+
}
|
|
57815
|
+
}
|
|
57816
|
+
}
|
|
57817
|
+
},
|
|
57818
|
+
"APICPUProfile": {
|
|
57819
|
+
"type": "object",
|
|
57820
|
+
"required": [
|
|
57821
|
+
"object",
|
|
57822
|
+
"id",
|
|
57823
|
+
"instanceId",
|
|
57824
|
+
"startedAt",
|
|
57825
|
+
"endedAt",
|
|
57826
|
+
"bytes",
|
|
57827
|
+
"urls"
|
|
57828
|
+
],
|
|
57829
|
+
"properties": {
|
|
57830
|
+
"object": {
|
|
57831
|
+
"type": "string",
|
|
57832
|
+
"enum": [
|
|
57833
|
+
"api_cpu_profile",
|
|
57834
|
+
"api_allocation_profile"
|
|
57835
|
+
]
|
|
57836
|
+
},
|
|
57837
|
+
"mode": {
|
|
57838
|
+
"type": "string",
|
|
57839
|
+
"enum": [
|
|
57840
|
+
"cpu",
|
|
57841
|
+
"allocations"
|
|
57842
|
+
]
|
|
57843
|
+
},
|
|
57844
|
+
"id": {
|
|
57845
|
+
"type": "string",
|
|
57846
|
+
"format": "uuid"
|
|
57847
|
+
},
|
|
57848
|
+
"instanceId": {
|
|
57849
|
+
"type": "string"
|
|
57850
|
+
},
|
|
57851
|
+
"startedAt": {
|
|
57852
|
+
"type": "string",
|
|
57853
|
+
"format": "date-time"
|
|
57854
|
+
},
|
|
57855
|
+
"endedAt": {
|
|
57856
|
+
"type": "string",
|
|
57857
|
+
"format": "date-time"
|
|
57858
|
+
},
|
|
57859
|
+
"bytes": {
|
|
57860
|
+
"type": "integer"
|
|
57861
|
+
},
|
|
57862
|
+
"urls": {
|
|
57863
|
+
"type": "object",
|
|
57864
|
+
"required": [
|
|
57865
|
+
"location"
|
|
57866
|
+
],
|
|
57867
|
+
"properties": {
|
|
57868
|
+
"location": {
|
|
57869
|
+
"type": "string"
|
|
57870
|
+
},
|
|
57871
|
+
"devtools": {
|
|
57872
|
+
"type": "string",
|
|
57873
|
+
"description": "Download the raw .cpuprofile or .heapprofile for Chrome DevTools."
|
|
57874
|
+
}
|
|
57875
|
+
}
|
|
57876
|
+
}
|
|
57877
|
+
}
|
|
57878
|
+
},
|
|
56172
57879
|
"PurgeCDNCacheContext": {
|
|
56173
57880
|
"type": "object",
|
|
56174
57881
|
"description": "The context to send when purging the CDN Cache",
|
|
@@ -57954,6 +59661,9 @@
|
|
|
57954
59661
|
"icon": {
|
|
57955
59662
|
"$ref": "#/components/schemas/Icon"
|
|
57956
59663
|
},
|
|
59664
|
+
"condition": {
|
|
59665
|
+
"$ref": "#/components/schemas/Expression"
|
|
59666
|
+
},
|
|
57957
59667
|
"draft": {
|
|
57958
59668
|
"type": "boolean",
|
|
57959
59669
|
"description": "Whether the section group is draft and not live."
|
|
@@ -58435,9 +60145,14 @@
|
|
|
58435
60145
|
"$ref": "#/components/schemas/OrganizationFeature"
|
|
58436
60146
|
},
|
|
58437
60147
|
"requiredPlan": {
|
|
58438
|
-
"description": "The minimum organization plan that includes the feature.",
|
|
60148
|
+
"description": "The internal identifier of the minimum organization plan that includes the feature. The human-readable name is provided in requiredPlanName.",
|
|
58439
60149
|
"$ref": "#/components/schemas/BillingProduct"
|
|
58440
60150
|
},
|
|
60151
|
+
"requiredPlanName": {
|
|
60152
|
+
"type": "string",
|
|
60153
|
+
"description": "The human-readable name of the required organization plan.",
|
|
60154
|
+
"example": "Pro"
|
|
60155
|
+
},
|
|
58441
60156
|
"url": {
|
|
58442
60157
|
"type": "string",
|
|
58443
60158
|
"format": "uri",
|
|
@@ -58449,6 +60164,7 @@
|
|
|
58449
60164
|
"type",
|
|
58450
60165
|
"feature",
|
|
58451
60166
|
"requiredPlan",
|
|
60167
|
+
"requiredPlanName",
|
|
58452
60168
|
"url"
|
|
58453
60169
|
]
|
|
58454
60170
|
},
|
|
@@ -58466,9 +60182,14 @@
|
|
|
58466
60182
|
"$ref": "#/components/schemas/SiteFeatureKey"
|
|
58467
60183
|
},
|
|
58468
60184
|
"requiredPlan": {
|
|
58469
|
-
"description": "The minimum site plan that includes the feature.",
|
|
60185
|
+
"description": "The internal identifier of the minimum site plan that includes the feature. The human-readable name is provided in requiredPlanName.",
|
|
58470
60186
|
"$ref": "#/components/schemas/SiteType"
|
|
58471
60187
|
},
|
|
60188
|
+
"requiredPlanName": {
|
|
60189
|
+
"type": "string",
|
|
60190
|
+
"description": "The human-readable name of the required site plan.",
|
|
60191
|
+
"example": "Ultimate"
|
|
60192
|
+
},
|
|
58472
60193
|
"url": {
|
|
58473
60194
|
"type": "string",
|
|
58474
60195
|
"format": "uri",
|
|
@@ -58480,6 +60201,7 @@
|
|
|
58480
60201
|
"type",
|
|
58481
60202
|
"feature",
|
|
58482
60203
|
"requiredPlan",
|
|
60204
|
+
"requiredPlanName",
|
|
58483
60205
|
"url"
|
|
58484
60206
|
]
|
|
58485
60207
|
}
|
|
@@ -58500,6 +60222,23 @@
|
|
|
58500
60222
|
"paused"
|
|
58501
60223
|
]
|
|
58502
60224
|
},
|
|
60225
|
+
"BillingDiscount": {
|
|
60226
|
+
"type": "object",
|
|
60227
|
+
"properties": {
|
|
60228
|
+
"duration": {
|
|
60229
|
+
"description": "How many months the discount will last",
|
|
60230
|
+
"type": "number"
|
|
60231
|
+
},
|
|
60232
|
+
"percentOff": {
|
|
60233
|
+
"description": "Percent that will be deducted from the subtotal of the invoice",
|
|
60234
|
+
"type": "number"
|
|
60235
|
+
}
|
|
60236
|
+
},
|
|
60237
|
+
"required": [
|
|
60238
|
+
"duration",
|
|
60239
|
+
"percentOff"
|
|
60240
|
+
]
|
|
60241
|
+
},
|
|
58503
60242
|
"APIIntegrationScope": {
|
|
58504
60243
|
"type": "string",
|
|
58505
60244
|
"enum": [
|
|
@@ -59287,6 +61026,25 @@
|
|
|
59287
61026
|
"organization"
|
|
59288
61027
|
]
|
|
59289
61028
|
},
|
|
61029
|
+
"APIChannelOrganizationSCIMConnections": {
|
|
61030
|
+
"type": "object",
|
|
61031
|
+
"description": "Subscription channel for changes in the SCIM connections of an organization.",
|
|
61032
|
+
"properties": {
|
|
61033
|
+
"channel": {
|
|
61034
|
+
"type": "string",
|
|
61035
|
+
"enum": [
|
|
61036
|
+
"organization-scim-connections"
|
|
61037
|
+
]
|
|
61038
|
+
},
|
|
61039
|
+
"organization": {
|
|
61040
|
+
"type": "string"
|
|
61041
|
+
}
|
|
61042
|
+
},
|
|
61043
|
+
"required": [
|
|
61044
|
+
"channel",
|
|
61045
|
+
"organization"
|
|
61046
|
+
]
|
|
61047
|
+
},
|
|
59290
61048
|
"APIChannelOrganizationCustomFonts": {
|
|
59291
61049
|
"type": "object",
|
|
59292
61050
|
"description": "Subscription channel for changes in custom fonts in an organization.",
|
|
@@ -60174,6 +61932,9 @@
|
|
|
60174
61932
|
{
|
|
60175
61933
|
"$ref": "#/components/schemas/APIChannelOrganizationTranslationsGlossary"
|
|
60176
61934
|
},
|
|
61935
|
+
{
|
|
61936
|
+
"$ref": "#/components/schemas/APIChannelOrganizationSCIMConnections"
|
|
61937
|
+
},
|
|
60177
61938
|
{
|
|
60178
61939
|
"$ref": "#/components/schemas/APIChannelOrganizationCustomFonts"
|
|
60179
61940
|
},
|
|
@@ -61300,7 +63061,7 @@
|
|
|
61300
63061
|
"content": {
|
|
61301
63062
|
"application/json": {
|
|
61302
63063
|
"schema": {
|
|
61303
|
-
"description": "
|
|
63064
|
+
"description": "`error.upgrade` identifies the unavailable feature, the minimum required\nplan, and the URL of the relevant plan settings.\n\n`error.upgrade.requiredPlanName` is the human-readable plan name, such as\n\"Pro\", \"Essential\", or \"Ultimate\", suitable for display to users.\n`error.upgrade.requiredPlan` is the internal plan identifier for\nprogrammatic use, such as \"pro_2024\" or \"premium\".\n\nThe required plan describes feature availability, not a price quote.\n\n`getOrganizationSubscription` (`GET /orgs/{organizationId}/subscription`)\nprovides the current plan and `canManageBilling`, which indicates whether\nthe caller can manage billing. Otherwise, an organization administrator\nmust perform the upgrade. Upgrades require billing permissions and approval\nof any price or billing changes.\n\nThe original operation can be retried after the upgrade is complete.\n",
|
|
61304
63065
|
"type": "object",
|
|
61305
63066
|
"required": [
|
|
61306
63067
|
"error"
|