@gitbook/api 0.209.1 → 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.yaml CHANGED
@@ -2487,7 +2487,7 @@ paths:
2487
2487
  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.
2488
2488
  **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`.
2489
2489
  **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.
2490
- **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"}]}`.
2490
+ **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"}]}]}`.
2491
2491
  To 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.
2492
2492
  **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.
2493
2493
  **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.
@@ -4357,6 +4357,11 @@ paths:
4357
4357
  get:
4358
4358
  operationId: renderIntegrationUIWithGet
4359
4359
  summary: Render an integration UI with GET method
4360
+ description: |
4361
+ Declared integration input errors return 422. Integration connection or configuration
4362
+ failures return 424, independently of the caller's GitBook authentication.
4363
+ Invalid or failing integration responses return 502. Transport failures remain 5xx.
4364
+ Failed actions are not automatically retried.
4360
4365
  tags:
4361
4366
  - integrations
4362
4367
  parameters:
@@ -4378,9 +4383,26 @@ paths:
4378
4383
  Cache-Control:
4379
4384
  schema:
4380
4385
  type: string
4386
+ '422':
4387
+ description: The integration rejected the input
4388
+ content:
4389
+ application/json:
4390
+ schema:
4391
+ $ref: '#/components/schemas/Error'
4392
+ '424':
4393
+ description: The integration connection or configuration needs attention
4394
+ content:
4395
+ application/json:
4396
+ schema:
4397
+ $ref: '#/components/schemas/Error'
4381
4398
  post:
4382
4399
  operationId: renderIntegrationUIWithPost
4383
4400
  summary: Render an integration UI with POST method
4401
+ description: |
4402
+ Declared integration input errors return 422. Integration connection or configuration
4403
+ failures return 424, independently of the caller's GitBook authentication.
4404
+ Invalid or failing integration responses return 502. Transport failures remain 5xx.
4405
+ Failed actions are not automatically retried.
4384
4406
  tags:
4385
4407
  - integrations
4386
4408
  parameters:
@@ -4396,6 +4418,18 @@ paths:
4396
4418
  Cache-Control:
4397
4419
  schema:
4398
4420
  type: string
4421
+ '422':
4422
+ description: The integration rejected the input
4423
+ content:
4424
+ application/json:
4425
+ schema:
4426
+ $ref: '#/components/schemas/Error'
4427
+ '424':
4428
+ description: The integration connection or configuration needs attention
4429
+ content:
4430
+ application/json:
4431
+ schema:
4432
+ $ref: '#/components/schemas/Error'
4399
4433
  requestBody:
4400
4434
  required: true
4401
4435
  content:
@@ -5178,7 +5212,7 @@ paths:
5178
5212
  x-gitbook-mcp: true
5179
5213
  summary: List organization audit events
5180
5214
  description: |
5181
- 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.
5215
+ 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.
5182
5216
  tags:
5183
5217
  - organizations
5184
5218
  security:
@@ -5196,7 +5230,7 @@ paths:
5196
5230
  default: 20
5197
5231
  - name: from
5198
5232
  in: query
5199
- description: Include events occurring at or after this time.
5233
+ description: Include events occurring at or after this time, within the latest 365 days.
5200
5234
  schema:
5201
5235
  type: string
5202
5236
  format: date-time
@@ -5286,7 +5320,7 @@ paths:
5286
5320
  x-gitbook-mcp: true
5287
5321
  summary: Get an organization audit event
5288
5322
  description: |
5289
- 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.
5323
+ 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.
5290
5324
  tags:
5291
5325
  - organizations
5292
5326
  security:
@@ -5855,6 +5889,8 @@ paths:
5855
5889
  post:
5856
5890
  operationId: inviteUsersToOrganization
5857
5891
  summary: Invite users in an organization
5892
+ 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.
5893
+ x-gitbook-mcp: true
5858
5894
  tags:
5859
5895
  - organization-invites
5860
5896
  security:
@@ -5881,9 +5917,20 @@ paths:
5881
5917
  description: The number of users who were added to the organization
5882
5918
  failedSSOEmails:
5883
5919
  type: array
5920
+ deprecated: true
5884
5921
  items:
5885
5922
  type: string
5886
5923
  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
5924
+ pendingConsentEmails:
5925
+ type: array
5926
+ 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.
5927
+ items:
5928
+ type: string
5929
+ unverifiedEmails:
5930
+ type: array
5931
+ description: Email addresses that must be verified before their existing accounts can be invited.
5932
+ items:
5933
+ type: string
5887
5934
  required:
5888
5935
  - users
5889
5936
  - invited
@@ -6595,8 +6642,12 @@ paths:
6595
6642
  $ref: '#/components/schemas/URL'
6596
6643
  defaultTeam:
6597
6644
  type: string
6645
+ defaultTeamFromDomain:
6646
+ type: boolean
6598
6647
  defaultRole:
6599
- $ref: '#/components/schemas/MemberRoleOrGuest'
6648
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
6649
+ domains:
6650
+ $ref: '#/components/schemas/SAMLProviderDomains'
6600
6651
  required:
6601
6652
  - label
6602
6653
  responses:
@@ -6659,8 +6710,12 @@ paths:
6659
6710
  $ref: '#/components/schemas/URL'
6660
6711
  defaultTeam:
6661
6712
  type: string
6713
+ defaultTeamFromDomain:
6714
+ type: boolean
6662
6715
  defaultRole:
6663
- $ref: '#/components/schemas/MemberRoleOrGuest'
6716
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
6717
+ domains:
6718
+ $ref: '#/components/schemas/SAMLProviderDomains'
6664
6719
  responses:
6665
6720
  '200':
6666
6721
  description: SAML provider has been updated
@@ -8346,6 +8401,9 @@ paths:
8346
8401
  properties:
8347
8402
  title:
8348
8403
  $ref: '#/components/schemas/SiteTitle'
8404
+ publicChangeRequestPreviews:
8405
+ type: boolean
8406
+ description: Allow visitors to preview change requests and historical revisions on the published site.
8349
8407
  visibility:
8350
8408
  $ref: '#/components/schemas/SiteVisibility'
8351
8409
  basename:
@@ -10068,6 +10126,40 @@ paths:
10068
10126
  - $ref: '#/components/schemas/SearchRecordResult'
10069
10127
  discriminator:
10070
10128
  propertyName: type
10129
+ /orgs/{organizationId}/sites/{siteId}/search/pass:
10130
+ post:
10131
+ operationId: generateSiteSearchPass
10132
+ summary: Generate a site search pass
10133
+ 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.
10134
+ tags:
10135
+ - sites
10136
+ security:
10137
+ - user: []
10138
+ - oauth:
10139
+ - site:search
10140
+ parameters:
10141
+ - $ref: '#/components/parameters/organizationId'
10142
+ - $ref: '#/components/parameters/siteId'
10143
+ requestBody:
10144
+ required: false
10145
+ content:
10146
+ application/json:
10147
+ schema:
10148
+ type: object
10149
+ properties:
10150
+ visitorToken:
10151
+ type: string
10152
+ 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.
10153
+ responses:
10154
+ '200':
10155
+ description: The search pass, when one was issued.
10156
+ content:
10157
+ application/json:
10158
+ schema:
10159
+ type: object
10160
+ properties:
10161
+ searchPass:
10162
+ $ref: '#/components/schemas/SiteSearchPass'
10071
10163
  /orgs/{organizationId}/sites/{siteId}/search/prewarm:
10072
10164
  post:
10073
10165
  operationId: prewarmSiteSearch
@@ -11061,6 +11153,11 @@ paths:
11061
11153
  items:
11062
11154
  $ref: '#/components/schemas/SiteChannelType'
11063
11155
  - $ref: '#/components/parameters/siteQuestionVisitorType'
11156
+ - $ref: '#/components/parameters/siteQuestionVisitorBot'
11157
+ - $ref: '#/components/parameters/siteQuestionIntent'
11158
+ - $ref: '#/components/parameters/siteQuestionSiteSaid'
11159
+ - $ref: '#/components/parameters/siteQuestionEscalation'
11160
+ - $ref: '#/components/parameters/siteQuestionVisitorAuthentication'
11064
11161
  - $ref: '#/components/parameters/siteQuestionCitedPage'
11065
11162
  - name: answered
11066
11163
  in: query
@@ -11203,6 +11300,11 @@ paths:
11203
11300
  items:
11204
11301
  $ref: '#/components/schemas/SiteChannelType'
11205
11302
  - $ref: '#/components/parameters/siteQuestionVisitorType'
11303
+ - $ref: '#/components/parameters/siteQuestionVisitorBot'
11304
+ - $ref: '#/components/parameters/siteQuestionIntent'
11305
+ - $ref: '#/components/parameters/siteQuestionSiteSaid'
11306
+ - $ref: '#/components/parameters/siteQuestionEscalation'
11307
+ - $ref: '#/components/parameters/siteQuestionVisitorAuthentication'
11206
11308
  - $ref: '#/components/parameters/siteQuestionCitedPage'
11207
11309
  - name: search
11208
11310
  in: query
@@ -11293,6 +11395,7 @@ paths:
11293
11395
  items:
11294
11396
  $ref: '#/components/schemas/SiteChannelType'
11295
11397
  - $ref: '#/components/parameters/siteQuestionVisitorType'
11398
+ - $ref: '#/components/parameters/siteQuestionVisitorAuthentication'
11296
11399
  - name: answered
11297
11400
  in: query
11298
11401
  description: Filter stats by answer resolution.
@@ -11350,6 +11453,7 @@ paths:
11350
11453
  items:
11351
11454
  $ref: '#/components/schemas/SiteChannelType'
11352
11455
  - $ref: '#/components/parameters/siteQuestionVisitorType'
11456
+ - $ref: '#/components/parameters/siteQuestionVisitorAuthentication'
11353
11457
  - name: answered
11354
11458
  in: query
11355
11459
  description: Filter answer sources by answer resolution.
@@ -11420,6 +11524,11 @@ paths:
11420
11524
  items:
11421
11525
  $ref: '#/components/schemas/SiteChannelType'
11422
11526
  - $ref: '#/components/parameters/siteQuestionVisitorType'
11527
+ - $ref: '#/components/parameters/siteQuestionVisitorBot'
11528
+ - $ref: '#/components/parameters/siteQuestionIntent'
11529
+ - $ref: '#/components/parameters/siteQuestionSiteSaid'
11530
+ - $ref: '#/components/parameters/siteQuestionEscalation'
11531
+ - $ref: '#/components/parameters/siteQuestionVisitorAuthentication'
11423
11532
  - $ref: '#/components/parameters/siteQuestionCitedPage'
11424
11533
  - name: answered
11425
11534
  in: query
@@ -11490,6 +11599,11 @@ paths:
11490
11599
  items:
11491
11600
  $ref: '#/components/schemas/SiteChannelType'
11492
11601
  - $ref: '#/components/parameters/siteQuestionVisitorType'
11602
+ - $ref: '#/components/parameters/siteQuestionVisitorBot'
11603
+ - $ref: '#/components/parameters/siteQuestionIntent'
11604
+ - $ref: '#/components/parameters/siteQuestionSiteSaid'
11605
+ - $ref: '#/components/parameters/siteQuestionEscalation'
11606
+ - $ref: '#/components/parameters/siteQuestionVisitorAuthentication'
11493
11607
  - $ref: '#/components/parameters/siteQuestionCitedPage'
11494
11608
  - name: answered
11495
11609
  in: query
@@ -11567,6 +11681,7 @@ paths:
11567
11681
  items:
11568
11682
  $ref: '#/components/schemas/SiteChannelType'
11569
11683
  - $ref: '#/components/parameters/siteQuestionVisitorType'
11684
+ - $ref: '#/components/parameters/siteQuestionVisitorAuthentication'
11570
11685
  - name: question.type
11571
11686
  in: query
11572
11687
  description: Filter answers by question type.
@@ -12754,7 +12869,7 @@ paths:
12754
12869
  post:
12755
12870
  operationId: aggregateSiteEvents
12756
12871
  summary: Query a site's analytics events
12757
- 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.'
12872
+ 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.'
12758
12873
  x-gitbook-mcp:
12759
12874
  readOnly: true
12760
12875
  security:
@@ -14439,6 +14554,13 @@ components:
14439
14554
  openapi:read: Read OpenAPI specifications.
14440
14555
  openapi:write: Create, update and delete OpenAPI specifications.
14441
14556
  parameters:
14557
+ passkeyId:
14558
+ name: passkeyId
14559
+ in: path
14560
+ required: true
14561
+ description: The ID of the passkey
14562
+ schema:
14563
+ type: string
14442
14564
  listPage:
14443
14565
  name: page
14444
14566
  in: query
@@ -14995,6 +15117,46 @@ components:
14995
15117
  type: array
14996
15118
  items:
14997
15119
  $ref: '#/components/schemas/SiteQuestionVisitorType'
15120
+ siteQuestionVisitorBot:
15121
+ name: visitorBot
15122
+ in: query
15123
+ description: Filter by the AI agent or bot that asked the question.
15124
+ schema:
15125
+ type: array
15126
+ items:
15127
+ $ref: '#/components/schemas/SiteInsightsVisitorBot'
15128
+ siteQuestionIntent:
15129
+ name: intent
15130
+ in: query
15131
+ description: Filter by the intent of the question.
15132
+ schema:
15133
+ type: array
15134
+ items:
15135
+ $ref: '#/components/schemas/SiteQuestionIntent'
15136
+ siteQuestionSiteSaid:
15137
+ name: siteSaid
15138
+ in: query
15139
+ description: Filter by what the site said in the answer about the main thing asked.
15140
+ schema:
15141
+ type: array
15142
+ items:
15143
+ $ref: '#/components/schemas/SiteQuestionAnswerSiteSaid'
15144
+ siteQuestionEscalation:
15145
+ name: escalation
15146
+ in: query
15147
+ description: Filter by who should act on the answer (docs, another team, support or nobody).
15148
+ schema:
15149
+ type: array
15150
+ items:
15151
+ $ref: '#/components/schemas/SiteQuestionEscalation'
15152
+ siteQuestionVisitorAuthentication:
15153
+ name: visitorAuthentication
15154
+ in: query
15155
+ description: Filter by whether the visitor who asked was signed in to the site.
15156
+ schema:
15157
+ type: array
15158
+ items:
15159
+ $ref: '#/components/schemas/SiteQuestionVisitorAuthentication'
14998
15160
  siteQuestionCitedPage:
14999
15161
  name: citedPage
15000
15162
  in: query
@@ -15301,6 +15463,9 @@ components:
15301
15463
  expiresAt:
15302
15464
  $ref: '#/components/schemas/Timestamp'
15303
15465
  description: When the API token stops authenticating. Absent for a token that never expires.
15466
+ lastUsedAt:
15467
+ $ref: '#/components/schemas/Timestamp'
15468
+ description: When the API token last authenticated a request, accurate to within an hour. Absent for a token that has never been used.
15304
15469
  required:
15305
15470
  - id
15306
15471
  - label
@@ -16961,6 +17126,15 @@ components:
16961
17126
  properties:
16962
17127
  ref:
16963
17128
  $ref: '#/components/schemas/ContentRef'
17129
+ target:
17130
+ type: string
17131
+ description: |
17132
+ Where the link opens when clicked. When absent, the link follows the site's default behavior.
17133
+ - `self`: The link opens in the current tab.
17134
+ - `blank`: The link opens in a new browser tab.
17135
+ enum:
17136
+ - self
17137
+ - blank
16964
17138
  required:
16965
17139
  - ref
16966
17140
  isVoid:
@@ -17544,6 +17718,7 @@ components:
17544
17718
  type: string
17545
17719
  description: Size of the cards. It indicates how many columns will be used
17546
17720
  enum:
17721
+ - small
17547
17722
  - medium
17548
17723
  - large
17549
17724
  columns:
@@ -18245,74 +18420,6 @@ components:
18245
18420
  - $ref: '#/components/schemas/DocumentBlockIf'
18246
18421
  - $ref: '#/components/schemas/DocumentBlockColumns'
18247
18422
  - $ref: '#/components/schemas/DocumentBlockUpdates'
18248
- DocumentBlockIf:
18249
- type: object
18250
- properties:
18251
- object:
18252
- type: string
18253
- enum:
18254
- - block
18255
- type:
18256
- type: string
18257
- enum:
18258
- - if
18259
- key:
18260
- type: string
18261
- nodes:
18262
- type: array
18263
- items:
18264
- $ref: '#/components/schemas/DocumentBlocksTopLevels'
18265
- isVoid:
18266
- type: boolean
18267
- enum:
18268
- - false
18269
- data:
18270
- type: object
18271
- properties:
18272
- expression:
18273
- type: string
18274
- required:
18275
- - expression
18276
- required:
18277
- - object
18278
- - type
18279
- - nodes
18280
- - data
18281
- DocumentBlockReusableContent:
18282
- type: object
18283
- properties:
18284
- object:
18285
- type: string
18286
- enum:
18287
- - block
18288
- type:
18289
- type: string
18290
- enum:
18291
- - reusable-content
18292
- key:
18293
- type: string
18294
- data:
18295
- type: object
18296
- properties:
18297
- ref:
18298
- $ref: '#/components/schemas/ContentRefReusableContent'
18299
- required:
18300
- - ref
18301
- isVoid:
18302
- type: boolean
18303
- enum:
18304
- - true
18305
- meta:
18306
- type: object
18307
- properties:
18308
- token:
18309
- description: A content token that can be used to fetch the reusable content from the API.
18310
- type: string
18311
- required:
18312
- - object
18313
- - type
18314
- - data
18315
- - isVoid
18316
18423
  DocumentBlockContentRef:
18317
18424
  type: object
18318
18425
  properties:
@@ -18469,7 +18576,7 @@ components:
18469
18576
  - isVoid
18470
18577
  - fragments
18471
18578
  - data
18472
- DocumentBlockStepper:
18579
+ DocumentBlockIf:
18473
18580
  type: object
18474
18581
  properties:
18475
18582
  object:
@@ -18479,25 +18586,67 @@ components:
18479
18586
  type:
18480
18587
  type: string
18481
18588
  enum:
18482
- - stepper
18589
+ - if
18483
18590
  key:
18484
18591
  type: string
18485
18592
  nodes:
18486
18593
  type: array
18594
+ description: Blocks shown when the expression is true. Directly inside an `updates` block, these are `update` blocks, and only there.
18487
18595
  items:
18488
- $ref: '#/components/schemas/DocumentBlockStepperStep'
18596
+ oneOf:
18597
+ - $ref: '#/components/schemas/DocumentBlocksTopLevels'
18598
+ - $ref: '#/components/schemas/DocumentBlockUpdate'
18489
18599
  isVoid:
18490
18600
  type: boolean
18491
18601
  enum:
18492
18602
  - false
18493
18603
  data:
18494
18604
  type: object
18495
- properties: {}
18496
- additionalProperties: false
18605
+ properties:
18606
+ expression:
18607
+ type: string
18608
+ required:
18609
+ - expression
18497
18610
  required:
18498
18611
  - object
18499
18612
  - type
18500
18613
  - nodes
18614
+ - data
18615
+ DocumentBlockReusableContent:
18616
+ type: object
18617
+ properties:
18618
+ object:
18619
+ type: string
18620
+ enum:
18621
+ - block
18622
+ type:
18623
+ type: string
18624
+ enum:
18625
+ - reusable-content
18626
+ key:
18627
+ type: string
18628
+ data:
18629
+ type: object
18630
+ properties:
18631
+ ref:
18632
+ $ref: '#/components/schemas/ContentRefReusableContent'
18633
+ required:
18634
+ - ref
18635
+ isVoid:
18636
+ type: boolean
18637
+ enum:
18638
+ - true
18639
+ meta:
18640
+ type: object
18641
+ properties:
18642
+ token:
18643
+ description: A content token that can be used to fetch the reusable content from the API.
18644
+ type: string
18645
+ required:
18646
+ - object
18647
+ - type
18648
+ - data
18649
+ - isVoid
18501
18650
  DocumentBlockTabs:
18502
18651
  type: object
18503
18652
  properties:
@@ -18529,6 +18678,84 @@ components:
18529
18678
  - object
18530
18679
  - type
18531
18680
  - nodes
18681
+ DocumentBlockStepper:
18682
+ type: object
18683
+ properties:
18684
+ object:
18685
+ type: string
18686
+ enum:
18687
+ - block
18688
+ type:
18689
+ type: string
18690
+ enum:
18691
+ - stepper
18692
+ key:
18693
+ type: string
18694
+ nodes:
18695
+ type: array
18696
+ items:
18697
+ $ref: '#/components/schemas/DocumentBlockStepperStep'
18698
+ isVoid:
18699
+ type: boolean
18700
+ enum:
18701
+ - false
18702
+ data:
18703
+ type: object
18704
+ properties: {}
18705
+ additionalProperties: false
18706
+ required:
18707
+ - object
18708
+ - type
18709
+ - nodes
18710
+ DocumentBlockStepperStep:
18711
+ type: object
18712
+ properties:
18713
+ object:
18714
+ type: string
18715
+ enum:
18716
+ - block
18717
+ type:
18718
+ type: string
18719
+ enum:
18720
+ - stepper-step
18721
+ key:
18722
+ type: string
18723
+ nodes:
18724
+ type: array
18725
+ items:
18726
+ oneOf:
18727
+ - $ref: '#/components/schemas/DocumentBlocksEssentials'
18728
+ - $ref: '#/components/schemas/DocumentBlockContentRef'
18729
+ - $ref: '#/components/schemas/DocumentBlockCode'
18730
+ - $ref: '#/components/schemas/DocumentBlockEmbed'
18731
+ - $ref: '#/components/schemas/DocumentBlockFile'
18732
+ - $ref: '#/components/schemas/DocumentBlockImages'
18733
+ - $ref: '#/components/schemas/DocumentBlockDrawing'
18734
+ - $ref: '#/components/schemas/DocumentBlockHint'
18735
+ - $ref: '#/components/schemas/DocumentBlockPrompt'
18736
+ - $ref: '#/components/schemas/DocumentBlockQuote'
18737
+ - $ref: '#/components/schemas/DocumentBlockMath'
18738
+ - $ref: '#/components/schemas/DocumentBlockIntegration'
18739
+ - $ref: '#/components/schemas/DocumentBlockExpandable'
18740
+ - $ref: '#/components/schemas/DocumentBlockTable'
18741
+ - $ref: '#/components/schemas/DocumentBlockTabs'
18742
+ - $ref: '#/components/schemas/DocumentBlockIf'
18743
+ - $ref: '#/components/schemas/DocumentBlockReusableContent'
18744
+ - $ref: '#/components/schemas/DocumentBlockStepper'
18745
+ data:
18746
+ type: object
18747
+ properties:
18748
+ icon:
18749
+ type: string
18750
+ isVoid:
18751
+ type: boolean
18752
+ enum:
18753
+ - false
18754
+ required:
18755
+ - object
18756
+ - type
18757
+ - nodes
18758
+ - data
18532
18759
  DocumentBlockTabsItem:
18533
18760
  type: object
18534
18761
  properties:
@@ -18591,7 +18818,7 @@ components:
18591
18818
  - type
18592
18819
  - nodes
18593
18820
  - data
18594
- DocumentBlockStepperStep:
18821
+ DocumentBlockUpdate:
18595
18822
  type: object
18596
18823
  properties:
18597
18824
  object:
@@ -18601,7 +18828,7 @@ components:
18601
18828
  type:
18602
18829
  type: string
18603
18830
  enum:
18604
- - stepper-step
18831
+ - update
18605
18832
  key:
18606
18833
  type: string
18607
18834
  nodes:
@@ -18620,17 +18847,28 @@ components:
18620
18847
  - $ref: '#/components/schemas/DocumentBlockQuote'
18621
18848
  - $ref: '#/components/schemas/DocumentBlockMath'
18622
18849
  - $ref: '#/components/schemas/DocumentBlockIntegration'
18850
+ - $ref: '#/components/schemas/DocumentBlockTabs'
18623
18851
  - $ref: '#/components/schemas/DocumentBlockExpandable'
18624
18852
  - $ref: '#/components/schemas/DocumentBlockTable'
18625
- - $ref: '#/components/schemas/DocumentBlockTabs'
18626
18853
  - $ref: '#/components/schemas/DocumentBlockIf'
18627
- - $ref: '#/components/schemas/DocumentBlockReusableContent'
18628
18854
  - $ref: '#/components/schemas/DocumentBlockStepper'
18629
18855
  data:
18630
18856
  type: object
18631
18857
  properties:
18632
- icon:
18858
+ date:
18633
18859
  type: string
18860
+ 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.
18861
+ oneOf:
18862
+ - type: string
18863
+ format: date
18864
+ - $ref: '#/components/schemas/Timestamp'
18865
+ tags:
18866
+ type: array
18867
+ description: Array of tags. Each tag is id'ed by its slug.
18868
+ items:
18869
+ $ref: '#/components/schemas/ContentRefTag'
18870
+ required:
18871
+ - date
18634
18872
  isVoid:
18635
18873
  type: boolean
18636
18874
  enum:
@@ -19094,66 +19332,6 @@ components:
19094
19332
  - data
19095
19333
  - nodes
19096
19334
  - isVoid
19097
- DocumentBlockUpdate:
19098
- type: object
19099
- properties:
19100
- object:
19101
- type: string
19102
- enum:
19103
- - block
19104
- type:
19105
- type: string
19106
- enum:
19107
- - update
19108
- key:
19109
- type: string
19110
- nodes:
19111
- type: array
19112
- items:
19113
- oneOf:
19114
- - $ref: '#/components/schemas/DocumentBlocksEssentials'
19115
- - $ref: '#/components/schemas/DocumentBlockContentRef'
19116
- - $ref: '#/components/schemas/DocumentBlockCode'
19117
- - $ref: '#/components/schemas/DocumentBlockEmbed'
19118
- - $ref: '#/components/schemas/DocumentBlockFile'
19119
- - $ref: '#/components/schemas/DocumentBlockImages'
19120
- - $ref: '#/components/schemas/DocumentBlockDrawing'
19121
- - $ref: '#/components/schemas/DocumentBlockHint'
19122
- - $ref: '#/components/schemas/DocumentBlockPrompt'
19123
- - $ref: '#/components/schemas/DocumentBlockQuote'
19124
- - $ref: '#/components/schemas/DocumentBlockMath'
19125
- - $ref: '#/components/schemas/DocumentBlockIntegration'
19126
- - $ref: '#/components/schemas/DocumentBlockTabs'
19127
- - $ref: '#/components/schemas/DocumentBlockExpandable'
19128
- - $ref: '#/components/schemas/DocumentBlockTable'
19129
- - $ref: '#/components/schemas/DocumentBlockIf'
19130
- - $ref: '#/components/schemas/DocumentBlockStepper'
19131
- data:
19132
- type: object
19133
- properties:
19134
- date:
19135
- type: string
19136
- 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.
19137
- oneOf:
19138
- - type: string
19139
- format: date
19140
- - $ref: '#/components/schemas/Timestamp'
19141
- tags:
19142
- type: array
19143
- description: Array of tags. Each tag is id'ed by its slug.
19144
- items:
19145
- $ref: '#/components/schemas/ContentRefTag'
19146
- required:
19147
- - date
19148
- isVoid:
19149
- type: boolean
19150
- enum:
19151
- - false
19152
- required:
19153
- - object
19154
- - type
19155
- - nodes
19156
- - data
19157
19335
  DocumentBlockUpdates:
19158
19336
  type: object
19159
19337
  properties:
@@ -19169,8 +19347,11 @@ components:
19169
19347
  type: string
19170
19348
  nodes:
19171
19349
  type: array
19350
+ description: The updates. An `if` block wraps updates shown only when its expression is true; it holds `update` blocks only.
19172
19351
  items:
19173
- $ref: '#/components/schemas/DocumentBlockUpdate'
19352
+ oneOf:
19353
+ - $ref: '#/components/schemas/DocumentBlockUpdate'
19354
+ - $ref: '#/components/schemas/DocumentBlockIf'
19174
19355
  isVoid:
19175
19356
  type: boolean
19176
19357
  enum:
@@ -20162,6 +20343,14 @@ components:
20162
20343
  label:
20163
20344
  type: string
20164
20345
  description: Display label for the tag. Can be renamed and differ from the slug.
20346
+ kind:
20347
+ type: string
20348
+ enum:
20349
+ - category
20350
+ description: Categories organize tags and cannot be assigned to pages or blocks. Immutable after creation.
20351
+ parent:
20352
+ type: string
20353
+ 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.
20165
20354
  color:
20166
20355
  $ref: '#/components/schemas/DocumentTextColor'
20167
20356
  required:
@@ -20231,7 +20420,7 @@ components:
20231
20420
  $ref: '#/components/schemas/RevisionReusableContent'
20232
20421
  tags:
20233
20422
  type: array
20234
- description: List of available tags within this revision
20423
+ 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'
20235
20424
  items:
20236
20425
  $ref: '#/components/schemas/RevisionTag'
20237
20426
  variables:
@@ -20955,10 +21144,12 @@ components:
20955
21144
  ChangeRequestReviewStats:
20956
21145
  type: object
20957
21146
  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.
20958
- propertyNames:
20959
- $ref: '#/components/schemas/ChangeRequestReviewStatus'
20960
- additionalProperties:
20961
- type: number
21147
+ properties:
21148
+ approved:
21149
+ type: number
21150
+ changes-requested:
21151
+ type: number
21152
+ additionalProperties: false
20962
21153
  required:
20963
21154
  - approved
20964
21155
  - changes-requested
@@ -21231,7 +21422,7 @@ components:
21231
21422
  type: string
21232
21423
  description: ID of the page to update.
21233
21424
  document:
21234
- 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.
21425
+ 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.
21235
21426
  $ref: '#/components/schemas/Document'
21236
21427
  into:
21237
21428
  description: Move the page to be a child of this page ID. Set to `null` to move it to the root of the page tree. Omit to leave the page's parent unchanged. The target cannot be the page itself or one of its own descendants.
@@ -21279,7 +21470,7 @@ components:
21279
21470
  maxLength: 255
21280
21471
  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.'
21281
21472
  document:
21282
- description: Document for the new page. When provided as markdown, its frontmatter is read to set the page metadata.
21473
+ 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).
21283
21474
  $ref: '#/components/schemas/Document'
21284
21475
  example:
21285
21476
  operation: insert_page
@@ -21597,13 +21788,13 @@ components:
21597
21788
  variable: version
21598
21789
  RevisionTagLabel:
21599
21790
  type: string
21600
- description: Display label of a tag.
21791
+ description: Display label of a tag or category.
21601
21792
  minLength: 1
21602
21793
  maxLength: 50
21603
21794
  ChangeRequestContentChangeInsertTags:
21604
21795
  type: object
21605
21796
  additionalProperties: false
21606
- description: Create flat tags in array order. The batch is rejected atomically if any tag is invalid.
21797
+ 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.
21607
21798
  required:
21608
21799
  - operation
21609
21800
  - tags
@@ -21626,6 +21817,10 @@ components:
21626
21817
  type: string
21627
21818
  minLength: 1
21628
21819
  description: Stable tag identifier; generated from the label when omitted.
21820
+ kind:
21821
+ type: string
21822
+ enum:
21823
+ - category
21629
21824
  label:
21630
21825
  $ref: '#/components/schemas/RevisionTagLabel'
21631
21826
  color:
@@ -21634,10 +21829,20 @@ components:
21634
21829
  $ref: '#/components/schemas/Icon'
21635
21830
  emoji:
21636
21831
  $ref: '#/components/schemas/Emoji'
21832
+ parent:
21833
+ oneOf:
21834
+ - type: string
21835
+ minLength: 1
21836
+ - type: 'null'
21837
+ description: Parent category or normal tag slug. Null places the tag at the root.
21838
+ at:
21839
+ type: integer
21840
+ minimum: 0
21841
+ 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.
21637
21842
  ChangeRequestContentChangeUpdateTag:
21638
21843
  type: object
21639
21844
  additionalProperties: false
21640
- description: Rename or restyle an existing tag. The slug is immutable.
21845
+ description: Rename, restyle, reparent or reorder an existing tag or category. Moving a parent keeps all descendants attached. Kind cannot be changed.
21641
21846
  required:
21642
21847
  - operation
21643
21848
  - tag
@@ -21649,7 +21854,7 @@ components:
21649
21854
  tag:
21650
21855
  type: string
21651
21856
  minLength: 1
21652
- description: Slug of the tag to update.
21857
+ description: Slug of the tag or category to update.
21653
21858
  label:
21654
21859
  $ref: '#/components/schemas/RevisionTagLabel'
21655
21860
  color:
@@ -21664,10 +21869,20 @@ components:
21664
21869
  - $ref: '#/components/schemas/Emoji'
21665
21870
  - type: 'null'
21666
21871
  description: Emoji to set. Null removes the emoji; omission preserves it.
21872
+ parent:
21873
+ oneOf:
21874
+ - type: string
21875
+ minLength: 1
21876
+ - type: 'null'
21877
+ description: Parent category or normal tag slug. Null places the tag at the root.
21878
+ at:
21879
+ type: integer
21880
+ minimum: 0
21881
+ 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.
21667
21882
  ChangeRequestContentChangeDeleteTag:
21668
21883
  type: object
21669
21884
  additionalProperties: false
21670
- description: Delete an existing tag definition. Page and block references remain in content but stop resolving.
21885
+ 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.
21671
21886
  required:
21672
21887
  - operation
21673
21888
  - tag
@@ -22172,6 +22387,14 @@ components:
22172
22387
  type: string
22173
22388
  label:
22174
22389
  type: string
22390
+ kind:
22391
+ type: string
22392
+ enum:
22393
+ - category
22394
+ description: Present for categories; omitted for normal tags.
22395
+ parent:
22396
+ type: string
22397
+ description: Parent tag or category slug. Omitted for root tags.
22175
22398
  required:
22176
22399
  - slug
22177
22400
  - label
@@ -22205,6 +22428,28 @@ components:
22205
22428
  properties:
22206
22429
  label:
22207
22430
  $ref: '#/components/schemas/ChangeAttributeString'
22431
+ kind:
22432
+ $ref: '#/components/schemas/ChangeAttributeString'
22433
+ parent:
22434
+ $ref: '#/components/schemas/ChangeAttributeString'
22435
+ orderIndex:
22436
+ $ref: '#/components/schemas/ChangeAttributeString'
22437
+ color:
22438
+ $ref: '#/components/schemas/ChangeAttributeString'
22439
+ icon:
22440
+ type: object
22441
+ properties:
22442
+ before:
22443
+ $ref: '#/components/schemas/Icon'
22444
+ after:
22445
+ $ref: '#/components/schemas/Icon'
22446
+ emoji:
22447
+ type: object
22448
+ properties:
22449
+ before:
22450
+ $ref: '#/components/schemas/Emoji'
22451
+ after:
22452
+ $ref: '#/components/schemas/Emoji'
22208
22453
  RevisionSemanticChangeTagEdited:
22209
22454
  type: object
22210
22455
  properties:
@@ -22912,7 +23157,13 @@ components:
22912
23157
  defaultContent:
22913
23158
  $ref: '#/components/schemas/OrganizationDefaultContent'
22914
23159
  sso:
22915
- description: Whether SSO is enforced organization-wide
23160
+ description: Whether SSO is enforced organization-wide. Requires an active SAML provider and at least one organization admin linked through SSO.
23161
+ type: boolean
23162
+ ssoPreference:
23163
+ description: Whether Enforce SSO is turned on, regardless of whether its requirements are met.
23164
+ type: boolean
23165
+ ssoRequired:
23166
+ 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.
22916
23167
  type: boolean
22917
23168
  ai:
22918
23169
  description: If true, the organization is configured to use all our AI features.
@@ -23980,6 +24231,9 @@ components:
23980
24231
  - installIntegration
23981
24232
  - viewAdaptiveSchema
23982
24233
  - editAdaptiveSchema
24234
+ publicChangeRequestPreviews:
24235
+ type: boolean
24236
+ description: Whether visitors can preview change requests and historical revisions on the published site. Previews inside GitBook are not affected.
23983
24237
  published:
23984
24238
  type: boolean
23985
24239
  description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
@@ -24057,6 +24311,7 @@ components:
24057
24311
  - defaultLevel
24058
24312
  - permissions
24059
24313
  - published
24314
+ - publicChangeRequestPreviews
24060
24315
  - createdAt
24061
24316
  - siteSpaces
24062
24317
  - features
@@ -24899,6 +25154,22 @@ components:
24899
25154
  oneOf:
24900
25155
  - $ref: '#/components/schemas/ContentKitRenderOutputElement'
24901
25156
  - $ref: '#/components/schemas/ContentKitRenderOutputComplete'
25157
+ Error:
25158
+ type: object
25159
+ required:
25160
+ - error
25161
+ properties:
25162
+ error:
25163
+ type: object
25164
+ properties:
25165
+ code:
25166
+ type: integer
25167
+ format: int32
25168
+ message:
25169
+ type: string
25170
+ required:
25171
+ - code
25172
+ - message
24902
25173
  ContentKitContextBase:
24903
25174
  type: object
24904
25175
  description: Common properties for ContentKit context.
@@ -25990,6 +26261,13 @@ components:
25990
26261
  role:
25991
26262
  description: Default role to set on newly invited members.
25992
26263
  $ref: '#/components/schemas/MemberRoleOrGuest'
26264
+ teamIds:
26265
+ 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.
26266
+ type: array
26267
+ minItems: 1
26268
+ uniqueItems: true
26269
+ items:
26270
+ $ref: '#/components/schemas/EntityId'
25993
26271
  sso:
25994
26272
  description: If true, invites the user as an SSO user of the organization. Defaults to false.
25995
26273
  type: boolean
@@ -26067,6 +26345,28 @@ components:
26067
26345
  redundant:
26068
26346
  type: boolean
26069
26347
  description: An invite is redundant if the requesting user already has all necessary permissions.
26348
+ teamInvitation:
26349
+ type: object
26350
+ description: Details shown to the recipient before accepting a team invitation.
26351
+ properties:
26352
+ inviter:
26353
+ type: string
26354
+ description: Display name of the person who sent the invitation.
26355
+ teams:
26356
+ type: array
26357
+ items:
26358
+ type: object
26359
+ properties:
26360
+ id:
26361
+ type: string
26362
+ title:
26363
+ type: string
26364
+ required:
26365
+ - id
26366
+ - title
26367
+ required:
26368
+ - inviter
26369
+ - teams
26070
26370
  required:
26071
26371
  - object
26072
26372
  - id
@@ -27094,6 +27394,16 @@ components:
27094
27394
  SAMLProviderCertificate:
27095
27395
  type: string
27096
27396
  maxLength: 10000
27397
+ SAMLProviderDefaultRole:
27398
+ description: |
27399
+ 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.
27400
+ oneOf:
27401
+ - $ref: '#/components/schemas/MemberRole'
27402
+ - type: 'null'
27403
+ - type: string
27404
+ enum:
27405
+ - default
27406
+ - domain
27097
27407
  SAMLProviderStatus:
27098
27408
  type: string
27099
27409
  description: |
@@ -27103,6 +27413,30 @@ components:
27103
27413
  enum:
27104
27414
  - active
27105
27415
  - pending
27416
+ SAMLProviderDomainStatus:
27417
+ type: string
27418
+ description: |
27419
+ State of a SAML provider's email domain in the organization.
27420
+ - `verified`: People with an email on this domain can sign in through the provider.
27421
+ - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
27422
+ - `removed`: The organization no longer has this domain.
27423
+ enum:
27424
+ - verified
27425
+ - pending
27426
+ - error
27427
+ - legacy
27428
+ - removed
27429
+ SAMLProviderDomain:
27430
+ type: object
27431
+ description: An email domain of a SAML provider, with its verification state in the organization.
27432
+ properties:
27433
+ domain:
27434
+ type: string
27435
+ status:
27436
+ $ref: '#/components/schemas/SAMLProviderDomainStatus'
27437
+ required:
27438
+ - domain
27439
+ - status
27106
27440
  OrganizationSAMLProvider:
27107
27441
  type: object
27108
27442
  properties:
@@ -27124,13 +27458,23 @@ components:
27124
27458
  $ref: '#/components/schemas/SAMLProviderCertificate'
27125
27459
  defaultTeam:
27126
27460
  $ref: '#/components/schemas/OrganizationTeam'
27461
+ defaultTeamFromDomain:
27462
+ type: boolean
27463
+ description: |
27464
+ Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`.
27127
27465
  defaultRole:
27128
- $ref: '#/components/schemas/MemberRoleOrGuest'
27466
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
27129
27467
  createdAt:
27130
27468
  description: Date at which the provider was created.
27131
27469
  $ref: '#/components/schemas/Timestamp'
27132
27470
  status:
27133
27471
  $ref: '#/components/schemas/SAMLProviderStatus'
27472
+ domains:
27473
+ type: array
27474
+ description: |
27475
+ Email domains the provider signs people in for. Absent on providers created before domains existed, which accept any email.
27476
+ items:
27477
+ $ref: '#/components/schemas/SAMLProviderDomain'
27134
27478
  service:
27135
27479
  description: Metadata about the service provider.
27136
27480
  properties:
@@ -27170,6 +27514,16 @@ components:
27170
27514
  - status
27171
27515
  - service
27172
27516
  - urls
27517
+ SAMLProviderDomains:
27518
+ type: array
27519
+ description: |
27520
+ 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.
27521
+ maxItems: 50
27522
+ uniqueItems: true
27523
+ items:
27524
+ type: string
27525
+ minLength: 1
27526
+ maxLength: 255
27173
27527
  OrganizationDomainStatus:
27174
27528
  type: string
27175
27529
  description: |
@@ -28520,6 +28874,11 @@ components:
28520
28874
  createdBy:
28521
28875
  type: string
28522
28876
  description: Identifier of the user who created the installation.
28877
+ authorizedBy:
28878
+ 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.
28879
+ oneOf:
28880
+ - type: string
28881
+ - type: 'null'
28523
28882
  updatedAt:
28524
28883
  $ref: '#/components/schemas/Timestamp'
28525
28884
  urls:
@@ -28539,24 +28898,9 @@ components:
28539
28898
  - status
28540
28899
  - createdAt
28541
28900
  - createdBy
28901
+ - authorizedBy
28542
28902
  - updatedAt
28543
28903
  - urls
28544
- Error:
28545
- type: object
28546
- required:
28547
- - error
28548
- properties:
28549
- error:
28550
- type: object
28551
- properties:
28552
- code:
28553
- type: integer
28554
- format: int32
28555
- message:
28556
- type: string
28557
- required:
28558
- - code
28559
- - message
28560
28904
  SiteAdaptiveRegions:
28561
28905
  type: object
28562
28906
  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.
@@ -30231,6 +30575,20 @@ components:
30231
30575
  - title
30232
30576
  - score
30233
30577
  - url
30578
+ SiteSearchPass:
30579
+ type: object
30580
+ 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.
30581
+ properties:
30582
+ token:
30583
+ type: string
30584
+ description: Credential to send as a bearer token in the Authorization header.
30585
+ expiresAt:
30586
+ type: string
30587
+ format: date-time
30588
+ description: When the credential expires.
30589
+ required:
30590
+ - token
30591
+ - expiresAt
30234
30592
  AgentGoal:
30235
30593
  type: string
30236
30594
  maxLength: 1024
@@ -31006,6 +31364,19 @@ components:
31006
31364
  - troubleshooting
31007
31365
  - reference
31008
31366
  - unknown
31367
+ SiteQuestionIntent:
31368
+ type: string
31369
+ 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.'
31370
+ enum:
31371
+ - can-it
31372
+ - how-to
31373
+ - how-it-works
31374
+ - details
31375
+ - troubleshoot
31376
+ - pricing
31377
+ - trust
31378
+ - fit
31379
+ - other
31009
31380
  SiteQuestionStatsFeedback:
31010
31381
  type: object
31011
31382
  description: Aggregated feedback for answers linked to a site question.
@@ -31102,6 +31473,84 @@ components:
31102
31473
  - agent
31103
31474
  - bot
31104
31475
  - unknown
31476
+ SiteQuestionStatsIntents:
31477
+ type: object
31478
+ description: Count of answers by the intent of their question. `unlabelled` counts questions not labelled yet.
31479
+ properties:
31480
+ can-it:
31481
+ type: number
31482
+ how-to:
31483
+ type: number
31484
+ how-it-works:
31485
+ type: number
31486
+ details:
31487
+ type: number
31488
+ troubleshoot:
31489
+ type: number
31490
+ pricing:
31491
+ type: number
31492
+ trust:
31493
+ type: number
31494
+ fit:
31495
+ type: number
31496
+ other:
31497
+ type: number
31498
+ unlabelled:
31499
+ type: number
31500
+ required:
31501
+ - can-it
31502
+ - how-to
31503
+ - how-it-works
31504
+ - details
31505
+ - troubleshoot
31506
+ - pricing
31507
+ - trust
31508
+ - fit
31509
+ - other
31510
+ - unlabelled
31511
+ SiteQuestionStatsSiteSaid:
31512
+ type: object
31513
+ description: Count of answers by what the site said about the main thing asked. `unlabelled` counts answers not labelled yet.
31514
+ properties:
31515
+ covered:
31516
+ type: number
31517
+ limited:
31518
+ type: number
31519
+ unsupported:
31520
+ type: number
31521
+ no-answer:
31522
+ type: number
31523
+ needs-support:
31524
+ type: number
31525
+ unlabelled:
31526
+ type: number
31527
+ required:
31528
+ - covered
31529
+ - limited
31530
+ - unsupported
31531
+ - no-answer
31532
+ - needs-support
31533
+ - unlabelled
31534
+ SiteQuestionStatsEscalations:
31535
+ type: object
31536
+ 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.
31537
+ properties:
31538
+ docs:
31539
+ type: number
31540
+ team:
31541
+ type: number
31542
+ support:
31543
+ type: number
31544
+ none:
31545
+ type: number
31546
+ unlabelled:
31547
+ type: number
31548
+ required:
31549
+ - docs
31550
+ - team
31551
+ - support
31552
+ - none
31553
+ - unlabelled
31105
31554
  SiteQuestionStats:
31106
31555
  type: object
31107
31556
  description: Aggregated stats for questions and linked answers.
@@ -31126,6 +31575,15 @@ components:
31126
31575
  $ref: '#/components/schemas/SiteQuestionStatsChannels'
31127
31576
  visitorTypes:
31128
31577
  $ref: '#/components/schemas/SiteQuestionStatsVisitorTypes'
31578
+ intents:
31579
+ $ref: '#/components/schemas/SiteQuestionStatsIntents'
31580
+ siteSaid:
31581
+ $ref: '#/components/schemas/SiteQuestionStatsSiteSaid'
31582
+ escalations:
31583
+ $ref: '#/components/schemas/SiteQuestionStatsEscalations'
31584
+ goals:
31585
+ type: number
31586
+ description: Count of distinct goals agents gave with the answers.
31129
31587
  weeklyPulse:
31130
31588
  type: array
31131
31589
  minItems: 13
@@ -31143,6 +31601,10 @@ components:
31143
31601
  - channelTypes
31144
31602
  - channels
31145
31603
  - visitorTypes
31604
+ - intents
31605
+ - siteSaid
31606
+ - escalations
31607
+ - goals
31146
31608
  - weeklyPulse
31147
31609
  SiteQuestion:
31148
31610
  type: object
@@ -31159,6 +31621,11 @@ components:
31159
31621
  description: Canonical text for the unique site question.
31160
31622
  type:
31161
31623
  $ref: '#/components/schemas/SiteQuestionType'
31624
+ intent:
31625
+ description: What the person was asking for; `null` until the question is labelled.
31626
+ oneOf:
31627
+ - $ref: '#/components/schemas/SiteQuestionIntent'
31628
+ - type: 'null'
31162
31629
  createdAt:
31163
31630
  $ref: '#/components/schemas/Timestamp'
31164
31631
  askedAt:
@@ -31180,6 +31647,7 @@ components:
31180
31647
  - id
31181
31648
  - question
31182
31649
  - type
31650
+ - intent
31183
31651
  - createdAt
31184
31652
  - askedAt
31185
31653
  - stats
@@ -31815,6 +32283,78 @@ components:
31815
32283
  - agent
31816
32284
  - bot
31817
32285
  - unknown
32286
+ SiteInsightsVisitorBot:
32287
+ type:
32288
+ - string
32289
+ - 'null'
32290
+ enum:
32291
+ - null
32292
+ - unknown
32293
+ - googlebot
32294
+ - bingbot
32295
+ - duckduckbot
32296
+ - facebookbot
32297
+ - applebot
32298
+ - chatgpt
32299
+ - openai
32300
+ - claude
32301
+ - anthropic
32302
+ - gemini
32303
+ - perplexity
32304
+ - cohere
32305
+ - mistral
32306
+ - deepseek
32307
+ - meta
32308
+ - bytespider
32309
+ - ccbot
32310
+ - amazonbot
32311
+ - youbot
32312
+ - cursor
32313
+ - vscode
32314
+ - claude-code
32315
+ - codex
32316
+ - opencode
32317
+ - gptbot
32318
+ - claudebot
32319
+ - meta-fetcher
32320
+ - grok
32321
+ - github-copilot
32322
+ - meta-webindexer
32323
+ - meta-ads
32324
+ - duckassist
32325
+ - amzn-searchbot
32326
+ - amzn-user
32327
+ - other-bot
32328
+ - parallel
32329
+ - exa
32330
+ - linkup
32331
+ - vertex-ai
32332
+ - atlassian
32333
+ - kapa
32334
+ - bedrock
32335
+ SiteQuestionAnswerSiteSaid:
32336
+ type: string
32337
+ 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.'
32338
+ enum:
32339
+ - covered
32340
+ - limited
32341
+ - unsupported
32342
+ - no-answer
32343
+ - needs-support
32344
+ SiteQuestionEscalation:
32345
+ type: string
32346
+ 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.
32347
+ enum:
32348
+ - docs
32349
+ - team
32350
+ - support
32351
+ - none
32352
+ SiteQuestionVisitorAuthentication:
32353
+ type: string
32354
+ 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.'
32355
+ enum:
32356
+ - authenticated
32357
+ - anonymous
31818
32358
  SiteQuestionAnswerResolution:
31819
32359
  type: string
31820
32360
  description: Whether the response answered the question.
@@ -32025,6 +32565,45 @@ components:
32025
32565
  $ref: '#/components/schemas/SiteQuestionTimelineBucket'
32026
32566
  required:
32027
32567
  - items
32568
+ SiteGoal:
32569
+ type: object
32570
+ 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.'
32571
+ properties:
32572
+ object:
32573
+ type: string
32574
+ enum:
32575
+ - site-goal
32576
+ id:
32577
+ type: string
32578
+ description: The ID of the site goal.
32579
+ goal:
32580
+ type: string
32581
+ description: The goal as the first agent to give it wrote it.
32582
+ createdAt:
32583
+ $ref: '#/components/schemas/Timestamp'
32584
+ stats:
32585
+ type: object
32586
+ description: Activity of the goal within the requested filters.
32587
+ properties:
32588
+ questions:
32589
+ type: number
32590
+ description: Count of distinct questions agents asked with this goal.
32591
+ answers:
32592
+ type: number
32593
+ description: Count of answers given to questions asked with this goal.
32594
+ askedAt:
32595
+ description: When a question was last asked with this goal.
32596
+ $ref: '#/components/schemas/Timestamp'
32597
+ required:
32598
+ - questions
32599
+ - answers
32600
+ - askedAt
32601
+ required:
32602
+ - object
32603
+ - id
32604
+ - goal
32605
+ - createdAt
32606
+ - stats
32028
32607
  SiteQuestionAnswerHelpfulness:
32029
32608
  type: string
32030
32609
  description: Helpfulness of the response for the end user need.
@@ -35098,55 +35677,6 @@ components:
35098
35677
  - android
35099
35678
  - ios
35100
35679
  - unknown
35101
- SiteInsightsVisitorBot:
35102
- type:
35103
- - string
35104
- - 'null'
35105
- enum:
35106
- - null
35107
- - unknown
35108
- - googlebot
35109
- - bingbot
35110
- - duckduckbot
35111
- - facebookbot
35112
- - applebot
35113
- - chatgpt
35114
- - openai
35115
- - claude
35116
- - anthropic
35117
- - gemini
35118
- - perplexity
35119
- - cohere
35120
- - mistral
35121
- - deepseek
35122
- - meta
35123
- - bytespider
35124
- - ccbot
35125
- - amazonbot
35126
- - youbot
35127
- - cursor
35128
- - vscode
35129
- - claude-code
35130
- - codex
35131
- - opencode
35132
- - gptbot
35133
- - claudebot
35134
- - meta-fetcher
35135
- - grok
35136
- - github-copilot
35137
- - meta-webindexer
35138
- - meta-ads
35139
- - duckassist
35140
- - amzn-searchbot
35141
- - amzn-user
35142
- - other-bot
35143
- - parallel
35144
- - exa
35145
- - linkup
35146
- - vertex-ai
35147
- - atlassian
35148
- - kapa
35149
- - bedrock
35150
35680
  SiteInsightsPageNotFoundType:
35151
35681
  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.
35152
35682
  type: string
@@ -36013,15 +36543,20 @@ components:
36013
36543
  default: 1000
36014
36544
  minimum: 1
36015
36545
  maximum: 1000
36546
+ page:
36547
+ type: string
36548
+ 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.
36016
36549
  SiteInsightsQueryEventsAggregationResult:
36017
- type: object
36018
- required:
36019
- - columns
36020
- properties:
36021
- columns:
36022
- type: array
36023
- items:
36024
- $ref: '#/components/schemas/SiteInsightsQueryEventsValues'
36550
+ allOf:
36551
+ - $ref: '#/components/schemas/List'
36552
+ - type: object
36553
+ required:
36554
+ - columns
36555
+ properties:
36556
+ columns:
36557
+ type: array
36558
+ items:
36559
+ $ref: '#/components/schemas/SiteInsightsQueryEventsValues'
36025
36560
  SiteInsightsVisitorSegment:
36026
36561
  type: object
36027
36562
  description: A segment of visitors with the same characteristics.
@@ -36444,6 +36979,57 @@ components:
36444
36979
  - target
36445
36980
  - isActive
36446
36981
  - urls
36982
+ PasskeyAuthenticationResponse:
36983
+ type: object
36984
+ description: The browser's answer to the passkey sign-in options (AuthenticationResponseJSON).
36985
+ properties:
36986
+ id:
36987
+ type: string
36988
+ rawId:
36989
+ type: string
36990
+ type:
36991
+ type: string
36992
+ enum:
36993
+ - public-key
36994
+ response:
36995
+ type: object
36996
+ properties:
36997
+ clientDataJSON:
36998
+ type: string
36999
+ authenticatorData:
37000
+ type: string
37001
+ signature:
37002
+ type: string
37003
+ userHandle:
37004
+ type: string
37005
+ required:
37006
+ - clientDataJSON
37007
+ - authenticatorData
37008
+ - signature
37009
+ clientExtensionResults:
37010
+ type: object
37011
+ additionalProperties: true
37012
+ authenticatorAttachment:
37013
+ type: string
37014
+ enum:
37015
+ - platform
37016
+ - cross-platform
37017
+ required:
37018
+ - id
37019
+ - rawId
37020
+ - type
37021
+ - response
37022
+ - clientExtensionResults
37023
+ PasskeySignInOptions:
37024
+ type: object
37025
+ description: WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser.
37026
+ additionalProperties: true
37027
+ properties:
37028
+ challenge:
37029
+ type: string
37030
+ description: Single-use challenge the passkey must sign.
37031
+ required:
37032
+ - challenge
36447
37033
  UnsplashImage:
36448
37034
  type: object
36449
37035
  required: