@gitbook/api 0.212.0 → 0.213.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,194 @@ 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 and a SCIM token. The token is only returned in this response.
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/OrganizationIdPConnectionWithToken'
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
+ tags:
6054
+ - sso
6055
+ security:
6056
+ - user-internal: []
6057
+ parameters:
6058
+ - $ref: '#/components/parameters/organizationId'
6059
+ - $ref: '#/components/parameters/idpConnectionId'
6060
+ requestBody:
6061
+ required: true
6062
+ content:
6063
+ application/json:
6064
+ schema:
6065
+ type: object
6066
+ properties:
6067
+ label:
6068
+ $ref: '#/components/schemas/IdPConnectionLabel'
6069
+ provider:
6070
+ $ref: '#/components/schemas/IdPConnectionProvider'
6071
+ defaultRole:
6072
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
6073
+ defaultTeam:
6074
+ description: Team to add members to, or null to add them to none.
6075
+ oneOf:
6076
+ - type: string
6077
+ - type: 'null'
6078
+ defaultTeamFromDomain:
6079
+ type: boolean
6080
+ ssoURL:
6081
+ $ref: '#/components/schemas/URL'
6082
+ entityID:
6083
+ $ref: '#/components/schemas/SAMLProviderEntityID'
6084
+ certificate:
6085
+ $ref: '#/components/schemas/SAMLProviderCertificate'
6086
+ domains:
6087
+ $ref: '#/components/schemas/SAMLProviderDomains'
6088
+ responses:
6089
+ '200':
6090
+ description: Connection updated
6091
+ content:
6092
+ application/json:
6093
+ schema:
6094
+ $ref: '#/components/schemas/OrganizationIdPConnection'
6095
+ '400':
6096
+ $ref: '#/components/responses/BadRequestError'
6097
+ '404':
6098
+ $ref: '#/components/responses/NotFoundError'
6099
+ delete:
6100
+ operationId: deleteOrganizationIdPConnection
6101
+ summary: Delete an identity provider connection
6102
+ description: |
6103
+ 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.
6104
+ tags:
6105
+ - sso
6106
+ security:
6107
+ - user-internal: []
6108
+ parameters:
6109
+ - $ref: '#/components/parameters/organizationId'
6110
+ - $ref: '#/components/parameters/idpConnectionId'
6111
+ responses:
6112
+ '204':
6113
+ description: Connection not found
6114
+ '205':
6115
+ description: Connection deleted
6116
+ '404':
6117
+ $ref: '#/components/responses/NotFoundError'
6118
+ /orgs/{organizationId}/idp-connections/{idpConnectionId}/token:
6119
+ post:
6120
+ operationId: rotateOrganizationIdPConnectionToken
6121
+ summary: Replace the SCIM token of an identity provider connection
6122
+ description: |
6123
+ Creates a new SCIM token for a connection. The previous token stops working immediately, and the new token is only returned in this response.
6124
+ tags:
6125
+ - sso
6126
+ security:
6127
+ - user-internal: []
6128
+ parameters:
6129
+ - $ref: '#/components/parameters/organizationId'
6130
+ - $ref: '#/components/parameters/idpConnectionId'
6131
+ responses:
6132
+ '200':
6133
+ description: Token replaced
6134
+ content:
6135
+ application/json:
6136
+ schema:
6137
+ $ref: '#/components/schemas/OrganizationIdPConnectionWithToken'
6138
+ '404':
6139
+ $ref: '#/components/responses/NotFoundError'
5952
6140
  /orgs/{organizationId}/invites:
5953
6141
  post:
5954
6142
  operationId: inviteUsersToOrganization
@@ -12359,6 +12547,203 @@ paths:
12359
12547
  description: Site space customization removed
12360
12548
  '400':
12361
12549
  $ref: '#/components/responses/BadRequestError'
12550
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}:
12551
+ get:
12552
+ operationId: getRevisionInSiteRevision
12553
+ summary: Get the content revision of a space at a site revision
12554
+ 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.
12555
+ tags:
12556
+ - sites
12557
+ security:
12558
+ - user: []
12559
+ - oauth:
12560
+ - site:read
12561
+ - space:read
12562
+ parameters:
12563
+ - $ref: '#/components/parameters/organizationId'
12564
+ - $ref: '#/components/parameters/siteId'
12565
+ - $ref: '#/components/parameters/siteRevisionId'
12566
+ - $ref: '#/components/parameters/spaceId'
12567
+ - $ref: '#/components/parameters/revisionMetadata'
12568
+ - $ref: '#/components/parameters/revisionComputed'
12569
+ responses:
12570
+ '200':
12571
+ description: OK
12572
+ content:
12573
+ application/json:
12574
+ schema:
12575
+ $ref: '#/components/schemas/Revision'
12576
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}:
12577
+ get:
12578
+ operationId: getPageInSiteRevision
12579
+ summary: Get a page of a space at a site revision
12580
+ 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.
12581
+ tags:
12582
+ - sites
12583
+ security:
12584
+ - user: []
12585
+ - oauth:
12586
+ - site:read
12587
+ - space:read
12588
+ parameters:
12589
+ - $ref: '#/components/parameters/organizationId'
12590
+ - $ref: '#/components/parameters/siteId'
12591
+ - $ref: '#/components/parameters/siteRevisionId'
12592
+ - $ref: '#/components/parameters/spaceId'
12593
+ - $ref: '#/components/parameters/pageId'
12594
+ - $ref: '#/components/parameters/documentFormat'
12595
+ - $ref: '#/components/parameters/documentMarkdownRefsFormat'
12596
+ - $ref: '#/components/parameters/documentEvaluated'
12597
+ - $ref: '#/components/parameters/documentDereferenced'
12598
+ - $ref: '#/components/parameters/revisionMetadata'
12599
+ - $ref: '#/components/parameters/revisionComputed'
12600
+ responses:
12601
+ '200':
12602
+ description: OK
12603
+ content:
12604
+ application/json:
12605
+ schema:
12606
+ $ref: '#/components/schemas/RevisionPage'
12607
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}/meta-links:
12608
+ get:
12609
+ operationId: listPageMetaLinksInSiteRevision
12610
+ summary: List the meta links of a page at a site revision
12611
+ 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.
12612
+ tags:
12613
+ - sites
12614
+ security:
12615
+ - user: []
12616
+ - oauth:
12617
+ - site:read
12618
+ - space:read
12619
+ parameters:
12620
+ - $ref: '#/components/parameters/organizationId'
12621
+ - $ref: '#/components/parameters/siteId'
12622
+ - $ref: '#/components/parameters/siteRevisionId'
12623
+ - $ref: '#/components/parameters/spaceId'
12624
+ - $ref: '#/components/parameters/pageId'
12625
+ responses:
12626
+ '200':
12627
+ description: OK
12628
+ content:
12629
+ application/json:
12630
+ schema:
12631
+ $ref: '#/components/schemas/RevisionPageMetaLinks'
12632
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/path/{pagePath}:
12633
+ get:
12634
+ operationId: getPageByPathInSiteRevision
12635
+ summary: Get a page of a space by its path at a site revision
12636
+ 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.
12637
+ tags:
12638
+ - sites
12639
+ security:
12640
+ - user: []
12641
+ - oauth:
12642
+ - site:read
12643
+ - space:read
12644
+ parameters:
12645
+ - $ref: '#/components/parameters/organizationId'
12646
+ - $ref: '#/components/parameters/siteId'
12647
+ - $ref: '#/components/parameters/siteRevisionId'
12648
+ - $ref: '#/components/parameters/spaceId'
12649
+ - $ref: '#/components/parameters/pagePath'
12650
+ - $ref: '#/components/parameters/documentFormat'
12651
+ - $ref: '#/components/parameters/documentMarkdownRefsFormat'
12652
+ - $ref: '#/components/parameters/documentEvaluated'
12653
+ - $ref: '#/components/parameters/documentDereferenced'
12654
+ - $ref: '#/components/parameters/revisionMetadata'
12655
+ - $ref: '#/components/parameters/revisionCachedMetadata'
12656
+ - $ref: '#/components/parameters/revisionComputed'
12657
+ responses:
12658
+ '200':
12659
+ description: OK
12660
+ content:
12661
+ application/json:
12662
+ schema:
12663
+ oneOf:
12664
+ - $ref: '#/components/schemas/RevisionPageDocument'
12665
+ - $ref: '#/components/schemas/RevisionPageGroup'
12666
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/reusable-contents/{reusableContentId}/document:
12667
+ get:
12668
+ operationId: getReusableContentDocumentInSiteRevision
12669
+ summary: Get the document of a reusable content at a site revision
12670
+ 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.
12671
+ tags:
12672
+ - sites
12673
+ security:
12674
+ - user: []
12675
+ - oauth:
12676
+ - site:read
12677
+ - space:read
12678
+ parameters:
12679
+ - $ref: '#/components/parameters/organizationId'
12680
+ - $ref: '#/components/parameters/siteId'
12681
+ - $ref: '#/components/parameters/siteRevisionId'
12682
+ - $ref: '#/components/parameters/spaceId'
12683
+ - $ref: '#/components/parameters/reusableContentId'
12684
+ - $ref: '#/components/parameters/documentEvaluated'
12685
+ - $ref: '#/components/parameters/documentDereferenced'
12686
+ responses:
12687
+ '200':
12688
+ description: OK
12689
+ content:
12690
+ application/json:
12691
+ schema:
12692
+ $ref: '#/components/schemas/JSONDocument'
12693
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/content/{spaceId}/page/{pageId}/document:
12694
+ get:
12695
+ operationId: getPageDocumentInSiteRevision
12696
+ summary: Get the document of a page in a space at a site revision
12697
+ 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.
12698
+ tags:
12699
+ - sites
12700
+ security:
12701
+ - user: []
12702
+ - oauth:
12703
+ - site:read
12704
+ - space:read
12705
+ parameters:
12706
+ - $ref: '#/components/parameters/organizationId'
12707
+ - $ref: '#/components/parameters/siteId'
12708
+ - $ref: '#/components/parameters/siteRevisionId'
12709
+ - $ref: '#/components/parameters/spaceId'
12710
+ - $ref: '#/components/parameters/pageId'
12711
+ - $ref: '#/components/parameters/documentEvaluated'
12712
+ - $ref: '#/components/parameters/documentDereferenced'
12713
+ responses:
12714
+ '200':
12715
+ description: OK
12716
+ content:
12717
+ application/json:
12718
+ schema:
12719
+ $ref: '#/components/schemas/JSONDocument'
12720
+ /orgs/{organizationId}/sites/{siteId}/revisions/{siteRevisionId}/openapi/{specSlug}/content:
12721
+ get:
12722
+ operationId: getOpenAPISpecContentInSiteRevision
12723
+ summary: Get the content of an OpenAPI spec at a site revision
12724
+ description: Retrieves the content of the OpenAPI spec version the site revision pins. A spec the site revision does not record returns 404.
12725
+ tags:
12726
+ - sites
12727
+ security:
12728
+ - user: []
12729
+ - oauth:
12730
+ - site:read
12731
+ - openapi:read
12732
+ parameters:
12733
+ - $ref: '#/components/parameters/organizationId'
12734
+ - $ref: '#/components/parameters/siteId'
12735
+ - $ref: '#/components/parameters/siteRevisionId'
12736
+ - $ref: '#/components/parameters/openapiSpecSlug'
12737
+ responses:
12738
+ '200':
12739
+ description: OK
12740
+ content:
12741
+ application/json:
12742
+ schema:
12743
+ $ref: '#/components/schemas/OpenAPISpecContent'
12744
+ '404':
12745
+ description: No matching site revision, OpenAPI specification or version found
12746
+ $ref: '#/components/responses/NotFoundError'
12362
12747
  /orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/move:
12363
12748
  post:
12364
12749
  operationId: moveSiteSectionGroup
@@ -15059,6 +15444,13 @@ components:
15059
15444
  - joinedAt
15060
15445
  - lastSeenAt
15061
15446
  - name
15447
+ idpConnectionId:
15448
+ name: idpConnectionId
15449
+ in: path
15450
+ required: true
15451
+ description: The unique id of the identity provider connection
15452
+ schema:
15453
+ type: string
15062
15454
  inviteId:
15063
15455
  name: inviteId
15064
15456
  in: path
@@ -15323,6 +15715,13 @@ components:
15323
15715
  description: The unique id of the site-space relationship
15324
15716
  schema:
15325
15717
  type: string
15718
+ siteRevisionId:
15719
+ name: siteRevisionId
15720
+ in: path
15721
+ required: true
15722
+ description: The unique id of the site revision
15723
+ schema:
15724
+ type: string
15326
15725
  siteRedirectId:
15327
15726
  name: siteRedirectId
15328
15727
  in: path
@@ -15641,6 +16040,9 @@ components:
15641
16040
  lastUsedAt:
15642
16041
  $ref: '#/components/schemas/Timestamp'
15643
16042
  description: When the API token last authenticated a request, accurate to within an hour. Absent for a token that has never been used.
16043
+ replacedBy:
16044
+ type: string
16045
+ 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
16046
  scope:
15645
16047
  type: string
15646
16048
  enum:
@@ -22968,7 +23370,7 @@ components:
22968
23370
  page: page_id
22969
23371
  ChangeRequestContentChangeRevertPage:
22970
23372
  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.
23373
+ 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
23374
  required:
22973
23375
  - operation
22974
23376
  - page
@@ -25670,7 +26072,7 @@ components:
25670
26072
  - editAdaptiveSchema
25671
26073
  publicChangeRequestPreviews:
25672
26074
  type: boolean
25673
- description: Whether visitors can preview change requests and historical revisions on the published site. Previews inside GitBook are not affected.
26075
+ 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
26076
  published:
25675
26077
  type: boolean
25676
26078
  description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
@@ -27397,6 +27799,207 @@ components:
27397
27799
  items:
27398
27800
  type: string
27399
27801
  description: A user to remove. It can either be a user ID or an email.
27802
+ IdPConnectionLabel:
27803
+ type: string
27804
+ description: Name of the identity provider connection, shown to organization admins.
27805
+ minLength: 1
27806
+ maxLength: 100
27807
+ IdPConnectionProvider:
27808
+ type: string
27809
+ description: Identity provider behind the connection.
27810
+ enum:
27811
+ - okta
27812
+ - entra
27813
+ - generic
27814
+ IdPConnectionStatus:
27815
+ type: string
27816
+ description: |
27817
+ Status of the connection.
27818
+ - `pending`: GitBook hasn't seen the identity provider use the connection yet.
27819
+ - `ready`: A member signed in with SAML through the connection, or the identity provider sent an authenticated SCIM request.
27820
+ enum:
27821
+ - pending
27822
+ - ready
27823
+ SAMLProviderDefaultRole:
27824
+ description: |
27825
+ 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.
27826
+ oneOf:
27827
+ - $ref: '#/components/schemas/MemberRole'
27828
+ - type: 'null'
27829
+ - type: string
27830
+ enum:
27831
+ - default
27832
+ - domain
27833
+ SAMLProviderEntityID:
27834
+ type: string
27835
+ maxLength: 1024
27836
+ SAMLProviderCertificate:
27837
+ type: string
27838
+ maxLength: 10000
27839
+ SAMLProviderDomainStatus:
27840
+ type: string
27841
+ description: |
27842
+ State of a SAML provider's email domain in the organization.
27843
+ - `verified`: People with an email on this domain can sign in through the provider.
27844
+ - `pending`, `error`, `legacy`: The domain isn't verified yet, so it doesn't let anyone sign in.
27845
+ - `removed`: The organization no longer has this domain.
27846
+ enum:
27847
+ - verified
27848
+ - pending
27849
+ - error
27850
+ - legacy
27851
+ - removed
27852
+ SAMLProviderDomain:
27853
+ type: object
27854
+ description: An email domain of a SAML provider, with its verification state in the organization.
27855
+ properties:
27856
+ domain:
27857
+ type: string
27858
+ status:
27859
+ $ref: '#/components/schemas/SAMLProviderDomainStatus'
27860
+ required:
27861
+ - domain
27862
+ - status
27863
+ OrganizationIdPConnection:
27864
+ type: object
27865
+ description: |
27866
+ A connection to an identity provider, which signs organization members in with SAML and provisions them with SCIM.
27867
+ properties:
27868
+ object:
27869
+ type: string
27870
+ description: The object type, which is always "idp-connection"
27871
+ enum:
27872
+ - idp-connection
27873
+ id:
27874
+ type: string
27875
+ description: Unique identifier of the connection
27876
+ label:
27877
+ $ref: '#/components/schemas/IdPConnectionLabel'
27878
+ provider:
27879
+ $ref: '#/components/schemas/IdPConnectionProvider'
27880
+ status:
27881
+ $ref: '#/components/schemas/IdPConnectionStatus'
27882
+ defaultRole:
27883
+ $ref: '#/components/schemas/SAMLProviderDefaultRole'
27884
+ defaultTeam:
27885
+ $ref: '#/components/schemas/OrganizationTeam'
27886
+ defaultTeamFromDomain:
27887
+ type: boolean
27888
+ description: |
27889
+ Whether people join the team of the verified email domain they signed in with, instead of `defaultTeam`.
27890
+ saml:
27891
+ type: object
27892
+ description: SAML sign-in through the connection.
27893
+ properties:
27894
+ ssoURL:
27895
+ description: The identity provider's single sign-on URL. Absent until it is set.
27896
+ $ref: '#/components/schemas/URL'
27897
+ entityID:
27898
+ description: Entity ID of the identity provider. Absent until it is set.
27899
+ $ref: '#/components/schemas/SAMLProviderEntityID'
27900
+ certificate:
27901
+ description: X.509 certificate of the identity provider. Absent until it is set.
27902
+ $ref: '#/components/schemas/SAMLProviderCertificate'
27903
+ domains:
27904
+ type: array
27905
+ description: |
27906
+ Email domains the connection signs people in for. Absent on connections created before domains existed, which accept any email.
27907
+ items:
27908
+ $ref: '#/components/schemas/SAMLProviderDomain'
27909
+ service:
27910
+ type: object
27911
+ description: Service provider values to configure in the identity provider.
27912
+ properties:
27913
+ acsURL:
27914
+ type: string
27915
+ description: Assertion Consumer Service (ACS) URL
27916
+ format: uri
27917
+ startURL:
27918
+ type: string
27919
+ description: Start URL for the identity provider
27920
+ format: uri
27921
+ entityID:
27922
+ $ref: '#/components/schemas/SAMLProviderEntityID'
27923
+ required:
27924
+ - acsURL
27925
+ - startURL
27926
+ - entityID
27927
+ lastUsedAt:
27928
+ description: Date of the last successful sign-in through the connection
27929
+ $ref: '#/components/schemas/Timestamp'
27930
+ required:
27931
+ - service
27932
+ scim:
27933
+ type: object
27934
+ description: |
27935
+ SCIM provisioning through the connection. Absent on connections created before SCIM, until their SCIM token is created.
27936
+ properties:
27937
+ baseURL:
27938
+ description: SCIM base URL to configure in the identity provider
27939
+ $ref: '#/components/schemas/URL'
27940
+ tokenHint:
27941
+ type: string
27942
+ description: Last characters of the current token, to identify it
27943
+ tokenCreatedAt:
27944
+ description: Date the current token was created
27945
+ $ref: '#/components/schemas/Timestamp'
27946
+ lastUsedAt:
27947
+ description: Date of the last request authenticated with the token
27948
+ $ref: '#/components/schemas/Timestamp'
27949
+ required:
27950
+ - baseURL
27951
+ - tokenHint
27952
+ - tokenCreatedAt
27953
+ createdAt:
27954
+ description: Date of creation
27955
+ $ref: '#/components/schemas/Timestamp'
27956
+ updatedAt:
27957
+ description: Date of the last update
27958
+ $ref: '#/components/schemas/Timestamp'
27959
+ urls:
27960
+ type: object
27961
+ description: URLs associated with the object
27962
+ properties:
27963
+ location:
27964
+ description: URL of the connection in the API
27965
+ $ref: '#/components/schemas/URL'
27966
+ required:
27967
+ - location
27968
+ required:
27969
+ - object
27970
+ - id
27971
+ - label
27972
+ - provider
27973
+ - status
27974
+ - defaultRole
27975
+ - defaultTeamFromDomain
27976
+ - saml
27977
+ - createdAt
27978
+ - updatedAt
27979
+ - urls
27980
+ SAMLProviderDomains:
27981
+ type: array
27982
+ description: |
27983
+ 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.
27984
+ maxItems: 50
27985
+ uniqueItems: true
27986
+ items:
27987
+ type: string
27988
+ minLength: 1
27989
+ maxLength: 255
27990
+ OrganizationIdPConnectionWithToken:
27991
+ description: |
27992
+ An identity provider connection, with the SCIM token the request created. The token can't be retrieved again.
27993
+ type: object
27994
+ properties:
27995
+ connection:
27996
+ $ref: '#/components/schemas/OrganizationIdPConnection'
27997
+ token:
27998
+ type: string
27999
+ description: SCIM bearer token to configure in the identity provider.
28000
+ required:
28001
+ - connection
28002
+ - token
27400
28003
  Email:
27401
28004
  type: string
27402
28005
  format: email
@@ -28551,22 +29154,6 @@ components:
28551
29154
  type: string
28552
29155
  minLength: 1
28553
29156
  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
29157
  SAMLProviderStatus:
28571
29158
  type: string
28572
29159
  description: |
@@ -28576,30 +29163,6 @@ components:
28576
29163
  enum:
28577
29164
  - active
28578
29165
  - 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
29166
  OrganizationSAMLProvider:
28604
29167
  type: object
28605
29168
  properties:
@@ -28677,16 +29240,6 @@ components:
28677
29240
  - status
28678
29241
  - service
28679
29242
  - 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
29243
  OrganizationDomainStatus:
28691
29244
  type: string
28692
29245
  description: |
@@ -28774,13 +29327,6 @@ components:
28774
29327
  description: Name of the SCIM connection, shown to organization admins.
28775
29328
  minLength: 1
28776
29329
  maxLength: 100
28777
- IdPConnectionProvider:
28778
- type: string
28779
- description: Identity provider behind the connection.
28780
- enum:
28781
- - okta
28782
- - entra
28783
- - generic
28784
29330
  OrganizationSCIMConnection:
28785
29331
  type: object
28786
29332
  description: A SCIM connection through which an identity provider provisions organization members.
@@ -37779,69 +38325,106 @@ components:
37779
38325
  - redirect
37780
38326
  discriminator:
37781
38327
  propertyName: target
37782
- PublishedSiteContent:
38328
+ PublishedSiteContentLive:
37783
38329
  type: object
37784
- title: Site Content
38330
+ title: Live content
38331
+ description: Site content at the live revision of its spaces.
38332
+ properties: {}
38333
+ PublishedSiteContentAtRevision:
38334
+ type: object
38335
+ title: Content at a revision
38336
+ description: Site content previewed at a revision of its space.
37785
38337
  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
38338
  revision:
37802
38339
  type: string
37803
38340
  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:
38341
+ required:
38342
+ - revision
38343
+ PublishedSiteContentInChangeRequest:
38344
+ type: object
38345
+ title: Content in a change request
38346
+ description: Site content previewed in a change request of its space.
38347
+ properties:
38348
+ changeRequest:
37826
38349
  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:
38350
+ description: Identifier of the change request being previewed in this URL.
38351
+ required:
38352
+ - changeRequest
38353
+ PublishedSiteContentAtSiteRevision:
38354
+ type: object
38355
+ title: Content at a site revision
38356
+ 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.'
38357
+ properties:
38358
+ siteRevision:
37829
38359
  type: string
37830
- description: The canonical URL of the resolution.
37831
- preview:
37832
- type: boolean
37833
- description: Whether the URL is a preview URL
38360
+ description: Identifier of the site revision being previewed in this URL.
37834
38361
  required:
37835
- - site
37836
- - siteSpace
37837
- - space
37838
- - pathname
37839
- - basePath
37840
- - siteBasePath
37841
- - apiToken
37842
- - organization
37843
- - complete
37844
- - canonicalUrl
38362
+ - siteRevision
38363
+ PublishedSiteContent:
38364
+ type: object
38365
+ title: Site Content
38366
+ 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.'
38367
+ allOf:
38368
+ - type: object
38369
+ properties:
38370
+ site:
38371
+ type: string
38372
+ description: ID of the site matching.
38373
+ siteSection:
38374
+ type: string
38375
+ description: ID of the site-section matching.
38376
+ siteSpace:
38377
+ type: string
38378
+ description: ID of the site-space matching.
38379
+ space:
38380
+ type: string
38381
+ description: ID of the space matching.
38382
+ pathname:
38383
+ type: string
38384
+ description: Path of the content relative to the input URL being resolved
38385
+ basePath:
38386
+ type: string
38387
+ description: Prefix of the path in the input URL being resolved
38388
+ siteBasePath:
38389
+ type: string
38390
+ description: Prefix of the site path in the input URL being resolved
38391
+ apiToken:
38392
+ type: string
38393
+ description: Short-lived API token to fetch content related to the space in the context of the URL.
38394
+ organization:
38395
+ type: string
38396
+ description: ID of the organization.
38397
+ shareKey:
38398
+ type: string
38399
+ description: Share link key of the site in case the site was published with share-links.
38400
+ complete:
38401
+ type: boolean
38402
+ 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.
38403
+ contextId:
38404
+ type: string
38405
+ 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).
38406
+ canonicalUrl:
38407
+ type: string
38408
+ description: The canonical URL of the resolution.
38409
+ preview:
38410
+ type: boolean
38411
+ description: Whether the URL is a preview URL
38412
+ required:
38413
+ - site
38414
+ - siteSpace
38415
+ - space
38416
+ - pathname
38417
+ - basePath
38418
+ - siteBasePath
38419
+ - apiToken
38420
+ - organization
38421
+ - complete
38422
+ - canonicalUrl
38423
+ - oneOf:
38424
+ - $ref: '#/components/schemas/PublishedSiteContentLive'
38425
+ - $ref: '#/components/schemas/PublishedSiteContentAtRevision'
38426
+ - $ref: '#/components/schemas/PublishedSiteContentInChangeRequest'
38427
+ - $ref: '#/components/schemas/PublishedSiteContentAtSiteRevision'
37845
38428
  PublishedSiteContentLookup:
37846
38429
  oneOf:
37847
38430
  - $ref: '#/components/schemas/PublishedContentRedirect'
@@ -40382,6 +40965,19 @@ components:
40382
40965
  required:
40383
40966
  - channel
40384
40967
  - organization
40968
+ APIChannelOrganizationIdPConnections:
40969
+ type: object
40970
+ description: Subscription channel for changes in the identity provider connections of an organization.
40971
+ properties:
40972
+ channel:
40973
+ type: string
40974
+ enum:
40975
+ - organization-idp-connections
40976
+ organization:
40977
+ type: string
40978
+ required:
40979
+ - channel
40980
+ - organization
40385
40981
  APIChannelOrganizationCustomFonts:
40386
40982
  type: object
40387
40983
  description: Subscription channel for changes in custom fonts in an organization.
@@ -40953,6 +41549,7 @@ components:
40953
41549
  - $ref: '#/components/schemas/APIChannelOrganizationTranslationsGlossary'
40954
41550
  - $ref: '#/components/schemas/APIChannelOrganizationSCIMConnections'
40955
41551
  - $ref: '#/components/schemas/APIChannelOrganizationDomains'
41552
+ - $ref: '#/components/schemas/APIChannelOrganizationIdPConnections'
40956
41553
  - $ref: '#/components/schemas/APIChannelOrganizationCustomFonts'
40957
41554
  - $ref: '#/components/schemas/APIChannelOrganizationAgentInstructions'
40958
41555
  - $ref: '#/components/schemas/APIChannelOrganizationChangeRequests'