@gitbook/api 0.212.0 → 0.214.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
@@ -5949,6 +5949,202 @@ paths:
5949
5949
  description: Member was not part of the team
5950
5950
  '205':
5951
5951
  description: Member has been deleted from the team
5952
+ /orgs/{organizationId}/idp-connections:
5953
+ get:
5954
+ operationId: listOrganizationIdPConnections
5955
+ summary: List identity provider connections
5956
+ tags:
5957
+ - sso
5958
+ security:
5959
+ - user-internal: []
5960
+ parameters:
5961
+ - $ref: '#/components/parameters/organizationId'
5962
+ responses:
5963
+ '200':
5964
+ description: OK
5965
+ content:
5966
+ application/json:
5967
+ schema:
5968
+ allOf:
5969
+ - $ref: '#/components/schemas/List'
5970
+ - type: object
5971
+ required:
5972
+ - items
5973
+ properties:
5974
+ items:
5975
+ type: array
5976
+ items:
5977
+ $ref: '#/components/schemas/OrganizationIdPConnection'
5978
+ '404':
5979
+ $ref: '#/components/responses/NotFoundError'
5980
+ post:
5981
+ operationId: createOrganizationIdPConnection
5982
+ summary: Create an identity provider connection
5983
+ description: |
5984
+ Creates a connection with its SAML service provider URLs. SAML and SCIM are set up afterwards, once the connection has a verified email domain: SAML by updating the connection with the identity provider's settings, SCIM by creating its token.
5985
+ tags:
5986
+ - sso
5987
+ security:
5988
+ - user-internal: []
5989
+ parameters:
5990
+ - $ref: '#/components/parameters/organizationId'
5991
+ requestBody:
5992
+ required: true
5993
+ content:
5994
+ application/json:
5995
+ schema:
5996
+ type: object
5997
+ properties:
5998
+ label:
5999
+ $ref: '#/components/schemas/IdPConnectionLabel'
6000
+ provider:
6001
+ $ref: '#/components/schemas/IdPConnectionProvider'
6002
+ defaultRole:
6003
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
6004
+ defaultTeam:
6005
+ type: string
6006
+ defaultTeamFromDomain:
6007
+ type: boolean
6008
+ ssoURL:
6009
+ $ref: '#/components/schemas/URL'
6010
+ entityID:
6011
+ $ref: '#/components/schemas/SAMLProviderEntityID'
6012
+ certificate:
6013
+ $ref: '#/components/schemas/SAMLProviderCertificate'
6014
+ domains:
6015
+ $ref: '#/components/schemas/SAMLProviderDomains'
6016
+ required:
6017
+ - label
6018
+ - provider
6019
+ responses:
6020
+ '201':
6021
+ description: Connection created
6022
+ content:
6023
+ application/json:
6024
+ schema:
6025
+ $ref: '#/components/schemas/OrganizationIdPConnection'
6026
+ '400':
6027
+ $ref: '#/components/responses/BadRequestError'
6028
+ '404':
6029
+ $ref: '#/components/responses/NotFoundError'
6030
+ /orgs/{organizationId}/idp-connections/{idpConnectionId}:
6031
+ get:
6032
+ operationId: getOrganizationIdPConnection
6033
+ summary: Get an identity provider connection by its ID
6034
+ tags:
6035
+ - sso
6036
+ security:
6037
+ - user-internal: []
6038
+ parameters:
6039
+ - $ref: '#/components/parameters/organizationId'
6040
+ - $ref: '#/components/parameters/idpConnectionId'
6041
+ responses:
6042
+ '200':
6043
+ description: OK
6044
+ content:
6045
+ application/json:
6046
+ schema:
6047
+ $ref: '#/components/schemas/OrganizationIdPConnection'
6048
+ '404':
6049
+ $ref: '#/components/responses/NotFoundError'
6050
+ patch:
6051
+ operationId: updateOrganizationIdPConnection
6052
+ summary: Update an identity provider connection
6053
+ description: |
6054
+ Updates a connection. Setting any of `defaultTeam`, `defaultTeamFromDomain` and `defaultTeamFromSCIM` replaces the default team, and at most one of them can be set. Email domains, when set, must include a verified one, and so must the connection's domains when the request sets SAML settings.
6055
+ tags:
6056
+ - sso
6057
+ security:
6058
+ - user-internal: []
6059
+ parameters:
6060
+ - $ref: '#/components/parameters/organizationId'
6061
+ - $ref: '#/components/parameters/idpConnectionId'
6062
+ requestBody:
6063
+ required: true
6064
+ content:
6065
+ application/json:
6066
+ schema:
6067
+ type: object
6068
+ properties:
6069
+ label:
6070
+ $ref: '#/components/schemas/IdPConnectionLabel'
6071
+ provider:
6072
+ $ref: '#/components/schemas/IdPConnectionProvider'
6073
+ defaultRole:
6074
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
6075
+ defaultTeam:
6076
+ description: Team to add members to, or null to add them to none.
6077
+ oneOf:
6078
+ - type: string
6079
+ - type: 'null'
6080
+ defaultTeamFromDomain:
6081
+ type: boolean
6082
+ defaultTeamFromSCIM:
6083
+ type: boolean
6084
+ description: |
6085
+ Let the identity provider decide each member's teams through SCIM. Only accepted while SCIM is set up.
6086
+ ssoURL:
6087
+ $ref: '#/components/schemas/URL'
6088
+ entityID:
6089
+ $ref: '#/components/schemas/SAMLProviderEntityID'
6090
+ certificate:
6091
+ $ref: '#/components/schemas/SAMLProviderCertificate'
6092
+ domains:
6093
+ $ref: '#/components/schemas/SAMLProviderDomains'
6094
+ responses:
6095
+ '200':
6096
+ description: Connection updated
6097
+ content:
6098
+ application/json:
6099
+ schema:
6100
+ $ref: '#/components/schemas/OrganizationIdPConnection'
6101
+ '400':
6102
+ $ref: '#/components/responses/BadRequestError'
6103
+ '404':
6104
+ $ref: '#/components/responses/NotFoundError'
6105
+ delete:
6106
+ operationId: deleteOrganizationIdPConnection
6107
+ summary: Delete an identity provider connection
6108
+ description: |
6109
+ Deletes a connection. Members can no longer sign in through it and its SCIM token stops working immediately. Deleting the last connection with SAML turns off Enforce SSO login.
6110
+ tags:
6111
+ - sso
6112
+ security:
6113
+ - user-internal: []
6114
+ parameters:
6115
+ - $ref: '#/components/parameters/organizationId'
6116
+ - $ref: '#/components/parameters/idpConnectionId'
6117
+ responses:
6118
+ '204':
6119
+ description: Connection not found
6120
+ '205':
6121
+ description: Connection deleted
6122
+ '404':
6123
+ $ref: '#/components/responses/NotFoundError'
6124
+ /orgs/{organizationId}/idp-connections/{idpConnectionId}/token:
6125
+ post:
6126
+ operationId: rotateOrganizationIdPConnectionToken
6127
+ summary: Rotate the SCIM token of an identity provider connection
6128
+ description: |
6129
+ Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response. Setting up SCIM, when the connection has no token yet, needs a verified email domain on the connection.
6130
+ tags:
6131
+ - sso
6132
+ security:
6133
+ - user-internal: []
6134
+ parameters:
6135
+ - $ref: '#/components/parameters/organizationId'
6136
+ - $ref: '#/components/parameters/idpConnectionId'
6137
+ responses:
6138
+ '200':
6139
+ description: Token rotated
6140
+ content:
6141
+ application/json:
6142
+ schema:
6143
+ $ref: '#/components/schemas/OrganizationIdPConnectionWithToken'
6144
+ '400':
6145
+ $ref: '#/components/responses/BadRequestError'
6146
+ '404':
6147
+ $ref: '#/components/responses/NotFoundError'
5952
6148
  /orgs/{organizationId}/invites:
5953
6149
  post:
5954
6150
  operationId: inviteUsersToOrganization
@@ -10168,6 +10364,8 @@ paths:
10168
10364
  query:
10169
10365
  type: string
10170
10366
  maxLength: 512
10367
+ searchId:
10368
+ $ref: '#/components/schemas/SiteSearchId'
10171
10369
  - oneOf:
10172
10370
  - type: object
10173
10371
  required:
@@ -12359,6 +12557,203 @@ paths:
12359
12557
  description: Site space customization removed
12360
12558
  '400':
12361
12559
  $ref: '#/components/responses/BadRequestError'
12560
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}:
12561
+ get:
12562
+ operationId: getRevisionInSiteRevision
12563
+ summary: Get the content revision of a space at a site revision
12564
+ description: Retrieves the revision a space of the site was at when the site revision was recorded, including the full page tree structure and associated files. A space the site revision does not record returns 404.
12565
+ tags:
12566
+ - sites
12567
+ security:
12568
+ - user: []
12569
+ - oauth:
12570
+ - site:read
12571
+ - space:read
12572
+ parameters:
12573
+ - $ref: '#/components/parameters/organizationId'
12574
+ - $ref: '#/components/parameters/siteId'
12575
+ - $ref: '#/components/parameters/siteRevisionId'
12576
+ - $ref: '#/components/parameters/spaceId'
12577
+ - $ref: '#/components/parameters/revisionMetadata'
12578
+ - $ref: '#/components/parameters/revisionComputed'
12579
+ responses:
12580
+ '200':
12581
+ description: OK
12582
+ content:
12583
+ application/json:
12584
+ schema:
12585
+ $ref: '#/components/schemas/Revision'
12586
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}:
12587
+ get:
12588
+ operationId: getPageInSiteRevision
12589
+ summary: Get a page of a space at a site revision
12590
+ description: Returns a page in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
12591
+ tags:
12592
+ - sites
12593
+ security:
12594
+ - user: []
12595
+ - oauth:
12596
+ - site:read
12597
+ - space:read
12598
+ parameters:
12599
+ - $ref: '#/components/parameters/organizationId'
12600
+ - $ref: '#/components/parameters/siteId'
12601
+ - $ref: '#/components/parameters/siteRevisionId'
12602
+ - $ref: '#/components/parameters/spaceId'
12603
+ - $ref: '#/components/parameters/pageId'
12604
+ - $ref: '#/components/parameters/documentFormat'
12605
+ - $ref: '#/components/parameters/documentMarkdownRefsFormat'
12606
+ - $ref: '#/components/parameters/documentEvaluated'
12607
+ - $ref: '#/components/parameters/documentDereferenced'
12608
+ - $ref: '#/components/parameters/revisionMetadata'
12609
+ - $ref: '#/components/parameters/revisionComputed'
12610
+ responses:
12611
+ '200':
12612
+ description: OK
12613
+ content:
12614
+ application/json:
12615
+ schema:
12616
+ $ref: '#/components/schemas/RevisionPage'
12617
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}/meta-links:
12618
+ get:
12619
+ operationId: listPageMetaLinksInSiteRevision
12620
+ summary: List the meta links of a page at a site revision
12621
+ description: Returns the meta links of a page in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
12622
+ tags:
12623
+ - sites
12624
+ security:
12625
+ - user: []
12626
+ - oauth:
12627
+ - site:read
12628
+ - space:read
12629
+ parameters:
12630
+ - $ref: '#/components/parameters/organizationId'
12631
+ - $ref: '#/components/parameters/siteId'
12632
+ - $ref: '#/components/parameters/siteRevisionId'
12633
+ - $ref: '#/components/parameters/spaceId'
12634
+ - $ref: '#/components/parameters/pageId'
12635
+ responses:
12636
+ '200':
12637
+ description: OK
12638
+ content:
12639
+ application/json:
12640
+ schema:
12641
+ $ref: '#/components/schemas/RevisionPageMetaLinks'
12642
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/path/{pagePath}:
12643
+ get:
12644
+ operationId: getPageByPathInSiteRevision
12645
+ summary: Get a page of a space by its path at a site revision
12646
+ description: Returns the page at a path in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
12647
+ tags:
12648
+ - sites
12649
+ security:
12650
+ - user: []
12651
+ - oauth:
12652
+ - site:read
12653
+ - space:read
12654
+ parameters:
12655
+ - $ref: '#/components/parameters/organizationId'
12656
+ - $ref: '#/components/parameters/siteId'
12657
+ - $ref: '#/components/parameters/siteRevisionId'
12658
+ - $ref: '#/components/parameters/spaceId'
12659
+ - $ref: '#/components/parameters/pagePath'
12660
+ - $ref: '#/components/parameters/documentFormat'
12661
+ - $ref: '#/components/parameters/documentMarkdownRefsFormat'
12662
+ - $ref: '#/components/parameters/documentEvaluated'
12663
+ - $ref: '#/components/parameters/documentDereferenced'
12664
+ - $ref: '#/components/parameters/revisionMetadata'
12665
+ - $ref: '#/components/parameters/revisionCachedMetadata'
12666
+ - $ref: '#/components/parameters/revisionComputed'
12667
+ responses:
12668
+ '200':
12669
+ description: OK
12670
+ content:
12671
+ application/json:
12672
+ schema:
12673
+ oneOf:
12674
+ - $ref: '#/components/schemas/RevisionPageDocument'
12675
+ - $ref: '#/components/schemas/RevisionPageGroup'
12676
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/reusable-contents/{reusableContentId}/document:
12677
+ get:
12678
+ operationId: getReusableContentDocumentInSiteRevision
12679
+ summary: Get the document of a reusable content at a site revision
12680
+ description: Returns the document of a reusable content in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
12681
+ tags:
12682
+ - sites
12683
+ security:
12684
+ - user: []
12685
+ - oauth:
12686
+ - site:read
12687
+ - space:read
12688
+ parameters:
12689
+ - $ref: '#/components/parameters/organizationId'
12690
+ - $ref: '#/components/parameters/siteId'
12691
+ - $ref: '#/components/parameters/siteRevisionId'
12692
+ - $ref: '#/components/parameters/spaceId'
12693
+ - $ref: '#/components/parameters/reusableContentId'
12694
+ - $ref: '#/components/parameters/documentEvaluated'
12695
+ - $ref: '#/components/parameters/documentDereferenced'
12696
+ responses:
12697
+ '200':
12698
+ description: OK
12699
+ content:
12700
+ application/json:
12701
+ schema:
12702
+ $ref: '#/components/schemas/JSONDocument'
12703
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}/document:
12704
+ get:
12705
+ operationId: getPageDocumentInSiteRevision
12706
+ summary: Get the document of a page in a space at a site revision
12707
+ description: Returns the structured JSON document of a page in the revision a space was at when the site revision was recorded. A space the site revision does not record returns 404.
12708
+ tags:
12709
+ - sites
12710
+ security:
12711
+ - user: []
12712
+ - oauth:
12713
+ - site:read
12714
+ - space:read
12715
+ parameters:
12716
+ - $ref: '#/components/parameters/organizationId'
12717
+ - $ref: '#/components/parameters/siteId'
12718
+ - $ref: '#/components/parameters/siteRevisionId'
12719
+ - $ref: '#/components/parameters/spaceId'
12720
+ - $ref: '#/components/parameters/pageId'
12721
+ - $ref: '#/components/parameters/documentEvaluated'
12722
+ - $ref: '#/components/parameters/documentDereferenced'
12723
+ responses:
12724
+ '200':
12725
+ description: OK
12726
+ content:
12727
+ application/json:
12728
+ schema:
12729
+ $ref: '#/components/schemas/JSONDocument'
12730
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/openapi/{specSlug}/content:
12731
+ get:
12732
+ operationId: getOpenAPISpecContentInSiteRevision
12733
+ summary: Get the content of an OpenAPI spec at a site revision
12734
+ description: Retrieves the content of the OpenAPI spec version the site revision pins. A spec the site revision does not record returns 404.
12735
+ tags:
12736
+ - sites
12737
+ security:
12738
+ - user: []
12739
+ - oauth:
12740
+ - site:read
12741
+ - openapi:read
12742
+ parameters:
12743
+ - $ref: '#/components/parameters/organizationId'
12744
+ - $ref: '#/components/parameters/siteId'
12745
+ - $ref: '#/components/parameters/siteRevisionId'
12746
+ - $ref: '#/components/parameters/openapiSpecSlug'
12747
+ responses:
12748
+ '200':
12749
+ description: OK
12750
+ content:
12751
+ application/json:
12752
+ schema:
12753
+ $ref: '#/components/schemas/OpenAPISpecContent'
12754
+ '404':
12755
+ description: No matching site revision, OpenAPI specification or version found
12756
+ $ref: '#/components/responses/NotFoundError'
12362
12757
  /orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/move:
12363
12758
  post:
12364
12759
  operationId: moveSiteSectionGroup
@@ -15059,6 +15454,13 @@ components:
15059
15454
  - joinedAt
15060
15455
  - lastSeenAt
15061
15456
  - name
15457
+ idpConnectionId:
15458
+ name: idpConnectionId
15459
+ in: path
15460
+ required: true
15461
+ description: The unique id of the identity provider connection
15462
+ schema:
15463
+ type: string
15062
15464
  inviteId:
15063
15465
  name: inviteId
15064
15466
  in: path
@@ -15323,6 +15725,13 @@ components:
15323
15725
  description: The unique id of the site-space relationship
15324
15726
  schema:
15325
15727
  type: string
15728
+ siteRevisionId:
15729
+ name: siteRevisionId
15730
+ in: path
15731
+ required: true
15732
+ description: The unique id of the site revision
15733
+ schema:
15734
+ type: string
15326
15735
  siteRedirectId:
15327
15736
  name: siteRedirectId
15328
15737
  in: path
@@ -15641,6 +16050,9 @@ components:
15641
16050
  lastUsedAt:
15642
16051
  $ref: '#/components/schemas/Timestamp'
15643
16052
  description: When the API token last authenticated a request, accurate to within an hour. Absent for a token that has never been used.
16053
+ replacedBy:
16054
+ type: string
16055
+ description: ID of the token that replaced this one through a rotation. This token keeps working until `expiresAt`. Absent when the token was not rotated.
15644
16056
  scope:
15645
16057
  type: string
15646
16058
  enum:
@@ -19792,6 +20204,13 @@ components:
19792
20204
  type: string
19793
20205
  description:
19794
20206
  type: string
20207
+ keywords:
20208
+ type: array
20209
+ description: Authored terms and phrases that can help readers find this page.
20210
+ maxItems: 20
20211
+ items:
20212
+ type: string
20213
+ maxLength: 100
19795
20214
  tagTitle:
19796
20215
  description: Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself.
19797
20216
  type: string
@@ -22855,6 +23274,13 @@ components:
22855
23274
  description: Optional custom title used for the page in the table of contents and mentions instead of its page title. Set to an empty string to remove it.
22856
23275
  type: string
22857
23276
  maxLength: 100
23277
+ keywords:
23278
+ type: array
23279
+ description: Search terms and phrases for a document page. Replaces the entire list. Use an empty array to clear it. Omit the field to keep the existing list.
23280
+ maxItems: 20
23281
+ items:
23282
+ type: string
23283
+ maxLength: 100
22858
23284
  tagTitle:
22859
23285
  description: Optional title for the page's HTML `<title>` tag. When set, it replaces the page title in the composed `<title>` (`<tagTitle || title> | <section> | <site>`), while the page's visible heading and navigation title remain unchanged. Use this when the search result or browser tab should use a different title from the page itself. Set to an empty string to remove it.
22860
23286
  type: string
@@ -22968,7 +23394,7 @@ components:
22968
23394
  page: page_id
22969
23395
  ChangeRequestContentChangeRevertPage:
22970
23396
  type: object
22971
- description: Revert a page to the state it had in a given revision. If `revision` is omitted, the page is reverted to the change request's base revision. Without `block`, the whole page is reverted — added pages are removed, deleted pages are restored, and modified pages have their document reset. With `block`, only the listed block-level changes in the page's document are reverted (each block is removed if it was added, restored if it was deleted, or reset if it was modified or moved); other blocks and the page's properties/metadata are left untouched.
23397
+ description: Revert a page to the state it had in a given revision. If `revision` is omitted, the page is reverted to the change request's base revision. Without `block`, the whole page is reverted — added pages are removed, deleted pages are restored, and modified pages have their document and properties (title, description, slug, tags, cover, icon and other page settings) reset; the page keeps its position. With `block`, only the listed block-level changes in the page's document are reverted (each block is removed if it was added, restored if it was deleted, or reset if it was modified or moved); other blocks and the page's properties/metadata are left untouched.
22972
23398
  required:
22973
23399
  - operation
22974
23400
  - page
@@ -23587,6 +24013,17 @@ components:
23587
24013
  $ref: '#/components/schemas/ChangeAttributeString'
23588
24014
  description:
23589
24015
  $ref: '#/components/schemas/ChangeAttributeString'
24016
+ keywords:
24017
+ type: object
24018
+ properties:
24019
+ before:
24020
+ type: array
24021
+ items:
24022
+ type: string
24023
+ after:
24024
+ type: array
24025
+ items:
24026
+ type: string
23590
24027
  slug:
23591
24028
  $ref: '#/components/schemas/ChangeAttributeString'
23592
24029
  document:
@@ -25670,7 +26107,7 @@ components:
25670
26107
  - editAdaptiveSchema
25671
26108
  publicChangeRequestPreviews:
25672
26109
  type: boolean
25673
- description: Whether visitors can preview change requests and historical revisions on the published site. Previews inside GitBook are not affected.
26110
+ description: Whether visitors can preview change requests and historical revisions on the published site. Disabled for new sites. Existing sites keep their configured value. Previews inside GitBook are not affected.
25674
26111
  published:
25675
26112
  type: boolean
25676
26113
  description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
@@ -27397,6 +27834,212 @@ components:
27397
27834
  items:
27398
27835
  type: string
27399
27836
  description: A user to remove. It can either be a user ID or an email.
27837
+ IdPConnectionLabel:
27838
+ type: string
27839
+ description: Name of the identity provider connection, shown to organization admins.
27840
+ minLength: 1
27841
+ maxLength: 100
27842
+ IdPConnectionProvider:
27843
+ type: string
27844
+ description: Identity provider behind the connection.
27845
+ enum:
27846
+ - okta
27847
+ - entra
27848
+ - generic
27849
+ IdPConnectionStatus:
27850
+ type: string
27851
+ description: |
27852
+ Status of the connection.
27853
+ - `pending`: GitBook hasn't seen the identity provider use the connection yet.
27854
+ - `ready`: A member signed in with SAML through the connection, or the identity provider sent an authenticated SCIM request.
27855
+ enum:
27856
+ - pending
27857
+ - ready
27858
+ SAMLProviderDefaultRole:
27859
+ description: |
27860
+ 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.
27861
+ oneOf:
27862
+ - $ref: '#/components/schemas/MemberRole'
27863
+ - type: 'null'
27864
+ - type: string
27865
+ enum:
27866
+ - default
27867
+ - domain
27868
+ SAMLProviderEntityID:
27869
+ type: string
27870
+ maxLength: 1024
27871
+ SAMLProviderCertificate:
27872
+ type: string
27873
+ maxLength: 10000
27874
+ SAMLProviderDomainStatus:
27875
+ type: string
27876
+ description: |
27877
+ State of a SAML provider's email domain in the organization.
27878
+ - `verified`: People with an email on this domain can sign in through the provider.
27879
+ - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
27880
+ - `removed`: The organization no longer has this domain.
27881
+ enum:
27882
+ - verified
27883
+ - pending
27884
+ - error
27885
+ - legacy
27886
+ - removed
27887
+ SAMLProviderDomain:
27888
+ type: object
27889
+ description: An email domain of a SAML provider, with its verification state in the organization.
27890
+ properties:
27891
+ domain:
27892
+ type: string
27893
+ status:
27894
+ $ref: '#/components/schemas/SAMLProviderDomainStatus'
27895
+ required:
27896
+ - domain
27897
+ - status
27898
+ OrganizationIdPConnection:
27899
+ type: object
27900
+ description: |
27901
+ A connection to an identity provider, which signs organization members in with SAML and provisions them with SCIM.
27902
+ properties:
27903
+ object:
27904
+ type: string
27905
+ description: The object type, which is always "idp-connection"
27906
+ enum:
27907
+ - idp-connection
27908
+ id:
27909
+ type: string
27910
+ description: Unique identifier of the connection
27911
+ label:
27912
+ $ref: '#/components/schemas/IdPConnectionLabel'
27913
+ provider:
27914
+ $ref: '#/components/schemas/IdPConnectionProvider'
27915
+ status:
27916
+ $ref: '#/components/schemas/IdPConnectionStatus'
27917
+ defaultRole:
27918
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
27919
+ defaultTeam:
27920
+ $ref: '#/components/schemas/OrganizationTeam'
27921
+ defaultTeamFromDomain:
27922
+ type: boolean
27923
+ description: |
27924
+ Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`.
27925
+ defaultTeamFromSCIM:
27926
+ type: boolean
27927
+ description: |
27928
+ Whether the identity provider decides each member's teams through SCIM, instead of `defaultTeam`.
27929
+ saml:
27930
+ type: object
27931
+ description: SAML sign-in through the connection.
27932
+ properties:
27933
+ ssoURL:
27934
+ description: The identity provider's single sign-on URL. Absent until it is set.
27935
+ $ref: '#/components/schemas/URL'
27936
+ entityID:
27937
+ description: Entity ID of the identity provider. Absent until it is set.
27938
+ $ref: '#/components/schemas/SAMLProviderEntityID'
27939
+ certificate:
27940
+ description: X.509 certificate of the identity provider. Absent until it is set.
27941
+ $ref: '#/components/schemas/SAMLProviderCertificate'
27942
+ domains:
27943
+ type: array
27944
+ description: |
27945
+ Email domains the connection signs people in for. Absent on connections created before domains existed, which accept any email.
27946
+ items:
27947
+ $ref: '#/components/schemas/SAMLProviderDomain'
27948
+ service:
27949
+ type: object
27950
+ description: Service provider values to configure in the identity provider.
27951
+ properties:
27952
+ acsURL:
27953
+ type: string
27954
+ description: Assertion Consumer Service (ACS) URL
27955
+ format: uri
27956
+ startURL:
27957
+ type: string
27958
+ description: Start URL for the identity provider
27959
+ format: uri
27960
+ entityID:
27961
+ $ref: '#/components/schemas/SAMLProviderEntityID'
27962
+ required:
27963
+ - acsURL
27964
+ - startURL
27965
+ - entityID
27966
+ lastUsedAt:
27967
+ description: Date of the last successful sign-in through the connection
27968
+ $ref: '#/components/schemas/Timestamp'
27969
+ required:
27970
+ - service
27971
+ scim:
27972
+ type: object
27973
+ description: |
27974
+ SCIM provisioning through the connection. Absent on connections created before SCIM, until their SCIM token is created.
27975
+ properties:
27976
+ baseURL:
27977
+ description: SCIM base URL to configure in the identity provider
27978
+ $ref: '#/components/schemas/URL'
27979
+ tokenHint:
27980
+ type: string
27981
+ description: Last characters of the current token, to identify it
27982
+ tokenCreatedAt:
27983
+ description: Date the current token was created
27984
+ $ref: '#/components/schemas/Timestamp'
27985
+ lastUsedAt:
27986
+ description: Date of the last request authenticated with the token
27987
+ $ref: '#/components/schemas/Timestamp'
27988
+ required:
27989
+ - baseURL
27990
+ - tokenHint
27991
+ - tokenCreatedAt
27992
+ createdAt:
27993
+ description: Date of creation
27994
+ $ref: '#/components/schemas/Timestamp'
27995
+ updatedAt:
27996
+ description: Date of the last update
27997
+ $ref: '#/components/schemas/Timestamp'
27998
+ urls:
27999
+ type: object
28000
+ description: URLs associated with the object
28001
+ properties:
28002
+ location:
28003
+ description: URL of the connection in the API
28004
+ $ref: '#/components/schemas/URL'
28005
+ required:
28006
+ - location
28007
+ required:
28008
+ - object
28009
+ - id
28010
+ - label
28011
+ - provider
28012
+ - status
28013
+ - defaultRole
28014
+ - defaultTeamFromDomain
28015
+ - defaultTeamFromSCIM
28016
+ - saml
28017
+ - createdAt
28018
+ - updatedAt
28019
+ - urls
28020
+ SAMLProviderDomains:
28021
+ type: array
28022
+ description: |
28023
+ 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.
28024
+ maxItems: 50
28025
+ uniqueItems: true
28026
+ items:
28027
+ type: string
28028
+ minLength: 1
28029
+ maxLength: 255
28030
+ OrganizationIdPConnectionWithToken:
28031
+ description: |
28032
+ An identity provider connection, with the SCIM token the request created. The token can't be retrieved again.
28033
+ type: object
28034
+ properties:
28035
+ connection:
28036
+ $ref: '#/components/schemas/OrganizationIdPConnection'
28037
+ token:
28038
+ type: string
28039
+ description: SCIM bearer token to configure in the identity provider.
28040
+ required:
28041
+ - connection
28042
+ - token
27400
28043
  Email:
27401
28044
  type: string
27402
28045
  format: email
@@ -28551,22 +29194,6 @@ components:
28551
29194
  type: string
28552
29195
  minLength: 1
28553
29196
  maxLength: 30
28554
- SAMLProviderEntityID:
28555
- type: string
28556
- maxLength: 1024
28557
- SAMLProviderCertificate:
28558
- type: string
28559
- maxLength: 10000
28560
- SAMLProviderDefaultRole:
28561
- description: |
28562
- 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.
28563
- oneOf:
28564
- - $ref: '#/components/schemas/MemberRole'
28565
- - type: 'null'
28566
- - type: string
28567
- enum:
28568
- - default
28569
- - domain
28570
29197
  SAMLProviderStatus:
28571
29198
  type: string
28572
29199
  description: |
@@ -28576,30 +29203,6 @@ components:
28576
29203
  enum:
28577
29204
  - active
28578
29205
  - pending
28579
- SAMLProviderDomainStatus:
28580
- type: string
28581
- description: |
28582
- State of a SAML provider's email domain in the organization.
28583
- - `verified`: People with an email on this domain can sign in through the provider.
28584
- - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
28585
- - `removed`: The organization no longer has this domain.
28586
- enum:
28587
- - verified
28588
- - pending
28589
- - error
28590
- - legacy
28591
- - removed
28592
- SAMLProviderDomain:
28593
- type: object
28594
- description: An email domain of a SAML provider, with its verification state in the organization.
28595
- properties:
28596
- domain:
28597
- type: string
28598
- status:
28599
- $ref: '#/components/schemas/SAMLProviderDomainStatus'
28600
- required:
28601
- - domain
28602
- - status
28603
29206
  OrganizationSAMLProvider:
28604
29207
  type: object
28605
29208
  properties:
@@ -28677,16 +29280,6 @@ components:
28677
29280
  - status
28678
29281
  - service
28679
29282
  - urls
28680
- SAMLProviderDomains:
28681
- type: array
28682
- description: |
28683
- 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.
28684
- maxItems: 50
28685
- uniqueItems: true
28686
- items:
28687
- type: string
28688
- minLength: 1
28689
- maxLength: 255
28690
29283
  OrganizationDomainStatus:
28691
29284
  type: string
28692
29285
  description: |
@@ -28774,13 +29367,6 @@ components:
28774
29367
  description: Name of the SCIM connection, shown to organization admins.
28775
29368
  minLength: 1
28776
29369
  maxLength: 100
28777
- IdPConnectionProvider:
28778
- type: string
28779
- description: Identity provider behind the connection.
28780
- enum:
28781
- - okta
28782
- - entra
28783
- - generic
28784
29370
  OrganizationSCIMConnection:
28785
29371
  type: object
28786
29372
  description: A SCIM connection through which an identity provider provisions organization members.
@@ -30696,6 +31282,12 @@ components:
30696
31282
  SiteCustomizationSettingsInput:
30697
31283
  allOf:
30698
31284
  - $ref: '#/components/schemas/SiteCustomizationSettingsBase'
31285
+ SiteSearchId:
31286
+ type: string
31287
+ description: Client-generated 128-bit identifier for a search request, encoded as hexadecimal.
31288
+ minLength: 32
31289
+ maxLength: 32
31290
+ pattern: ^[0-9A-Fa-f]{32}$
30699
31291
  SiteSearchScope:
30700
31292
  oneOf:
30701
31293
  - type: object
@@ -35016,6 +35608,11 @@ components:
35016
35608
  required:
35017
35609
  - type
35018
35610
  - query
35611
+ SiteInsightsSearchResultNumber:
35612
+ type: integer
35613
+ minimum: 1
35614
+ maximum: 20
35615
+ description: Published site search displays up to ten page results and ten supplemental records per request.
35019
35616
  SiteInsightsEventSearchOpenResult:
35020
35617
  allOf:
35021
35618
  - $ref: '#/components/schemas/SiteInsightsEventBase'
@@ -35028,6 +35625,16 @@ components:
35028
35625
  query:
35029
35626
  type: string
35030
35627
  description: Query of the search.
35628
+ position:
35629
+ description: One-based position of the opened result in the displayed list.
35630
+ allOf:
35631
+ - $ref: '#/components/schemas/SiteInsightsSearchResultNumber'
35632
+ resultsCount:
35633
+ description: Number of results in the displayed list.
35634
+ allOf:
35635
+ - $ref: '#/components/schemas/SiteInsightsSearchResultNumber'
35636
+ searchId:
35637
+ $ref: '#/components/schemas/SiteSearchId'
35031
35638
  result:
35032
35639
  description: Target of the opened search result.
35033
35640
  oneOf:
@@ -35678,6 +36285,15 @@ components:
35678
36285
  type: string
35679
36286
  enum:
35680
36287
  - eventSearchQuery
36288
+ - type: object
36289
+ description: Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed.
36290
+ required:
36291
+ - column
36292
+ properties:
36293
+ column:
36294
+ type: string
36295
+ enum:
36296
+ - eventNormalizedSearchQuery
35681
36297
  - type: object
35682
36298
  required:
35683
36299
  - column
@@ -35686,6 +36302,15 @@ components:
35686
36302
  type: string
35687
36303
  enum:
35688
36304
  - eventSearchResultRecordId
36305
+ - type: object
36306
+ description: Clicked search result position bucket. Null when rank was not recorded.
36307
+ required:
36308
+ - column
36309
+ properties:
36310
+ column:
36311
+ type: string
36312
+ enum:
36313
+ - eventSearchResultPositionBucket
35689
36314
  - type: object
35690
36315
  required:
35691
36316
  - column
@@ -36442,6 +37067,20 @@ components:
36442
37067
  type: array
36443
37068
  items:
36444
37069
  type: string
37070
+ - type: object
37071
+ description: Search query in lowercase with leading and trailing whitespace removed and internal whitespace collapsed.
37072
+ required:
37073
+ - column
37074
+ - values
37075
+ properties:
37076
+ column:
37077
+ type: string
37078
+ enum:
37079
+ - eventNormalizedSearchQuery
37080
+ values:
37081
+ type: array
37082
+ items:
37083
+ type: string
36445
37084
  - type: object
36446
37085
  required:
36447
37086
  - column
@@ -36457,6 +37096,26 @@ components:
36457
37096
  type:
36458
37097
  - string
36459
37098
  - 'null'
37099
+ - type: object
37100
+ description: Clicked search result position bucket. Null when rank was not recorded.
37101
+ required:
37102
+ - column
37103
+ - values
37104
+ properties:
37105
+ column:
37106
+ type: string
37107
+ enum:
37108
+ - eventSearchResultPositionBucket
37109
+ values:
37110
+ type: array
37111
+ items:
37112
+ oneOf:
37113
+ - type: 'null'
37114
+ - type: string
37115
+ enum:
37116
+ - first
37117
+ - secondToFourth
37118
+ - fifthOrLater
36460
37119
  - type: object
36461
37120
  description: |
36462
37121
  Ratings submitted on a page, counted once per rating a reader submitted rather than once
@@ -36763,9 +37422,46 @@ components:
36763
37422
  default: 1000
36764
37423
  minimum: 1
36765
37424
  maximum: 1000
37425
+ includeSearchRankTrackingStart:
37426
+ type: boolean
37427
+ description: Return the site's earliest recorded ranked browser search open by a human. The date is independent of the query's range and filters.
37428
+ includeLowSearchResultPages:
37429
+ type: boolean
37430
+ description: Count only search opens at position 5 or later, and return page details for each query. Group by eventNormalizedSearchQuery alone. The page size is capped at 50.
36766
37431
  page:
36767
37432
  type: string
36768
37433
  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.
37434
+ SiteInsightsLowSearchResultPage:
37435
+ type: object
37436
+ required:
37437
+ - query
37438
+ - page
37439
+ - medianPosition
37440
+ - otherPagesCount
37441
+ properties:
37442
+ query:
37443
+ type: string
37444
+ description: Normalized search query.
37445
+ page:
37446
+ type: object
37447
+ description: The page with the most opens at position 5 or later for this query.
37448
+ required:
37449
+ - space
37450
+ - page
37451
+ properties:
37452
+ space:
37453
+ type: string
37454
+ description: ID of the space that contains the opened page.
37455
+ page:
37456
+ type: string
37457
+ description: ID of the opened page.
37458
+ medianPosition:
37459
+ type: number
37460
+ description: Median position across opens of this page at position 5 or later.
37461
+ otherPagesCount:
37462
+ type: integer
37463
+ minimum: 0
37464
+ description: Number of other distinct pages opened at position 5 or later for this query.
36769
37465
  SiteInsightsQueryEventsAggregationResult:
36770
37466
  allOf:
36771
37467
  - $ref: '#/components/schemas/List'
@@ -36773,6 +37469,17 @@ components:
36773
37469
  required:
36774
37470
  - columns
36775
37471
  properties:
37472
+ searchRankTrackingStart:
37473
+ type:
37474
+ - string
37475
+ - 'null'
37476
+ format: date-time
37477
+ description: Returned when requested. Null if the site has no recorded ranked search opens.
37478
+ lowSearchResultPages:
37479
+ type: array
37480
+ description: Returned when requested. Queries with no page opens are omitted.
37481
+ items:
37482
+ $ref: '#/components/schemas/SiteInsightsLowSearchResultPage'
36776
37483
  columns:
36777
37484
  type: array
36778
37485
  items:
@@ -37779,69 +38486,106 @@ components:
37779
38486
  - redirect
37780
38487
  discriminator:
37781
38488
  propertyName: target
37782
- PublishedSiteContent:
38489
+ PublishedSiteContentLive:
37783
38490
  type: object
37784
- title: Site Content
38491
+ title: Live content
38492
+ description: Site content at the live revision of its spaces.
38493
+ properties: {}
38494
+ PublishedSiteContentAtRevision:
38495
+ type: object
38496
+ title: Content at a revision
38497
+ description: Site content previewed at a revision of its space.
37785
38498
  properties:
37786
- site:
37787
- type: string
37788
- description: ID of the site matching.
37789
- siteSection:
37790
- type: string
37791
- description: ID of the site-section matching.
37792
- siteSpace:
37793
- type: string
37794
- description: ID of the site-space matching.
37795
- space:
37796
- type: string
37797
- description: ID of the space matching.
37798
- changeRequest:
37799
- type: string
37800
- description: Identifier of the change request being previewed in this URL.
37801
38499
  revision:
37802
38500
  type: string
37803
38501
  description: Identifier of the revision being previewed in this URL.
37804
- pathname:
37805
- type: string
37806
- description: Path of the content relative to the input URL being resolved
37807
- basePath:
37808
- type: string
37809
- description: Prefix of the path in the input URL being resolved
37810
- siteBasePath:
37811
- type: string
37812
- description: Prefix of the site path in the input URL being resolved
37813
- apiToken:
37814
- type: string
37815
- description: Short-lived API token to fetch content related to the space in the context of the URL.
37816
- organization:
37817
- type: string
37818
- description: ID of the organization.
37819
- shareKey:
37820
- type: string
37821
- description: Share link key of the site in case the site was published with share-links.
37822
- complete:
37823
- type: boolean
37824
- description: Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments.
37825
- contextId:
38502
+ required:
38503
+ - revision
38504
+ PublishedSiteContentInChangeRequest:
38505
+ type: object
38506
+ title: Content in a change request
38507
+ description: Site content previewed in a change request of its space.
38508
+ properties:
38509
+ changeRequest:
37826
38510
  type: string
37827
- description: Context returned only for a authenticated access session to track changes in the visitor session context that affect content rendering (used for cache invalidation).
37828
- canonicalUrl:
38511
+ description: Identifier of the change request being previewed in this URL.
38512
+ required:
38513
+ - changeRequest
38514
+ PublishedSiteContentAtSiteRevision:
38515
+ type: object
38516
+ title: Content at a site revision
38517
+ description: 'Site content previewed at a site revision: each space is read at the revision the site revision pins, and live when it pins none.'
38518
+ properties:
38519
+ siteRevision:
37829
38520
  type: string
37830
- description: The canonical URL of the resolution.
37831
- preview:
37832
- type: boolean
37833
- description: Whether the URL is a preview URL
38521
+ description: Identifier of the site revision being previewed in this URL.
37834
38522
  required:
37835
- - site
37836
- - siteSpace
37837
- - space
37838
- - pathname
37839
- - basePath
37840
- - siteBasePath
37841
- - apiToken
37842
- - organization
37843
- - complete
37844
- - canonicalUrl
38523
+ - siteRevision
38524
+ PublishedSiteContent:
38525
+ type: object
38526
+ title: Site Content
38527
+ description: 'Content a site URL resolves to: live, or previewed at a space revision, a change request or a site revision named in the URL. At most one of `revision`, `changeRequest` and `siteRevision` is returned.'
38528
+ allOf:
38529
+ - type: object
38530
+ properties:
38531
+ site:
38532
+ type: string
38533
+ description: ID of the site matching.
38534
+ siteSection:
38535
+ type: string
38536
+ description: ID of the site-section matching.
38537
+ siteSpace:
38538
+ type: string
38539
+ description: ID of the site-space matching.
38540
+ space:
38541
+ type: string
38542
+ description: ID of the space matching.
38543
+ pathname:
38544
+ type: string
38545
+ description: Path of the content relative to the input URL being resolved
38546
+ basePath:
38547
+ type: string
38548
+ description: Prefix of the path in the input URL being resolved
38549
+ siteBasePath:
38550
+ type: string
38551
+ description: Prefix of the site path in the input URL being resolved
38552
+ apiToken:
38553
+ type: string
38554
+ description: Short-lived API token to fetch content related to the space in the context of the URL.
38555
+ organization:
38556
+ type: string
38557
+ description: ID of the organization.
38558
+ shareKey:
38559
+ type: string
38560
+ description: Share link key of the site in case the site was published with share-links.
38561
+ complete:
38562
+ type: boolean
38563
+ description: Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments.
38564
+ contextId:
38565
+ type: string
38566
+ description: Context returned only for a authenticated access session to track changes in the visitor session context that affect content rendering (used for cache invalidation).
38567
+ canonicalUrl:
38568
+ type: string
38569
+ description: The canonical URL of the resolution.
38570
+ preview:
38571
+ type: boolean
38572
+ description: Whether the URL is a preview URL
38573
+ required:
38574
+ - site
38575
+ - siteSpace
38576
+ - space
38577
+ - pathname
38578
+ - basePath
38579
+ - siteBasePath
38580
+ - apiToken
38581
+ - organization
38582
+ - complete
38583
+ - canonicalUrl
38584
+ - oneOf:
38585
+ - $ref: '#/components/schemas/PublishedSiteContentLive'
38586
+ - $ref: '#/components/schemas/PublishedSiteContentAtRevision'
38587
+ - $ref: '#/components/schemas/PublishedSiteContentInChangeRequest'
38588
+ - $ref: '#/components/schemas/PublishedSiteContentAtSiteRevision'
37845
38589
  PublishedSiteContentLookup:
37846
38590
  oneOf:
37847
38591
  - $ref: '#/components/schemas/PublishedContentRedirect'
@@ -40382,6 +41126,19 @@ components:
40382
41126
  required:
40383
41127
  - channel
40384
41128
  - organization
41129
+ APIChannelOrganizationIdPConnections:
41130
+ type: object
41131
+ description: Subscription channel for changes in the identity provider connections of an organization.
41132
+ properties:
41133
+ channel:
41134
+ type: string
41135
+ enum:
41136
+ - organization-idp-connections
41137
+ organization:
41138
+ type: string
41139
+ required:
41140
+ - channel
41141
+ - organization
40385
41142
  APIChannelOrganizationCustomFonts:
40386
41143
  type: object
40387
41144
  description: Subscription channel for changes in custom fonts in an organization.
@@ -40953,6 +41710,7 @@ components:
40953
41710
  - $ref: '#/components/schemas/APIChannelOrganizationTranslationsGlossary'
40954
41711
  - $ref: '#/components/schemas/APIChannelOrganizationSCIMConnections'
40955
41712
  - $ref: '#/components/schemas/APIChannelOrganizationDomains'
41713
+ - $ref: '#/components/schemas/APIChannelOrganizationIdPConnections'
40956
41714
  - $ref: '#/components/schemas/APIChannelOrganizationCustomFonts'
40957
41715
  - $ref: '#/components/schemas/APIChannelOrganizationAgentInstructions'
40958
41716
  - $ref: '#/components/schemas/APIChannelOrganizationChangeRequests'