@gitbook/api 0.204.0 → 0.206.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/spec/openapi.json CHANGED
@@ -2297,7 +2297,7 @@
2297
2297
  "post": {
2298
2298
  "operationId": "createChangeRequest",
2299
2299
  "summary": "Create a new change request in a space",
2300
- "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. When the change request fixes a documentation issue found by GitBook, pass its `siteFindingId` so that merging the change request resolves the finding.",
2300
+ "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
2301
  "x-gitbook-mcp": true,
2302
2302
  "tags": [
2303
2303
  "change-requests"
@@ -2358,7 +2358,16 @@
2358
2358
  },
2359
2359
  "siteFindingId": {
2360
2360
  "type": "string",
2361
- "description": "The site finding this change request fixes. Merging the change request resolves the finding, once every change request linked to it has been merged. The finding's site must contain this space."
2361
+ "deprecated": true,
2362
+ "description": "The site finding this change request fixes. Use `siteFindingIds` instead. The finding's site must contain this space."
2363
+ },
2364
+ "siteFindingIds": {
2365
+ "type": "array",
2366
+ "maxItems": 25,
2367
+ "items": {
2368
+ "type": "string"
2369
+ },
2370
+ "description": "Site findings this change request fixes. Each finding's site must contain this space, and the caller must have edit permission on each site. Takes precedence over `siteFindingId` when both are supplied."
2362
2371
  }
2363
2372
  },
2364
2373
  "additionalProperties": true
@@ -2529,7 +2538,7 @@
2529
2538
  "patch": {
2530
2539
  "operationId": "updateChangeRequestById",
2531
2540
  "summary": "Update a change request's subject, description, or status",
2532
- "description": "Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead. Set `siteFindingId` to record that the change request fixes a documentation issue found by GitBook, so that merging it resolves the finding.",
2541
+ "description": "Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead. Set `siteFindingIds` to replace the documentation findings linked to the change request. Outbound broken links are resolved by the outbound checker, rather than by merging.",
2533
2542
  "x-gitbook-mcp": true,
2534
2543
  "x-gitbook-return-preference": true,
2535
2544
  "tags": [
@@ -2586,11 +2595,23 @@
2586
2595
  ]
2587
2596
  },
2588
2597
  "siteFindingId": {
2598
+ "deprecated": true,
2589
2599
  "type": [
2590
2600
  "string",
2591
2601
  "null"
2592
2602
  ],
2593
- "description": "The site finding this change request fixes. Merging the change request resolves the finding, once every change request linked to it has been merged. The finding's site must contain this space. Pass null to unlink a finding linked by mistake."
2603
+ "description": "The site finding this change request fixes. Use `siteFindingIds` instead. The finding's site must contain this space. Replaces the whole set of linked findings with this finding. Pass null to unlink all findings."
2604
+ },
2605
+ "siteFindingIds": {
2606
+ "type": [
2607
+ "array",
2608
+ "null"
2609
+ ],
2610
+ "maxItems": 25,
2611
+ "items": {
2612
+ "type": "string"
2613
+ },
2614
+ "description": "Replaces the linked site findings. Each finding's site must contain this space, and the caller must have edit permission on each site. Pass null or an empty list to unlink all findings. Omit to keep the current links. Takes precedence over `siteFindingId` when both are supplied."
2594
2615
  }
2595
2616
  }
2596
2617
  }
@@ -3972,7 +3993,7 @@
3972
3993
  "post": {
3973
3994
  "operationId": "updateChangeRequestContent",
3974
3995
  "summary": "Apply a batch of content changes to a change request",
3975
- "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 `![Alt](./<ref>)` 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.\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\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.",
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 `![Alt](./<ref>)` 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\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.",
3976
3997
  "x-gitbook-mcp": true,
3977
3998
  "tags": [
3978
3999
  "change-request-content"
@@ -11660,6 +11681,7 @@
11660
11681
  "post": {
11661
11682
  "operationId": "createOpenAPISpec",
11662
11683
  "summary": "Create an OpenAPI spec",
11684
+ "description": "Adds an OpenAPI spec to the organization, from a URL or from its text. The spec is processed asynchronously and no page is created: to publish its API reference in a space, insert a page that renders it with an `insert_computed_page` change, through the `updateChangeRequestContent` operation. That reference fills in once processing completes and is regenerated each time the spec is updated.",
11663
11685
  "x-gitbook-mcp": true,
11664
11686
  "tags": [
11665
11687
  "openapi"
@@ -11764,6 +11786,7 @@
11764
11786
  "put": {
11765
11787
  "operationId": "createOrUpdateOpenAPISpecBySlug",
11766
11788
  "summary": "Create or update an OpenAPI spec",
11789
+ "description": "Creates the organization's OpenAPI spec with this slug, or replaces its source with a new version. The spec is processed asynchronously, and pages that already render it are regenerated once it is. Creating a spec adds no page: to publish its API reference in a space, insert a page that renders it with an `insert_computed_page` change, through the `updateChangeRequestContent` operation.",
11767
11790
  "x-gitbook-mcp": true,
11768
11791
  "tags": [
11769
11792
  "openapi"
@@ -15141,6 +15164,14 @@
15141
15164
  "type": "string"
15142
15165
  }
15143
15166
  },
15167
+ {
15168
+ "name": "visitorAuthenticated",
15169
+ "in": "query",
15170
+ "description": "Whether the visitor for which we want to preview the site is signed in, as `visitor.isAuthenticated` reports it. Claims outside `unsigned` already imply a signed-in visitor; set this to preview one that is signed in while carrying no claim.",
15171
+ "schema": {
15172
+ "type": "boolean"
15173
+ }
15174
+ },
15144
15175
  {
15145
15176
  "name": "draft",
15146
15177
  "in": "query",
@@ -15410,7 +15441,7 @@
15410
15441
  "post": {
15411
15442
  "operationId": "addSpaceToSite",
15412
15443
  "summary": "Add a space to a site as a content source",
15413
- "description": "Pass an existing space ID to link it, or pass `null` to create and link a new space. New spaces are blank unless a template is provided.",
15444
+ "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).",
15414
15445
  "x-gitbook-mcp": true,
15415
15446
  "x-gitbook-return-preference": true,
15416
15447
  "tags": [
@@ -15479,6 +15510,11 @@
15479
15510
  ],
15480
15511
  "description": "Custom home page within an existing space, rendered at the site space's path root instead of the space's default landing page. Providing it when `spaceId` is `null` returns a 400 error."
15481
15512
  },
15513
+ "empty": {
15514
+ "type": "boolean",
15515
+ "default": false,
15516
+ "description": "Create the new space without any content, not even a blank page. Useful when the content is about to be populated, for example by an import. Only valid when `spaceId` is `null` and no template is provided."
15517
+ },
15482
15518
  "title": {
15483
15519
  "$ref": "#/components/schemas/SiteTitle",
15484
15520
  "description": "Site-specific title override for the variant. Also used as the space title when `spaceId` is `null` and no template is provided."
@@ -15902,7 +15938,7 @@
15902
15938
  "post": {
15903
15939
  "operationId": "addSectionToSite",
15904
15940
  "summary": "Add a new navigation section to a site backed by a space",
15905
- "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 are blank unless a template is provided.",
15941
+ "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).",
15906
15942
  "x-gitbook-mcp": true,
15907
15943
  "tags": [
15908
15944
  "site-sections"
@@ -15947,6 +15983,11 @@
15947
15983
  "$ref": "#/components/schemas/ApplySpaceTemplate",
15948
15984
  "description": "Template for the new space when `spaceId` is `null`. Templates that provision organization-level resources, such as OpenAPI specifications, are not supported by this site-scoped operation."
15949
15985
  },
15986
+ "empty": {
15987
+ "type": "boolean",
15988
+ "default": false,
15989
+ "description": "Create the new space without any content, not even a blank page. Useful when the content is about to be populated, for example by an import. Only valid when `spaceId` is `null` and no template is provided."
15990
+ },
15950
15991
  "title": {
15951
15992
  "oneOf": [
15952
15993
  {
@@ -18257,6 +18298,49 @@
18257
18298
  {
18258
18299
  "$ref": "#/components/schemas/ContextConnectorSetup"
18259
18300
  },
18301
+ {
18302
+ "type": "object",
18303
+ "description": "Update a Jira connection. Omit `setupSettings.apiToken` to keep the stored token.",
18304
+ "required": [
18305
+ "connector",
18306
+ "setupSettings"
18307
+ ],
18308
+ "properties": {
18309
+ "connector": {
18310
+ "type": "string",
18311
+ "enum": [
18312
+ "builtin:jira"
18313
+ ]
18314
+ },
18315
+ "label": {
18316
+ "$ref": "#/components/schemas/ContextConnectionLabel"
18317
+ },
18318
+ "setupSettings": {
18319
+ "type": "object",
18320
+ "required": [
18321
+ "baseUrl",
18322
+ "apiEmail"
18323
+ ],
18324
+ "properties": {
18325
+ "baseUrl": {
18326
+ "$ref": "#/components/schemas/baseUrl"
18327
+ },
18328
+ "apiEmail": {
18329
+ "$ref": "#/components/schemas/apiEmail"
18330
+ },
18331
+ "apiToken": {
18332
+ "$ref": "#/components/schemas/apiToken"
18333
+ },
18334
+ "projectKeys": {
18335
+ "$ref": "#/components/schemas/projectKeys"
18336
+ },
18337
+ "statusMapping": {
18338
+ "$ref": "#/components/schemas/statusMapping"
18339
+ }
18340
+ }
18341
+ }
18342
+ }
18343
+ },
18260
18344
  {
18261
18345
  "type": "object",
18262
18346
  "properties": {
@@ -18447,6 +18531,39 @@
18447
18531
  "schema": {
18448
18532
  "$ref": "#/components/schemas/Timestamp"
18449
18533
  }
18534
+ },
18535
+ {
18536
+ "name": "relevance",
18537
+ "in": "query",
18538
+ "description": "Filter stats by question relevance.",
18539
+ "schema": {
18540
+ "type": "array",
18541
+ "items": {
18542
+ "$ref": "#/components/schemas/SiteQuestionAnswerRelevance"
18543
+ }
18544
+ }
18545
+ },
18546
+ {
18547
+ "name": "channelType",
18548
+ "in": "query",
18549
+ "description": "Filter stats by answer channel type.",
18550
+ "schema": {
18551
+ "type": "array",
18552
+ "items": {
18553
+ "$ref": "#/components/schemas/SiteChannelType"
18554
+ }
18555
+ }
18556
+ },
18557
+ {
18558
+ "name": "answered",
18559
+ "in": "query",
18560
+ "description": "Filter stats by answer resolution.",
18561
+ "schema": {
18562
+ "type": "array",
18563
+ "items": {
18564
+ "$ref": "#/components/schemas/SiteQuestionAnswerResolution"
18565
+ }
18566
+ }
18450
18567
  }
18451
18568
  ],
18452
18569
  "responses": {
@@ -20543,9 +20660,15 @@
20543
20660
  {
20544
20661
  "type": "object",
20545
20662
  "required": [
20546
- "items"
20663
+ "items",
20664
+ "membersCount"
20547
20665
  ],
20548
20666
  "properties": {
20667
+ "membersCount": {
20668
+ "type": "integer",
20669
+ "minimum": 0,
20670
+ "description": "Number of users with a role in the site, guests excluded. It ignores the filters and the pagination of the request."
20671
+ },
20549
20672
  "items": {
20550
20673
  "type": "array",
20551
20674
  "items": {
@@ -21053,7 +21176,7 @@
21053
21176
  "put": {
21054
21177
  "operationId": "updateSiteAgentSettingsById",
21055
21178
  "summary": "Update the AI agent configuration for a site",
21056
- "description": "Replaces the configuration for the AI built into the GitBook editor that helps authors draft, review, and refine content changes. Use this to customize how the AI behaves when assisting authors working on content for this site.",
21179
+ "description": "Replaces the configuration for the AI built into the GitBook editor that helps authors draft, review, and refine content changes. Use this to customize how the AI behaves when assisting authors working on content for this site. When `brokenLinks` is omitted, the current broken links settings are kept.",
21057
21180
  "x-gitbook-mcp": true,
21058
21181
  "tags": [
21059
21182
  "site-agent-settings"
@@ -22564,7 +22687,7 @@
22564
22687
  "post": {
22565
22688
  "operationId": "listSiteChannelScopes",
22566
22689
  "summary": "List available site channel scopes",
22567
- "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 credentials are verified without saving a connection. 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.",
22690
+ "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.",
22568
22691
  "x-gitbook-mcp": true,
22569
22692
  "tags": [
22570
22693
  "site-channels"
@@ -22653,6 +22776,25 @@
22653
22776
  }
22654
22777
  }
22655
22778
  },
22779
+ {
22780
+ "type": "object",
22781
+ "required": [
22782
+ "provider",
22783
+ "siteContextConnectionId"
22784
+ ],
22785
+ "properties": {
22786
+ "provider": {
22787
+ "type": "string",
22788
+ "enum": [
22789
+ "jira"
22790
+ ]
22791
+ },
22792
+ "siteContextConnectionId": {
22793
+ "type": "string",
22794
+ "description": "ID of a Jira context connection belonging to this site, whose stored credentials are used."
22795
+ }
22796
+ }
22797
+ },
22656
22798
  {
22657
22799
  "type": "object",
22658
22800
  "required": [
@@ -24330,7 +24472,7 @@
24330
24472
  "documentDereferenced": {
24331
24473
  "name": "dereferenced",
24332
24474
  "in": "query",
24333
- "description": "Controls whether the document should be deferenced (eference to other content will be resolved and expanded).\n- When set to `true`, the entire document will be deferenced\n- When set to `reusable-contents`, only reusable contents will be deferenced.\n",
24475
+ "description": "Controls whether references to other content are resolved and expanded.\n- When set to `false`, references are preserved, including reusable content includes in Markdown.\n- When set to `true`, all supported content references are expanded.\n- When set to `reusable-contents`, only reusable content references are expanded.\nWhen omitted, Markdown responses expand all supported content references, while document responses preserve them.\n",
24334
24476
  "schema": {
24335
24477
  "oneOf": [
24336
24478
  {
@@ -24342,8 +24484,7 @@
24342
24484
  "reusable-contents"
24343
24485
  ]
24344
24486
  }
24345
- ],
24346
- "default": false
24487
+ ]
24347
24488
  }
24348
24489
  },
24349
24490
  "pagePath": {
@@ -25441,7 +25582,10 @@
25441
25582
  "lt",
25442
25583
  "lv",
25443
25584
  "et",
25444
- "sl"
25585
+ "sl",
25586
+ "fr-ca",
25587
+ "es-mx",
25588
+ "es-419"
25445
25589
  ]
25446
25590
  },
25447
25591
  "GitSyncInstallationStatus": {
@@ -27141,6 +27285,92 @@
27141
27285
  "isVoid"
27142
27286
  ]
27143
27287
  },
27288
+ "DocumentInlineMath": {
27289
+ "type": "object",
27290
+ "properties": {
27291
+ "object": {
27292
+ "type": "string",
27293
+ "enum": [
27294
+ "inline"
27295
+ ]
27296
+ },
27297
+ "type": {
27298
+ "type": "string",
27299
+ "enum": [
27300
+ "inline-math"
27301
+ ]
27302
+ },
27303
+ "key": {
27304
+ "type": "string"
27305
+ },
27306
+ "data": {
27307
+ "type": "object",
27308
+ "properties": {
27309
+ "formula": {
27310
+ "type": "string"
27311
+ }
27312
+ },
27313
+ "required": [
27314
+ "formula"
27315
+ ]
27316
+ },
27317
+ "isVoid": {
27318
+ "type": "boolean",
27319
+ "enum": [
27320
+ true
27321
+ ]
27322
+ }
27323
+ },
27324
+ "required": [
27325
+ "object",
27326
+ "type",
27327
+ "data",
27328
+ "isVoid"
27329
+ ]
27330
+ },
27331
+ "DocumentInlineExpression": {
27332
+ "type": "object",
27333
+ "properties": {
27334
+ "object": {
27335
+ "type": "string",
27336
+ "enum": [
27337
+ "inline"
27338
+ ]
27339
+ },
27340
+ "type": {
27341
+ "type": "string",
27342
+ "enum": [
27343
+ "expression"
27344
+ ]
27345
+ },
27346
+ "key": {
27347
+ "type": "string"
27348
+ },
27349
+ "data": {
27350
+ "type": "object",
27351
+ "properties": {
27352
+ "expression": {
27353
+ "type": "string"
27354
+ }
27355
+ },
27356
+ "required": [
27357
+ "expression"
27358
+ ]
27359
+ },
27360
+ "isVoid": {
27361
+ "type": "boolean",
27362
+ "enum": [
27363
+ true
27364
+ ]
27365
+ }
27366
+ },
27367
+ "required": [
27368
+ "object",
27369
+ "type",
27370
+ "data",
27371
+ "isVoid"
27372
+ ]
27373
+ },
27144
27374
  "ContentRefPage": {
27145
27375
  "type": "object",
27146
27376
  "properties": {
@@ -27342,7 +27572,7 @@
27342
27572
  }
27343
27573
  ]
27344
27574
  },
27345
- "DocumentInlineLink": {
27575
+ "DocumentInlineMention": {
27346
27576
  "type": "object",
27347
27577
  "properties": {
27348
27578
  "object": {
@@ -27354,25 +27584,12 @@
27354
27584
  "type": {
27355
27585
  "type": "string",
27356
27586
  "enum": [
27357
- "link"
27587
+ "mention"
27358
27588
  ]
27359
27589
  },
27360
27590
  "key": {
27361
27591
  "type": "string"
27362
27592
  },
27363
- "nodes": {
27364
- "type": "array",
27365
- "items": {
27366
- "oneOf": [
27367
- {
27368
- "$ref": "#/components/schemas/DocumentText"
27369
- },
27370
- {
27371
- "$ref": "#/components/schemas/DocumentInlineImage"
27372
- }
27373
- ]
27374
- }
27375
- },
27376
27593
  "data": {
27377
27594
  "type": "object",
27378
27595
  "properties": {
@@ -27384,49 +27601,6 @@
27384
27601
  "ref"
27385
27602
  ]
27386
27603
  },
27387
- "isVoid": {
27388
- "type": "boolean",
27389
- "enum": [
27390
- false
27391
- ]
27392
- }
27393
- },
27394
- "required": [
27395
- "object",
27396
- "type",
27397
- "nodes",
27398
- "data"
27399
- ]
27400
- },
27401
- "DocumentInlineEmoji": {
27402
- "type": "object",
27403
- "properties": {
27404
- "object": {
27405
- "type": "string",
27406
- "enum": [
27407
- "inline"
27408
- ]
27409
- },
27410
- "type": {
27411
- "type": "string",
27412
- "enum": [
27413
- "emoji"
27414
- ]
27415
- },
27416
- "key": {
27417
- "type": "string"
27418
- },
27419
- "data": {
27420
- "type": "object",
27421
- "properties": {
27422
- "code": {
27423
- "type": "string"
27424
- }
27425
- },
27426
- "required": [
27427
- "code"
27428
- ]
27429
- },
27430
27604
  "isVoid": {
27431
27605
  "type": "boolean",
27432
27606
  "enum": [
@@ -27441,7 +27615,7 @@
27441
27615
  "isVoid"
27442
27616
  ]
27443
27617
  },
27444
- "DocumentInlineIcon": {
27618
+ "DocumentInlineLink": {
27445
27619
  "type": "object",
27446
27620
  "properties": {
27447
27621
  "object": {
@@ -27453,41 +27627,60 @@
27453
27627
  "type": {
27454
27628
  "type": "string",
27455
27629
  "enum": [
27456
- "icon"
27630
+ "link"
27457
27631
  ]
27458
27632
  },
27459
27633
  "key": {
27460
27634
  "type": "string"
27461
27635
  },
27636
+ "nodes": {
27637
+ "type": "array",
27638
+ "items": {
27639
+ "oneOf": [
27640
+ {
27641
+ "$ref": "#/components/schemas/DocumentText"
27642
+ },
27643
+ {
27644
+ "$ref": "#/components/schemas/DocumentInlineImage"
27645
+ },
27646
+ {
27647
+ "$ref": "#/components/schemas/DocumentInlineMath"
27648
+ },
27649
+ {
27650
+ "$ref": "#/components/schemas/DocumentInlineExpression"
27651
+ },
27652
+ {
27653
+ "$ref": "#/components/schemas/DocumentInlineMention"
27654
+ }
27655
+ ]
27656
+ }
27657
+ },
27462
27658
  "data": {
27463
27659
  "type": "object",
27464
27660
  "properties": {
27465
- "icon": {
27466
- "type": "string"
27467
- },
27468
- "color": {
27469
- "$ref": "#/components/schemas/DocumentTextColor"
27661
+ "ref": {
27662
+ "$ref": "#/components/schemas/ContentRef"
27470
27663
  }
27471
27664
  },
27472
27665
  "required": [
27473
- "icon"
27666
+ "ref"
27474
27667
  ]
27475
27668
  },
27476
27669
  "isVoid": {
27477
27670
  "type": "boolean",
27478
27671
  "enum": [
27479
- true
27672
+ false
27480
27673
  ]
27481
27674
  }
27482
27675
  },
27483
27676
  "required": [
27484
27677
  "object",
27485
27678
  "type",
27486
- "data",
27487
- "isVoid"
27679
+ "nodes",
27680
+ "data"
27488
27681
  ]
27489
27682
  },
27490
- "DocumentInlineExpression": {
27683
+ "DocumentInlineEmoji": {
27491
27684
  "type": "object",
27492
27685
  "properties": {
27493
27686
  "object": {
@@ -27499,7 +27692,7 @@
27499
27692
  "type": {
27500
27693
  "type": "string",
27501
27694
  "enum": [
27502
- "expression"
27695
+ "emoji"
27503
27696
  ]
27504
27697
  },
27505
27698
  "key": {
@@ -27508,12 +27701,12 @@
27508
27701
  "data": {
27509
27702
  "type": "object",
27510
27703
  "properties": {
27511
- "expression": {
27704
+ "code": {
27512
27705
  "type": "string"
27513
27706
  }
27514
27707
  },
27515
27708
  "required": [
27516
- "expression"
27709
+ "code"
27517
27710
  ]
27518
27711
  },
27519
27712
  "isVoid": {
@@ -27530,7 +27723,7 @@
27530
27723
  "isVoid"
27531
27724
  ]
27532
27725
  },
27533
- "DocumentInlineMath": {
27726
+ "DocumentInlineIcon": {
27534
27727
  "type": "object",
27535
27728
  "properties": {
27536
27729
  "object": {
@@ -27542,7 +27735,7 @@
27542
27735
  "type": {
27543
27736
  "type": "string",
27544
27737
  "enum": [
27545
- "inline-math"
27738
+ "icon"
27546
27739
  ]
27547
27740
  },
27548
27741
  "key": {
@@ -27551,12 +27744,15 @@
27551
27744
  "data": {
27552
27745
  "type": "object",
27553
27746
  "properties": {
27554
- "formula": {
27747
+ "icon": {
27555
27748
  "type": "string"
27749
+ },
27750
+ "color": {
27751
+ "$ref": "#/components/schemas/DocumentTextColor"
27556
27752
  }
27557
27753
  },
27558
27754
  "required": [
27559
- "formula"
27755
+ "icon"
27560
27756
  ]
27561
27757
  },
27562
27758
  "isVoid": {
@@ -27969,6 +28165,36 @@
27969
28165
  "nodes"
27970
28166
  ]
27971
28167
  },
28168
+ "DocumentFragment": {
28169
+ "type": "object",
28170
+ "properties": {
28171
+ "object": {
28172
+ "type": "string",
28173
+ "enum": [
28174
+ "fragment"
28175
+ ]
28176
+ },
28177
+ "key": {
28178
+ "type": "string"
28179
+ },
28180
+ "fragment": {
28181
+ "type": "string"
28182
+ },
28183
+ "type": {
28184
+ "type": "string"
28185
+ },
28186
+ "nodes": {
28187
+ "type": "array",
28188
+ "items": {
28189
+ "$ref": "#/components/schemas/DocumentBlock"
28190
+ }
28191
+ }
28192
+ },
28193
+ "required": [
28194
+ "object",
28195
+ "nodes"
28196
+ ]
28197
+ },
27972
28198
  "DocumentBlockEmbed": {
27973
28199
  "type": "object",
27974
28200
  "properties": {
@@ -28001,6 +28227,37 @@
28001
28227
  "url"
28002
28228
  ]
28003
28229
  },
28230
+ "fragments": {
28231
+ "type": "array",
28232
+ "items": {
28233
+ "allOf": [
28234
+ {
28235
+ "$ref": "#/components/schemas/DocumentFragment"
28236
+ },
28237
+ {
28238
+ "type": "object",
28239
+ "properties": {
28240
+ "fragment": {
28241
+ "type": "string",
28242
+ "enum": [
28243
+ "caption"
28244
+ ]
28245
+ },
28246
+ "nodes": {
28247
+ "type": "array",
28248
+ "items": {
28249
+ "$ref": "#/components/schemas/DocumentBlockParagraph"
28250
+ }
28251
+ }
28252
+ },
28253
+ "required": [
28254
+ "nodes",
28255
+ "fragment"
28256
+ ]
28257
+ }
28258
+ ]
28259
+ }
28260
+ },
28004
28261
  "isVoid": {
28005
28262
  "type": "boolean",
28006
28263
  "enum": [
@@ -28773,36 +29030,6 @@
28773
29030
  "colSpan"
28774
29031
  ]
28775
29032
  },
28776
- "DocumentFragment": {
28777
- "type": "object",
28778
- "properties": {
28779
- "object": {
28780
- "type": "string",
28781
- "enum": [
28782
- "fragment"
28783
- ]
28784
- },
28785
- "key": {
28786
- "type": "string"
28787
- },
28788
- "fragment": {
28789
- "type": "string"
28790
- },
28791
- "type": {
28792
- "type": "string"
28793
- },
28794
- "nodes": {
28795
- "type": "array",
28796
- "items": {
28797
- "$ref": "#/components/schemas/DocumentBlock"
28798
- }
28799
- }
28800
- },
28801
- "required": [
28802
- "object",
28803
- "nodes"
28804
- ]
28805
- },
28806
29033
  "DocumentBlockTable": {
28807
29034
  "type": "object",
28808
29035
  "properties": {
@@ -28889,7 +29116,7 @@
28889
29116
  "fragments"
28890
29117
  ]
28891
29118
  },
28892
- "DocumentBlockHint": {
29119
+ "DocumentBlockQuote": {
28893
29120
  "type": "object",
28894
29121
  "properties": {
28895
29122
  "object": {
@@ -28901,32 +29128,12 @@
28901
29128
  "type": {
28902
29129
  "type": "string",
28903
29130
  "enum": [
28904
- "hint"
29131
+ "blockquote"
28905
29132
  ]
28906
29133
  },
28907
29134
  "key": {
28908
29135
  "type": "string"
28909
29136
  },
28910
- "data": {
28911
- "type": "object",
28912
- "properties": {
28913
- "style": {
28914
- "type": "string",
28915
- "enum": [
28916
- "info",
28917
- "warning",
28918
- "danger",
28919
- "success"
28920
- ]
28921
- },
28922
- "icon": {
28923
- "$ref": "#/components/schemas/Icon"
28924
- }
28925
- },
28926
- "required": [
28927
- "style"
28928
- ]
28929
- },
28930
29137
  "nodes": {
28931
29138
  "type": "array",
28932
29139
  "items": {
@@ -28934,14 +29141,41 @@
28934
29141
  {
28935
29142
  "$ref": "#/components/schemas/DocumentBlocksEssentials"
28936
29143
  },
29144
+ {
29145
+ "$ref": "#/components/schemas/DocumentBlockQuote"
29146
+ },
29147
+ {
29148
+ "$ref": "#/components/schemas/DocumentBlockCode"
29149
+ },
29150
+ {
29151
+ "$ref": "#/components/schemas/DocumentBlockDrawing"
29152
+ },
28937
29153
  {
28938
29154
  "$ref": "#/components/schemas/DocumentBlockEmbed"
28939
29155
  },
28940
29156
  {
28941
- "$ref": "#/components/schemas/DocumentBlockIntegration"
29157
+ "$ref": "#/components/schemas/DocumentBlockExpandable"
28942
29158
  },
28943
29159
  {
28944
- "$ref": "#/components/schemas/DocumentBlockTable"
29160
+ "$ref": "#/components/schemas/DocumentBlockFile"
29161
+ },
29162
+ {
29163
+ "$ref": "#/components/schemas/DocumentBlockHint"
29164
+ },
29165
+ {
29166
+ "$ref": "#/components/schemas/DocumentBlockIf"
29167
+ },
29168
+ {
29169
+ "$ref": "#/components/schemas/DocumentBlockMath"
29170
+ },
29171
+ {
29172
+ "$ref": "#/components/schemas/DocumentBlockPrompt"
29173
+ },
29174
+ {
29175
+ "$ref": "#/components/schemas/DocumentBlockStepper"
29176
+ },
29177
+ {
29178
+ "$ref": "#/components/schemas/DocumentBlockTabs"
28945
29179
  }
28946
29180
  ]
28947
29181
  }
@@ -28951,16 +29185,20 @@
28951
29185
  "enum": [
28952
29186
  false
28953
29187
  ]
29188
+ },
29189
+ "data": {
29190
+ "type": "object",
29191
+ "properties": {},
29192
+ "additionalProperties": false
28954
29193
  }
28955
29194
  },
28956
29195
  "required": [
28957
29196
  "object",
28958
29197
  "type",
28959
- "data",
28960
29198
  "nodes"
28961
29199
  ]
28962
29200
  },
28963
- "DocumentBlockQuote": {
29201
+ "DocumentBlockDrawing": {
28964
29202
  "type": "object",
28965
29203
  "properties": {
28966
29204
  "object": {
@@ -28972,21 +29210,51 @@
28972
29210
  "type": {
28973
29211
  "type": "string",
28974
29212
  "enum": [
28975
- "blockquote"
29213
+ "drawing"
28976
29214
  ]
28977
29215
  },
28978
29216
  "key": {
28979
29217
  "type": "string"
28980
29218
  },
28981
- "nodes": {
29219
+ "data": {
29220
+ "type": "object",
29221
+ "properties": {
29222
+ "ref": {
29223
+ "oneOf": [
29224
+ {
29225
+ "$ref": "#/components/schemas/ContentRefFile"
29226
+ }
29227
+ ]
29228
+ }
29229
+ }
29230
+ },
29231
+ "fragments": {
28982
29232
  "type": "array",
28983
29233
  "items": {
28984
- "oneOf": [
29234
+ "allOf": [
28985
29235
  {
28986
- "$ref": "#/components/schemas/DocumentBlocksEssentials"
29236
+ "$ref": "#/components/schemas/DocumentFragment"
28987
29237
  },
28988
29238
  {
28989
- "$ref": "#/components/schemas/DocumentBlockQuote"
29239
+ "type": "object",
29240
+ "properties": {
29241
+ "fragment": {
29242
+ "type": "string",
29243
+ "enum": [
29244
+ "caption"
29245
+ ]
29246
+ },
29247
+ "nodes": {
29248
+ "type": "array",
29249
+ "items": {
29250
+ "$ref": "#/components/schemas/DocumentBlockParagraph"
29251
+ }
29252
+ }
29253
+ },
29254
+ "required": [
29255
+ "nodes",
29256
+ "fragment"
29257
+ ]
28990
29258
  }
28991
29259
  ]
28992
29260
  }
@@ -28994,22 +29262,18 @@
28994
29262
  "isVoid": {
28995
29263
  "type": "boolean",
28996
29264
  "enum": [
28997
- false
29265
+ true
28998
29266
  ]
28999
- },
29000
- "data": {
29001
- "type": "object",
29002
- "properties": {},
29003
- "additionalProperties": false
29004
29267
  }
29005
29268
  },
29006
29269
  "required": [
29007
29270
  "object",
29008
29271
  "type",
29009
- "nodes"
29272
+ "data",
29273
+ "isVoid"
29010
29274
  ]
29011
29275
  },
29012
- "DocumentBlockMath": {
29276
+ "DocumentBlockFile": {
29013
29277
  "type": "object",
29014
29278
  "properties": {
29015
29279
  "object": {
@@ -29021,7 +29285,7 @@
29021
29285
  "type": {
29022
29286
  "type": "string",
29023
29287
  "enum": [
29024
- "math"
29288
+ "file"
29025
29289
  ]
29026
29290
  },
29027
29291
  "key": {
@@ -29030,14 +29294,49 @@
29030
29294
  "data": {
29031
29295
  "type": "object",
29032
29296
  "properties": {
29033
- "formula": {
29034
- "type": "string"
29297
+ "ref": {
29298
+ "oneOf": [
29299
+ {
29300
+ "$ref": "#/components/schemas/ContentRefFile"
29301
+ }
29302
+ ]
29035
29303
  }
29036
29304
  },
29037
29305
  "required": [
29038
- "formula"
29306
+ "ref"
29039
29307
  ]
29040
29308
  },
29309
+ "fragments": {
29310
+ "type": "array",
29311
+ "items": {
29312
+ "allOf": [
29313
+ {
29314
+ "$ref": "#/components/schemas/DocumentFragment"
29315
+ },
29316
+ {
29317
+ "type": "object",
29318
+ "properties": {
29319
+ "fragment": {
29320
+ "type": "string",
29321
+ "enum": [
29322
+ "caption"
29323
+ ]
29324
+ },
29325
+ "nodes": {
29326
+ "type": "array",
29327
+ "items": {
29328
+ "$ref": "#/components/schemas/DocumentBlockParagraph"
29329
+ }
29330
+ }
29331
+ },
29332
+ "required": [
29333
+ "nodes",
29334
+ "fragment"
29335
+ ]
29336
+ }
29337
+ ]
29338
+ }
29339
+ },
29041
29340
  "isVoid": {
29042
29341
  "type": "boolean",
29043
29342
  "enum": [
@@ -29052,7 +29351,29 @@
29052
29351
  "isVoid"
29053
29352
  ]
29054
29353
  },
29055
- "DocumentBlockListItem": {
29354
+ "Length": {
29355
+ "oneOf": [
29356
+ {
29357
+ "type": "number"
29358
+ },
29359
+ {
29360
+ "type": "object",
29361
+ "properties": {
29362
+ "unit": {
29363
+ "type": "string"
29364
+ },
29365
+ "value": {
29366
+ "type": "number"
29367
+ }
29368
+ },
29369
+ "required": [
29370
+ "unit",
29371
+ "value"
29372
+ ]
29373
+ }
29374
+ ]
29375
+ },
29376
+ "DocumentBlockImage": {
29056
29377
  "type": "object",
29057
29378
  "properties": {
29058
29379
  "object": {
@@ -29064,33 +29385,76 @@
29064
29385
  "type": {
29065
29386
  "type": "string",
29066
29387
  "enum": [
29067
- "list-item"
29388
+ "image"
29068
29389
  ]
29069
29390
  },
29070
29391
  "key": {
29071
29392
  "type": "string"
29072
29393
  },
29073
- "nodes": {
29394
+ "data": {
29395
+ "type": "object",
29396
+ "properties": {
29397
+ "ref": {
29398
+ "oneOf": [
29399
+ {
29400
+ "$ref": "#/components/schemas/ContentRefURL"
29401
+ },
29402
+ {
29403
+ "$ref": "#/components/schemas/ContentRefFile"
29404
+ }
29405
+ ]
29406
+ },
29407
+ "refDark": {
29408
+ "oneOf": [
29409
+ {
29410
+ "$ref": "#/components/schemas/ContentRefURL"
29411
+ },
29412
+ {
29413
+ "$ref": "#/components/schemas/ContentRefFile"
29414
+ }
29415
+ ]
29416
+ },
29417
+ "width": {
29418
+ "$ref": "#/components/schemas/Length"
29419
+ },
29420
+ "height": {
29421
+ "$ref": "#/components/schemas/Length"
29422
+ },
29423
+ "alt": {
29424
+ "type": "string"
29425
+ }
29426
+ },
29427
+ "required": [
29428
+ "ref"
29429
+ ]
29430
+ },
29431
+ "fragments": {
29074
29432
  "type": "array",
29075
29433
  "items": {
29076
- "oneOf": [
29077
- {
29078
- "$ref": "#/components/schemas/DocumentBlocksEssentials"
29079
- },
29080
- {
29081
- "$ref": "#/components/schemas/DocumentBlockCode"
29082
- },
29083
- {
29084
- "$ref": "#/components/schemas/DocumentBlockHint"
29085
- },
29086
- {
29087
- "$ref": "#/components/schemas/DocumentBlockQuote"
29088
- },
29434
+ "allOf": [
29089
29435
  {
29090
- "$ref": "#/components/schemas/DocumentBlockMath"
29436
+ "$ref": "#/components/schemas/DocumentFragment"
29091
29437
  },
29092
29438
  {
29093
- "$ref": "#/components/schemas/DocumentBlockTable"
29439
+ "type": "object",
29440
+ "properties": {
29441
+ "fragment": {
29442
+ "type": "string",
29443
+ "enum": [
29444
+ "caption"
29445
+ ]
29446
+ },
29447
+ "nodes": {
29448
+ "type": "array",
29449
+ "items": {
29450
+ "$ref": "#/components/schemas/DocumentBlockParagraph"
29451
+ }
29452
+ }
29453
+ },
29454
+ "required": [
29455
+ "nodes",
29456
+ "fragment"
29457
+ ]
29094
29458
  }
29095
29459
  ]
29096
29460
  }
@@ -29098,25 +29462,19 @@
29098
29462
  "isVoid": {
29099
29463
  "type": "boolean",
29100
29464
  "enum": [
29101
- false
29465
+ true
29102
29466
  ]
29103
- },
29104
- "data": {
29105
- "type": "object",
29106
- "properties": {
29107
- "checked": {
29108
- "type": "boolean"
29109
- }
29110
- }
29111
29467
  }
29112
29468
  },
29113
29469
  "required": [
29114
29470
  "object",
29115
29471
  "type",
29116
- "nodes"
29472
+ "data",
29473
+ "fragments",
29474
+ "isVoid"
29117
29475
  ]
29118
29476
  },
29119
- "DocumentBlockListOrdered": {
29477
+ "DocumentBlockImages": {
29120
29478
  "type": "object",
29121
29479
  "properties": {
29122
29480
  "object": {
@@ -29128,7 +29486,7 @@
29128
29486
  "type": {
29129
29487
  "type": "string",
29130
29488
  "enum": [
29131
- "list-ordered"
29489
+ "images"
29132
29490
  ]
29133
29491
  },
29134
29492
  "key": {
@@ -29137,20 +29495,26 @@
29137
29495
  "data": {
29138
29496
  "type": "object",
29139
29497
  "properties": {
29140
- "start": {
29141
- "type": "number",
29142
- "description": "An integer to start counting from for the list items."
29498
+ "align": {
29499
+ "type": "string",
29500
+ "enum": [
29501
+ "center",
29502
+ "left",
29503
+ "right"
29504
+ ]
29505
+ },
29506
+ "fullWidth": {
29507
+ "type": "boolean"
29508
+ },
29509
+ "withFrame": {
29510
+ "type": "boolean"
29143
29511
  }
29144
29512
  }
29145
29513
  },
29146
29514
  "nodes": {
29147
29515
  "type": "array",
29148
29516
  "items": {
29149
- "oneOf": [
29150
- {
29151
- "$ref": "#/components/schemas/DocumentBlockListItem"
29152
- }
29153
- ]
29517
+ "$ref": "#/components/schemas/DocumentBlockImage"
29154
29518
  }
29155
29519
  },
29156
29520
  "isVoid": {
@@ -29164,10 +29528,11 @@
29164
29528
  "object",
29165
29529
  "type",
29166
29530
  "data",
29167
- "nodes"
29531
+ "nodes",
29532
+ "isVoid"
29168
29533
  ]
29169
29534
  },
29170
- "DocumentBlockListUnordered": {
29535
+ "DocumentBlockHint": {
29171
29536
  "type": "object",
29172
29537
  "properties": {
29173
29538
  "object": {
@@ -29179,26 +29544,84 @@
29179
29544
  "type": {
29180
29545
  "type": "string",
29181
29546
  "enum": [
29182
- "list-unordered"
29547
+ "hint"
29183
29548
  ]
29184
29549
  },
29185
29550
  "key": {
29186
29551
  "type": "string"
29187
29552
  },
29553
+ "data": {
29554
+ "type": "object",
29555
+ "properties": {
29556
+ "style": {
29557
+ "type": "string",
29558
+ "enum": [
29559
+ "info",
29560
+ "warning",
29561
+ "danger",
29562
+ "success"
29563
+ ]
29564
+ },
29565
+ "icon": {
29566
+ "$ref": "#/components/schemas/Icon"
29567
+ }
29568
+ },
29569
+ "required": [
29570
+ "style"
29571
+ ]
29572
+ },
29188
29573
  "nodes": {
29189
29574
  "type": "array",
29190
29575
  "items": {
29191
29576
  "oneOf": [
29192
29577
  {
29193
- "$ref": "#/components/schemas/DocumentBlockListItem"
29578
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
29579
+ },
29580
+ {
29581
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
29582
+ },
29583
+ {
29584
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
29585
+ },
29586
+ {
29587
+ "$ref": "#/components/schemas/DocumentBlockTable"
29588
+ },
29589
+ {
29590
+ "$ref": "#/components/schemas/DocumentBlockQuote"
29591
+ },
29592
+ {
29593
+ "$ref": "#/components/schemas/DocumentBlockCode"
29594
+ },
29595
+ {
29596
+ "$ref": "#/components/schemas/DocumentBlockDrawing"
29597
+ },
29598
+ {
29599
+ "$ref": "#/components/schemas/DocumentBlockExpandable"
29600
+ },
29601
+ {
29602
+ "$ref": "#/components/schemas/DocumentBlockFile"
29603
+ },
29604
+ {
29605
+ "$ref": "#/components/schemas/DocumentBlockHint"
29606
+ },
29607
+ {
29608
+ "$ref": "#/components/schemas/DocumentBlockIf"
29609
+ },
29610
+ {
29611
+ "$ref": "#/components/schemas/DocumentBlockMath"
29612
+ },
29613
+ {
29614
+ "$ref": "#/components/schemas/DocumentBlockPrompt"
29615
+ },
29616
+ {
29617
+ "$ref": "#/components/schemas/DocumentBlockStepper"
29618
+ },
29619
+ {
29620
+ "$ref": "#/components/schemas/DocumentBlockTabs"
29194
29621
  }
29195
29622
  ]
29196
29623
  }
29197
29624
  },
29198
- "data": {
29199
- "type": "object",
29200
- "additionalProperties": false
29201
- },
29202
29625
  "isVoid": {
29203
29626
  "type": "boolean",
29204
29627
  "enum": [
@@ -29209,10 +29632,11 @@
29209
29632
  "required": [
29210
29633
  "object",
29211
29634
  "type",
29635
+ "data",
29212
29636
  "nodes"
29213
29637
  ]
29214
29638
  },
29215
- "DocumentBlockListTasks": {
29639
+ "DocumentBlockPrompt": {
29216
29640
  "type": "object",
29217
29641
  "properties": {
29218
29642
  "object": {
@@ -29224,146 +29648,63 @@
29224
29648
  "type": {
29225
29649
  "type": "string",
29226
29650
  "enum": [
29227
- "list-tasks"
29651
+ "prompt"
29228
29652
  ]
29229
29653
  },
29230
29654
  "key": {
29231
29655
  "type": "string"
29232
29656
  },
29657
+ "data": {
29658
+ "type": "object",
29659
+ "properties": {
29660
+ "description": {
29661
+ "type": "string"
29662
+ },
29663
+ "icon": {
29664
+ "$ref": "#/components/schemas/Icon"
29665
+ },
29666
+ "openInAIProviders": {
29667
+ "type": "boolean"
29668
+ },
29669
+ "defaultExpanded": {
29670
+ "type": "string",
29671
+ "default": "hidden",
29672
+ "description": "Controls how much of the prompt content is visible by default.",
29673
+ "enum": [
29674
+ "hidden",
29675
+ "partial",
29676
+ "full"
29677
+ ]
29678
+ }
29679
+ },
29680
+ "required": [
29681
+ "description"
29682
+ ],
29683
+ "additionalProperties": false
29684
+ },
29233
29685
  "nodes": {
29234
29686
  "type": "array",
29235
29687
  "items": {
29236
29688
  "oneOf": [
29237
29689
  {
29238
- "$ref": "#/components/schemas/DocumentBlockListItem"
29690
+ "$ref": "#/components/schemas/DocumentBlockCode"
29239
29691
  }
29240
29692
  ]
29241
- }
29693
+ },
29694
+ "minItems": 1,
29695
+ "maxItems": 1
29242
29696
  },
29243
29697
  "isVoid": {
29244
29698
  "type": "boolean",
29245
29699
  "enum": [
29246
29700
  false
29247
29701
  ]
29248
- },
29249
- "data": {
29250
- "type": "object",
29251
- "properties": {},
29252
- "additionalProperties": false
29253
29702
  }
29254
29703
  },
29255
29704
  "required": [
29256
29705
  "object",
29257
29706
  "type",
29258
- "nodes"
29259
- ]
29260
- },
29261
- "DocumentBlockDivider": {
29262
- "type": "object",
29263
- "properties": {
29264
- "object": {
29265
- "type": "string",
29266
- "enum": [
29267
- "block"
29268
- ]
29269
- },
29270
- "type": {
29271
- "type": "string",
29272
- "enum": [
29273
- "divider"
29274
- ]
29275
- },
29276
- "key": {
29277
- "type": "string"
29278
- },
29279
- "isVoid": {
29280
- "type": "boolean",
29281
- "enum": [
29282
- true
29283
- ]
29284
- },
29285
- "data": {
29286
- "type": "object",
29287
- "properties": {},
29288
- "additionalProperties": false
29289
- }
29290
- },
29291
- "required": [
29292
- "object",
29293
- "type",
29294
- "isVoid",
29295
- "data"
29296
- ]
29297
- },
29298
- "DocumentBlockPrompt": {
29299
- "type": "object",
29300
- "properties": {
29301
- "object": {
29302
- "type": "string",
29303
- "enum": [
29304
- "block"
29305
- ]
29306
- },
29307
- "type": {
29308
- "type": "string",
29309
- "enum": [
29310
- "prompt"
29311
- ]
29312
- },
29313
- "key": {
29314
- "type": "string"
29315
- },
29316
- "data": {
29317
- "type": "object",
29318
- "properties": {
29319
- "description": {
29320
- "type": "string"
29321
- },
29322
- "icon": {
29323
- "$ref": "#/components/schemas/Icon"
29324
- },
29325
- "openInAIProviders": {
29326
- "type": "boolean"
29327
- },
29328
- "defaultExpanded": {
29329
- "type": "string",
29330
- "default": "hidden",
29331
- "description": "Controls how much of the prompt content is visible by default.",
29332
- "enum": [
29333
- "hidden",
29334
- "partial",
29335
- "full"
29336
- ]
29337
- }
29338
- },
29339
- "required": [
29340
- "description"
29341
- ],
29342
- "additionalProperties": false
29343
- },
29344
- "nodes": {
29345
- "type": "array",
29346
- "items": {
29347
- "oneOf": [
29348
- {
29349
- "$ref": "#/components/schemas/DocumentBlockCode"
29350
- }
29351
- ]
29352
- },
29353
- "minItems": 1,
29354
- "maxItems": 1
29355
- },
29356
- "isVoid": {
29357
- "type": "boolean",
29358
- "enum": [
29359
- false
29360
- ]
29361
- }
29362
- },
29363
- "required": [
29364
- "object",
29365
- "type",
29366
- "data",
29707
+ "data",
29367
29708
  "nodes"
29368
29709
  ]
29369
29710
  },
@@ -29492,29 +29833,7 @@
29492
29833
  "data"
29493
29834
  ]
29494
29835
  },
29495
- "Length": {
29496
- "oneOf": [
29497
- {
29498
- "type": "number"
29499
- },
29500
- {
29501
- "type": "object",
29502
- "properties": {
29503
- "unit": {
29504
- "type": "string"
29505
- },
29506
- "value": {
29507
- "type": "number"
29508
- }
29509
- },
29510
- "required": [
29511
- "unit",
29512
- "value"
29513
- ]
29514
- }
29515
- ]
29516
- },
29517
- "DocumentBlockImage": {
29836
+ "DocumentBlockReusableContent": {
29518
29837
  "type": "object",
29519
29838
  "properties": {
29520
29839
  "object": {
@@ -29526,7 +29845,7 @@
29526
29845
  "type": {
29527
29846
  "type": "string",
29528
29847
  "enum": [
29529
- "image"
29848
+ "reusable-content"
29530
29849
  ]
29531
29850
  },
29532
29851
  "key": {
@@ -29536,144 +29855,37 @@
29536
29855
  "type": "object",
29537
29856
  "properties": {
29538
29857
  "ref": {
29539
- "oneOf": [
29540
- {
29541
- "$ref": "#/components/schemas/ContentRefURL"
29542
- },
29543
- {
29544
- "$ref": "#/components/schemas/ContentRefFile"
29545
- }
29546
- ]
29547
- },
29548
- "refDark": {
29549
- "oneOf": [
29550
- {
29551
- "$ref": "#/components/schemas/ContentRefURL"
29552
- },
29553
- {
29554
- "$ref": "#/components/schemas/ContentRefFile"
29555
- }
29556
- ]
29557
- },
29558
- "width": {
29559
- "$ref": "#/components/schemas/Length"
29560
- },
29561
- "height": {
29562
- "$ref": "#/components/schemas/Length"
29563
- },
29564
- "alt": {
29565
- "type": "string"
29858
+ "$ref": "#/components/schemas/ContentRefReusableContent"
29566
29859
  }
29567
29860
  },
29568
29861
  "required": [
29569
29862
  "ref"
29570
29863
  ]
29571
29864
  },
29572
- "fragments": {
29573
- "type": "array",
29574
- "items": {
29575
- "allOf": [
29576
- {
29577
- "$ref": "#/components/schemas/DocumentFragment"
29578
- },
29579
- {
29580
- "type": "object",
29581
- "properties": {
29582
- "fragment": {
29583
- "type": "string",
29584
- "enum": [
29585
- "caption"
29586
- ]
29587
- },
29588
- "nodes": {
29589
- "type": "array",
29590
- "items": {
29591
- "$ref": "#/components/schemas/DocumentBlockParagraph"
29592
- }
29593
- }
29594
- },
29595
- "required": [
29596
- "nodes",
29597
- "fragment"
29598
- ]
29599
- }
29600
- ]
29601
- }
29602
- },
29603
29865
  "isVoid": {
29604
29866
  "type": "boolean",
29605
29867
  "enum": [
29606
29868
  true
29607
29869
  ]
29608
- }
29609
- },
29610
- "required": [
29611
- "object",
29612
- "type",
29613
- "data",
29614
- "fragments",
29615
- "isVoid"
29616
- ]
29617
- },
29618
- "DocumentBlockImages": {
29619
- "type": "object",
29620
- "properties": {
29621
- "object": {
29622
- "type": "string",
29623
- "enum": [
29624
- "block"
29625
- ]
29626
- },
29627
- "type": {
29628
- "type": "string",
29629
- "enum": [
29630
- "images"
29631
- ]
29632
- },
29633
- "key": {
29634
- "type": "string"
29635
29870
  },
29636
- "data": {
29871
+ "meta": {
29637
29872
  "type": "object",
29638
29873
  "properties": {
29639
- "align": {
29640
- "type": "string",
29641
- "enum": [
29642
- "center",
29643
- "left",
29644
- "right"
29645
- ]
29646
- },
29647
- "fullWidth": {
29648
- "type": "boolean"
29649
- },
29650
- "withFrame": {
29651
- "type": "boolean"
29874
+ "token": {
29875
+ "description": "A content token that can be used to fetch the reusable content from the API.",
29876
+ "type": "string"
29652
29877
  }
29653
29878
  }
29654
- },
29655
- "nodes": {
29656
- "type": "array",
29657
- "items": {
29658
- "$ref": "#/components/schemas/DocumentBlockImage"
29659
- }
29660
- },
29661
- "isVoid": {
29662
- "type": "boolean",
29663
- "enum": [
29664
- false
29665
- ]
29666
29879
  }
29667
29880
  },
29668
29881
  "required": [
29669
29882
  "object",
29670
29883
  "type",
29671
29884
  "data",
29672
- "nodes",
29673
29885
  "isVoid"
29674
29886
  ]
29675
29887
  },
29676
- "DocumentBlockFile": {
29888
+ "DocumentBlockContentRef": {
29677
29889
  "type": "object",
29678
29890
  "properties": {
29679
29891
  "object": {
@@ -29685,7 +29897,7 @@
29685
29897
  "type": {
29686
29898
  "type": "string",
29687
29899
  "enum": [
29688
- "file"
29900
+ "content-ref"
29689
29901
  ]
29690
29902
  },
29691
29903
  "key": {
@@ -29695,11 +29907,7 @@
29695
29907
  "type": "object",
29696
29908
  "properties": {
29697
29909
  "ref": {
29698
- "oneOf": [
29699
- {
29700
- "$ref": "#/components/schemas/ContentRefFile"
29701
- }
29702
- ]
29910
+ "$ref": "#/components/schemas/ContentRef"
29703
29911
  }
29704
29912
  },
29705
29913
  "required": [
@@ -29720,51 +29928,7 @@
29720
29928
  "isVoid"
29721
29929
  ]
29722
29930
  },
29723
- "DocumentBlockDrawing": {
29724
- "type": "object",
29725
- "properties": {
29726
- "object": {
29727
- "type": "string",
29728
- "enum": [
29729
- "block"
29730
- ]
29731
- },
29732
- "type": {
29733
- "type": "string",
29734
- "enum": [
29735
- "drawing"
29736
- ]
29737
- },
29738
- "key": {
29739
- "type": "string"
29740
- },
29741
- "data": {
29742
- "type": "object",
29743
- "properties": {
29744
- "ref": {
29745
- "oneOf": [
29746
- {
29747
- "$ref": "#/components/schemas/ContentRefFile"
29748
- }
29749
- ]
29750
- }
29751
- }
29752
- },
29753
- "isVoid": {
29754
- "type": "boolean",
29755
- "enum": [
29756
- true
29757
- ]
29758
- }
29759
- },
29760
- "required": [
29761
- "object",
29762
- "type",
29763
- "data",
29764
- "isVoid"
29765
- ]
29766
- },
29767
- "DocumentBlockReusableContent": {
29931
+ "DocumentBlockMath": {
29768
29932
  "type": "object",
29769
29933
  "properties": {
29770
29934
  "object": {
@@ -29776,7 +29940,7 @@
29776
29940
  "type": {
29777
29941
  "type": "string",
29778
29942
  "enum": [
29779
- "reusable-content"
29943
+ "math"
29780
29944
  ]
29781
29945
  },
29782
29946
  "key": {
@@ -29785,12 +29949,12 @@
29785
29949
  "data": {
29786
29950
  "type": "object",
29787
29951
  "properties": {
29788
- "ref": {
29789
- "$ref": "#/components/schemas/ContentRefReusableContent"
29952
+ "formula": {
29953
+ "type": "string"
29790
29954
  }
29791
29955
  },
29792
29956
  "required": [
29793
- "ref"
29957
+ "formula"
29794
29958
  ]
29795
29959
  },
29796
29960
  "isVoid": {
@@ -29798,15 +29962,6 @@
29798
29962
  "enum": [
29799
29963
  true
29800
29964
  ]
29801
- },
29802
- "meta": {
29803
- "type": "object",
29804
- "properties": {
29805
- "token": {
29806
- "description": "A content token that can be used to fetch the reusable content from the API.",
29807
- "type": "string"
29808
- }
29809
- }
29810
29965
  }
29811
29966
  },
29812
29967
  "required": [
@@ -29917,6 +30072,9 @@
29917
30072
  {
29918
30073
  "$ref": "#/components/schemas/DocumentBlocksEssentials"
29919
30074
  },
30075
+ {
30076
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
30077
+ },
29920
30078
  {
29921
30079
  "$ref": "#/components/schemas/DocumentBlockFile"
29922
30080
  },
@@ -29938,11 +30096,17 @@
29938
30096
  {
29939
30097
  "$ref": "#/components/schemas/DocumentBlockQuote"
29940
30098
  },
30099
+ {
30100
+ "$ref": "#/components/schemas/DocumentBlockIf"
30101
+ },
29941
30102
  {
29942
30103
  "$ref": "#/components/schemas/DocumentBlockReusableContent"
29943
30104
  },
29944
30105
  {
29945
30106
  "$ref": "#/components/schemas/DocumentBlockIntegration"
30107
+ },
30108
+ {
30109
+ "$ref": "#/components/schemas/DocumentBlockStepper"
29946
30110
  }
29947
30111
  ]
29948
30112
  },
@@ -29981,7 +30145,7 @@
29981
30145
  "data"
29982
30146
  ]
29983
30147
  },
29984
- "DocumentBlockContentRef": {
30148
+ "DocumentBlockStepper": {
29985
30149
  "type": "object",
29986
30150
  "properties": {
29987
30151
  "object": {
@@ -29993,35 +30157,80 @@
29993
30157
  "type": {
29994
30158
  "type": "string",
29995
30159
  "enum": [
29996
- "content-ref"
30160
+ "stepper"
29997
30161
  ]
29998
30162
  },
29999
30163
  "key": {
30000
30164
  "type": "string"
30001
30165
  },
30166
+ "nodes": {
30167
+ "type": "array",
30168
+ "items": {
30169
+ "$ref": "#/components/schemas/DocumentBlockStepperStep"
30170
+ }
30171
+ },
30172
+ "isVoid": {
30173
+ "type": "boolean",
30174
+ "enum": [
30175
+ false
30176
+ ]
30177
+ },
30002
30178
  "data": {
30003
30179
  "type": "object",
30004
- "properties": {
30005
- "ref": {
30006
- "$ref": "#/components/schemas/ContentRef"
30007
- }
30008
- },
30009
- "required": [
30010
- "ref"
30180
+ "properties": {},
30181
+ "additionalProperties": false
30182
+ }
30183
+ },
30184
+ "required": [
30185
+ "object",
30186
+ "type",
30187
+ "nodes"
30188
+ ]
30189
+ },
30190
+ "DocumentBlockTabs": {
30191
+ "type": "object",
30192
+ "properties": {
30193
+ "object": {
30194
+ "type": "string",
30195
+ "enum": [
30196
+ "block"
30197
+ ]
30198
+ },
30199
+ "type": {
30200
+ "type": "string",
30201
+ "enum": [
30202
+ "tabs"
30011
30203
  ]
30012
30204
  },
30205
+ "key": {
30206
+ "type": "string"
30207
+ },
30208
+ "nodes": {
30209
+ "type": "array",
30210
+ "items": {
30211
+ "$ref": "#/components/schemas/DocumentBlockTabsItem"
30212
+ }
30213
+ },
30013
30214
  "isVoid": {
30014
30215
  "type": "boolean",
30015
30216
  "enum": [
30016
- true
30217
+ false
30017
30218
  ]
30219
+ },
30220
+ "data": {
30221
+ "type": "object",
30222
+ "properties": {
30223
+ "fullWidth": {
30224
+ "type": "boolean"
30225
+ }
30226
+ },
30227
+ "additionalProperties": false
30018
30228
  }
30019
30229
  },
30020
30230
  "required": [
30021
30231
  "object",
30022
30232
  "type",
30023
- "data",
30024
- "isVoid"
30233
+ "nodes"
30025
30234
  ]
30026
30235
  },
30027
30236
  "DocumentBlockTabsItem": {
@@ -30081,6 +30290,24 @@
30081
30290
  },
30082
30291
  {
30083
30292
  "$ref": "#/components/schemas/DocumentBlockIntegration"
30293
+ },
30294
+ {
30295
+ "$ref": "#/components/schemas/DocumentBlockTable"
30296
+ },
30297
+ {
30298
+ "$ref": "#/components/schemas/DocumentBlockExpandable"
30299
+ },
30300
+ {
30301
+ "$ref": "#/components/schemas/DocumentBlockIf"
30302
+ },
30303
+ {
30304
+ "$ref": "#/components/schemas/DocumentBlockReusableContent"
30305
+ },
30306
+ {
30307
+ "$ref": "#/components/schemas/DocumentBlockStepper"
30308
+ },
30309
+ {
30310
+ "$ref": "#/components/schemas/DocumentBlockTabs"
30084
30311
  }
30085
30312
  ]
30086
30313
  }
@@ -30126,7 +30353,7 @@
30126
30353
  "data"
30127
30354
  ]
30128
30355
  },
30129
- "DocumentBlockTabs": {
30356
+ "DocumentBlockStepperStep": {
30130
30357
  "type": "object",
30131
30358
  "properties": {
30132
30359
  "object": {
@@ -30138,7 +30365,7 @@
30138
30365
  "type": {
30139
30366
  "type": "string",
30140
30367
  "enum": [
30141
- "tabs"
30368
+ "stepper-step"
30142
30369
  ]
30143
30370
  },
30144
30371
  "key": {
@@ -30147,7 +30374,130 @@
30147
30374
  "nodes": {
30148
30375
  "type": "array",
30149
30376
  "items": {
30150
- "$ref": "#/components/schemas/DocumentBlockTabsItem"
30377
+ "oneOf": [
30378
+ {
30379
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
30380
+ },
30381
+ {
30382
+ "$ref": "#/components/schemas/DocumentBlockContentRef"
30383
+ },
30384
+ {
30385
+ "$ref": "#/components/schemas/DocumentBlockCode"
30386
+ },
30387
+ {
30388
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
30389
+ },
30390
+ {
30391
+ "$ref": "#/components/schemas/DocumentBlockFile"
30392
+ },
30393
+ {
30394
+ "$ref": "#/components/schemas/DocumentBlockImages"
30395
+ },
30396
+ {
30397
+ "$ref": "#/components/schemas/DocumentBlockDrawing"
30398
+ },
30399
+ {
30400
+ "$ref": "#/components/schemas/DocumentBlockHint"
30401
+ },
30402
+ {
30403
+ "$ref": "#/components/schemas/DocumentBlockPrompt"
30404
+ },
30405
+ {
30406
+ "$ref": "#/components/schemas/DocumentBlockQuote"
30407
+ },
30408
+ {
30409
+ "$ref": "#/components/schemas/DocumentBlockMath"
30410
+ },
30411
+ {
30412
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
30413
+ },
30414
+ {
30415
+ "$ref": "#/components/schemas/DocumentBlockExpandable"
30416
+ },
30417
+ {
30418
+ "$ref": "#/components/schemas/DocumentBlockTable"
30419
+ },
30420
+ {
30421
+ "$ref": "#/components/schemas/DocumentBlockTabs"
30422
+ },
30423
+ {
30424
+ "$ref": "#/components/schemas/DocumentBlockIf"
30425
+ },
30426
+ {
30427
+ "$ref": "#/components/schemas/DocumentBlockReusableContent"
30428
+ },
30429
+ {
30430
+ "$ref": "#/components/schemas/DocumentBlockStepper"
30431
+ }
30432
+ ]
30433
+ }
30434
+ },
30435
+ "data": {
30436
+ "type": "object",
30437
+ "properties": {
30438
+ "icon": {
30439
+ "type": "string"
30440
+ }
30441
+ }
30442
+ },
30443
+ "isVoid": {
30444
+ "type": "boolean",
30445
+ "enum": [
30446
+ false
30447
+ ]
30448
+ }
30449
+ },
30450
+ "required": [
30451
+ "object",
30452
+ "type",
30453
+ "nodes",
30454
+ "data"
30455
+ ]
30456
+ },
30457
+ "DocumentBlockListItem": {
30458
+ "type": "object",
30459
+ "properties": {
30460
+ "object": {
30461
+ "type": "string",
30462
+ "enum": [
30463
+ "block"
30464
+ ]
30465
+ },
30466
+ "type": {
30467
+ "type": "string",
30468
+ "enum": [
30469
+ "list-item"
30470
+ ]
30471
+ },
30472
+ "key": {
30473
+ "type": "string"
30474
+ },
30475
+ "nodes": {
30476
+ "type": "array",
30477
+ "items": {
30478
+ "oneOf": [
30479
+ {
30480
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
30481
+ },
30482
+ {
30483
+ "$ref": "#/components/schemas/DocumentBlockCode"
30484
+ },
30485
+ {
30486
+ "$ref": "#/components/schemas/DocumentBlockHint"
30487
+ },
30488
+ {
30489
+ "$ref": "#/components/schemas/DocumentBlockQuote"
30490
+ },
30491
+ {
30492
+ "$ref": "#/components/schemas/DocumentBlockMath"
30493
+ },
30494
+ {
30495
+ "$ref": "#/components/schemas/DocumentBlockTable"
30496
+ },
30497
+ {
30498
+ "$ref": "#/components/schemas/DocumentBlockImages"
30499
+ }
30500
+ ]
30151
30501
  }
30152
30502
  },
30153
30503
  "isVoid": {
@@ -30159,11 +30509,106 @@
30159
30509
  "data": {
30160
30510
  "type": "object",
30161
30511
  "properties": {
30162
- "fullWidth": {
30512
+ "checked": {
30163
30513
  "type": "boolean"
30164
30514
  }
30165
- },
30515
+ }
30516
+ }
30517
+ },
30518
+ "required": [
30519
+ "object",
30520
+ "type",
30521
+ "nodes"
30522
+ ]
30523
+ },
30524
+ "DocumentBlockListOrdered": {
30525
+ "type": "object",
30526
+ "properties": {
30527
+ "object": {
30528
+ "type": "string",
30529
+ "enum": [
30530
+ "block"
30531
+ ]
30532
+ },
30533
+ "type": {
30534
+ "type": "string",
30535
+ "enum": [
30536
+ "list-ordered"
30537
+ ]
30538
+ },
30539
+ "key": {
30540
+ "type": "string"
30541
+ },
30542
+ "data": {
30543
+ "type": "object",
30544
+ "properties": {
30545
+ "start": {
30546
+ "type": "number",
30547
+ "description": "An integer to start counting from for the list items."
30548
+ }
30549
+ }
30550
+ },
30551
+ "nodes": {
30552
+ "type": "array",
30553
+ "items": {
30554
+ "oneOf": [
30555
+ {
30556
+ "$ref": "#/components/schemas/DocumentBlockListItem"
30557
+ }
30558
+ ]
30559
+ }
30560
+ },
30561
+ "isVoid": {
30562
+ "type": "boolean",
30563
+ "enum": [
30564
+ false
30565
+ ]
30566
+ }
30567
+ },
30568
+ "required": [
30569
+ "object",
30570
+ "type",
30571
+ "data",
30572
+ "nodes"
30573
+ ]
30574
+ },
30575
+ "DocumentBlockListUnordered": {
30576
+ "type": "object",
30577
+ "properties": {
30578
+ "object": {
30579
+ "type": "string",
30580
+ "enum": [
30581
+ "block"
30582
+ ]
30583
+ },
30584
+ "type": {
30585
+ "type": "string",
30586
+ "enum": [
30587
+ "list-unordered"
30588
+ ]
30589
+ },
30590
+ "key": {
30591
+ "type": "string"
30592
+ },
30593
+ "nodes": {
30594
+ "type": "array",
30595
+ "items": {
30596
+ "oneOf": [
30597
+ {
30598
+ "$ref": "#/components/schemas/DocumentBlockListItem"
30599
+ }
30600
+ ]
30601
+ }
30602
+ },
30603
+ "data": {
30604
+ "type": "object",
30166
30605
  "additionalProperties": false
30606
+ },
30607
+ "isVoid": {
30608
+ "type": "boolean",
30609
+ "enum": [
30610
+ false
30611
+ ]
30167
30612
  }
30168
30613
  },
30169
30614
  "required": [
@@ -30172,6 +30617,89 @@
30172
30617
  "nodes"
30173
30618
  ]
30174
30619
  },
30620
+ "DocumentBlockListTasks": {
30621
+ "type": "object",
30622
+ "properties": {
30623
+ "object": {
30624
+ "type": "string",
30625
+ "enum": [
30626
+ "block"
30627
+ ]
30628
+ },
30629
+ "type": {
30630
+ "type": "string",
30631
+ "enum": [
30632
+ "list-tasks"
30633
+ ]
30634
+ },
30635
+ "key": {
30636
+ "type": "string"
30637
+ },
30638
+ "nodes": {
30639
+ "type": "array",
30640
+ "items": {
30641
+ "oneOf": [
30642
+ {
30643
+ "$ref": "#/components/schemas/DocumentBlockListItem"
30644
+ }
30645
+ ]
30646
+ }
30647
+ },
30648
+ "isVoid": {
30649
+ "type": "boolean",
30650
+ "enum": [
30651
+ false
30652
+ ]
30653
+ },
30654
+ "data": {
30655
+ "type": "object",
30656
+ "properties": {},
30657
+ "additionalProperties": false
30658
+ }
30659
+ },
30660
+ "required": [
30661
+ "object",
30662
+ "type",
30663
+ "nodes"
30664
+ ]
30665
+ },
30666
+ "DocumentBlockDivider": {
30667
+ "type": "object",
30668
+ "properties": {
30669
+ "object": {
30670
+ "type": "string",
30671
+ "enum": [
30672
+ "block"
30673
+ ]
30674
+ },
30675
+ "type": {
30676
+ "type": "string",
30677
+ "enum": [
30678
+ "divider"
30679
+ ]
30680
+ },
30681
+ "key": {
30682
+ "type": "string"
30683
+ },
30684
+ "isVoid": {
30685
+ "type": "boolean",
30686
+ "enum": [
30687
+ true
30688
+ ]
30689
+ },
30690
+ "data": {
30691
+ "type": "object",
30692
+ "properties": {},
30693
+ "additionalProperties": false
30694
+ }
30695
+ },
30696
+ "required": [
30697
+ "object",
30698
+ "type",
30699
+ "isVoid",
30700
+ "data"
30701
+ ]
30702
+ },
30175
30703
  "OpenAPIOperationPointer": {
30176
30704
  "type": "object",
30177
30705
  "description": "Pointer to an operation in the OpenAPI spec.",
@@ -30508,134 +31036,6 @@
30508
31036
  "isVoid"
30509
31037
  ]
30510
31038
  },
30511
- "DocumentBlockStepperStep": {
30512
- "type": "object",
30513
- "properties": {
30514
- "object": {
30515
- "type": "string",
30516
- "enum": [
30517
- "block"
30518
- ]
30519
- },
30520
- "type": {
30521
- "type": "string",
30522
- "enum": [
30523
- "stepper-step"
30524
- ]
30525
- },
30526
- "key": {
30527
- "type": "string"
30528
- },
30529
- "nodes": {
30530
- "type": "array",
30531
- "items": {
30532
- "oneOf": [
30533
- {
30534
- "$ref": "#/components/schemas/DocumentBlocksEssentials"
30535
- },
30536
- {
30537
- "$ref": "#/components/schemas/DocumentBlockContentRef"
30538
- },
30539
- {
30540
- "$ref": "#/components/schemas/DocumentBlockCode"
30541
- },
30542
- {
30543
- "$ref": "#/components/schemas/DocumentBlockEmbed"
30544
- },
30545
- {
30546
- "$ref": "#/components/schemas/DocumentBlockFile"
30547
- },
30548
- {
30549
- "$ref": "#/components/schemas/DocumentBlockImages"
30550
- },
30551
- {
30552
- "$ref": "#/components/schemas/DocumentBlockDrawing"
30553
- },
30554
- {
30555
- "$ref": "#/components/schemas/DocumentBlockHint"
30556
- },
30557
- {
30558
- "$ref": "#/components/schemas/DocumentBlockPrompt"
30559
- },
30560
- {
30561
- "$ref": "#/components/schemas/DocumentBlockQuote"
30562
- },
30563
- {
30564
- "$ref": "#/components/schemas/DocumentBlockMath"
30565
- },
30566
- {
30567
- "$ref": "#/components/schemas/DocumentBlockIntegration"
30568
- },
30569
- {
30570
- "$ref": "#/components/schemas/DocumentBlockExpandable"
30571
- }
30572
- ]
30573
- }
30574
- },
30575
- "data": {
30576
- "type": "object",
30577
- "properties": {
30578
- "icon": {
30579
- "type": "string"
30580
- }
30581
- }
30582
- },
30583
- "isVoid": {
30584
- "type": "boolean",
30585
- "enum": [
30586
- false
30587
- ]
30588
- }
30589
- },
30590
- "required": [
30591
- "object",
30592
- "type",
30593
- "nodes",
30594
- "data"
30595
- ]
30596
- },
30597
- "DocumentBlockStepper": {
30598
- "type": "object",
30599
- "properties": {
30600
- "object": {
30601
- "type": "string",
30602
- "enum": [
30603
- "block"
30604
- ]
30605
- },
30606
- "type": {
30607
- "type": "string",
30608
- "enum": [
30609
- "stepper"
30610
- ]
30611
- },
30612
- "key": {
30613
- "type": "string"
30614
- },
30615
- "nodes": {
30616
- "type": "array",
30617
- "items": {
30618
- "$ref": "#/components/schemas/DocumentBlockStepperStep"
30619
- }
30620
- },
30621
- "isVoid": {
30622
- "type": "boolean",
30623
- "enum": [
30624
- false
30625
- ]
30626
- },
30627
- "data": {
30628
- "type": "object",
30629
- "properties": {},
30630
- "additionalProperties": false
30631
- }
30632
- },
30633
- "required": [
30634
- "object",
30635
- "type",
30636
- "nodes"
30637
- ]
30638
- },
30639
31039
  "DocumentBlockColumn": {
30640
31040
  "type": "object",
30641
31041
  "properties": {
@@ -30702,6 +31102,9 @@
30702
31102
  },
30703
31103
  {
30704
31104
  "$ref": "#/components/schemas/DocumentBlockStepper"
31105
+ },
31106
+ {
31107
+ "$ref": "#/components/schemas/DocumentBlockIf"
30705
31108
  }
30706
31109
  ]
30707
31110
  }
@@ -30842,6 +31245,15 @@
30842
31245
  },
30843
31246
  {
30844
31247
  "$ref": "#/components/schemas/DocumentBlockExpandable"
31248
+ },
31249
+ {
31250
+ "$ref": "#/components/schemas/DocumentBlockTable"
31251
+ },
31252
+ {
31253
+ "$ref": "#/components/schemas/DocumentBlockIf"
31254
+ },
31255
+ {
31256
+ "$ref": "#/components/schemas/DocumentBlockStepper"
30845
31257
  }
30846
31258
  ]
30847
31259
  }
@@ -30850,7 +31262,17 @@
30850
31262
  "type": "object",
30851
31263
  "properties": {
30852
31264
  "date": {
30853
- "$ref": "#/components/schemas/Timestamp"
31265
+ "type": "string",
31266
+ "description": "Date of the update. Accepts a YYYY-MM-DD date or a timestamp. Timestamps are normalized to their UTC calendar date; responses use YYYY-MM-DD.",
31267
+ "oneOf": [
31268
+ {
31269
+ "type": "string",
31270
+ "format": "date"
31271
+ },
31272
+ {
31273
+ "$ref": "#/components/schemas/Timestamp"
31274
+ }
31275
+ ]
30854
31276
  },
30855
31277
  "tags": {
30856
31278
  "type": "array",
@@ -31046,49 +31468,6 @@
31046
31468
  }
31047
31469
  ]
31048
31470
  },
31049
- "DocumentInlineMention": {
31050
- "type": "object",
31051
- "properties": {
31052
- "object": {
31053
- "type": "string",
31054
- "enum": [
31055
- "inline"
31056
- ]
31057
- },
31058
- "type": {
31059
- "type": "string",
31060
- "enum": [
31061
- "mention"
31062
- ]
31063
- },
31064
- "key": {
31065
- "type": "string"
31066
- },
31067
- "data": {
31068
- "type": "object",
31069
- "properties": {
31070
- "ref": {
31071
- "$ref": "#/components/schemas/ContentRef"
31072
- }
31073
- },
31074
- "required": [
31075
- "ref"
31076
- ]
31077
- },
31078
- "isVoid": {
31079
- "type": "boolean",
31080
- "enum": [
31081
- true
31082
- ]
31083
- }
31084
- },
31085
- "required": [
31086
- "object",
31087
- "type",
31088
- "data",
31089
- "isVoid"
31090
- ]
31091
- },
31092
31471
  "DocumentAction": {
31093
31472
  "description": "Action to perform when an inline button is clicked.",
31094
31473
  "type": "object",
@@ -31106,6 +31485,14 @@
31106
31485
  "query": {
31107
31486
  "type": "string",
31108
31487
  "description": "The search query to prefill."
31488
+ },
31489
+ "scope": {
31490
+ "type": "string",
31491
+ "description": "Where to search. `site` searches the whole site; `space` limits the search to the space the visitor is reading.\n",
31492
+ "enum": [
31493
+ "site",
31494
+ "space"
31495
+ ]
31109
31496
  }
31110
31497
  },
31111
31498
  "required": [
@@ -31217,8 +31604,7 @@
31217
31604
  },
31218
31605
  "required": [
31219
31606
  "ref"
31220
- ],
31221
- "additionalProperties": false
31607
+ ]
31222
31608
  },
31223
31609
  {
31224
31610
  "type": "object",
@@ -31229,8 +31615,7 @@
31229
31615
  },
31230
31616
  "required": [
31231
31617
  "action"
31232
- ],
31233
- "additionalProperties": false
31618
+ ]
31234
31619
  }
31235
31620
  ]
31236
31621
  }
@@ -32736,6 +33121,58 @@
32736
33121
  "minLength": 0,
32737
33122
  "maxLength": 100
32738
33123
  },
33124
+ "ChangeRequestChangeCountsByType": {
33125
+ "type": "object",
33126
+ "description": "Counts of entities grouped by how they changed relative to the change request base.",
33127
+ "properties": {
33128
+ "added": {
33129
+ "type": "integer",
33130
+ "minimum": 0
33131
+ },
33132
+ "modified": {
33133
+ "type": "integer",
33134
+ "minimum": 0
33135
+ },
33136
+ "deleted": {
33137
+ "type": "integer",
33138
+ "minimum": 0
33139
+ }
33140
+ },
33141
+ "required": [
33142
+ "added",
33143
+ "modified",
33144
+ "deleted"
33145
+ ]
33146
+ },
33147
+ "ChangeRequestChangeCounts": {
33148
+ "type": "object",
33149
+ "description": "Exact semantic entity and page-document block counts for a change request at its current head and base revisions.",
33150
+ "properties": {
33151
+ "pages": {
33152
+ "$ref": "#/components/schemas/ChangeRequestChangeCountsByType"
33153
+ },
33154
+ "library": {
33155
+ "$ref": "#/components/schemas/ChangeRequestChangeCountsByType"
33156
+ },
33157
+ "blocks": {
33158
+ "description": "Nested user-visible page-document block counts. Absent when `blocksOmittedReason` is set.",
33159
+ "$ref": "#/components/schemas/ChangeRequestChangeCountsByType"
33160
+ },
33161
+ "blocksOmittedReason": {
33162
+ "type": "string",
33163
+ "enum": [
33164
+ "too-many-pages",
33165
+ "too-many-blocks",
33166
+ "timeout"
33167
+ ],
33168
+ "description": "Why `blocks` is absent: too many pages changed (`too-many-pages`), the changed pages hold too many blocks to compare within the counting budget (`too-many-blocks`; this is not a count of changed blocks), or counting ran out of time (`timeout`). Page and library counts are still exact."
33169
+ }
33170
+ },
33171
+ "required": [
33172
+ "pages",
33173
+ "library"
33174
+ ]
33175
+ },
32739
33176
  "ChangeRequestLinkTitle": {
32740
33177
  "type": "string",
32741
33178
  "description": "Optional title to display for the link.",
@@ -32962,6 +33399,10 @@
32962
33399
  "type": "number",
32963
33400
  "description": "Count of opened comments on the change request."
32964
33401
  },
33402
+ "changeCounts": {
33403
+ "description": "Change counts computed when the change request gets a new revision, for its current head and base revisions. Merged change requests keep their last computed counts. Absent until computed.",
33404
+ "$ref": "#/components/schemas/ChangeRequestChangeCounts"
33405
+ },
32965
33406
  "siteTopic": {
32966
33407
  "type": "object",
32967
33408
  "description": "Site topic the change request was created from, when it came from one.",
@@ -32977,7 +33418,7 @@
32977
33418
  "finding": {
32978
33419
  "type": "string",
32979
33420
  "deprecated": true,
32980
- "description": "ID of the site finding the change request fixes. Use `siteFinding` instead: a change request can fix a finding without belonging to a topic, and this field is absent in that case."
33421
+ "description": "ID of the site finding the change request fixes. Use `siteFindings` instead: a change request can fix a finding without belonging to a topic, and this field is absent in that case."
32981
33422
  }
32982
33423
  },
32983
33424
  "required": [
@@ -32986,8 +33427,9 @@
32986
33427
  ]
32987
33428
  },
32988
33429
  "siteFinding": {
33430
+ "deprecated": true,
32989
33431
  "type": "object",
32990
- "description": "Site finding the change request fixes, when it is linked to one. Merging the change request resolves the finding, once every change request linked to it is merged.",
33432
+ "description": "First linked site finding. Use `siteFindings` to read all linked findings.",
32991
33433
  "properties": {
32992
33434
  "site": {
32993
33435
  "type": "string",
@@ -33003,6 +33445,27 @@
33003
33445
  "finding"
33004
33446
  ]
33005
33447
  },
33448
+ "siteFindings": {
33449
+ "type": "array",
33450
+ "description": "Site findings linked to the change request, in link order. Absent when none are linked. Merging resolves findings once every linked change request is merged, except outbound broken links, which are resolved by the outbound checker.",
33451
+ "items": {
33452
+ "type": "object",
33453
+ "properties": {
33454
+ "site": {
33455
+ "type": "string",
33456
+ "description": "ID of the site the finding belongs to."
33457
+ },
33458
+ "finding": {
33459
+ "type": "string",
33460
+ "description": "ID of the site finding the change request fixes."
33461
+ }
33462
+ },
33463
+ "required": [
33464
+ "site",
33465
+ "finding"
33466
+ ]
33467
+ }
33468
+ },
33006
33469
  "styleguide": {
33007
33470
  "type": "object",
33008
33471
  "description": "Style guide check that opened the change request, when it came from one. A check can be run again on the change request already open on a space, rather than opening a second one, so several checks can share a change request.\n",
@@ -34218,6 +34681,57 @@
34218
34681
  ]
34219
34682
  }
34220
34683
  },
34684
+ "ChangeRequestContentChangeInsertComputedPage": {
34685
+ "type": "object",
34686
+ "description": "Insert a page whose content GitBook generates from a source instead of a document: an OpenAPI spec of the organization, rendered as an API reference. GitBook replaces the page, at its position, with the pages it generates and regenerates them whenever the source changes.",
34687
+ "required": [
34688
+ "operation",
34689
+ "computed"
34690
+ ],
34691
+ "properties": {
34692
+ "operation": {
34693
+ "type": "string",
34694
+ "enum": [
34695
+ "insert_computed_page"
34696
+ ]
34697
+ },
34698
+ "computed": {
34699
+ "$ref": "#/components/schemas/ComputedContentSourceRevisionOpenAPI"
34700
+ },
34701
+ "title": {
34702
+ "type": "string",
34703
+ "minLength": 1,
34704
+ "description": "Title of the page, only shown in the editor since the generated pages take its place. Defaults to \"OpenAPI\"."
34705
+ },
34706
+ "into": {
34707
+ "type": "string",
34708
+ "description": "ID of the parent page to insert the page into, so the generated pages are nested under it. If omitted, the page is inserted at the root."
34709
+ },
34710
+ "at": {
34711
+ "type": "integer",
34712
+ "minimum": 0,
34713
+ "description": "Zero-based index to insert the page at among its siblings. If omitted, the page is appended at the end."
34714
+ }
34715
+ },
34716
+ "example": {
34717
+ "operation": "insert_computed_page",
34718
+ "title": "API reference",
34719
+ "computed": {
34720
+ "type": "builtin:openapi",
34721
+ "props": {
34722
+ "models": true
34723
+ },
34724
+ "dependencies": {
34725
+ "spec": {
34726
+ "ref": {
34727
+ "kind": "openapi",
34728
+ "spec": "my-api"
34729
+ }
34730
+ }
34731
+ }
34732
+ }
34733
+ }
34734
+ },
34221
34735
  "ChangeRequestContentChange": {
34222
34736
  "oneOf": [
34223
34737
  {
@@ -34234,6 +34748,9 @@
34234
34748
  },
34235
34749
  {
34236
34750
  "$ref": "#/components/schemas/ChangeRequestContentChangeInsertFiles"
34751
+ },
34752
+ {
34753
+ "$ref": "#/components/schemas/ChangeRequestContentChangeInsertComputedPage"
34237
34754
  }
34238
34755
  ],
34239
34756
  "discriminator": {
@@ -34243,7 +34760,8 @@
34243
34760
  "insert_page": "#/components/schemas/ChangeRequestContentChangeInsertPage",
34244
34761
  "delete_page": "#/components/schemas/ChangeRequestContentChangeDeletePage",
34245
34762
  "revert_page": "#/components/schemas/ChangeRequestContentChangeRevertPage",
34246
- "insert_files": "#/components/schemas/ChangeRequestContentChangeInsertFiles"
34763
+ "insert_files": "#/components/schemas/ChangeRequestContentChangeInsertFiles",
34764
+ "insert_computed_page": "#/components/schemas/ChangeRequestContentChangeInsertComputedPage"
34247
34765
  }
34248
34766
  }
34249
34767
  },
@@ -34273,7 +34791,7 @@
34273
34791
  ],
34274
34792
  "properties": {
34275
34793
  "location": {
34276
- "description": "API URL to fetch the page's full, normalized content.",
34794
+ "description": "API URL to fetch the page's full, normalized content. For a computed page, it reads the page as stored (`computed=false`), since the computed content replaces the page with the pages it generates.",
34277
34795
  "$ref": "#/components/schemas/URL"
34278
34796
  }
34279
34797
  }
@@ -35549,14 +36067,9 @@
35549
36067
  },
35550
36068
  "OrganizationAISettings": {
35551
36069
  "type": "object",
35552
- "description": "AI preferences and automatic pause status. Missing feature keys leave features enabled, subject to the master AI setting and feature eligibility.",
36070
+ "description": "AI preferences. Missing feature keys leave features enabled, subject to the master AI setting and feature eligibility.",
35553
36071
  "additionalProperties": false,
35554
36072
  "properties": {
35555
- "aiPaused": {
35556
- "type": "boolean",
35557
- "readOnly": true,
35558
- "description": "Whether AI features are automatically paused because credits are low."
35559
- },
35560
36073
  "ai-agent": {
35561
36074
  "type": "boolean",
35562
36075
  "enum": [
@@ -35992,6 +36505,10 @@
35992
36505
  "aiSettings": {
35993
36506
  "$ref": "#/components/schemas/OrganizationAISettings"
35994
36507
  },
36508
+ "aiPaused": {
36509
+ "description": "Whether AI features have been paused automatically due to lack of AI credits.",
36510
+ "type": "boolean"
36511
+ },
35995
36512
  "inviteLinks": {
35996
36513
  "description": "If true, invite links are enabled for this organization.",
35997
36514
  "type": "boolean"
@@ -41768,6 +42285,17 @@
41768
42285
  "amount"
41769
42286
  ]
41770
42287
  },
42288
+ "AICreditGrantType": {
42289
+ "type": "string",
42290
+ "description": "Where AI credits come from: - `paid`: credits included in the monthly bundle - `bonus`: free credits included with the monthly bundle - `site`: credits from published paid sites - `rollover`: unused paid credits carried over from the previous period - `custom`: credits granted manually by Sales or Support",
42291
+ "enum": [
42292
+ "paid",
42293
+ "bonus",
42294
+ "site",
42295
+ "rollover",
42296
+ "custom"
42297
+ ]
42298
+ },
41771
42299
  "BillingCreditsTotals": {
41772
42300
  "type": "object",
41773
42301
  "description": "A total of AI credits, and how much of it is left.",
@@ -41862,15 +42390,7 @@
41862
42390
  "description": "AI credits granted to the organization for the current AI billing period.",
41863
42391
  "properties": {
41864
42392
  "type": {
41865
- "type": "string",
41866
- "description": "Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period. `custom` is a grant created outside GitBook.",
41867
- "enum": [
41868
- "paid",
41869
- "bonus",
41870
- "site",
41871
- "rollover",
41872
- "custom"
41873
- ]
42393
+ "$ref": "#/components/schemas/AICreditGrantType"
41874
42394
  },
41875
42395
  "priority": {
41876
42396
  "type": "number",
@@ -42122,15 +42642,7 @@
42122
42642
  "description": "AI credits granted to the organization for the current AI billing period.",
42123
42643
  "properties": {
42124
42644
  "type": {
42125
- "type": "string",
42126
- "description": "Where the credits come from. `paid` is the credits the monthly bundle pays for, `bonus` the ones included with it, `site` the allowance of the organization's published paid sites, and `rollover` what was left of the previous period. `custom` is a grant created outside GitBook.",
42127
- "enum": [
42128
- "paid",
42129
- "bonus",
42130
- "site",
42131
- "rollover",
42132
- "custom"
42133
- ]
42645
+ "$ref": "#/components/schemas/AICreditGrantType"
42134
42646
  },
42135
42647
  "priority": {
42136
42648
  "type": "number",
@@ -48041,6 +48553,59 @@
48041
48553
  }
48042
48554
  ]
48043
48555
  },
48556
+ "JiraConnectorSetupSettings": {
48557
+ "type": "object",
48558
+ "properties": {
48559
+ "baseUrl": {
48560
+ "type": "string",
48561
+ "format": "uri",
48562
+ "minLength": 1,
48563
+ "maxLength": 2048,
48564
+ "description": "Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net."
48565
+ },
48566
+ "apiEmail": {
48567
+ "type": "string",
48568
+ "format": "email",
48569
+ "minLength": 1,
48570
+ "maxLength": 254,
48571
+ "description": "Email of the Atlassian account whose API token is used."
48572
+ },
48573
+ "apiToken": {
48574
+ "type": "string",
48575
+ "minLength": 1,
48576
+ "maxLength": 1024,
48577
+ "description": "Atlassian API token used for outbound writes. Redacted when read back. Omit it when updating a connection to keep the stored token; required when the site URL or account email changes."
48578
+ },
48579
+ "projectKeys": {
48580
+ "type": "array",
48581
+ "maxItems": 100,
48582
+ "uniqueItems": true,
48583
+ "description": "Projects where GitBook handles issues. Empty means all accessible projects.",
48584
+ "items": {
48585
+ "type": "string",
48586
+ "minLength": 1,
48587
+ "maxLength": 255
48588
+ }
48589
+ },
48590
+ "statusMapping": {
48591
+ "type": "object",
48592
+ "description": "Jira status to move the linked issue to when the change request reaches a given status, e.g. `{ \"merged\": \"Done\" }`. A status left out is not synced.",
48593
+ "propertyNames": {
48594
+ "$ref": "#/components/schemas/ChangeRequestStatus"
48595
+ },
48596
+ "additionalProperties": {
48597
+ "type": "string",
48598
+ "minLength": 1,
48599
+ "maxLength": 255
48600
+ }
48601
+ }
48602
+ },
48603
+ "required": [
48604
+ "baseUrl",
48605
+ "apiEmail",
48606
+ "apiToken"
48607
+ ]
48608
+ },
48044
48609
  "ContextConnectorSetup": {
48045
48610
  "oneOf": [
48046
48611
  {
@@ -48466,57 +49031,7 @@
48466
49031
  ]
48467
49032
  },
48468
49033
  "setupSettings": {
48469
- "type": "object",
48470
- "properties": {
48471
- "baseUrl": {
48472
- "type": "string",
48473
- "format": "uri",
48474
- "minLength": 1,
48475
- "maxLength": 2048,
48476
- "description": "Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net."
48477
- },
48478
- "apiEmail": {
48479
- "type": "string",
48480
- "format": "email",
48481
- "minLength": 1,
48482
- "maxLength": 254,
48483
- "description": "Email of the Atlassian account whose API token is used."
48484
- },
48485
- "apiToken": {
48486
- "type": "string",
48487
- "minLength": 1,
48488
- "maxLength": 1024,
48489
- "description": "Atlassian API token used for outbound writes. Redacted when read back."
48490
- },
48491
- "projectKeys": {
48492
- "type": "array",
48493
- "maxItems": 100,
48494
- "uniqueItems": true,
48495
- "description": "Projects where GitBook handles issues. Empty means all accessible projects.",
48496
- "items": {
48497
- "type": "string",
48498
- "minLength": 1,
48499
- "maxLength": 255
48500
- }
48501
- },
48502
- "statusMapping": {
48503
- "type": "object",
48504
- "description": "Jira status to move the linked issue to when the change request reaches a given status, e.g. `{ \"merged\": \"Done\" }`. A status left out is not synced.",
48505
- "propertyNames": {
48506
- "$ref": "#/components/schemas/ChangeRequestStatus"
48507
- },
48508
- "additionalProperties": {
48509
- "type": "string",
48510
- "minLength": 1,
48511
- "maxLength": 255
48512
- }
48513
- }
48514
- },
48515
- "required": [
48516
- "baseUrl",
48517
- "apiEmail",
48518
- "apiToken"
48519
- ]
49034
+ "$ref": "#/components/schemas/JiraConnectorSetupSettings"
48520
49035
  }
48521
49036
  },
48522
49037
  "required": [
@@ -48614,6 +49129,49 @@
48614
49129
  }
48615
49130
  ]
48616
49131
  },
49132
+ "baseUrl": {
49133
+ "type": "string",
49134
+ "format": "uri",
49135
+ "minLength": 1,
49136
+ "maxLength": 2048,
49137
+ "description": "Base URL of the Jira Cloud site, e.g. https://your-team.atlassian.net."
49138
+ },
49139
+ "apiEmail": {
49140
+ "type": "string",
49141
+ "format": "email",
49142
+ "minLength": 1,
49143
+ "maxLength": 254,
49144
+ "description": "Email of the Atlassian account whose API token is used."
49145
+ },
49146
+ "apiToken": {
49147
+ "type": "string",
49148
+ "minLength": 1,
49149
+ "maxLength": 1024,
49150
+ "description": "Atlassian API token used for outbound writes. Redacted when read back. Omit it when updating a connection to keep the stored token; required when the site URL or account email changes."
49151
+ },
49152
+ "projectKeys": {
49153
+ "type": "array",
49154
+ "maxItems": 100,
49155
+ "uniqueItems": true,
49156
+ "description": "Projects where GitBook handles issues. Empty means all accessible projects.",
49157
+ "items": {
49158
+ "type": "string",
49159
+ "minLength": 1,
49160
+ "maxLength": 255
49161
+ }
49162
+ },
49163
+ "statusMapping": {
49164
+ "type": "object",
49165
+ "description": "Jira status to move the linked issue to when the change request reaches a given status, e.g. `{ \"merged\": \"Done\" }`. A status left out is not synced.",
49166
+ "propertyNames": {
49167
+ "$ref": "#/components/schemas/ChangeRequestStatus"
49168
+ },
49169
+ "additionalProperties": {
49170
+ "type": "string",
49171
+ "minLength": 1,
49172
+ "maxLength": 255
49173
+ }
49174
+ },
48617
49175
  "ContextConnectionTestResult": {
48618
49176
  "type": "object",
48619
49177
  "required": [
@@ -48637,6 +49195,52 @@
48637
49195
  }
48638
49196
  }
48639
49197
  },
49198
+ "SiteQuestionAnswerRelevance": {
49199
+ "type": "string",
49200
+ "description": "Relevance classification of the user question.",
49201
+ "enum": [
49202
+ "relevant",
49203
+ "spam",
49204
+ "off-topic",
49205
+ "unclear"
49206
+ ]
49207
+ },
49208
+ "SiteCoreChannelType": {
49209
+ "type": "string",
49210
+ "enum": [
49211
+ "site",
49212
+ "embed",
49213
+ "api"
49214
+ ]
49215
+ },
49216
+ "SiteConfigurableChannelType": {
49217
+ "type": "string",
49218
+ "enum": [
49219
+ "builtin:slack",
49220
+ "builtin:discord",
49221
+ "builtin:github",
49222
+ "builtin:linear"
49223
+ ]
49224
+ },
49225
+ "SiteChannelType": {
49226
+ "oneOf": [
49227
+ {
49228
+ "$ref": "#/components/schemas/SiteCoreChannelType"
49229
+ },
49230
+ {
49231
+ "$ref": "#/components/schemas/SiteConfigurableChannelType"
49232
+ }
49233
+ ]
49234
+ },
49235
+ "SiteQuestionAnswerResolution": {
49236
+ "type": "string",
49237
+ "description": "Whether the response answered the question.",
49238
+ "enum": [
49239
+ "no",
49240
+ "partially",
49241
+ "yes"
49242
+ ]
49243
+ },
48640
49244
  "SiteTopicUsageSettings": {
48641
49245
  "type": "object",
48642
49246
  "properties": {
@@ -48759,52 +49363,6 @@
48759
49363
  "urls"
48760
49364
  ]
48761
49365
  },
48762
- "SiteQuestionAnswerRelevance": {
48763
- "type": "string",
48764
- "description": "Relevance classification of the user question.",
48765
- "enum": [
48766
- "relevant",
48767
- "spam",
48768
- "off-topic",
48769
- "unclear"
48770
- ]
48771
- },
48772
- "SiteCoreChannelType": {
48773
- "type": "string",
48774
- "enum": [
48775
- "site",
48776
- "embed",
48777
- "api"
48778
- ]
48779
- },
48780
- "SiteConfigurableChannelType": {
48781
- "type": "string",
48782
- "enum": [
48783
- "builtin:slack",
48784
- "builtin:discord",
48785
- "builtin:github",
48786
- "builtin:linear"
48787
- ]
48788
- },
48789
- "SiteChannelType": {
48790
- "oneOf": [
48791
- {
48792
- "$ref": "#/components/schemas/SiteCoreChannelType"
48793
- },
48794
- {
48795
- "$ref": "#/components/schemas/SiteConfigurableChannelType"
48796
- }
48797
- ]
48798
- },
48799
- "SiteQuestionAnswerResolution": {
48800
- "type": "string",
48801
- "description": "Whether the response answered the question.",
48802
- "enum": [
48803
- "no",
48804
- "partially",
48805
- "yes"
48806
- ]
48807
- },
48808
49366
  "SiteQuestionAnswerSourceBase": {
48809
49367
  "type": "object",
48810
49368
  "properties": {
@@ -51490,6 +52048,32 @@
51490
52048
  }
51491
52049
  ]
51492
52050
  },
52051
+ "SiteSettingsBrokenLinksAutonomyLevel": {
52052
+ "type": "string",
52053
+ "description": "How much GitBook may do on its own when it resolves broken links automatically. GitBook never\napplies a fix it isn't sure about, at any level.\n - `suggest-fixes` drafts fixes for approval and applies none.\n - `fix-clear-matches` applies the clearest fixes and drafts the less certain ones for approval.\n - `fix-close-matches` applies the clear and the close fixes.\n",
52054
+ "enum": [
52055
+ "suggest-fixes",
52056
+ "fix-clear-matches",
52057
+ "fix-close-matches"
52058
+ ]
52059
+ },
52060
+ "SiteSettingsBrokenLinks": {
52061
+ "type": "object",
52062
+ "description": "Settings for how GitBook resolves the broken links it finds on a site.",
52063
+ "properties": {
52064
+ "autoResolve": {
52065
+ "type": "boolean",
52066
+ "description": "Whether GitBook resolves broken links automatically."
52067
+ },
52068
+ "autonomyLevel": {
52069
+ "$ref": "#/components/schemas/SiteSettingsBrokenLinksAutonomyLevel"
52070
+ }
52071
+ },
52072
+ "required": [
52073
+ "autoResolve",
52074
+ "autonomyLevel"
52075
+ ]
52076
+ },
51493
52077
  "SiteSettingsScanTopics": {
51494
52078
  "type": "string",
51495
52079
  "enum": [
@@ -51545,6 +52129,9 @@
51545
52129
  "required": [
51546
52130
  "customInstructions"
51547
52131
  ]
52132
+ },
52133
+ "brokenLinks": {
52134
+ "$ref": "#/components/schemas/SiteSettingsBrokenLinks"
51548
52135
  }
51549
52136
  },
51550
52137
  "required": [
@@ -51564,6 +52151,9 @@
51564
52151
  "site-agent-settings"
51565
52152
  ]
51566
52153
  },
52154
+ "brokenLinks": {
52155
+ "$ref": "#/components/schemas/SiteSettingsBrokenLinks"
52156
+ },
51567
52157
  "updatedAt": {
51568
52158
  "$ref": "#/components/schemas/Timestamp"
51569
52159
  },
@@ -51586,6 +52176,7 @@
51586
52176
  },
51587
52177
  "required": [
51588
52178
  "object",
52179
+ "brokenLinks",
51589
52180
  "urls"
51590
52181
  ]
51591
52182
  },
@@ -52867,6 +53458,36 @@
52867
53458
  }
52868
53459
  }
52869
53460
  },
53461
+ {
53462
+ "type": "object",
53463
+ "description": "The raw `User-Agent` header of the request. `visitorBot`, `visitorBrowser`, `visitorOS` and `visitorDevice` are parsed from it.",
53464
+ "required": [
53465
+ "column"
53466
+ ],
53467
+ "properties": {
53468
+ "column": {
53469
+ "type": "string",
53470
+ "enum": [
53471
+ "visitorUserAgent"
53472
+ ]
53473
+ }
53474
+ }
53475
+ },
53476
+ {
53477
+ "type": "object",
53478
+ "description": "Pseudonymous identifier of the visitor, stable across a browser's visits. Events served by the server (`displayContext` of `server` or `mcp`: markdown pages, llms.txt, RSS, MCP) get a new one per request, so it only tells visitors apart on `site` and `embed`.",
53479
+ "required": [
53480
+ "column"
53481
+ ],
53482
+ "properties": {
53483
+ "column": {
53484
+ "type": "string",
53485
+ "enum": [
53486
+ "visitorId"
53487
+ ]
53488
+ }
53489
+ }
53490
+ },
52870
53491
  {
52871
53492
  "type": "object",
52872
53493
  "required": [
@@ -54154,6 +54775,48 @@
54154
54775
  }
54155
54776
  }
54156
54777
  },
54778
+ {
54779
+ "type": "object",
54780
+ "required": [
54781
+ "column",
54782
+ "values"
54783
+ ],
54784
+ "properties": {
54785
+ "column": {
54786
+ "type": "string",
54787
+ "enum": [
54788
+ "visitorUserAgent"
54789
+ ]
54790
+ },
54791
+ "values": {
54792
+ "type": "array",
54793
+ "items": {
54794
+ "type": "string"
54795
+ }
54796
+ }
54797
+ }
54798
+ },
54799
+ {
54800
+ "type": "object",
54801
+ "required": [
54802
+ "column",
54803
+ "values"
54804
+ ],
54805
+ "properties": {
54806
+ "column": {
54807
+ "type": "string",
54808
+ "enum": [
54809
+ "visitorId"
54810
+ ]
54811
+ },
54812
+ "values": {
54813
+ "type": "array",
54814
+ "items": {
54815
+ "type": "string"
54816
+ }
54817
+ }
54818
+ }
54819
+ },
54157
54820
  {
54158
54821
  "type": "object",
54159
54822
  "required": [
@@ -57755,6 +58418,76 @@
57755
58418
  }
57756
58419
  }
57757
58420
  },
58421
+ "FeatureUpgradeRequirement": {
58422
+ "description": "The plan upgrade that would make a feature available.",
58423
+ "oneOf": [
58424
+ {
58425
+ "type": "object",
58426
+ "title": "Organization plan upgrade",
58427
+ "properties": {
58428
+ "type": {
58429
+ "type": "string",
58430
+ "enum": [
58431
+ "organization"
58432
+ ]
58433
+ },
58434
+ "feature": {
58435
+ "$ref": "#/components/schemas/OrganizationFeature"
58436
+ },
58437
+ "requiredPlan": {
58438
+ "description": "The minimum organization plan that includes the feature.",
58439
+ "$ref": "#/components/schemas/BillingProduct"
58440
+ },
58441
+ "url": {
58442
+ "type": "string",
58443
+ "format": "uri",
58444
+ "description": "Where an admin may upgrade the organization's plan."
58445
+ }
58446
+ },
58447
+ "additionalProperties": false,
58448
+ "required": [
58449
+ "type",
58450
+ "feature",
58451
+ "requiredPlan",
58452
+ "url"
58453
+ ]
58454
+ },
58455
+ {
58456
+ "type": "object",
58457
+ "title": "Site plan upgrade",
58458
+ "properties": {
58459
+ "type": {
58460
+ "type": "string",
58461
+ "enum": [
58462
+ "site"
58463
+ ]
58464
+ },
58465
+ "feature": {
58466
+ "$ref": "#/components/schemas/SiteFeatureKey"
58467
+ },
58468
+ "requiredPlan": {
58469
+ "description": "The minimum site plan that includes the feature.",
58470
+ "$ref": "#/components/schemas/SiteType"
58471
+ },
58472
+ "url": {
58473
+ "type": "string",
58474
+ "format": "uri",
58475
+ "description": "Where an admin may upgrade the site's plan."
58476
+ }
58477
+ },
58478
+ "additionalProperties": false,
58479
+ "required": [
58480
+ "type",
58481
+ "feature",
58482
+ "requiredPlan",
58483
+ "url"
58484
+ ]
58485
+ }
58486
+ ],
58487
+ "discriminator": {
58488
+ "propertyName": "type"
58489
+ }
58490
+ },
57758
58491
  "BillingStatus": {
57759
58492
  "type": "string",
57760
58493
  "enum": [
@@ -57809,6 +58542,10 @@
57809
58542
  ],
57810
58543
  "description": "Whether the visitor, for which the token was generated, is a human or an AI agent. Defaults to human when omitted."
57811
58544
  },
58545
+ "visitorIsAuthenticated": {
58546
+ "type": "boolean",
58547
+ "description": "Whether the visitor is authenticated. Only set for sites with adaptive content enabled when token verification succeeded."
58548
+ },
57812
58549
  "visitorRegion": {
57813
58550
  "type": "string",
57814
58551
  "description": "The region containing the country of the visitor for whom the token was generated. Omitted if the country isn't in any region."
@@ -60557,6 +61294,53 @@
60557
61294
  }
60558
61295
  }
60559
61296
  }
61297
+ },
61298
+ "FeatureNotAvailableError": {
61299
+ "description": "The requested feature is not available on the organization's or site's current plan.\nThe operation was not performed. The `error.type` value `feature-not-available`\nidentifies this response; `error.upgrade` provides the requirements for upgrading.\n",
61300
+ "content": {
61301
+ "application/json": {
61302
+ "schema": {
61303
+ "description": "API clients and agents can use `error.upgrade` to identify the\nunavailable feature, required plan, and upgrade URL.\n\nCall `getOrganizationSubscription` (`GET /orgs/{organizationId}/subscription`),\nor the MCP `get_subscription_information` tool, to check the current plan\nand `canManageBilling`. If false, ask an organization administrator to upgrade.\n\nBefore initiating an upgrade, verify billing permissions and obtain\nexplicit approval of the price and billing changes at `error.upgrade.url`.\n\nThe required plan is not a price quote; it's the plan needed to be\nable to perform the original operation.\n\nRetry the original operation after the upgrade is complete.\n",
61304
+ "type": "object",
61305
+ "required": [
61306
+ "error"
61307
+ ],
61308
+ "properties": {
61309
+ "error": {
61310
+ "type": "object",
61311
+ "properties": {
61312
+ "type": {
61313
+ "description": "Identifies the FeatureNotAvailableError response in the OpenAPI spec.",
61314
+ "type": "string",
61315
+ "enum": [
61316
+ "feature-not-available"
61317
+ ]
61318
+ },
61319
+ "code": {
61320
+ "type": "integer",
61321
+ "format": "int32",
61322
+ "enum": [
61323
+ 403
61324
+ ]
61325
+ },
61326
+ "message": {
61327
+ "type": "string"
61328
+ },
61329
+ "upgrade": {
61330
+ "$ref": "#/components/schemas/FeatureUpgradeRequirement"
61331
+ }
61332
+ },
61333
+ "required": [
61334
+ "type",
61335
+ "code",
61336
+ "message",
61337
+ "upgrade"
61338
+ ]
61339
+ }
61340
+ }
61341
+ }
61342
+ }
61343
+ }
60560
61344
  }
60561
61345
  },
60562
61346
  "headers": {