@gitbook/api 0.209.0 → 0.210.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
@@ -4023,7 +4023,7 @@
4023
4023
  "post": {
4024
4024
  "operationId": "updateChangeRequestContent",
4025
4025
  "summary": "Apply a batch of content changes to a change request",
4026
- "description": "Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, rename, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.\n**Renaming a page** — `update_page` can change a page's `title` and/or its `slug` (the path segment used to build its URL within its current parent). Both fields are independent: to rename only the title without changing the URL, set `title` and omit `slug`; to change the URL without changing the title, set `slug` and omit `title`.\n**Moving a page** — `update_page` can also change a page's parent and/or its position among siblings with `into`/`at`. Set `into` to the new parent's page ID, or `null` to move the page to the root of the tree; omit `into` to leave the parent unchanged. Set `at` to place the page at a specific zero-based index among its new siblings; omit it to leave the position unchanged (when the parent isn't changing) or append at the end (when it is). A page cannot be moved under itself or one of its own descendants. `insert_page`'s `into`/`at` remain the way to place a **new** page at creation time.\n**Tags**: create flat tag definitions with `insert_tags` and a `tags` array of 1-50 entries, edit their label or appearance with `update_tag`, and remove definitions with `delete_tag`. Slugs are immutable and generated from the label when omitted on insertion. Operations apply in order, so later updates or deletions can target newly inserted tags. Set `icon` or `emoji` to `null` to clear that field; omission preserves it. A non-null icon takes precedence over a non-null emoji. Deleting a tag leaves references in content unresolved. For example: `{\"changes\":[{\"operation\":\"insert_tags\",\"tags\":[{\"label\":\"Beta\"}]}, {\"operation\":\"update_tag\",\"tag\":\"beta\",\"color\":\"blue\"}]}`.\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**Reusable content** (snippets shared by several pages, Git Sync's `.gitbook/includes/`) is created with `insert_reusable_contents`, changed with `update_reusable_content` and removed with `delete_reusable_content`. A page includes one in markdown as `{% include \"/reusable-content/<reusableContentId>\" %}`; give a new one a `ref` and a page in the same batch can include it as `{% include \"./<ref>\" %}`, regardless of operation order. Created reusable contents are listed as `insertedReusableContents` when `compat=false`. An update keeps the ID, so every page including it shows the change. Deleting one leaves the includes in pages unresolved, as in the editor: remove them from those pages too. Reusable content cannot include other reusable content, so an include in its document is dropped. Unlike a link, an include that matches no reusable content of the change request (or of the batch) rejects the batch, since dropping it would remove it from the page silently.\n**Variables** (space variables, Git Sync's `.gitbook/vars.yaml`) are created with `insert_variables`, changed with `update_variable` and removed with `delete_variable`. A variable is identified by its name, which content references as an expression: `<code class=\"expression\">space.vars.<name></code>` in markdown. Inserting a name the change request already uses, or updating or deleting one it does not, rejects the batch. Deleting a variable keeps the expressions referencing it, as in the editor: remove them from those pages too. A page's own variables (`page.vars.<name>`) are set with `insert_page`/`update_page`'s `variables`, or the `vars` frontmatter of a markdown document, which replace all of that page's variables. To change one of them without resending the rest, give `insert_variables`, `update_variable` or `delete_variable` a `page`; the same rules apply to that page's variables.\n**Publishing an OpenAPI spec** — an OpenAPI spec belongs to the organization (see `createOpenAPISpec`) and appears in a space only through a page that renders it. Insert that page with an `insert_computed_page` change: `{ \"operation\": \"insert_computed_page\", \"title\": \"API reference\", \"computed\": { \"type\": \"builtin:openapi\", \"props\": { \"models\": true }, \"dependencies\": { \"spec\": { \"ref\": { \"kind\": \"openapi\", \"spec\": \"<spec slug>\" } } } } }`. GitBook replaces that page, at its position, with the API reference: one page per tag (or per operation with `\"grouping\": \"by-operation\"` in `props`), plus a models page when `models` is true, regenerated whenever the spec changes. Use `into` to nest the reference under an existing page. Do not recreate a spec with `insert_page`: `openapi-operation` blocks in a document only render the operations they name.\nWhen page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:\n- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).\n- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`\n for a nested page (e.g. `/pages/guides/getting-started`).\n\n- Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page,\n or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is\n `/pages/README.md`.\n\n- Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`,\n `../other.md`, or `../README.md` (the parent page). Folder-style links without an\n extension (e.g. `./section`) resolve to that folder's page.\n\nExternal URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail.\nGitBook normalizes submitted content, so the stored page may differ from what was sent. To help callers reconcile local state with the stored result, the response can list each created and modified page with its resolved ID and a `urls.location` to fetch the page's persisted content.\nFor change requests with frequent concurrent edits, consider `expectedRevision` to protect against overwriting changes made since your read. If the branch has changed since the supplied revision, the batch is rejected with HTTP 409 and none of the submitted changes are applied.\n**Response shape (`compat`)** — this endpoint is changing what it returns:\n- `compat=true` (current default) returns the updated change request, matching the endpoint's\n original behavior.\n\n- `compat=false` returns the updated change request **and** the list of affected pages (see\n the response schema).\n\nThe default is `true` for now to preserve backwards compatibility, but **will switch to `false` in a future release**, at which point the affected-page list is always included. You should pass `compat=false` if you want the new behavior today and avoid unexpected errors when the default flips in the future.",
4026
+ "description": "Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, rename, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.\n**Renaming a page** — `update_page` can change a page's `title` and/or its `slug` (the path segment used to build its URL within its current parent). Both fields are independent: to rename only the title without changing the URL, set `title` and omit `slug`; to change the URL without changing the title, set `slug` and omit `title`.\n**Moving a page** — `update_page` can also change a page's parent and/or its position among siblings with `into`/`at`. Set `into` to the new parent's page ID, or `null` to move the page to the root of the tree; omit `into` to leave the parent unchanged. Set `at` to place the page at a specific zero-based index among its new siblings; omit it to leave the position unchanged (when the parent isn't changing) or append at the end (when it is). A page cannot be moved under itself or one of its own descendants. `insert_page`'s `into`/`at` remain the way to place a **new** page at creation time.\n**Tags and categories**: create with `insert_tags` using a `tags` array (1-50 entries), change appearance or placement with `update_tag`, and delete with `delete_tag`. A category (`kind: category`) must be empty before deletion and cannot be assigned to pages or blocks. Categories nest up to three levels deep; normal tags nest one level under other normal tags. Deleting a normal tag reparents its children to its parent. Changes apply in order, so newly created tags can be used by later changes, including page frontmatter. Tags within an insert apply in array order; create parents before children. For example: `{\"changes\":[{\"operation\":\"insert_tags\",\"tags\":[{\"label\":\"Products\",\"slug\":\"products\",\"kind\":\"category\"}, {\"label\":\"Autonomous DEM\",\"slug\":\"autonomous-dem\",\"parent\":\"products\"}, {\"label\":\"Core\",\"slug\":\"core\",\"parent\":\"autonomous-dem\"}]}]}`.\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**Reusable content** (snippets shared by several pages, Git Sync's `.gitbook/includes/`) is created with `insert_reusable_contents`, changed with `update_reusable_content` and removed with `delete_reusable_content`. A page includes one in markdown as `{% include \"/reusable-content/<reusableContentId>\" %}`; give a new one a `ref` and a page in the same batch can include it as `{% include \"./<ref>\" %}`, regardless of operation order. Created reusable contents are listed as `insertedReusableContents` when `compat=false`. An update keeps the ID, so every page including it shows the change. Deleting one leaves the includes in pages unresolved, as in the editor: remove them from those pages too. Reusable content cannot include other reusable content, so an include in its document is dropped. Unlike a link, an include that matches no reusable content of the change request (or of the batch) rejects the batch, since dropping it would remove it from the page silently.\n**Variables** (space variables, Git Sync's `.gitbook/vars.yaml`) are created with `insert_variables`, changed with `update_variable` and removed with `delete_variable`. A variable is identified by its name, which content references as an expression: `<code class=\"expression\">space.vars.<name></code>` in markdown. Inserting a name the change request already uses, or updating or deleting one it does not, rejects the batch. Deleting a variable keeps the expressions referencing it, as in the editor: remove them from those pages too. A page's own variables (`page.vars.<name>`) are set with `insert_page`/`update_page`'s `variables`, or the `vars` frontmatter of a markdown document, which replace all of that page's variables. To change one of them without resending the rest, give `insert_variables`, `update_variable` or `delete_variable` a `page`; the same rules apply to that page's variables.\n**Publishing an OpenAPI spec** — an OpenAPI spec belongs to the organization (see `createOpenAPISpec`) and appears in a space only through a page that renders it. Insert that page with an `insert_computed_page` change: `{ \"operation\": \"insert_computed_page\", \"title\": \"API reference\", \"computed\": { \"type\": \"builtin:openapi\", \"props\": { \"models\": true }, \"dependencies\": { \"spec\": { \"ref\": { \"kind\": \"openapi\", \"spec\": \"<spec slug>\" } } } } }`. GitBook replaces that page, at its position, with the API reference: one page per tag (or per operation with `\"grouping\": \"by-operation\"` in `props`), plus a models page when `models` is true, regenerated whenever the spec changes. Use `into` to nest the reference under an existing page. Do not recreate a spec with `insert_page`: `openapi-operation` blocks in a document only render the operations they name.\nWhen page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:\n- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).\n- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`\n for a nested page (e.g. `/pages/guides/getting-started`).\n\n- Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page,\n or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is\n `/pages/README.md`.\n\n- Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`,\n `../other.md`, or `../README.md` (the parent page). Folder-style links without an\n extension (e.g. `./section`) resolve to that folder's page.\n\nExternal URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail.\nGitBook normalizes submitted content, so the stored page may differ from what was sent. To help callers reconcile local state with the stored result, the response can list each created and modified page with its resolved ID and a `urls.location` to fetch the page's persisted content.\nFor change requests with frequent concurrent edits, consider `expectedRevision` to protect against overwriting changes made since your read. If the branch has changed since the supplied revision, the batch is rejected with HTTP 409 and none of the submitted changes are applied.\n**Response shape (`compat`)** — this endpoint is changing what it returns:\n- `compat=true` (current default) returns the updated change request, matching the endpoint's\n original behavior.\n\n- `compat=false` returns the updated change request **and** the list of affected pages (see\n the response schema).\n\nThe default is `true` for now to preserve backwards compatibility, but **will switch to `false` in a future release**, at which point the affected-page list is always included. You should pass `compat=false` if you want the new behavior today and avoid unexpected errors when the default flips in the future.",
4027
4027
  "x-gitbook-mcp": {
4028
4028
  "destructive": true
4029
4029
  },
@@ -7505,6 +7505,7 @@
7505
7505
  "get": {
7506
7506
  "operationId": "renderIntegrationUIWithGet",
7507
7507
  "summary": "Render an integration UI with GET method",
7508
+ "description": "Declared integration input errors return 422. Integration connection or configuration\nfailures return 424, independently of the caller's GitBook authentication.\nInvalid or failing integration responses return 502. Transport failures remain 5xx.\nFailed actions are not automatically retried.\n",
7508
7509
  "tags": [
7509
7510
  "integrations"
7510
7511
  ],
@@ -7539,12 +7540,33 @@
7539
7540
  }
7540
7541
  }
7541
7542
  }
7543
+ },
7544
+ "422": {
7545
+ "description": "The integration rejected the input",
7546
+ "content": {
7547
+ "application/json": {
7548
+ "schema": {
7549
+ "$ref": "#/components/schemas/Error"
7550
+ }
7551
+ }
7552
+ }
7553
+ },
7554
+ "424": {
7555
+ "description": "The integration connection or configuration needs attention",
7556
+ "content": {
7557
+ "application/json": {
7558
+ "schema": {
7559
+ "$ref": "#/components/schemas/Error"
7560
+ }
7561
+ }
7562
+ }
7542
7563
  }
7543
7564
  }
7544
7565
  },
7545
7566
  "post": {
7546
7567
  "operationId": "renderIntegrationUIWithPost",
7547
7568
  "summary": "Render an integration UI with POST method",
7569
+ "description": "Declared integration input errors return 422. Integration connection or configuration\nfailures return 424, independently of the caller's GitBook authentication.\nInvalid or failing integration responses return 502. Transport failures remain 5xx.\nFailed actions are not automatically retried.\n",
7548
7570
  "tags": [
7549
7571
  "integrations"
7550
7572
  ],
@@ -7570,6 +7592,26 @@
7570
7592
  }
7571
7593
  }
7572
7594
  }
7595
+ },
7596
+ "422": {
7597
+ "description": "The integration rejected the input",
7598
+ "content": {
7599
+ "application/json": {
7600
+ "schema": {
7601
+ "$ref": "#/components/schemas/Error"
7602
+ }
7603
+ }
7604
+ }
7605
+ },
7606
+ "424": {
7607
+ "description": "The integration connection or configuration needs attention",
7608
+ "content": {
7609
+ "application/json": {
7610
+ "schema": {
7611
+ "$ref": "#/components/schemas/Error"
7612
+ }
7613
+ }
7614
+ }
7573
7615
  }
7574
7616
  },
7575
7617
  "requestBody": {
@@ -7688,7 +7730,7 @@
7688
7730
  "patch": {
7689
7731
  "operationId": "updateIntegrationInstallation",
7690
7732
  "summary": "Update an integration installation",
7691
- "description": "Updates the account-level configuration of an installation, and which spaces or sites it applies to.",
7733
+ "description": "Updates the account-level configuration of an installation, and which spaces or sites it applies to. Only a user can change `space_selection` and `site_selection`; integration and installation tokens get a 403 when they send them.",
7692
7734
  "x-gitbook-mcp": true,
7693
7735
  "tags": [
7694
7736
  "integrations"
@@ -8971,7 +9013,7 @@
8971
9013
  "operationId": "listOrganizationAuditEvents",
8972
9014
  "x-gitbook-mcp": true,
8973
9015
  "summary": "List organization audit events",
8974
- "description": "Lists recorded changes for an activated organization. Access is restricted to organization administrators and GitBook staff, and results are ordered by occurrence time, newest first. An active Enterprise plan is required except for GitBook's own organization.\n",
9016
+ "description": "Lists recorded changes for an activated organization. Access is restricted to organization administrators and GitBook staff, and results are ordered by occurrence time, newest first. An active Enterprise plan is required except for GitBook's own organization. Only events from the latest 365 days are available, including in counts and facets.\n",
8975
9017
  "tags": [
8976
9018
  "organizations"
8977
9019
  ],
@@ -9001,7 +9043,7 @@
9001
9043
  {
9002
9044
  "name": "from",
9003
9045
  "in": "query",
9004
- "description": "Include events occurring at or after this time.",
9046
+ "description": "Include events occurring at or after this time, within the latest 365 days.",
9005
9047
  "schema": {
9006
9048
  "type": "string",
9007
9049
  "format": "date-time"
@@ -9143,7 +9185,7 @@
9143
9185
  "operationId": "getOrganizationAuditEvent",
9144
9186
  "x-gitbook-mcp": true,
9145
9187
  "summary": "Get an organization audit event",
9146
- "description": "Returns the full allowlisted payload for one recorded organization change. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.\n",
9188
+ "description": "Returns the full allowlisted payload for one recorded organization change. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization. Events older than 365 days are unavailable and return 404.\n",
9147
9189
  "tags": [
9148
9190
  "organizations"
9149
9191
  ],
@@ -10196,6 +10238,8 @@
10196
10238
  "post": {
10197
10239
  "operationId": "inviteUsersToOrganization",
10198
10240
  "summary": "Invite users in an organization",
10241
+ "description": "Optionally adds invitees to teams using teamIds. Team owners may invite organization Guests into teams they own. Other organization invitations require an organization admin.",
10242
+ "x-gitbook-mcp": true,
10199
10243
  "tags": [
10200
10244
  "organization-invites"
10201
10245
  ],
@@ -10235,10 +10279,25 @@
10235
10279
  },
10236
10280
  "failedSSOEmails": {
10237
10281
  "type": "array",
10282
+ "deprecated": true,
10238
10283
  "items": {
10239
10284
  "type": "string",
10240
10285
  "description": "A list of emails who were invited to the organization, but who were not added as SSO users as they are members of another org"
10241
10286
  }
10287
+ },
10288
+ "pendingConsentEmails": {
10289
+ "type": "array",
10290
+ "description": "Addresses awaiting acceptance of a team-owner invitation. Every requested address follows this flow, regardless of account existence or organization membership. No access is granted until acceptance.",
10291
+ "items": {
10292
+ "type": "string"
10293
+ }
10294
+ },
10295
+ "unverifiedEmails": {
10296
+ "type": "array",
10297
+ "description": "Email addresses that must be verified before their existing accounts can be invited.",
10298
+ "items": {
10299
+ "type": "string"
10300
+ }
10242
10301
  }
10243
10302
  },
10244
10303
  "required": [
@@ -10558,7 +10617,7 @@
10558
10617
  "operationId": "joinOrganization",
10559
10618
  "summary": "Join an organization",
10560
10619
  "x-gitbook-mcp": true,
10561
- "description": "Join an organization if the user's verified email domain matches one of the organization's allowed email domains.\nThis endpoint allows existing users to join organizations they're eligible for based on their email domain.\n",
10620
+ "description": "Join an organization if the user's verified email domain matches one of the organization's allowed email domains.\nThis endpoint allows existing users to join organizations they're eligible for based on their email domain.\nIf the user is already a member, refresh their access without changing their membership.\n",
10562
10621
  "tags": [
10563
10622
  "organizations"
10564
10623
  ],
@@ -10574,7 +10633,7 @@
10574
10633
  ],
10575
10634
  "responses": {
10576
10635
  "204": {
10577
- "description": "Successfully joined the organization"
10636
+ "description": "Membership exists and access was refreshed"
10578
10637
  },
10579
10638
  "400": {
10580
10639
  "description": "User's email domain is not valid",
@@ -11527,8 +11586,14 @@
11527
11586
  "defaultTeam": {
11528
11587
  "type": "string"
11529
11588
  },
11589
+ "defaultTeamFromDomain": {
11590
+ "type": "boolean"
11591
+ },
11530
11592
  "defaultRole": {
11531
- "$ref": "#/components/schemas/MemberRoleOrGuest"
11593
+ "$ref": "#/components/schemas/SAMLProviderDefaultRole"
11594
+ },
11595
+ "domains": {
11596
+ "$ref": "#/components/schemas/SAMLProviderDomains"
11532
11597
  }
11533
11598
  },
11534
11599
  "required": [
@@ -11638,8 +11703,14 @@
11638
11703
  "defaultTeam": {
11639
11704
  "type": "string"
11640
11705
  },
11706
+ "defaultTeamFromDomain": {
11707
+ "type": "boolean"
11708
+ },
11641
11709
  "defaultRole": {
11642
- "$ref": "#/components/schemas/MemberRoleOrGuest"
11710
+ "$ref": "#/components/schemas/SAMLProviderDefaultRole"
11711
+ },
11712
+ "domains": {
11713
+ "$ref": "#/components/schemas/SAMLProviderDomains"
11643
11714
  }
11644
11715
  }
11645
11716
  }
@@ -11688,6 +11759,290 @@
11688
11759
  }
11689
11760
  }
11690
11761
  },
11762
+ "/orgs/{organizationId}/domains": {
11763
+ "get": {
11764
+ "operationId": "listOrganizationDomains",
11765
+ "summary": "List the email domains of an organization",
11766
+ "tags": [
11767
+ "organizations"
11768
+ ],
11769
+ "security": [
11770
+ {
11771
+ "user-internal": []
11772
+ }
11773
+ ],
11774
+ "parameters": [
11775
+ {
11776
+ "$ref": "#/components/parameters/organizationId"
11777
+ }
11778
+ ],
11779
+ "responses": {
11780
+ "200": {
11781
+ "description": "OK",
11782
+ "content": {
11783
+ "application/json": {
11784
+ "schema": {
11785
+ "allOf": [
11786
+ {
11787
+ "$ref": "#/components/schemas/List"
11788
+ },
11789
+ {
11790
+ "type": "object",
11791
+ "required": [
11792
+ "items"
11793
+ ],
11794
+ "properties": {
11795
+ "items": {
11796
+ "type": "array",
11797
+ "items": {
11798
+ "$ref": "#/components/schemas/OrganizationDomain"
11799
+ }
11800
+ }
11801
+ }
11802
+ }
11803
+ ]
11804
+ }
11805
+ }
11806
+ }
11807
+ },
11808
+ "404": {
11809
+ "$ref": "#/components/responses/NotFoundError"
11810
+ }
11811
+ }
11812
+ },
11813
+ "post": {
11814
+ "operationId": "addOrganizationDomain",
11815
+ "summary": "Add an email domain to an organization",
11816
+ "description": "Adds an email domain. People only join through it once the domain is verified.\n",
11817
+ "tags": [
11818
+ "organizations"
11819
+ ],
11820
+ "security": [
11821
+ {
11822
+ "user-internal": []
11823
+ }
11824
+ ],
11825
+ "parameters": [
11826
+ {
11827
+ "$ref": "#/components/parameters/organizationId"
11828
+ }
11829
+ ],
11830
+ "requestBody": {
11831
+ "required": true,
11832
+ "content": {
11833
+ "application/json": {
11834
+ "schema": {
11835
+ "type": "object",
11836
+ "properties": {
11837
+ "domain": {
11838
+ "type": "string",
11839
+ "maxLength": 253
11840
+ }
11841
+ },
11842
+ "required": [
11843
+ "domain"
11844
+ ]
11845
+ }
11846
+ }
11847
+ }
11848
+ },
11849
+ "responses": {
11850
+ "201": {
11851
+ "description": "Domain added",
11852
+ "content": {
11853
+ "application/json": {
11854
+ "schema": {
11855
+ "$ref": "#/components/schemas/OrganizationDomain"
11856
+ }
11857
+ }
11858
+ }
11859
+ },
11860
+ "400": {
11861
+ "$ref": "#/components/responses/BadRequestError"
11862
+ },
11863
+ "404": {
11864
+ "$ref": "#/components/responses/NotFoundError"
11865
+ },
11866
+ "409": {
11867
+ "$ref": "#/components/responses/ConflictError"
11868
+ }
11869
+ }
11870
+ }
11871
+ },
11872
+ "/orgs/{organizationId}/domains/{emailDomain}": {
11873
+ "get": {
11874
+ "operationId": "getOrganizationDomain",
11875
+ "summary": "Get an email domain of an organization",
11876
+ "tags": [
11877
+ "organizations"
11878
+ ],
11879
+ "security": [
11880
+ {
11881
+ "user-internal": []
11882
+ }
11883
+ ],
11884
+ "parameters": [
11885
+ {
11886
+ "$ref": "#/components/parameters/organizationId"
11887
+ },
11888
+ {
11889
+ "$ref": "#/components/parameters/emailDomain"
11890
+ }
11891
+ ],
11892
+ "responses": {
11893
+ "200": {
11894
+ "description": "OK",
11895
+ "content": {
11896
+ "application/json": {
11897
+ "schema": {
11898
+ "$ref": "#/components/schemas/OrganizationDomain"
11899
+ }
11900
+ }
11901
+ }
11902
+ },
11903
+ "404": {
11904
+ "$ref": "#/components/responses/NotFoundError"
11905
+ }
11906
+ }
11907
+ },
11908
+ "patch": {
11909
+ "operationId": "updateOrganizationDomain",
11910
+ "summary": "Update an email domain of an organization",
11911
+ "tags": [
11912
+ "organizations"
11913
+ ],
11914
+ "security": [
11915
+ {
11916
+ "user-internal": []
11917
+ }
11918
+ ],
11919
+ "parameters": [
11920
+ {
11921
+ "$ref": "#/components/parameters/organizationId"
11922
+ },
11923
+ {
11924
+ "$ref": "#/components/parameters/emailDomain"
11925
+ }
11926
+ ],
11927
+ "requestBody": {
11928
+ "required": true,
11929
+ "content": {
11930
+ "application/json": {
11931
+ "schema": {
11932
+ "type": "object",
11933
+ "minProperties": 1,
11934
+ "properties": {
11935
+ "autoJoinEnabled": {
11936
+ "type": "boolean"
11937
+ },
11938
+ "defaultRole": {
11939
+ "$ref": "#/components/schemas/OrganizationDomainDefaultRole"
11940
+ },
11941
+ "defaultTeam": {
11942
+ "description": "ID of a team of the organization, or null to add no team",
11943
+ "type": [
11944
+ "string",
11945
+ "null"
11946
+ ]
11947
+ }
11948
+ }
11949
+ }
11950
+ }
11951
+ }
11952
+ },
11953
+ "responses": {
11954
+ "200": {
11955
+ "description": "Domain updated",
11956
+ "content": {
11957
+ "application/json": {
11958
+ "schema": {
11959
+ "$ref": "#/components/schemas/OrganizationDomain"
11960
+ }
11961
+ }
11962
+ }
11963
+ },
11964
+ "400": {
11965
+ "$ref": "#/components/responses/BadRequestError"
11966
+ },
11967
+ "404": {
11968
+ "$ref": "#/components/responses/NotFoundError"
11969
+ }
11970
+ }
11971
+ },
11972
+ "delete": {
11973
+ "operationId": "deleteOrganizationDomain",
11974
+ "summary": "Remove an email domain from an organization",
11975
+ "description": "Removes an email domain. Members who joined through it stay members.\n",
11976
+ "tags": [
11977
+ "organizations"
11978
+ ],
11979
+ "security": [
11980
+ {
11981
+ "user-internal": []
11982
+ }
11983
+ ],
11984
+ "parameters": [
11985
+ {
11986
+ "$ref": "#/components/parameters/organizationId"
11987
+ },
11988
+ {
11989
+ "$ref": "#/components/parameters/emailDomain"
11990
+ }
11991
+ ],
11992
+ "responses": {
11993
+ "204": {
11994
+ "description": "Domain not found"
11995
+ },
11996
+ "205": {
11997
+ "description": "Domain removed"
11998
+ },
11999
+ "404": {
12000
+ "$ref": "#/components/responses/NotFoundError"
12001
+ }
12002
+ }
12003
+ }
12004
+ },
12005
+ "/orgs/{organizationId}/domains/{emailDomain}/verify": {
12006
+ "post": {
12007
+ "operationId": "verifyOrganizationDomain",
12008
+ "summary": "Verify an email domain of an organization",
12009
+ "description": "Checks the domain's DNS TXT record. A legacy domain first gets its verification record, and keeps letting people join until it is verified.\n",
12010
+ "tags": [
12011
+ "organizations"
12012
+ ],
12013
+ "security": [
12014
+ {
12015
+ "user-internal": []
12016
+ }
12017
+ ],
12018
+ "parameters": [
12019
+ {
12020
+ "$ref": "#/components/parameters/organizationId"
12021
+ },
12022
+ {
12023
+ "$ref": "#/components/parameters/emailDomain"
12024
+ }
12025
+ ],
12026
+ "responses": {
12027
+ "200": {
12028
+ "description": "OK",
12029
+ "content": {
12030
+ "application/json": {
12031
+ "schema": {
12032
+ "$ref": "#/components/schemas/OrganizationDomain"
12033
+ }
12034
+ }
12035
+ }
12036
+ },
12037
+ "404": {
12038
+ "$ref": "#/components/responses/NotFoundError"
12039
+ },
12040
+ "409": {
12041
+ "$ref": "#/components/responses/ConflictError"
12042
+ }
12043
+ }
12044
+ }
12045
+ },
11691
12046
  "/orgs/{organizationId}/scim/connections": {
11692
12047
  "get": {
11693
12048
  "operationId": "listOrganizationSCIMConnections",
@@ -14331,6 +14686,10 @@
14331
14686
  "title": {
14332
14687
  "$ref": "#/components/schemas/SiteTitle"
14333
14688
  },
14689
+ "publicChangeRequestPreviews": {
14690
+ "type": "boolean",
14691
+ "description": "Allow visitors to preview change requests and historical revisions on the published site."
14692
+ },
14334
14693
  "visibility": {
14335
14694
  "$ref": "#/components/schemas/SiteVisibility"
14336
14695
  },
@@ -17462,6 +17821,67 @@
17462
17821
  }
17463
17822
  }
17464
17823
  },
17824
+ "/orgs/{organizationId}/sites/{siteId}/search/pass": {
17825
+ "post": {
17826
+ "operationId": "generateSiteSearchPass",
17827
+ "summary": "Generate a site search pass",
17828
+ "description": "Exchanges the content token of a published site's visitor for a short-lived search pass, which lets the visitor's browser call the site search operation directly. The reply has no pass when search passes are not enabled for the site, or when the visitor token of an authenticated visitor is missing, invalid or expired.",
17829
+ "tags": [
17830
+ "sites"
17831
+ ],
17832
+ "security": [
17833
+ {
17834
+ "user": []
17835
+ },
17836
+ {
17837
+ "oauth": [
17838
+ "site:search"
17839
+ ]
17840
+ }
17841
+ ],
17842
+ "parameters": [
17843
+ {
17844
+ "$ref": "#/components/parameters/organizationId"
17845
+ },
17846
+ {
17847
+ "$ref": "#/components/parameters/siteId"
17848
+ }
17849
+ ],
17850
+ "requestBody": {
17851
+ "required": false,
17852
+ "content": {
17853
+ "application/json": {
17854
+ "schema": {
17855
+ "type": "object",
17856
+ "properties": {
17857
+ "visitorToken": {
17858
+ "type": "string",
17859
+ "description": "Visitor token of the session the content token was resolved for. Required for a pass on a site with visitor authentication or for an authenticated visitor; the pass never outlives it."
17860
+ }
17861
+ }
17862
+ }
17863
+ }
17864
+ }
17865
+ },
17866
+ "responses": {
17867
+ "200": {
17868
+ "description": "The search pass, when one was issued.",
17869
+ "content": {
17870
+ "application/json": {
17871
+ "schema": {
17872
+ "type": "object",
17873
+ "properties": {
17874
+ "searchPass": {
17875
+ "$ref": "#/components/schemas/SiteSearchPass"
17876
+ }
17877
+ }
17878
+ }
17879
+ }
17880
+ }
17881
+ }
17882
+ }
17883
+ }
17884
+ },
17465
17885
  "/orgs/{organizationId}/sites/{siteId}/search/prewarm": {
17466
17886
  "post": {
17467
17887
  "operationId": "prewarmSiteSearch",
@@ -19275,6 +19695,21 @@
19275
19695
  {
19276
19696
  "$ref": "#/components/parameters/siteQuestionVisitorType"
19277
19697
  },
19698
+ {
19699
+ "$ref": "#/components/parameters/siteQuestionVisitorBot"
19700
+ },
19701
+ {
19702
+ "$ref": "#/components/parameters/siteQuestionIntent"
19703
+ },
19704
+ {
19705
+ "$ref": "#/components/parameters/siteQuestionSiteSaid"
19706
+ },
19707
+ {
19708
+ "$ref": "#/components/parameters/siteQuestionEscalation"
19709
+ },
19710
+ {
19711
+ "$ref": "#/components/parameters/siteQuestionVisitorAuthentication"
19712
+ },
19278
19713
  {
19279
19714
  "$ref": "#/components/parameters/siteQuestionCitedPage"
19280
19715
  },
@@ -19532,6 +19967,21 @@
19532
19967
  {
19533
19968
  "$ref": "#/components/parameters/siteQuestionVisitorType"
19534
19969
  },
19970
+ {
19971
+ "$ref": "#/components/parameters/siteQuestionVisitorBot"
19972
+ },
19973
+ {
19974
+ "$ref": "#/components/parameters/siteQuestionIntent"
19975
+ },
19976
+ {
19977
+ "$ref": "#/components/parameters/siteQuestionSiteSaid"
19978
+ },
19979
+ {
19980
+ "$ref": "#/components/parameters/siteQuestionEscalation"
19981
+ },
19982
+ {
19983
+ "$ref": "#/components/parameters/siteQuestionVisitorAuthentication"
19984
+ },
19535
19985
  {
19536
19986
  "$ref": "#/components/parameters/siteQuestionCitedPage"
19537
19987
  },
@@ -19691,6 +20141,9 @@
19691
20141
  {
19692
20142
  "$ref": "#/components/parameters/siteQuestionVisitorType"
19693
20143
  },
20144
+ {
20145
+ "$ref": "#/components/parameters/siteQuestionVisitorAuthentication"
20146
+ },
19694
20147
  {
19695
20148
  "name": "answered",
19696
20149
  "in": "query",
@@ -19793,6 +20246,9 @@
19793
20246
  {
19794
20247
  "$ref": "#/components/parameters/siteQuestionVisitorType"
19795
20248
  },
20249
+ {
20250
+ "$ref": "#/components/parameters/siteQuestionVisitorAuthentication"
20251
+ },
19796
20252
  {
19797
20253
  "name": "answered",
19798
20254
  "in": "query",
@@ -19915,6 +20371,21 @@
19915
20371
  {
19916
20372
  "$ref": "#/components/parameters/siteQuestionVisitorType"
19917
20373
  },
20374
+ {
20375
+ "$ref": "#/components/parameters/siteQuestionVisitorBot"
20376
+ },
20377
+ {
20378
+ "$ref": "#/components/parameters/siteQuestionIntent"
20379
+ },
20380
+ {
20381
+ "$ref": "#/components/parameters/siteQuestionSiteSaid"
20382
+ },
20383
+ {
20384
+ "$ref": "#/components/parameters/siteQuestionEscalation"
20385
+ },
20386
+ {
20387
+ "$ref": "#/components/parameters/siteQuestionVisitorAuthentication"
20388
+ },
19918
20389
  {
19919
20390
  "$ref": "#/components/parameters/siteQuestionCitedPage"
19920
20391
  },
@@ -20033,6 +20504,21 @@
20033
20504
  {
20034
20505
  "$ref": "#/components/parameters/siteQuestionVisitorType"
20035
20506
  },
20507
+ {
20508
+ "$ref": "#/components/parameters/siteQuestionVisitorBot"
20509
+ },
20510
+ {
20511
+ "$ref": "#/components/parameters/siteQuestionIntent"
20512
+ },
20513
+ {
20514
+ "$ref": "#/components/parameters/siteQuestionSiteSaid"
20515
+ },
20516
+ {
20517
+ "$ref": "#/components/parameters/siteQuestionEscalation"
20518
+ },
20519
+ {
20520
+ "$ref": "#/components/parameters/siteQuestionVisitorAuthentication"
20521
+ },
20036
20522
  {
20037
20523
  "$ref": "#/components/parameters/siteQuestionCitedPage"
20038
20524
  },
@@ -20164,6 +20650,9 @@
20164
20650
  {
20165
20651
  "$ref": "#/components/parameters/siteQuestionVisitorType"
20166
20652
  },
20653
+ {
20654
+ "$ref": "#/components/parameters/siteQuestionVisitorAuthentication"
20655
+ },
20167
20656
  {
20168
20657
  "name": "question.type",
20169
20658
  "in": "query",
@@ -22380,7 +22869,7 @@
22380
22869
  "post": {
22381
22870
  "operationId": "aggregateSiteEvents",
22382
22871
  "summary": "Query a site's analytics events",
22383
- "description": "Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. Use it to answer analytics questions about how visitors engage with a site's documentation: page views, visitors, searches, referrers, and broken URLs (404s). A 404 is a `page_view` or `search_open_result` event whose `page` is `null`, in the `site` display context; filter `eventPageNotFoundType` not in `conditional` to leave out 404s that adaptive content explains. Group by `datetime` for a trend over time and by `urlPath` for the top broken URLs.",
22872
+ "description": "Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. Use it to answer analytics questions about how visitors engage with a site's documentation: page views, visitors, searches, referrers, and broken URLs (404s). A 404 is a `page_view` or `search_open_result` event whose `page` is `null`, in the `site` display context; filter `eventPageNotFoundType` not in `conditional` to leave out 404s that adaptive content explains. Group by `datetime` for a trend over time and by `urlPath` for the top broken URLs. A result holds at most `limit` rows; when more match, pass its `next.page` back as `page` to fetch the rest.",
22384
22873
  "x-gitbook-mcp": {
22385
22874
  "readOnly": true
22386
22875
  },
@@ -25236,6 +25725,15 @@
25236
25725
  }
25237
25726
  },
25238
25727
  "parameters": {
25728
+ "passkeyId": {
25729
+ "name": "passkeyId",
25730
+ "in": "path",
25731
+ "required": true,
25732
+ "description": "The ID of the passkey",
25733
+ "schema": {
25734
+ "type": "string"
25735
+ }
25736
+ },
25239
25737
  "listPage": {
25240
25738
  "name": "page",
25241
25739
  "in": "query",
@@ -25754,6 +26252,15 @@
25754
26252
  "type": "string"
25755
26253
  }
25756
26254
  },
26255
+ "emailDomain": {
26256
+ "name": "emailDomain",
26257
+ "in": "path",
26258
+ "required": true,
26259
+ "description": "Email domain",
26260
+ "schema": {
26261
+ "type": "string"
26262
+ }
26263
+ },
25757
26264
  "scimConnectionId": {
25758
26265
  "name": "scimConnectionId",
25759
26266
  "in": "path",
@@ -25929,7 +26436,7 @@
25929
26436
  "siteQuestionVisitorType": {
25930
26437
  "name": "visitorType",
25931
26438
  "in": "query",
25932
- "description": "Filter by whether a person or an AI agent asked the question.",
26439
+ "description": "Filter by who asked the question (a person, an AI agent, another bot, or unknown).",
25933
26440
  "schema": {
25934
26441
  "type": "array",
25935
26442
  "items": {
@@ -25937,6 +26444,61 @@
25937
26444
  }
25938
26445
  }
25939
26446
  },
26447
+ "siteQuestionVisitorBot": {
26448
+ "name": "visitorBot",
26449
+ "in": "query",
26450
+ "description": "Filter by the AI agent or bot that asked the question.",
26451
+ "schema": {
26452
+ "type": "array",
26453
+ "items": {
26454
+ "$ref": "#/components/schemas/SiteInsightsVisitorBot"
26455
+ }
26456
+ }
26457
+ },
26458
+ "siteQuestionIntent": {
26459
+ "name": "intent",
26460
+ "in": "query",
26461
+ "description": "Filter by the intent of the question.",
26462
+ "schema": {
26463
+ "type": "array",
26464
+ "items": {
26465
+ "$ref": "#/components/schemas/SiteQuestionIntent"
26466
+ }
26467
+ }
26468
+ },
26469
+ "siteQuestionSiteSaid": {
26470
+ "name": "siteSaid",
26471
+ "in": "query",
26472
+ "description": "Filter by what the site said in the answer about the main thing asked.",
26473
+ "schema": {
26474
+ "type": "array",
26475
+ "items": {
26476
+ "$ref": "#/components/schemas/SiteQuestionAnswerSiteSaid"
26477
+ }
26478
+ }
26479
+ },
26480
+ "siteQuestionEscalation": {
26481
+ "name": "escalation",
26482
+ "in": "query",
26483
+ "description": "Filter by who should act on the answer (docs, another team, support or nobody).",
26484
+ "schema": {
26485
+ "type": "array",
26486
+ "items": {
26487
+ "$ref": "#/components/schemas/SiteQuestionEscalation"
26488
+ }
26489
+ }
26490
+ },
26491
+ "siteQuestionVisitorAuthentication": {
26492
+ "name": "visitorAuthentication",
26493
+ "in": "query",
26494
+ "description": "Filter by whether the visitor who asked was signed in to the site.",
26495
+ "schema": {
26496
+ "type": "array",
26497
+ "items": {
26498
+ "$ref": "#/components/schemas/SiteQuestionVisitorAuthentication"
26499
+ }
26500
+ }
26501
+ },
25940
26502
  "siteQuestionCitedPage": {
25941
26503
  "name": "citedPage",
25942
26504
  "in": "query",
@@ -26033,15 +26595,6 @@
26033
26595
  "type": "string"
26034
26596
  }
26035
26597
  },
26036
- "emailDomain": {
26037
- "name": "emailDomain",
26038
- "in": "path",
26039
- "required": true,
26040
- "description": "Email domain",
26041
- "schema": {
26042
- "type": "string"
26043
- }
26044
- },
26045
26598
  "xGitBookPartnerKey": {
26046
26599
  "in": "header",
26047
26600
  "name": "X-GitBook-Partner-Key",
@@ -26194,6 +26747,124 @@
26194
26747
  "token"
26195
26748
  ]
26196
26749
  },
26750
+ "Timestamp": {
26751
+ "type": "string",
26752
+ "format": "date-time"
26753
+ },
26754
+ "UserPasskey": {
26755
+ "type": "object",
26756
+ "description": "A passkey the user registered to sign in to GitBook.",
26757
+ "properties": {
26758
+ "object": {
26759
+ "type": "string",
26760
+ "description": "The object type, which is always \"passkey\"",
26761
+ "enum": [
26762
+ "passkey"
26763
+ ]
26764
+ },
26765
+ "id": {
26766
+ "type": "string",
26767
+ "description": "Unique identifier of the passkey."
26768
+ },
26769
+ "name": {
26770
+ "type": "string",
26771
+ "description": "Name the user gave the passkey, usually the device or password manager that holds it."
26772
+ },
26773
+ "createdAt": {
26774
+ "$ref": "#/components/schemas/Timestamp",
26775
+ "description": "When the passkey was registered."
26776
+ },
26777
+ "lastUsedAt": {
26778
+ "$ref": "#/components/schemas/Timestamp",
26779
+ "description": "When the passkey was last used to sign in. Absent if it has never been used."
26780
+ },
26781
+ "backedUp": {
26782
+ "type": "boolean",
26783
+ "description": "Whether the passkey is synced across devices, for example by a password manager."
26784
+ }
26785
+ },
26786
+ "required": [
26787
+ "object",
26788
+ "id",
26789
+ "name",
26790
+ "createdAt",
26791
+ "backedUp"
26792
+ ]
26793
+ },
26794
+ "PasskeyRegistrationResponse": {
26795
+ "type": "object",
26796
+ "description": "The browser's answer to the passkey registration options (RegistrationResponseJSON).",
26797
+ "properties": {
26798
+ "id": {
26799
+ "type": "string"
26800
+ },
26801
+ "rawId": {
26802
+ "type": "string"
26803
+ },
26804
+ "type": {
26805
+ "type": "string",
26806
+ "enum": [
26807
+ "public-key"
26808
+ ]
26809
+ },
26810
+ "response": {
26811
+ "type": "object",
26812
+ "properties": {
26813
+ "clientDataJSON": {
26814
+ "type": "string"
26815
+ },
26816
+ "attestationObject": {
26817
+ "type": "string"
26818
+ },
26819
+ "transports": {
26820
+ "type": "array",
26821
+ "maxItems": 8,
26822
+ "description": "How the browser reaches the authenticator, such as usb, nfc, ble, smart-card, hybrid or internal. WebAuthn can add values, so any short lowercase name is accepted.",
26823
+ "items": {
26824
+ "type": "string",
26825
+ "pattern": "^[a-z][a-z-]{0,31}$"
26826
+ }
26827
+ }
26828
+ },
26829
+ "required": [
26830
+ "clientDataJSON",
26831
+ "attestationObject"
26832
+ ]
26833
+ },
26834
+ "clientExtensionResults": {
26835
+ "type": "object",
26836
+ "additionalProperties": true
26837
+ },
26838
+ "authenticatorAttachment": {
26839
+ "type": "string",
26840
+ "enum": [
26841
+ "platform",
26842
+ "cross-platform"
26843
+ ]
26844
+ }
26845
+ },
26846
+ "required": [
26847
+ "id",
26848
+ "rawId",
26849
+ "type",
26850
+ "response",
26851
+ "clientExtensionResults"
26852
+ ]
26853
+ },
26854
+ "PasskeyRegistrationOptions": {
26855
+ "type": "object",
26856
+ "description": "WebAuthn options for creating a passkey (PublicKeyCredentialCreationOptionsJSON), to pass unchanged to the browser.",
26857
+ "additionalProperties": true,
26858
+ "properties": {
26859
+ "challenge": {
26860
+ "type": "string",
26861
+ "description": "Single-use challenge the new passkey must sign."
26862
+ }
26863
+ },
26864
+ "required": [
26865
+ "challenge"
26866
+ ]
26867
+ },
26197
26868
  "List": {
26198
26869
  "type": "object",
26199
26870
  "properties": {
@@ -26219,10 +26890,6 @@
26219
26890
  "type": "string",
26220
26891
  "maxLength": 50
26221
26892
  },
26222
- "Timestamp": {
26223
- "type": "string",
26224
- "format": "date-time"
26225
- },
26226
26893
  "UserAPIToken": {
26227
26894
  "type": "object",
26228
26895
  "description": "The API token details, excluding the token itself.",
@@ -26246,6 +26913,10 @@
26246
26913
  "expiresAt": {
26247
26914
  "$ref": "#/components/schemas/Timestamp",
26248
26915
  "description": "When the API token stops authenticating. Absent for a token that never expires."
26916
+ },
26917
+ "lastUsedAt": {
26918
+ "$ref": "#/components/schemas/Timestamp",
26919
+ "description": "When the API token last authenticated a request, accurate to within an hour. Absent for a token that has never been used."
26249
26920
  }
26250
26921
  },
26251
26922
  "required": [
@@ -28629,6 +29300,14 @@
28629
29300
  "properties": {
28630
29301
  "ref": {
28631
29302
  "$ref": "#/components/schemas/ContentRef"
29303
+ },
29304
+ "target": {
29305
+ "type": "string",
29306
+ "description": "Where the link opens when clicked. When absent, the link follows the site's default behavior.\n- `self`: The link opens in the current tab.\n- `blank`: The link opens in a new browser tab.\n",
29307
+ "enum": [
29308
+ "self",
29309
+ "blank"
29310
+ ]
28632
29311
  }
28633
29312
  },
28634
29313
  "required": [
@@ -29538,6 +30217,7 @@
29538
30217
  "type": "string",
29539
30218
  "description": "Size of the cards. It indicates how many columns will be used",
29540
30219
  "enum": [
30220
+ "small",
29541
30221
  "medium",
29542
30222
  "large"
29543
30223
  ]
@@ -30753,107 +31433,6 @@
30753
31433
  }
30754
31434
  ]
30755
31435
  },
30756
- "DocumentBlockIf": {
30757
- "type": "object",
30758
- "properties": {
30759
- "object": {
30760
- "type": "string",
30761
- "enum": [
30762
- "block"
30763
- ]
30764
- },
30765
- "type": {
30766
- "type": "string",
30767
- "enum": [
30768
- "if"
30769
- ]
30770
- },
30771
- "key": {
30772
- "type": "string"
30773
- },
30774
- "nodes": {
30775
- "type": "array",
30776
- "items": {
30777
- "$ref": "#/components/schemas/DocumentBlocksTopLevels"
30778
- }
30779
- },
30780
- "isVoid": {
30781
- "type": "boolean",
30782
- "enum": [
30783
- false
30784
- ]
30785
- },
30786
- "data": {
30787
- "type": "object",
30788
- "properties": {
30789
- "expression": {
30790
- "type": "string"
30791
- }
30792
- },
30793
- "required": [
30794
- "expression"
30795
- ]
30796
- }
30797
- },
30798
- "required": [
30799
- "object",
30800
- "type",
30801
- "nodes",
30802
- "data"
30803
- ]
30804
- },
30805
- "DocumentBlockReusableContent": {
30806
- "type": "object",
30807
- "properties": {
30808
- "object": {
30809
- "type": "string",
30810
- "enum": [
30811
- "block"
30812
- ]
30813
- },
30814
- "type": {
30815
- "type": "string",
30816
- "enum": [
30817
- "reusable-content"
30818
- ]
30819
- },
30820
- "key": {
30821
- "type": "string"
30822
- },
30823
- "data": {
30824
- "type": "object",
30825
- "properties": {
30826
- "ref": {
30827
- "$ref": "#/components/schemas/ContentRefReusableContent"
30828
- }
30829
- },
30830
- "required": [
30831
- "ref"
30832
- ]
30833
- },
30834
- "isVoid": {
30835
- "type": "boolean",
30836
- "enum": [
30837
- true
30838
- ]
30839
- },
30840
- "meta": {
30841
- "type": "object",
30842
- "properties": {
30843
- "token": {
30844
- "description": "A content token that can be used to fetch the reusable content from the API.",
30845
- "type": "string"
30846
- }
30847
- }
30848
- }
30849
- },
30850
- "required": [
30851
- "object",
30852
- "type",
30853
- "data",
30854
- "isVoid"
30855
- ]
30856
- },
30857
31436
  "DocumentBlockContentRef": {
30858
31437
  "type": "object",
30859
31438
  "properties": {
@@ -31117,7 +31696,7 @@
31117
31696
  "data"
31118
31697
  ]
31119
31698
  },
31120
- "DocumentBlockStepper": {
31699
+ "DocumentBlockIf": {
31121
31700
  "type": "object",
31122
31701
  "properties": {
31123
31702
  "object": {
@@ -31129,7 +31708,7 @@
31129
31708
  "type": {
31130
31709
  "type": "string",
31131
31710
  "enum": [
31132
- "stepper"
31711
+ "if"
31133
31712
  ]
31134
31713
  },
31135
31714
  "key": {
@@ -31137,8 +31716,16 @@
31137
31716
  },
31138
31717
  "nodes": {
31139
31718
  "type": "array",
31719
+ "description": "Blocks shown when the expression is true. Directly inside an `updates` block, these are `update` blocks, and only there.",
31140
31720
  "items": {
31141
- "$ref": "#/components/schemas/DocumentBlockStepperStep"
31721
+ "oneOf": [
31722
+ {
31723
+ "$ref": "#/components/schemas/DocumentBlocksTopLevels"
31724
+ },
31725
+ {
31726
+ "$ref": "#/components/schemas/DocumentBlockUpdate"
31727
+ }
31728
+ ]
31142
31729
  }
31143
31730
  },
31144
31731
  "isVoid": {
@@ -31149,14 +31736,73 @@
31149
31736
  },
31150
31737
  "data": {
31151
31738
  "type": "object",
31152
- "properties": {},
31153
- "additionalProperties": false
31739
+ "properties": {
31740
+ "expression": {
31741
+ "type": "string"
31742
+ }
31743
+ },
31744
+ "required": [
31745
+ "expression"
31746
+ ]
31154
31747
  }
31155
31748
  },
31156
31749
  "required": [
31157
31750
  "object",
31158
31751
  "type",
31159
- "nodes"
31752
+ "nodes",
31753
+ "data"
31754
+ ]
31755
+ },
31756
+ "DocumentBlockReusableContent": {
31757
+ "type": "object",
31758
+ "properties": {
31759
+ "object": {
31760
+ "type": "string",
31761
+ "enum": [
31762
+ "block"
31763
+ ]
31764
+ },
31765
+ "type": {
31766
+ "type": "string",
31767
+ "enum": [
31768
+ "reusable-content"
31769
+ ]
31770
+ },
31771
+ "key": {
31772
+ "type": "string"
31773
+ },
31774
+ "data": {
31775
+ "type": "object",
31776
+ "properties": {
31777
+ "ref": {
31778
+ "$ref": "#/components/schemas/ContentRefReusableContent"
31779
+ }
31780
+ },
31781
+ "required": [
31782
+ "ref"
31783
+ ]
31784
+ },
31785
+ "isVoid": {
31786
+ "type": "boolean",
31787
+ "enum": [
31788
+ true
31789
+ ]
31790
+ },
31791
+ "meta": {
31792
+ "type": "object",
31793
+ "properties": {
31794
+ "token": {
31795
+ "description": "A content token that can be used to fetch the reusable content from the API.",
31796
+ "type": "string"
31797
+ }
31798
+ }
31799
+ }
31800
+ },
31801
+ "required": [
31802
+ "object",
31803
+ "type",
31804
+ "data",
31805
+ "isVoid"
31160
31806
  ]
31161
31807
  },
31162
31808
  "DocumentBlockTabs": {
@@ -31205,7 +31851,7 @@
31205
31851
  "nodes"
31206
31852
  ]
31207
31853
  },
31208
- "DocumentBlockTabsItem": {
31854
+ "DocumentBlockStepper": {
31209
31855
  "type": "object",
31210
31856
  "properties": {
31211
31857
  "object": {
@@ -31217,7 +31863,49 @@
31217
31863
  "type": {
31218
31864
  "type": "string",
31219
31865
  "enum": [
31220
- "tabs-item"
31866
+ "stepper"
31867
+ ]
31868
+ },
31869
+ "key": {
31870
+ "type": "string"
31871
+ },
31872
+ "nodes": {
31873
+ "type": "array",
31874
+ "items": {
31875
+ "$ref": "#/components/schemas/DocumentBlockStepperStep"
31876
+ }
31877
+ },
31878
+ "isVoid": {
31879
+ "type": "boolean",
31880
+ "enum": [
31881
+ false
31882
+ ]
31883
+ },
31884
+ "data": {
31885
+ "type": "object",
31886
+ "properties": {},
31887
+ "additionalProperties": false
31888
+ }
31889
+ },
31890
+ "required": [
31891
+ "object",
31892
+ "type",
31893
+ "nodes"
31894
+ ]
31895
+ },
31896
+ "DocumentBlockStepperStep": {
31897
+ "type": "object",
31898
+ "properties": {
31899
+ "object": {
31900
+ "type": "string",
31901
+ "enum": [
31902
+ "block"
31903
+ ]
31904
+ },
31905
+ "type": {
31906
+ "type": "string",
31907
+ "enum": [
31908
+ "stepper-step"
31221
31909
  ]
31222
31910
  },
31223
31911
  "key": {
@@ -31263,11 +31951,14 @@
31263
31951
  {
31264
31952
  "$ref": "#/components/schemas/DocumentBlockIntegration"
31265
31953
  },
31954
+ {
31955
+ "$ref": "#/components/schemas/DocumentBlockExpandable"
31956
+ },
31266
31957
  {
31267
31958
  "$ref": "#/components/schemas/DocumentBlockTable"
31268
31959
  },
31269
31960
  {
31270
- "$ref": "#/components/schemas/DocumentBlockExpandable"
31961
+ "$ref": "#/components/schemas/DocumentBlockTabs"
31271
31962
  },
31272
31963
  {
31273
31964
  "$ref": "#/components/schemas/DocumentBlockIf"
@@ -31277,9 +31968,6 @@
31277
31968
  },
31278
31969
  {
31279
31970
  "$ref": "#/components/schemas/DocumentBlockStepper"
31280
- },
31281
- {
31282
- "$ref": "#/components/schemas/DocumentBlockTabs"
31283
31971
  }
31284
31972
  ]
31285
31973
  }
@@ -31287,30 +31975,11 @@
31287
31975
  "data": {
31288
31976
  "type": "object",
31289
31977
  "properties": {
31290
- "title": {
31291
- "type": "string"
31292
- },
31293
31978
  "icon": {
31294
- "$ref": "#/components/schemas/Icon"
31295
- },
31296
- "slug": {
31297
- "description": "Stable identifier for this tab's selection, shared with every tab and button targeting the same slug. It is slugified before matching, so casing and spacing need not be exact. Omit it — or send an empty value, which counts as omitted — to derive one from the title, which is what makes same-named tabs across a site select together. A value that slugifies to nothing, such as emoji alone, also falls back to the title.",
31298
31979
  "type": "string"
31299
31980
  }
31300
31981
  }
31301
31982
  },
31302
- "meta": {
31303
- "type": "object",
31304
- "properties": {
31305
- "id": {
31306
- "description": "Unique ID to be used in an URL for the block.",
31307
- "type": "string"
31308
- }
31309
- },
31310
- "required": [
31311
- "id"
31312
- ]
31313
- },
31314
31983
  "isVoid": {
31315
31984
  "type": "boolean",
31316
31985
  "enum": [
@@ -31325,7 +31994,7 @@
31325
31994
  "data"
31326
31995
  ]
31327
31996
  },
31328
- "DocumentBlockStepperStep": {
31997
+ "DocumentBlockTabsItem": {
31329
31998
  "type": "object",
31330
31999
  "properties": {
31331
32000
  "object": {
@@ -31337,7 +32006,7 @@
31337
32006
  "type": {
31338
32007
  "type": "string",
31339
32008
  "enum": [
31340
- "stepper-step"
32009
+ "tabs-item"
31341
32010
  ]
31342
32011
  },
31343
32012
  "key": {
@@ -31383,14 +32052,11 @@
31383
32052
  {
31384
32053
  "$ref": "#/components/schemas/DocumentBlockIntegration"
31385
32054
  },
31386
- {
31387
- "$ref": "#/components/schemas/DocumentBlockExpandable"
31388
- },
31389
32055
  {
31390
32056
  "$ref": "#/components/schemas/DocumentBlockTable"
31391
32057
  },
31392
32058
  {
31393
- "$ref": "#/components/schemas/DocumentBlockTabs"
32059
+ "$ref": "#/components/schemas/DocumentBlockExpandable"
31394
32060
  },
31395
32061
  {
31396
32062
  "$ref": "#/components/schemas/DocumentBlockIf"
@@ -31400,6 +32066,9 @@
31400
32066
  },
31401
32067
  {
31402
32068
  "$ref": "#/components/schemas/DocumentBlockStepper"
32069
+ },
32070
+ {
32071
+ "$ref": "#/components/schemas/DocumentBlockTabs"
31403
32072
  }
31404
32073
  ]
31405
32074
  }
@@ -31407,11 +32076,148 @@
31407
32076
  "data": {
31408
32077
  "type": "object",
31409
32078
  "properties": {
32079
+ "title": {
32080
+ "type": "string"
32081
+ },
31410
32082
  "icon": {
32083
+ "$ref": "#/components/schemas/Icon"
32084
+ },
32085
+ "slug": {
32086
+ "description": "Stable identifier for this tab's selection, shared with every tab and button targeting the same slug. It is slugified before matching, so casing and spacing need not be exact. Omit it — or send an empty value, which counts as omitted — to derive one from the title, which is what makes same-named tabs across a site select together. A value that slugifies to nothing, such as emoji alone, also falls back to the title.",
32087
+ "type": "string"
32088
+ }
32089
+ }
32090
+ },
32091
+ "meta": {
32092
+ "type": "object",
32093
+ "properties": {
32094
+ "id": {
32095
+ "description": "Unique ID to be used in an URL for the block.",
31411
32096
  "type": "string"
31412
32097
  }
32098
+ },
32099
+ "required": [
32100
+ "id"
32101
+ ]
32102
+ },
32103
+ "isVoid": {
32104
+ "type": "boolean",
32105
+ "enum": [
32106
+ false
32107
+ ]
32108
+ }
32109
+ },
32110
+ "required": [
32111
+ "object",
32112
+ "type",
32113
+ "nodes",
32114
+ "data"
32115
+ ]
32116
+ },
32117
+ "DocumentBlockUpdate": {
32118
+ "type": "object",
32119
+ "properties": {
32120
+ "object": {
32121
+ "type": "string",
32122
+ "enum": [
32123
+ "block"
32124
+ ]
32125
+ },
32126
+ "type": {
32127
+ "type": "string",
32128
+ "enum": [
32129
+ "update"
32130
+ ]
32131
+ },
32132
+ "key": {
32133
+ "type": "string"
32134
+ },
32135
+ "nodes": {
32136
+ "type": "array",
32137
+ "items": {
32138
+ "oneOf": [
32139
+ {
32140
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
32141
+ },
32142
+ {
32143
+ "$ref": "#/components/schemas/DocumentBlockContentRef"
32144
+ },
32145
+ {
32146
+ "$ref": "#/components/schemas/DocumentBlockCode"
32147
+ },
32148
+ {
32149
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
32150
+ },
32151
+ {
32152
+ "$ref": "#/components/schemas/DocumentBlockFile"
32153
+ },
32154
+ {
32155
+ "$ref": "#/components/schemas/DocumentBlockImages"
32156
+ },
32157
+ {
32158
+ "$ref": "#/components/schemas/DocumentBlockDrawing"
32159
+ },
32160
+ {
32161
+ "$ref": "#/components/schemas/DocumentBlockHint"
32162
+ },
32163
+ {
32164
+ "$ref": "#/components/schemas/DocumentBlockPrompt"
32165
+ },
32166
+ {
32167
+ "$ref": "#/components/schemas/DocumentBlockQuote"
32168
+ },
32169
+ {
32170
+ "$ref": "#/components/schemas/DocumentBlockMath"
32171
+ },
32172
+ {
32173
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
32174
+ },
32175
+ {
32176
+ "$ref": "#/components/schemas/DocumentBlockTabs"
32177
+ },
32178
+ {
32179
+ "$ref": "#/components/schemas/DocumentBlockExpandable"
32180
+ },
32181
+ {
32182
+ "$ref": "#/components/schemas/DocumentBlockTable"
32183
+ },
32184
+ {
32185
+ "$ref": "#/components/schemas/DocumentBlockIf"
32186
+ },
32187
+ {
32188
+ "$ref": "#/components/schemas/DocumentBlockStepper"
32189
+ }
32190
+ ]
31413
32191
  }
31414
32192
  },
32193
+ "data": {
32194
+ "type": "object",
32195
+ "properties": {
32196
+ "date": {
32197
+ "type": "string",
32198
+ "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.",
32199
+ "oneOf": [
32200
+ {
32201
+ "type": "string",
32202
+ "format": "date"
32203
+ },
32204
+ {
32205
+ "$ref": "#/components/schemas/Timestamp"
32206
+ }
32207
+ ]
32208
+ },
32209
+ "tags": {
32210
+ "type": "array",
32211
+ "description": "Array of tags. Each tag is id'ed by its slug.",
32212
+ "items": {
32213
+ "$ref": "#/components/schemas/ContentRefTag"
32214
+ }
32215
+ }
32216
+ },
32217
+ "required": [
32218
+ "date"
32219
+ ]
32220
+ },
31415
32221
  "isVoid": {
31416
32222
  "type": "boolean",
31417
32223
  "enum": [
@@ -32154,7 +32960,7 @@
32154
32960
  "isVoid"
32155
32961
  ]
32156
32962
  },
32157
- "DocumentBlockUpdate": {
32963
+ "DocumentBlockUpdates": {
32158
32964
  "type": "object",
32159
32965
  "properties": {
32160
32966
  "object": {
@@ -32166,7 +32972,7 @@
32166
32972
  "type": {
32167
32973
  "type": "string",
32168
32974
  "enum": [
32169
- "update"
32975
+ "updates"
32170
32976
  ]
32171
32977
  },
32172
32978
  "key": {
@@ -32174,128 +32980,18 @@
32174
32980
  },
32175
32981
  "nodes": {
32176
32982
  "type": "array",
32983
+ "description": "The updates. An `if` block wraps updates shown only when its expression is true; it holds `update` blocks only.",
32177
32984
  "items": {
32178
32985
  "oneOf": [
32179
32986
  {
32180
- "$ref": "#/components/schemas/DocumentBlocksEssentials"
32181
- },
32182
- {
32183
- "$ref": "#/components/schemas/DocumentBlockContentRef"
32184
- },
32185
- {
32186
- "$ref": "#/components/schemas/DocumentBlockCode"
32187
- },
32188
- {
32189
- "$ref": "#/components/schemas/DocumentBlockEmbed"
32190
- },
32191
- {
32192
- "$ref": "#/components/schemas/DocumentBlockFile"
32193
- },
32194
- {
32195
- "$ref": "#/components/schemas/DocumentBlockImages"
32196
- },
32197
- {
32198
- "$ref": "#/components/schemas/DocumentBlockDrawing"
32199
- },
32200
- {
32201
- "$ref": "#/components/schemas/DocumentBlockHint"
32202
- },
32203
- {
32204
- "$ref": "#/components/schemas/DocumentBlockPrompt"
32205
- },
32206
- {
32207
- "$ref": "#/components/schemas/DocumentBlockQuote"
32208
- },
32209
- {
32210
- "$ref": "#/components/schemas/DocumentBlockMath"
32211
- },
32212
- {
32213
- "$ref": "#/components/schemas/DocumentBlockIntegration"
32214
- },
32215
- {
32216
- "$ref": "#/components/schemas/DocumentBlockTabs"
32217
- },
32218
- {
32219
- "$ref": "#/components/schemas/DocumentBlockExpandable"
32220
- },
32221
- {
32222
- "$ref": "#/components/schemas/DocumentBlockTable"
32987
+ "$ref": "#/components/schemas/DocumentBlockUpdate"
32223
32988
  },
32224
32989
  {
32225
32990
  "$ref": "#/components/schemas/DocumentBlockIf"
32226
- },
32227
- {
32228
- "$ref": "#/components/schemas/DocumentBlockStepper"
32229
32991
  }
32230
32992
  ]
32231
32993
  }
32232
32994
  },
32233
- "data": {
32234
- "type": "object",
32235
- "properties": {
32236
- "date": {
32237
- "type": "string",
32238
- "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.",
32239
- "oneOf": [
32240
- {
32241
- "type": "string",
32242
- "format": "date"
32243
- },
32244
- {
32245
- "$ref": "#/components/schemas/Timestamp"
32246
- }
32247
- ]
32248
- },
32249
- "tags": {
32250
- "type": "array",
32251
- "description": "Array of tags. Each tag is id'ed by its slug.",
32252
- "items": {
32253
- "$ref": "#/components/schemas/ContentRefTag"
32254
- }
32255
- }
32256
- },
32257
- "required": [
32258
- "date"
32259
- ]
32260
- },
32261
- "isVoid": {
32262
- "type": "boolean",
32263
- "enum": [
32264
- false
32265
- ]
32266
- }
32267
- },
32268
- "required": [
32269
- "object",
32270
- "type",
32271
- "nodes",
32272
- "data"
32273
- ]
32274
- },
32275
- "DocumentBlockUpdates": {
32276
- "type": "object",
32277
- "properties": {
32278
- "object": {
32279
- "type": "string",
32280
- "enum": [
32281
- "block"
32282
- ]
32283
- },
32284
- "type": {
32285
- "type": "string",
32286
- "enum": [
32287
- "updates"
32288
- ]
32289
- },
32290
- "key": {
32291
- "type": "string"
32292
- },
32293
- "nodes": {
32294
- "type": "array",
32295
- "items": {
32296
- "$ref": "#/components/schemas/DocumentBlockUpdate"
32297
- }
32298
- },
32299
32995
  "isVoid": {
32300
32996
  "type": "boolean",
32301
32997
  "enum": [
@@ -33898,6 +34594,17 @@
33898
34594
  "type": "string",
33899
34595
  "description": "Display label for the tag. Can be renamed and differ from the slug."
33900
34596
  },
34597
+ "kind": {
34598
+ "type": "string",
34599
+ "enum": [
34600
+ "category"
34601
+ ],
34602
+ "description": "Categories organize tags and cannot be assigned to pages or blocks. Immutable after creation."
34603
+ },
34604
+ "parent": {
34605
+ "type": "string",
34606
+ "description": "Slug of the parent tag or category. Omitted for root tags. Normal tags nest one level beneath another normal tag; categories nest up to three levels deep."
34607
+ },
33901
34608
  "color": {
33902
34609
  "$ref": "#/components/schemas/DocumentTextColor"
33903
34610
  }
@@ -34004,7 +34711,7 @@
34004
34711
  },
34005
34712
  "tags": {
34006
34713
  "type": "array",
34007
- "description": "List of available tags within this revision",
34714
+ "description": "Tags and categories in hierarchy order: parents before children, sibling categories by manual position, then normal tags by manual position inside a parent and by label at the top level",
34008
34715
  "items": {
34009
34716
  "$ref": "#/components/schemas/RevisionTag"
34010
34717
  }
@@ -35042,12 +35749,15 @@
35042
35749
  "ChangeRequestReviewStats": {
35043
35750
  "type": "object",
35044
35751
  "description": "Exact review totals for the applied filters, independent of pagination. Keyed by review status, with a count of zero for a status nobody used.",
35045
- "propertyNames": {
35046
- "$ref": "#/components/schemas/ChangeRequestReviewStatus"
35047
- },
35048
- "additionalProperties": {
35049
- "type": "number"
35752
+ "properties": {
35753
+ "approved": {
35754
+ "type": "number"
35755
+ },
35756
+ "changes-requested": {
35757
+ "type": "number"
35758
+ }
35050
35759
  },
35760
+ "additionalProperties": false,
35051
35761
  "required": [
35052
35762
  "approved",
35053
35763
  "changes-requested"
@@ -35439,7 +36149,7 @@
35439
36149
  "description": "ID of the page to update."
35440
36150
  },
35441
36151
  "document": {
35442
- "description": "New document for the page. When provided as markdown, its frontmatter is read to update the page metadata. Omit to update only the metadata fields.",
36152
+ "description": "New document for the page. When provided as markdown, its frontmatter is read to update the page metadata. A `tags` list replaces the page's tags; each must be an existing tag slug in the space. Omit to update only the metadata fields.",
35443
36153
  "$ref": "#/components/schemas/Document"
35444
36154
  },
35445
36155
  "into": {
@@ -35508,7 +36218,7 @@
35508
36218
  "description": "Stable identifier for the page's content, such as the ID of the record it is generated from. The page's ID is derived from it, so re-inserting a deleted page with the same key restores its ID and links to it keep working. The same key gives the same page ID in every space, including duplicated spaces. To change a page that exists, use `update_page`: an insert whose key matches an existing page, or another insert in the batch, is rejected, so deleting a page and re-inserting its key must be done in separate requests. A re-created page takes over the old page's comments, redirects, insights and history. When two change requests insert the same key, merging both keeps only one of the pages, without a conflict."
35509
36219
  },
35510
36220
  "document": {
35511
- "description": "Document for the new page. When provided as markdown, its frontmatter is read to set the page metadata.",
36221
+ "description": "Document for the new page. When provided as markdown, its frontmatter is read to set the page metadata, including its `tags` (existing tag slugs in the space).",
35512
36222
  "$ref": "#/components/schemas/Document"
35513
36223
  }
35514
36224
  }
@@ -35953,14 +36663,14 @@
35953
36663
  },
35954
36664
  "RevisionTagLabel": {
35955
36665
  "type": "string",
35956
- "description": "Display label of a tag.",
36666
+ "description": "Display label of a tag or category.",
35957
36667
  "minLength": 1,
35958
36668
  "maxLength": 50
35959
36669
  },
35960
36670
  "ChangeRequestContentChangeInsertTags": {
35961
36671
  "type": "object",
35962
36672
  "additionalProperties": false,
35963
- "description": "Create flat tags in array order. The batch is rejected atomically if any tag is invalid.",
36673
+ "description": "Create normal tags and categories in array order. Parents must exist or appear earlier in the array. The batch is rejected atomically if any tag is invalid. Kind cannot be changed through an update or a delete-and-reinsert within the same batch. After deletion in an earlier request, the slug can be reused for a new definition.",
35964
36674
  "required": [
35965
36675
  "operation",
35966
36676
  "tags"
@@ -35988,6 +36698,12 @@
35988
36698
  "minLength": 1,
35989
36699
  "description": "Stable tag identifier; generated from the label when omitted."
35990
36700
  },
36701
+ "kind": {
36702
+ "type": "string",
36703
+ "enum": [
36704
+ "category"
36705
+ ]
36706
+ },
35991
36707
  "label": {
35992
36708
  "$ref": "#/components/schemas/RevisionTagLabel"
35993
36709
  },
@@ -35999,6 +36715,23 @@
35999
36715
  },
36000
36716
  "emoji": {
36001
36717
  "$ref": "#/components/schemas/Emoji"
36718
+ },
36719
+ "parent": {
36720
+ "oneOf": [
36721
+ {
36722
+ "type": "string",
36723
+ "minLength": 1
36724
+ },
36725
+ {
36726
+ "type": "null"
36727
+ }
36728
+ ],
36729
+ "description": "Parent category or normal tag slug. Null places the tag at the root."
36730
+ },
36731
+ "at": {
36732
+ "type": "integer",
36733
+ "minimum": 0,
36734
+ "description": "Zero-based position among siblings of the same kind (categories, or tags inside a category or parent tag). Top-level tags sort by label and take no position; omit to append when moving to another parent."
36002
36735
  }
36003
36736
  }
36004
36737
  }
@@ -36008,7 +36741,7 @@
36008
36741
  "ChangeRequestContentChangeUpdateTag": {
36009
36742
  "type": "object",
36010
36743
  "additionalProperties": false,
36011
- "description": "Rename or restyle an existing tag. The slug is immutable.",
36744
+ "description": "Rename, restyle, reparent or reorder an existing tag or category. Moving a parent keeps all descendants attached. Kind cannot be changed.",
36012
36745
  "required": [
36013
36746
  "operation",
36014
36747
  "tag"
@@ -36023,7 +36756,7 @@
36023
36756
  "tag": {
36024
36757
  "type": "string",
36025
36758
  "minLength": 1,
36026
- "description": "Slug of the tag to update."
36759
+ "description": "Slug of the tag or category to update."
36027
36760
  },
36028
36761
  "label": {
36029
36762
  "$ref": "#/components/schemas/RevisionTagLabel"
@@ -36052,13 +36785,30 @@
36052
36785
  }
36053
36786
  ],
36054
36787
  "description": "Emoji to set. Null removes the emoji; omission preserves it."
36788
+ },
36789
+ "parent": {
36790
+ "oneOf": [
36791
+ {
36792
+ "type": "string",
36793
+ "minLength": 1
36794
+ },
36795
+ {
36796
+ "type": "null"
36797
+ }
36798
+ ],
36799
+ "description": "Parent category or normal tag slug. Null places the tag at the root."
36800
+ },
36801
+ "at": {
36802
+ "type": "integer",
36803
+ "minimum": 0,
36804
+ "description": "Zero-based position among siblings of the same kind (categories, or tags inside a category or parent tag). Top-level tags sort by label and take no position; omit to append when moving to another parent."
36055
36805
  }
36056
36806
  }
36057
36807
  },
36058
36808
  "ChangeRequestContentChangeDeleteTag": {
36059
36809
  "type": "object",
36060
36810
  "additionalProperties": false,
36061
- "description": "Delete an existing tag definition. Page and block references remain in content but stop resolving.",
36811
+ "description": "Delete an empty category or a normal tag. A normal tag's children are reparented to its parent. Page and block references to the deleted tag stop resolving.",
36062
36812
  "required": [
36063
36813
  "operation",
36064
36814
  "tag"
@@ -36832,6 +37582,17 @@
36832
37582
  },
36833
37583
  "label": {
36834
37584
  "type": "string"
37585
+ },
37586
+ "kind": {
37587
+ "type": "string",
37588
+ "enum": [
37589
+ "category"
37590
+ ],
37591
+ "description": "Present for categories; omitted for normal tags."
37592
+ },
37593
+ "parent": {
37594
+ "type": "string",
37595
+ "description": "Parent tag or category slug. Omitted for root tags."
36835
37596
  }
36836
37597
  },
36837
37598
  "required": [
@@ -36881,6 +37642,40 @@
36881
37642
  "properties": {
36882
37643
  "label": {
36883
37644
  "$ref": "#/components/schemas/ChangeAttributeString"
37645
+ },
37646
+ "kind": {
37647
+ "$ref": "#/components/schemas/ChangeAttributeString"
37648
+ },
37649
+ "parent": {
37650
+ "$ref": "#/components/schemas/ChangeAttributeString"
37651
+ },
37652
+ "orderIndex": {
37653
+ "$ref": "#/components/schemas/ChangeAttributeString"
37654
+ },
37655
+ "color": {
37656
+ "$ref": "#/components/schemas/ChangeAttributeString"
37657
+ },
37658
+ "icon": {
37659
+ "type": "object",
37660
+ "properties": {
37661
+ "before": {
37662
+ "$ref": "#/components/schemas/Icon"
37663
+ },
37664
+ "after": {
37665
+ "$ref": "#/components/schemas/Icon"
37666
+ }
37667
+ }
37668
+ },
37669
+ "emoji": {
37670
+ "type": "object",
37671
+ "properties": {
37672
+ "before": {
37673
+ "$ref": "#/components/schemas/Emoji"
37674
+ },
37675
+ "after": {
37676
+ "$ref": "#/components/schemas/Emoji"
37677
+ }
37678
+ }
36884
37679
  }
36885
37680
  }
36886
37681
  },
@@ -37903,7 +38698,15 @@
37903
38698
  "$ref": "#/components/schemas/OrganizationDefaultContent"
37904
38699
  },
37905
38700
  "sso": {
37906
- "description": "Whether SSO is enforced organization-wide",
38701
+ "description": "Whether SSO is enforced organization-wide. Requires an active SAML provider and at least one organization admin linked through SSO.",
38702
+ "type": "boolean"
38703
+ },
38704
+ "ssoPreference": {
38705
+ "description": "Whether Enforce SSO is turned on, regardless of whether its requirements are met.",
38706
+ "type": "boolean"
38707
+ },
38708
+ "ssoRequired": {
38709
+ "description": "Whether Enforce SSO applies to the current user, because one of the organization's SAML providers can sign in their email. Members no provider can sign in keep their other sign-in methods.",
37907
38710
  "type": "boolean"
37908
38711
  },
37909
38712
  "ai": {
@@ -39365,6 +40168,10 @@
39365
40168
  "editAdaptiveSchema"
39366
40169
  ]
39367
40170
  },
40171
+ "publicChangeRequestPreviews": {
40172
+ "type": "boolean",
40173
+ "description": "Whether visitors can preview change requests and historical revisions on the published site. Previews inside GitBook are not affected."
40174
+ },
39368
40175
  "published": {
39369
40176
  "type": "boolean",
39370
40177
  "description": "Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting."
@@ -39453,6 +40260,7 @@
39453
40260
  "defaultLevel",
39454
40261
  "permissions",
39455
40262
  "published",
40263
+ "publicChangeRequestPreviews",
39456
40264
  "createdAt",
39457
40265
  "siteSpaces",
39458
40266
  "features",
@@ -40802,6 +41610,30 @@
40802
41610
  }
40803
41611
  ]
40804
41612
  },
41613
+ "Error": {
41614
+ "type": "object",
41615
+ "required": [
41616
+ "error"
41617
+ ],
41618
+ "properties": {
41619
+ "error": {
41620
+ "type": "object",
41621
+ "properties": {
41622
+ "code": {
41623
+ "type": "integer",
41624
+ "format": "int32"
41625
+ },
41626
+ "message": {
41627
+ "type": "string"
41628
+ }
41629
+ },
41630
+ "required": [
41631
+ "code",
41632
+ "message"
41633
+ ]
41634
+ }
41635
+ }
41636
+ },
40805
41637
  "ContentKitContextBase": {
40806
41638
  "type": "object",
40807
41639
  "description": "Common properties for ContentKit context.",
@@ -41202,6 +42034,13 @@
41202
42034
  }
41203
42035
  }
41204
42036
  },
42037
+ "NewOrganizationTitle": {
42038
+ "type": "string",
42039
+ "description": "Name of a new organization",
42040
+ "minLength": 2,
42041
+ "maxLength": 80,
42042
+ "pattern": "\\S.*\\S"
42043
+ },
41205
42044
  "SiteOnboardingSource": {
41206
42045
  "type": "string",
41207
42046
  "description": "Where the user's docs are coming from today.",
@@ -41271,10 +42110,12 @@
41271
42110
  "type": "object",
41272
42111
  "properties": {
41273
42112
  "title": {
41274
- "$ref": "#/components/schemas/OrganizationTitle"
42113
+ "$ref": "#/components/schemas/NewOrganizationTitle"
41275
42114
  },
41276
42115
  "emailDomains": {
41277
- "$ref": "#/components/schemas/OrganizationEmailDomains"
42116
+ "$ref": "#/components/schemas/OrganizationEmailDomains",
42117
+ "description": "No longer supported: a non-empty list is rejected. Add and verify domains with the domain management API after the organization is created.",
42118
+ "deprecated": true
41278
42119
  },
41279
42120
  "onboardingPreferences": {
41280
42121
  "description": "Preferences collected from the user during onboarding, to apply to the organization's default site. Only used when `withDefaultSite` is true.",
@@ -42381,6 +43222,15 @@
42381
43222
  "description": "Default role to set on newly invited members.",
42382
43223
  "$ref": "#/components/schemas/MemberRoleOrGuest"
42383
43224
  },
43225
+ "teamIds": {
43226
+ "description": "Teams to add the invitees to as Members, preserving existing team roles. The caller must be an owner of every team or an organization admin. Team-owner email invitations require acceptance before granting organization Guest and team Member access, including when the recipient already belongs to the organization. Existing roles are preserved. Granting an organization role or SSO access requires an organization admin.",
43227
+ "type": "array",
43228
+ "minItems": 1,
43229
+ "uniqueItems": true,
43230
+ "items": {
43231
+ "$ref": "#/components/schemas/EntityId"
43232
+ }
43233
+ },
42384
43234
  "sso": {
42385
43235
  "description": "If true, invites the user as an SSO user of the organization. Defaults to false.",
42386
43236
  "type": "boolean"
@@ -42484,6 +43334,38 @@
42484
43334
  "redundant": {
42485
43335
  "type": "boolean",
42486
43336
  "description": "An invite is redundant if the requesting user already has all necessary permissions."
43337
+ },
43338
+ "teamInvitation": {
43339
+ "type": "object",
43340
+ "description": "Details shown to the recipient before accepting a team invitation.",
43341
+ "properties": {
43342
+ "inviter": {
43343
+ "type": "string",
43344
+ "description": "Display name of the person who sent the invitation."
43345
+ },
43346
+ "teams": {
43347
+ "type": "array",
43348
+ "items": {
43349
+ "type": "object",
43350
+ "properties": {
43351
+ "id": {
43352
+ "type": "string"
43353
+ },
43354
+ "title": {
43355
+ "type": "string"
43356
+ }
43357
+ },
43358
+ "required": [
43359
+ "id",
43360
+ "title"
43361
+ ]
43362
+ }
43363
+ }
43364
+ },
43365
+ "required": [
43366
+ "inviter",
43367
+ "teams"
43368
+ ]
42487
43369
  }
42488
43370
  },
42489
43371
  "required": [
@@ -42728,7 +43610,26 @@
42728
43610
  "enum": [
42729
43611
  "claude",
42730
43612
  "codex",
42731
- "replit"
43613
+ "cursor",
43614
+ "lovable",
43615
+ "replit",
43616
+ "other"
43617
+ ]
43618
+ },
43619
+ "reasonComment": {
43620
+ "$ref": "#/components/schemas/BillingCancellationComment"
43621
+ },
43622
+ "reasonHosting": {
43623
+ "description": "Where the organization plans to host its own solution",
43624
+ "type": "string",
43625
+ "enum": [
43626
+ "own_website_or_app",
43627
+ "vercel",
43628
+ "netlify",
43629
+ "github_pages",
43630
+ "cloudflare_pages",
43631
+ "not_decided",
43632
+ "other"
42732
43633
  ]
42733
43634
  }
42734
43635
  },
@@ -42744,14 +43645,41 @@
42744
43645
  "reason": {
42745
43646
  "type": "string",
42746
43647
  "enum": [
42747
- "will_vibe_code_our_own_app"
43648
+ "found_better_alternative"
42748
43649
  ]
42749
43650
  },
42750
- "reasonDetail": {
42751
- "description": "The tool the organization is moving to",
43651
+ "reasonComment": {
43652
+ "$ref": "#/components/schemas/BillingCancellationComment"
43653
+ }
43654
+ },
43655
+ "additionalProperties": false,
43656
+ "required": [
43657
+ "reason",
43658
+ "reasonComment"
43659
+ ]
43660
+ },
43661
+ {
43662
+ "type": "object",
43663
+ "properties": {
43664
+ "reason": {
42752
43665
  "type": "string",
42753
43666
  "enum": [
42754
- "other"
43667
+ "company_shutdown"
43668
+ ]
43669
+ }
43670
+ },
43671
+ "additionalProperties": false,
43672
+ "required": [
43673
+ "reason"
43674
+ ]
43675
+ },
43676
+ {
43677
+ "type": "object",
43678
+ "properties": {
43679
+ "reason": {
43680
+ "type": "string",
43681
+ "enum": [
43682
+ "other_reason"
42755
43683
  ]
42756
43684
  },
42757
43685
  "reasonComment": {
@@ -42761,10 +43689,35 @@
42761
43689
  "additionalProperties": false,
42762
43690
  "required": [
42763
43691
  "reason",
42764
- "reasonDetail",
42765
43692
  "reasonComment"
42766
43693
  ]
42767
43694
  },
43695
+ {
43696
+ "type": "object",
43697
+ "properties": {
43698
+ "reason": {
43699
+ "type": "string",
43700
+ "enum": [
43701
+ "not_using_enough"
43702
+ ]
43703
+ },
43704
+ "reasonDetail": {
43705
+ "type": "string",
43706
+ "enum": [
43707
+ "yes_in_a_few_months",
43708
+ "no"
43709
+ ]
43710
+ },
43711
+ "reasonComment": {
43712
+ "$ref": "#/components/schemas/BillingCancellationComment"
43713
+ }
43714
+ },
43715
+ "additionalProperties": false,
43716
+ "required": [
43717
+ "reason",
43718
+ "reasonDetail"
43719
+ ]
43720
+ },
42768
43721
  {
42769
43722
  "type": "object",
42770
43723
  "properties": {
@@ -42774,6 +43727,37 @@
42774
43727
  "found_better_alternative"
42775
43728
  ]
42776
43729
  },
43730
+ "reasonDetail": {
43731
+ "type": "string",
43732
+ "enum": [
43733
+ "mintlify",
43734
+ "readme",
43735
+ "docusaurus",
43736
+ "notion",
43737
+ "confluence",
43738
+ "self_hosted",
43739
+ "other"
43740
+ ]
43741
+ },
43742
+ "reasonComment": {
43743
+ "$ref": "#/components/schemas/BillingCancellationComment"
43744
+ }
43745
+ },
43746
+ "additionalProperties": false,
43747
+ "required": [
43748
+ "reason",
43749
+ "reasonDetail"
43750
+ ]
43751
+ },
43752
+ {
43753
+ "type": "object",
43754
+ "properties": {
43755
+ "reason": {
43756
+ "type": "string",
43757
+ "enum": [
43758
+ "not_satisfied_with_product"
43759
+ ]
43760
+ },
42777
43761
  "reasonComment": {
42778
43762
  "$ref": "#/components/schemas/BillingCancellationComment"
42779
43763
  }
@@ -42790,13 +43774,25 @@
42790
43774
  "reason": {
42791
43775
  "type": "string",
42792
43776
  "enum": [
42793
- "company_shutdown"
43777
+ "budget"
43778
+ ]
43779
+ },
43780
+ "reasonDetail": {
43781
+ "type": "string",
43782
+ "enum": [
43783
+ "budget_cuts",
43784
+ "plan_price_increase",
43785
+ "consolidating_tools",
43786
+ "funding_changed",
43787
+ "excess_seats_or_sites",
43788
+ "project_budget_reduced"
42794
43789
  ]
42795
43790
  }
42796
43791
  },
42797
43792
  "additionalProperties": false,
42798
43793
  "required": [
42799
- "reason"
43794
+ "reason",
43795
+ "reasonDetail"
42800
43796
  ]
42801
43797
  },
42802
43798
  {
@@ -42805,7 +43801,13 @@
42805
43801
  "reason": {
42806
43802
  "type": "string",
42807
43803
  "enum": [
42808
- "other_reason"
43804
+ "budget"
43805
+ ]
43806
+ },
43807
+ "reasonDetail": {
43808
+ "type": "string",
43809
+ "enum": [
43810
+ "other"
42809
43811
  ]
42810
43812
  },
42811
43813
  "reasonComment": {
@@ -42815,6 +43817,7 @@
42815
43817
  "additionalProperties": false,
42816
43818
  "required": [
42817
43819
  "reason",
43820
+ "reasonDetail",
42818
43821
  "reasonComment"
42819
43822
  ]
42820
43823
  }
@@ -43627,6 +44630,7 @@
43627
44630
  "members-team-owners",
43628
44631
  "security-saml",
43629
44632
  "scim",
44633
+ "verified-domains",
43630
44634
  "change-requests-merge-rules"
43631
44635
  ]
43632
44636
  },
@@ -43835,6 +44839,24 @@
43835
44839
  "type": "string",
43836
44840
  "maxLength": 10000
43837
44841
  },
44842
+ "SAMLProviderDefaultRole": {
44843
+ "description": "Role given to people on their first sign-in through the provider. null adds them as guests, \"default\" uses the organization's default role, and \"domain\" uses the role of the verified email domain they signed in with.\n",
44844
+ "oneOf": [
44845
+ {
44846
+ "$ref": "#/components/schemas/MemberRole"
44847
+ },
44848
+ {
44849
+ "type": "null"
44850
+ },
44851
+ {
44852
+ "type": "string",
44853
+ "enum": [
44854
+ "default",
44855
+ "domain"
44856
+ ]
44857
+ }
44858
+ ]
44859
+ },
43838
44860
  "SAMLProviderStatus": {
43839
44861
  "type": "string",
43840
44862
  "description": "Status of the provider.\n- `active`: The provider is active and can be used to authenticate users.\n- `pending`: The provider is pending and is not yet fully configured.\n",
@@ -43843,6 +44865,33 @@
43843
44865
  "pending"
43844
44866
  ]
43845
44867
  },
44868
+ "SAMLProviderDomainStatus": {
44869
+ "type": "string",
44870
+ "description": "State of a SAML provider's email domain in the organization.\n- `verified`: People with an email on this domain can sign in through the provider.\n- `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.\n- `removed`: The organization no longer has this domain.\n",
44871
+ "enum": [
44872
+ "verified",
44873
+ "pending",
44874
+ "error",
44875
+ "legacy",
44876
+ "removed"
44877
+ ]
44878
+ },
44879
+ "SAMLProviderDomain": {
44880
+ "type": "object",
44881
+ "description": "An email domain of a SAML provider, with its verification state in the organization.",
44882
+ "properties": {
44883
+ "domain": {
44884
+ "type": "string"
44885
+ },
44886
+ "status": {
44887
+ "$ref": "#/components/schemas/SAMLProviderDomainStatus"
44888
+ }
44889
+ },
44890
+ "required": [
44891
+ "domain",
44892
+ "status"
44893
+ ]
44894
+ },
43846
44895
  "OrganizationSAMLProvider": {
43847
44896
  "type": "object",
43848
44897
  "properties": {
@@ -43872,8 +44921,12 @@
43872
44921
  "defaultTeam": {
43873
44922
  "$ref": "#/components/schemas/OrganizationTeam"
43874
44923
  },
44924
+ "defaultTeamFromDomain": {
44925
+ "type": "boolean",
44926
+ "description": "Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`.\n"
44927
+ },
43875
44928
  "defaultRole": {
43876
- "$ref": "#/components/schemas/MemberRoleOrGuest"
44929
+ "$ref": "#/components/schemas/SAMLProviderDefaultRole"
43877
44930
  },
43878
44931
  "createdAt": {
43879
44932
  "description": "Date at which the provider was created.",
@@ -43882,6 +44935,13 @@
43882
44935
  "status": {
43883
44936
  "$ref": "#/components/schemas/SAMLProviderStatus"
43884
44937
  },
44938
+ "domains": {
44939
+ "type": "array",
44940
+ "description": "Email domains the provider signs people in for. Absent on providers created before domains existed, which accept any email.\n",
44941
+ "items": {
44942
+ "$ref": "#/components/schemas/SAMLProviderDomain"
44943
+ }
44944
+ },
43885
44945
  "service": {
43886
44946
  "description": "Metadata about the service provider.",
43887
44947
  "properties": {
@@ -43934,6 +44994,130 @@
43934
44994
  "urls"
43935
44995
  ]
43936
44996
  },
44997
+ "SAMLProviderDomains": {
44998
+ "type": "array",
44999
+ "description": "Email domains the provider signs people in for. Each one must be an email domain of the organization. Only emails on a verified domain in this list can sign in through the provider.\n",
45000
+ "maxItems": 50,
45001
+ "uniqueItems": true,
45002
+ "items": {
45003
+ "type": "string",
45004
+ "minLength": 1,
45005
+ "maxLength": 255
45006
+ }
45007
+ },
45008
+ "OrganizationDomainStatus": {
45009
+ "type": "string",
45010
+ "description": "Verification status of the domain. \"legacy\" is a domain added before verification existed: it keeps letting people join automatically without being verified.\n",
45011
+ "enum": [
45012
+ "legacy",
45013
+ "pending",
45014
+ "verified",
45015
+ "error"
45016
+ ]
45017
+ },
45018
+ "OrganizationDomainDefaultRole": {
45019
+ "description": "Role given to people who join through the domain. \"default\" uses the organization's default role, and \"guest\" adds them as guests.\n",
45020
+ "oneOf": [
45021
+ {
45022
+ "$ref": "#/components/schemas/MemberRole"
45023
+ },
45024
+ {
45025
+ "type": "string",
45026
+ "enum": [
45027
+ "default",
45028
+ "guest"
45029
+ ]
45030
+ }
45031
+ ]
45032
+ },
45033
+ "OrganizationDomain": {
45034
+ "type": "object",
45035
+ "description": "An email domain of an organization.",
45036
+ "properties": {
45037
+ "object": {
45038
+ "type": "string",
45039
+ "description": "The object type, which is always \"organization-domain\"",
45040
+ "enum": [
45041
+ "organization-domain"
45042
+ ]
45043
+ },
45044
+ "domain": {
45045
+ "type": "string",
45046
+ "description": "The email domain, such as \"example.com\""
45047
+ },
45048
+ "status": {
45049
+ "$ref": "#/components/schemas/OrganizationDomainStatus"
45050
+ },
45051
+ "statusDescription": {
45052
+ "type": "string",
45053
+ "description": "Why the last verification failed"
45054
+ },
45055
+ "verificationRecord": {
45056
+ "type": "object",
45057
+ "description": "DNS TXT record to add to the domain to verify it",
45058
+ "properties": {
45059
+ "type": {
45060
+ "type": "string",
45061
+ "enum": [
45062
+ "TXT"
45063
+ ]
45064
+ },
45065
+ "name": {
45066
+ "type": "string"
45067
+ },
45068
+ "value": {
45069
+ "type": "string"
45070
+ }
45071
+ },
45072
+ "required": [
45073
+ "type",
45074
+ "name",
45075
+ "value"
45076
+ ]
45077
+ },
45078
+ "autoJoinEnabled": {
45079
+ "type": "boolean",
45080
+ "description": "Whether people with an email on the domain join the organization automatically"
45081
+ },
45082
+ "defaultRole": {
45083
+ "$ref": "#/components/schemas/OrganizationDomainDefaultRole"
45084
+ },
45085
+ "defaultTeam": {
45086
+ "type": "string",
45087
+ "description": "ID of the team that people joining through the domain are added to"
45088
+ },
45089
+ "verifiedAt": {
45090
+ "description": "Date the domain was verified",
45091
+ "$ref": "#/components/schemas/Timestamp"
45092
+ },
45093
+ "createdAt": {
45094
+ "description": "Date the domain was added",
45095
+ "$ref": "#/components/schemas/Timestamp"
45096
+ },
45097
+ "urls": {
45098
+ "type": "object",
45099
+ "description": "URLs associated with the object",
45100
+ "properties": {
45101
+ "location": {
45102
+ "description": "URL of the domain in the API",
45103
+ "$ref": "#/components/schemas/URL"
45104
+ }
45105
+ },
45106
+ "required": [
45107
+ "location"
45108
+ ]
45109
+ }
45110
+ },
45111
+ "required": [
45112
+ "object",
45113
+ "domain",
45114
+ "status",
45115
+ "autoJoinEnabled",
45116
+ "defaultRole",
45117
+ "createdAt",
45118
+ "urls"
45119
+ ]
45120
+ },
43937
45121
  "SCIMConnectionLabel": {
43938
45122
  "type": "string",
43939
45123
  "description": "Name of the SCIM connection, shown to organization admins.",
@@ -45725,6 +46909,17 @@
45725
46909
  "type": "string",
45726
46910
  "description": "Identifier of the user who created the installation."
45727
46911
  },
46912
+ "authorizedBy": {
46913
+ "description": "Identifier of the user who connected the Git provider credentials. Only this user can browse repositories or change the repository and branch with them. Null when it is unknown, for credentials connected before it was recorded, until someone reconnects the provider.",
46914
+ "oneOf": [
46915
+ {
46916
+ "type": "string"
46917
+ },
46918
+ {
46919
+ "type": "null"
46920
+ }
46921
+ ]
46922
+ },
45728
46923
  "updatedAt": {
45729
46924
  "$ref": "#/components/schemas/Timestamp"
45730
46925
  },
@@ -45750,36 +46945,13 @@
45750
46945
  "status",
45751
46946
  "createdAt",
45752
46947
  "createdBy",
46948
+ "authorizedBy",
45753
46949
  "updatedAt",
45754
46950
  "urls"
45755
46951
  ]
45756
46952
  }
45757
46953
  ]
45758
46954
  },
45759
- "Error": {
45760
- "type": "object",
45761
- "required": [
45762
- "error"
45763
- ],
45764
- "properties": {
45765
- "error": {
45766
- "type": "object",
45767
- "properties": {
45768
- "code": {
45769
- "type": "integer",
45770
- "format": "int32"
45771
- },
45772
- "message": {
45773
- "type": "string"
45774
- }
45775
- },
45776
- "required": [
45777
- "code",
45778
- "message"
45779
- ]
45780
- }
45781
- }
45782
- },
45783
46955
  "SiteAdaptiveRegions": {
45784
46956
  "type": "object",
45785
46957
  "description": "Groups of countries exposed to adaptive content as `visitor.region`. The key of each entry is the region name; `visitor.region` is undefined for a visitor whose country is in none of the regions. A site can declare at most 10 regions.",
@@ -48015,6 +49187,25 @@
48015
49187
  "url"
48016
49188
  ]
48017
49189
  },
49190
+ "SiteSearchPass": {
49191
+ "type": "object",
49192
+ "description": "Short-lived credential that lets a published site's visitor call the site search operation directly. It is opaque, accepted only by that operation for one site, and expires within five minutes.",
49193
+ "properties": {
49194
+ "token": {
49195
+ "type": "string",
49196
+ "description": "Credential to send as a bearer token in the Authorization header."
49197
+ },
49198
+ "expiresAt": {
49199
+ "type": "string",
49200
+ "format": "date-time",
49201
+ "description": "When the credential expires."
49202
+ }
49203
+ },
49204
+ "required": [
49205
+ "token",
49206
+ "expiresAt"
49207
+ ]
49208
+ },
48018
49209
  "AgentGoal": {
48019
49210
  "type": "string",
48020
49211
  "maxLength": 1024,
@@ -49015,6 +50206,21 @@
49015
50206
  "unknown"
49016
50207
  ]
49017
50208
  },
50209
+ "SiteQuestionIntent": {
50210
+ "type": "string",
50211
+ "description": "What the person was asking for, independent of the type of site: `can-it` whether it does, supports or integrates with something; `how-to` the steps to get something done; `how-it-works` rules, defaults and what happens when; `details` exact values, syntax, limits or lists; `troubleshoot` errors and why something fails; `pricing` price, plans and licensing; `trust` security, compliance and data handling; `fit` use-case fit, alternatives and switching from another tool; `other` anything else.",
50212
+ "enum": [
50213
+ "can-it",
50214
+ "how-to",
50215
+ "how-it-works",
50216
+ "details",
50217
+ "troubleshoot",
50218
+ "pricing",
50219
+ "trust",
50220
+ "fit",
50221
+ "other"
50222
+ ]
50223
+ },
49018
50224
  "SiteQuestionStatsFeedback": {
49019
50225
  "type": "object",
49020
50226
  "description": "Aggregated feedback for answers linked to a site question.",
@@ -49149,6 +50355,114 @@
49149
50355
  "unknown"
49150
50356
  ]
49151
50357
  },
50358
+ "SiteQuestionStatsIntents": {
50359
+ "type": "object",
50360
+ "description": "Count of answers by the intent of their question. `unlabelled` counts questions not labelled yet.",
50361
+ "properties": {
50362
+ "can-it": {
50363
+ "type": "number"
50364
+ },
50365
+ "how-to": {
50366
+ "type": "number"
50367
+ },
50368
+ "how-it-works": {
50369
+ "type": "number"
50370
+ },
50371
+ "details": {
50372
+ "type": "number"
50373
+ },
50374
+ "troubleshoot": {
50375
+ "type": "number"
50376
+ },
50377
+ "pricing": {
50378
+ "type": "number"
50379
+ },
50380
+ "trust": {
50381
+ "type": "number"
50382
+ },
50383
+ "fit": {
50384
+ "type": "number"
50385
+ },
50386
+ "other": {
50387
+ "type": "number"
50388
+ },
50389
+ "unlabelled": {
50390
+ "type": "number"
50391
+ }
50392
+ },
50393
+ "required": [
50394
+ "can-it",
50395
+ "how-to",
50396
+ "how-it-works",
50397
+ "details",
50398
+ "troubleshoot",
50399
+ "pricing",
50400
+ "trust",
50401
+ "fit",
50402
+ "other",
50403
+ "unlabelled"
50404
+ ]
50405
+ },
50406
+ "SiteQuestionStatsSiteSaid": {
50407
+ "type": "object",
50408
+ "description": "Count of answers by what the site said about the main thing asked. `unlabelled` counts answers not labelled yet.",
50409
+ "properties": {
50410
+ "covered": {
50411
+ "type": "number"
50412
+ },
50413
+ "limited": {
50414
+ "type": "number"
50415
+ },
50416
+ "unsupported": {
50417
+ "type": "number"
50418
+ },
50419
+ "no-answer": {
50420
+ "type": "number"
50421
+ },
50422
+ "needs-support": {
50423
+ "type": "number"
50424
+ },
50425
+ "unlabelled": {
50426
+ "type": "number"
50427
+ }
50428
+ },
50429
+ "required": [
50430
+ "covered",
50431
+ "limited",
50432
+ "unsupported",
50433
+ "no-answer",
50434
+ "needs-support",
50435
+ "unlabelled"
50436
+ ]
50437
+ },
50438
+ "SiteQuestionStatsEscalations": {
50439
+ "type": "object",
50440
+ "description": "Count of answers by who should act on them (see `SiteQuestionEscalation`). `unlabelled` counts answers that cannot be escalated until their question and answer are labelled.",
50441
+ "properties": {
50442
+ "docs": {
50443
+ "type": "number"
50444
+ },
50445
+ "team": {
50446
+ "type": "number"
50447
+ },
50448
+ "support": {
50449
+ "type": "number"
50450
+ },
50451
+ "none": {
50452
+ "type": "number"
50453
+ },
50454
+ "unlabelled": {
50455
+ "type": "number"
50456
+ }
50457
+ },
50458
+ "required": [
50459
+ "docs",
50460
+ "team",
50461
+ "support",
50462
+ "none",
50463
+ "unlabelled"
50464
+ ]
50465
+ },
49152
50466
  "SiteQuestionStats": {
49153
50467
  "type": "object",
49154
50468
  "description": "Aggregated stats for questions and linked answers.",
@@ -49182,6 +50496,19 @@
49182
50496
  "visitorTypes": {
49183
50497
  "$ref": "#/components/schemas/SiteQuestionStatsVisitorTypes"
49184
50498
  },
50499
+ "intents": {
50500
+ "$ref": "#/components/schemas/SiteQuestionStatsIntents"
50501
+ },
50502
+ "siteSaid": {
50503
+ "$ref": "#/components/schemas/SiteQuestionStatsSiteSaid"
50504
+ },
50505
+ "escalations": {
50506
+ "$ref": "#/components/schemas/SiteQuestionStatsEscalations"
50507
+ },
50508
+ "goals": {
50509
+ "type": "number",
50510
+ "description": "Count of distinct goals agents gave with the answers."
50511
+ },
49185
50512
  "weeklyPulse": {
49186
50513
  "type": "array",
49187
50514
  "minItems": 13,
@@ -49202,6 +50529,10 @@
49202
50529
  "channelTypes",
49203
50530
  "channels",
49204
50531
  "visitorTypes",
50532
+ "intents",
50533
+ "siteSaid",
50534
+ "escalations",
50535
+ "goals",
49205
50536
  "weeklyPulse"
49206
50537
  ]
49207
50538
  },
@@ -49225,6 +50556,17 @@
49225
50556
  "type": {
49226
50557
  "$ref": "#/components/schemas/SiteQuestionType"
49227
50558
  },
50559
+ "intent": {
50560
+ "description": "What the person was asking for; `null` until the question is labelled.",
50561
+ "oneOf": [
50562
+ {
50563
+ "$ref": "#/components/schemas/SiteQuestionIntent"
50564
+ },
50565
+ {
50566
+ "type": "null"
50567
+ }
50568
+ ]
50569
+ },
49228
50570
  "createdAt": {
49229
50571
  "$ref": "#/components/schemas/Timestamp"
49230
50572
  },
@@ -49254,6 +50596,7 @@
49254
50596
  "id",
49255
50597
  "question",
49256
50598
  "type",
50599
+ "intent",
49257
50600
  "createdAt",
49258
50601
  "askedAt",
49259
50602
  "stats",
@@ -50158,6 +51501,87 @@
50158
51501
  "unknown"
50159
51502
  ]
50160
51503
  },
51504
+ "SiteInsightsVisitorBot": {
51505
+ "type": [
51506
+ "string",
51507
+ "null"
51508
+ ],
51509
+ "enum": [
51510
+ null,
51511
+ "unknown",
51512
+ "googlebot",
51513
+ "bingbot",
51514
+ "duckduckbot",
51515
+ "facebookbot",
51516
+ "applebot",
51517
+ "chatgpt",
51518
+ "openai",
51519
+ "claude",
51520
+ "anthropic",
51521
+ "gemini",
51522
+ "perplexity",
51523
+ "cohere",
51524
+ "mistral",
51525
+ "deepseek",
51526
+ "meta",
51527
+ "bytespider",
51528
+ "ccbot",
51529
+ "amazonbot",
51530
+ "youbot",
51531
+ "cursor",
51532
+ "vscode",
51533
+ "claude-code",
51534
+ "codex",
51535
+ "opencode",
51536
+ "gptbot",
51537
+ "claudebot",
51538
+ "meta-fetcher",
51539
+ "grok",
51540
+ "github-copilot",
51541
+ "meta-webindexer",
51542
+ "meta-ads",
51543
+ "duckassist",
51544
+ "amzn-searchbot",
51545
+ "amzn-user",
51546
+ "other-bot",
51547
+ "parallel",
51548
+ "exa",
51549
+ "linkup",
51550
+ "vertex-ai",
51551
+ "atlassian",
51552
+ "kapa",
51553
+ "bedrock"
51554
+ ]
51555
+ },
51556
+ "SiteQuestionAnswerSiteSaid": {
51557
+ "type": "string",
51558
+ "description": "What the site's content said about the main thing asked, judged from the answer. Unlike `answered`, which measures the assistant, it tells a product limit from a content gap: `covered` the site confirms it is possible or explains how it works; `limited` possible only under a named condition such as a plan, version, role or quota; `unsupported` the site says it cannot be done; `no-answer` the site gave no answer to a question a page could answer for everyone; `needs-support` only a person can resolve it, because it concerns the asker's own account, order, data or contract.",
51559
+ "enum": [
51560
+ "covered",
51561
+ "limited",
51562
+ "unsupported",
51563
+ "no-answer",
51564
+ "needs-support"
51565
+ ]
51566
+ },
51567
+ "SiteQuestionEscalation": {
51568
+ "type": "string",
51569
+ "description": "Who should act on an answer, derived from what was asked and what the site said. `docs` the site had no answer, or only a weak one, to a question a page could answer for everyone, so the content should be written or fixed; `team` the question needs a decision or clarification from a team beyond the docs, such as product, sales or marketing, for example when the site said something is not supported or only available on another plan; `support` only a person can resolve it, because it concerns the asker's own account, order, data or contract; `none` the site answered it.",
51570
+ "enum": [
51571
+ "docs",
51572
+ "team",
51573
+ "support",
51574
+ "none"
51575
+ ]
51576
+ },
51577
+ "SiteQuestionVisitorAuthentication": {
51578
+ "type": "string",
51579
+ "description": "Whether the visitor who asked was signed in to the site: `authenticated` on a site behind authenticated access, or when they asked with a verified visitor token, and `anonymous` otherwise. Questions asked through the API or a connected channel, and those asked before this was recorded, are neither.",
51580
+ "enum": [
51581
+ "authenticated",
51582
+ "anonymous"
51583
+ ]
51584
+ },
50161
51585
  "SiteQuestionAnswerResolution": {
50162
51586
  "type": "string",
50163
51587
  "description": "Whether the response answered the question.",
@@ -50460,6 +51884,59 @@
50460
51884
  "items"
50461
51885
  ]
50462
51886
  },
51887
+ "SiteGoal": {
51888
+ "type": "object",
51889
+ "description": "A distinct goal AI agents gave when asking a site's questions: the task they were working on for someone. Agents giving the same goal in the same words share one goal.",
51890
+ "properties": {
51891
+ "object": {
51892
+ "type": "string",
51893
+ "enum": [
51894
+ "site-goal"
51895
+ ]
51896
+ },
51897
+ "id": {
51898
+ "type": "string",
51899
+ "description": "The ID of the site goal."
51900
+ },
51901
+ "goal": {
51902
+ "type": "string",
51903
+ "description": "The goal as the first agent to give it wrote it."
51904
+ },
51905
+ "createdAt": {
51906
+ "$ref": "#/components/schemas/Timestamp"
51907
+ },
51908
+ "stats": {
51909
+ "type": "object",
51910
+ "description": "Activity of the goal within the requested filters.",
51911
+ "properties": {
51912
+ "questions": {
51913
+ "type": "number",
51914
+ "description": "Count of distinct questions agents asked with this goal."
51915
+ },
51916
+ "answers": {
51917
+ "type": "number",
51918
+ "description": "Count of answers given to questions asked with this goal."
51919
+ },
51920
+ "askedAt": {
51921
+ "description": "When a question was last asked with this goal.",
51922
+ "$ref": "#/components/schemas/Timestamp"
51923
+ }
51924
+ },
51925
+ "required": [
51926
+ "questions",
51927
+ "answers",
51928
+ "askedAt"
51929
+ ]
51930
+ }
51931
+ },
51932
+ "required": [
51933
+ "object",
51934
+ "id",
51935
+ "goal",
51936
+ "createdAt",
51937
+ "stats"
51938
+ ]
51939
+ },
50463
51940
  "SiteQuestionAnswerHelpfulness": {
50464
51941
  "type": "string",
50465
51942
  "description": "Helpfulness of the response for the end user need.",
@@ -55084,58 +56561,6 @@
55084
56561
  "unknown"
55085
56562
  ]
55086
56563
  },
55087
- "SiteInsightsVisitorBot": {
55088
- "type": [
55089
- "string",
55090
- "null"
55091
- ],
55092
- "enum": [
55093
- null,
55094
- "unknown",
55095
- "googlebot",
55096
- "bingbot",
55097
- "duckduckbot",
55098
- "facebookbot",
55099
- "applebot",
55100
- "chatgpt",
55101
- "openai",
55102
- "claude",
55103
- "anthropic",
55104
- "gemini",
55105
- "perplexity",
55106
- "cohere",
55107
- "mistral",
55108
- "deepseek",
55109
- "meta",
55110
- "bytespider",
55111
- "ccbot",
55112
- "amazonbot",
55113
- "youbot",
55114
- "cursor",
55115
- "vscode",
55116
- "claude-code",
55117
- "codex",
55118
- "opencode",
55119
- "gptbot",
55120
- "claudebot",
55121
- "meta-fetcher",
55122
- "grok",
55123
- "github-copilot",
55124
- "meta-webindexer",
55125
- "meta-ads",
55126
- "duckassist",
55127
- "amzn-searchbot",
55128
- "amzn-user",
55129
- "other-bot",
55130
- "parallel",
55131
- "exa",
55132
- "linkup",
55133
- "vertex-ai",
55134
- "atlassian",
55135
- "kapa",
55136
- "bedrock"
55137
- ]
55138
- },
55139
56564
  "SiteInsightsPageNotFoundType": {
55140
56565
  "description": "Why a site URL returned a 404. `conditional` means the URL targets content gated by an adaptive-content condition, so the visitor lacked access to a page that exists. Computed by GitBook when the event is ingested; 404s recorded before this existed, and those on genuinely missing pages, carry no value.",
55141
56566
  "type": "string",
@@ -56523,22 +57948,33 @@
56523
57948
  "default": 1000,
56524
57949
  "minimum": 1,
56525
57950
  "maximum": 1000
57951
+ },
57952
+ "page": {
57953
+ "type": "string",
57954
+ "description": "The `next.page` value of a previous result, to fetch the rows that follow it. Send the rest of the query unchanged. Relative ranges stay fixed to the time of the first page, but events recorded while paging can still move rows between pages."
56526
57955
  }
56527
57956
  }
56528
57957
  },
56529
57958
  "SiteInsightsQueryEventsAggregationResult": {
56530
- "type": "object",
56531
- "required": [
56532
- "columns"
56533
- ],
56534
- "properties": {
56535
- "columns": {
56536
- "type": "array",
56537
- "items": {
56538
- "$ref": "#/components/schemas/SiteInsightsQueryEventsValues"
57959
+ "allOf": [
57960
+ {
57961
+ "$ref": "#/components/schemas/List"
57962
+ },
57963
+ {
57964
+ "type": "object",
57965
+ "required": [
57966
+ "columns"
57967
+ ],
57968
+ "properties": {
57969
+ "columns": {
57970
+ "type": "array",
57971
+ "items": {
57972
+ "$ref": "#/components/schemas/SiteInsightsQueryEventsValues"
57973
+ }
57974
+ }
56539
57975
  }
56540
57976
  }
56541
- }
57977
+ ]
56542
57978
  },
56543
57979
  "SiteInsightsVisitorSegment": {
56544
57980
  "type": "object",
@@ -57162,6 +58598,78 @@
57162
58598
  "urls"
57163
58599
  ]
57164
58600
  },
58601
+ "PasskeyAuthenticationResponse": {
58602
+ "type": "object",
58603
+ "description": "The browser's answer to the passkey sign-in options (AuthenticationResponseJSON).",
58604
+ "properties": {
58605
+ "id": {
58606
+ "type": "string"
58607
+ },
58608
+ "rawId": {
58609
+ "type": "string"
58610
+ },
58611
+ "type": {
58612
+ "type": "string",
58613
+ "enum": [
58614
+ "public-key"
58615
+ ]
58616
+ },
58617
+ "response": {
58618
+ "type": "object",
58619
+ "properties": {
58620
+ "clientDataJSON": {
58621
+ "type": "string"
58622
+ },
58623
+ "authenticatorData": {
58624
+ "type": "string"
58625
+ },
58626
+ "signature": {
58627
+ "type": "string"
58628
+ },
58629
+ "userHandle": {
58630
+ "type": "string"
58631
+ }
58632
+ },
58633
+ "required": [
58634
+ "clientDataJSON",
58635
+ "authenticatorData",
58636
+ "signature"
58637
+ ]
58638
+ },
58639
+ "clientExtensionResults": {
58640
+ "type": "object",
58641
+ "additionalProperties": true
58642
+ },
58643
+ "authenticatorAttachment": {
58644
+ "type": "string",
58645
+ "enum": [
58646
+ "platform",
58647
+ "cross-platform"
58648
+ ]
58649
+ }
58650
+ },
58651
+ "required": [
58652
+ "id",
58653
+ "rawId",
58654
+ "type",
58655
+ "response",
58656
+ "clientExtensionResults"
58657
+ ]
58658
+ },
58659
+ "PasskeySignInOptions": {
58660
+ "type": "object",
58661
+ "description": "WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser.",
58662
+ "additionalProperties": true,
58663
+ "properties": {
58664
+ "challenge": {
58665
+ "type": "string",
58666
+ "description": "Single-use challenge the passkey must sign."
58667
+ }
58668
+ },
58669
+ "required": [
58670
+ "challenge"
58671
+ ]
58672
+ },
57165
58673
  "UnsplashImage": {
57166
58674
  "type": "object",
57167
58675
  "required": [
@@ -61147,6 +62655,24 @@
61147
62655
  "user"
61148
62656
  ]
61149
62657
  },
62658
+ "APIChannelUserPasskeys": {
62659
+ "type": "object",
62660
+ "properties": {
62661
+ "channel": {
62662
+ "type": "string",
62663
+ "enum": [
62664
+ "user-passkeys"
62665
+ ]
62666
+ },
62667
+ "user": {
62668
+ "type": "string"
62669
+ }
62670
+ },
62671
+ "required": [
62672
+ "channel",
62673
+ "user"
62674
+ ]
62675
+ },
61150
62676
  "APIChannelUserProfile": {
61151
62677
  "type": "object",
61152
62678
  "properties": {
@@ -61632,6 +63158,25 @@
61632
63158
  "organization"
61633
63159
  ]
61634
63160
  },
63161
+ "APIChannelOrganizationDomains": {
63162
+ "type": "object",
63163
+ "description": "Subscription channel for changes in the email domains of an organization.",
63164
+ "properties": {
63165
+ "channel": {
63166
+ "type": "string",
63167
+ "enum": [
63168
+ "organization-domains"
63169
+ ]
63170
+ },
63171
+ "organization": {
63172
+ "type": "string"
63173
+ }
63174
+ },
63175
+ "required": [
63176
+ "channel",
63177
+ "organization"
63178
+ ]
63179
+ },
61635
63180
  "APIChannelOrganizationCustomFonts": {
61636
63181
  "type": "object",
61637
63182
  "description": "Subscription channel for changes in custom fonts in an organization.",
@@ -62447,6 +63992,9 @@
62447
63992
  {
62448
63993
  "$ref": "#/components/schemas/APIChannelUserOrganizations"
62449
63994
  },
63995
+ {
63996
+ "$ref": "#/components/schemas/APIChannelUserPasskeys"
63997
+ },
62450
63998
  {
62451
63999
  "$ref": "#/components/schemas/APIChannelUserProfile"
62452
64000
  },
@@ -62522,6 +64070,9 @@
62522
64070
  {
62523
64071
  "$ref": "#/components/schemas/APIChannelOrganizationSCIMConnections"
62524
64072
  },
64073
+ {
64074
+ "$ref": "#/components/schemas/APIChannelOrganizationDomains"
64075
+ },
62525
64076
  {
62526
64077
  "$ref": "#/components/schemas/APIChannelOrganizationCustomFonts"
62527
64078
  },