@gitbook/api 0.211.0 → 0.212.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/dist/client.d.ts CHANGED
@@ -648,8 +648,8 @@ export declare enum OpenAPISpecProcessingState {
648
648
  Progress = "progress",
649
649
  Complete = "complete"
650
650
  }
651
- /** Identity provider that provisions members through the SCIM connection. */
652
- export declare enum SCIMConnectionProvider {
651
+ /** Identity provider behind the connection. */
652
+ export declare enum IdPConnectionProvider {
653
653
  Okta = "okta",
654
654
  Entra = "entra",
655
655
  Generic = "generic"
@@ -1642,6 +1642,12 @@ export interface PasskeyRegistrationResponse {
1642
1642
  clientExtensionResults: Record<string, any>;
1643
1643
  authenticatorAttachment?: "platform" | "cross-platform";
1644
1644
  }
1645
+ /** WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser. */
1646
+ export interface PasskeySignInOptions {
1647
+ /** Single-use challenge the passkey must sign. */
1648
+ challenge: string;
1649
+ [key: string]: any;
1650
+ }
1645
1651
  /** WebAuthn options for creating a passkey (PublicKeyCredentialCreationOptionsJSON), to pass unchanged to the browser. */
1646
1652
  export interface PasskeyRegistrationOptions {
1647
1653
  /** Single-use challenge the new passkey must sign. */
@@ -1677,10 +1683,15 @@ export interface UserAPIToken {
1677
1683
  label: APITokenLabel;
1678
1684
  /** The API token creation date. */
1679
1685
  createdAt: Timestamp;
1680
- /** Whether the API token can no longer be used to authenticate, because it was revoked or has expired. */
1686
+ /**
1687
+ * Whether the API token can no longer be used to authenticate, because it was revoked or has expired. Deprecated, use `revokedAt` instead.
1688
+ * @deprecated
1689
+ */
1681
1690
  revoked: boolean;
1682
1691
  /** When the API token stops authenticating. Absent for a token that never expires. */
1683
1692
  expiresAt?: Timestamp;
1693
+ /** When the API token was revoked. Absent when it was not revoked. */
1694
+ revokedAt?: Timestamp;
1684
1695
  /**
1685
1696
  * IP rules restricting where the token can be used from. Absent when unrestricted.
1686
1697
  * @maxItems 20
@@ -4080,6 +4091,12 @@ export type CustomizationSuggestedQuestions = CustomizationSuggestedQuestion[];
4080
4091
  * @maxLength 10000
4081
4092
  */
4082
4093
  export type CustomizationAIInstructions = string;
4094
+ /**
4095
+ * Conditions restricting page actions to the visitors matching them, keyed by page action type.
4096
+ * A page action without a condition is shown to every visitor. Only enabled page actions can have
4097
+ * a condition, and the `assistant` action cannot have one.
4098
+ */
4099
+ export type CustomizationPageActionConditions = Record<CustomizationPageActionType, Expression>;
4083
4100
  /**
4084
4101
  * A handle on a social platform, without prefixes like the @ symbol.
4085
4102
  * @minLength 1
@@ -4246,6 +4263,13 @@ export interface SiteCustomizationSettingsBase {
4246
4263
  * When the menu is off, the assistant stays reachable from the header via `ai.mode`.
4247
4264
  */
4248
4265
  items: CustomizationPageActionType[];
4266
+ /**
4267
+ * Conditions restricting enabled page actions to the visitors matching them. Returned by the
4268
+ * customization endpoints when a page action has one, and left out of published content,
4269
+ * where they are already applied to the visitor. When updating, leaving it out keeps the
4270
+ * current conditions and an empty object removes them.
4271
+ */
4272
+ conditions?: CustomizationPageActionConditions;
4249
4273
  };
4250
4274
  externalLinks: {
4251
4275
  /**
@@ -7382,8 +7406,8 @@ export interface OrganizationSCIMConnection {
7382
7406
  id: string;
7383
7407
  /** Name of the SCIM connection, shown to organization admins. */
7384
7408
  label: SCIMConnectionLabel;
7385
- /** Identity provider that provisions members through the SCIM connection. */
7386
- provider: SCIMConnectionProvider;
7409
+ /** Identity provider behind the connection. */
7410
+ provider: IdPConnectionProvider;
7387
7411
  /** SCIM base URL to configure in the identity provider */
7388
7412
  baseURL: URL;
7389
7413
  /** Last characters of the current token, to identify it */
@@ -10710,12 +10734,6 @@ export interface PasskeyAuthenticationResponse {
10710
10734
  clientExtensionResults: Record<string, any>;
10711
10735
  authenticatorAttachment?: "platform" | "cross-platform";
10712
10736
  }
10713
- /** WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser. */
10714
- export interface PasskeySignInOptions {
10715
- /** Single-use challenge the passkey must sign. */
10716
- challenge: string;
10717
- [key: string]: any;
10718
- }
10719
10737
  export interface UnsplashImage {
10720
10738
  kind: "unsplash_image";
10721
10739
  id: string;
@@ -16945,8 +16963,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16945
16963
  createOrganizationScimConnection: (organizationId: EntityId, data: {
16946
16964
  /** Name of the SCIM connection, shown to organization admins. */
16947
16965
  label: SCIMConnectionLabel;
16948
- /** Identity provider that provisions members through the SCIM connection. */
16949
- provider: SCIMConnectionProvider;
16966
+ /** Identity provider behind the connection. */
16967
+ provider: IdPConnectionProvider;
16950
16968
  }, params?: RequestParams) => Promise<HttpResponse<OrganizationSCIMConnectionWithToken, {
16951
16969
  error: {
16952
16970
  /** @format int32 */
@@ -18067,6 +18085,45 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
18067
18085
  message: string;
18068
18086
  };
18069
18087
  }>>;
18088
+ /**
18089
+ * @description Merges every space edited in the change request into its published content, as one publication: either all of them are published or none of them are. If any space reports conflicts, nothing is published and those spaces are listed so they can be resolved and the change request merged again.
18090
+ *
18091
+ * @tags site-change-requests
18092
+ * @name MergeSiteChangeRequest
18093
+ * @summary Merge a site change request into the site's live content
18094
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/change-requests/{changeRequestId}/merge
18095
+ * @secure
18096
+ */
18097
+ mergeSiteChangeRequest: (organizationId: EntityId, siteId: string, changeRequestId: EntityId, params?: RequestParams) => Promise<HttpResponse<{
18098
+ /** "merge" when every space was published, "conflicts" when nothing was published. Each space that conflicts now serves a revision holding them, the same as a space change request, so read the change request's spaces to find which. */
18099
+ result: "merge" | "conflicts";
18100
+ /** ID of the site revision recording the merge. Absent when the result is "conflicts", since nothing was published. */
18101
+ revision?: string;
18102
+ }, {
18103
+ error: {
18104
+ /** @format int32 */
18105
+ code: 403;
18106
+ message: string;
18107
+ };
18108
+ } | {
18109
+ error: {
18110
+ /** @format int32 */
18111
+ code: 404;
18112
+ message: string;
18113
+ };
18114
+ } | {
18115
+ error: {
18116
+ /** @format int32 */
18117
+ code: 409;
18118
+ message: string;
18119
+ };
18120
+ } | {
18121
+ error: {
18122
+ /** @format int32 */
18123
+ code: 412;
18124
+ message: string;
18125
+ };
18126
+ }>>;
18070
18127
  /**
18071
18128
  * @description Returns a paginated list of share links configured for the site. Share links grant access to a private site without requiring full authentication. Use this to audit existing share links, check their active status, or find a link ID before updating or revoking it.
18072
18129
  *
@@ -152,7 +152,7 @@ export declare const SAMLPROVIDER_DOMAIN_STATUS_ENUM: ["verified", "pending", "e
152
152
  export declare const ORGANIZATION_DOMAIN_STATUS_ENUM: ["legacy", "pending", "verified", "error"];
153
153
  export declare const SCIMCONNECTION_LABEL_MAX_LENGTH = 100;
154
154
  export declare const SCIMCONNECTION_LABEL_MIN_LENGTH = 1;
155
- export declare const SCIMCONNECTION_PROVIDER_ENUM: ["okta", "entra", "generic"];
155
+ export declare const ID_PCONNECTION_PROVIDER_ENUM: ["okta", "entra", "generic"];
156
156
  export declare const OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
157
157
  export declare const OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
158
158
  export declare const OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
package/dist/index.cjs CHANGED
@@ -360,6 +360,7 @@ __export(src_exports, {
360
360
  GitSyncRunState: () => GitSyncRunState,
361
361
  HttpClient: () => HttpClient,
362
362
  ICON_MAX_LENGTH: () => ICON_MAX_LENGTH,
363
+ ID_PCONNECTION_PROVIDER_ENUM: () => ID_PCONNECTION_PROVIDER_ENUM,
363
364
  INTEGRATION_CATEGORY_ENUM: () => INTEGRATION_CATEGORY_ENUM,
364
365
  INTEGRATION_DESCRIPTION_MAX_LENGTH: () => INTEGRATION_DESCRIPTION_MAX_LENGTH,
365
366
  INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM: () => INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM,
@@ -373,6 +374,7 @@ __export(src_exports, {
373
374
  INTEGRATION_TITLE_MAX_LENGTH: () => INTEGRATION_TITLE_MAX_LENGTH,
374
375
  INTEGRATION_TITLE_MIN_LENGTH: () => INTEGRATION_TITLE_MIN_LENGTH,
375
376
  INTEGRATION_VISIBILITY_ENUM: () => INTEGRATION_VISIBILITY_ENUM,
377
+ IdPConnectionProvider: () => IdPConnectionProvider,
376
378
  IntegrationCategory: () => IntegrationCategory,
377
379
  IntegrationInstallationSiteSelection: () => IntegrationInstallationSiteSelection,
378
380
  IntegrationInstallationSpaceSelection: () => IntegrationInstallationSpaceSelection,
@@ -443,8 +445,6 @@ __export(src_exports, {
443
445
  SAMLProviderStatus: () => SAMLProviderStatus,
444
446
  SCIMCONNECTION_LABEL_MAX_LENGTH: () => SCIMCONNECTION_LABEL_MAX_LENGTH,
445
447
  SCIMCONNECTION_LABEL_MIN_LENGTH: () => SCIMCONNECTION_LABEL_MIN_LENGTH,
446
- SCIMCONNECTION_PROVIDER_ENUM: () => SCIMCONNECTION_PROVIDER_ENUM,
447
- SCIMConnectionProvider: () => SCIMConnectionProvider,
448
448
  SHA256_MAX_LENGTH: () => SHA256_MAX_LENGTH,
449
449
  SHA256_MIN_LENGTH: () => SHA256_MIN_LENGTH,
450
450
  SHARE_LINK_NAME_MAX_LENGTH: () => SHARE_LINK_NAME_MAX_LENGTH,
@@ -618,7 +618,7 @@ module.exports = __toCommonJS(src_exports);
618
618
 
619
619
  // package.json
620
620
  var name = "@gitbook/api";
621
- var version = "0.211.0";
621
+ var version = "0.212.0";
622
622
 
623
623
  // src/client.ts
624
624
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1403,12 +1403,12 @@ var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2)
1403
1403
  OpenAPISpecProcessingState2["Complete"] = "complete";
1404
1404
  return OpenAPISpecProcessingState2;
1405
1405
  })(OpenAPISpecProcessingState || {});
1406
- var SCIMConnectionProvider = /* @__PURE__ */ ((SCIMConnectionProvider2) => {
1407
- SCIMConnectionProvider2["Okta"] = "okta";
1408
- SCIMConnectionProvider2["Entra"] = "entra";
1409
- SCIMConnectionProvider2["Generic"] = "generic";
1410
- return SCIMConnectionProvider2;
1411
- })(SCIMConnectionProvider || {});
1406
+ var IdPConnectionProvider = /* @__PURE__ */ ((IdPConnectionProvider2) => {
1407
+ IdPConnectionProvider2["Okta"] = "okta";
1408
+ IdPConnectionProvider2["Entra"] = "entra";
1409
+ IdPConnectionProvider2["Generic"] = "generic";
1410
+ return IdPConnectionProvider2;
1411
+ })(IdPConnectionProvider || {});
1412
1412
  var OrganizationDomainStatus = /* @__PURE__ */ ((OrganizationDomainStatus2) => {
1413
1413
  OrganizationDomainStatus2["Legacy"] = "legacy";
1414
1414
  OrganizationDomainStatus2["Pending"] = "pending";
@@ -4420,6 +4420,13 @@ var Api = class extends HttpClient {
4420
4420
  secure: true,
4421
4421
  ...params
4422
4422
  }),
4423
+ mergeSiteChangeRequest: (organizationId, siteId, changeRequestId, params = {}) => this.request({
4424
+ path: `/orgs/${organizationId}/sites/${siteId}/change-requests/${changeRequestId}/merge`,
4425
+ method: "POST",
4426
+ secure: true,
4427
+ format: "json",
4428
+ ...params
4429
+ }),
4423
4430
  listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
4424
4431
  path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
4425
4432
  method: "GET",
@@ -5689,7 +5696,7 @@ var SAMLPROVIDER_DOMAIN_STATUS_ENUM = ["verified", "pending", "error", "legacy",
5689
5696
  var ORGANIZATION_DOMAIN_STATUS_ENUM = ["legacy", "pending", "verified", "error"];
5690
5697
  var SCIMCONNECTION_LABEL_MAX_LENGTH = 100;
5691
5698
  var SCIMCONNECTION_LABEL_MIN_LENGTH = 1;
5692
- var SCIMCONNECTION_PROVIDER_ENUM = ["okta", "entra", "generic"];
5699
+ var ID_PCONNECTION_PROVIDER_ENUM = ["okta", "entra", "generic"];
5693
5700
  var OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
5694
5701
  var OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
5695
5702
  var OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
@@ -6057,6 +6064,7 @@ var GitBookAPI = class extends Api {
6057
6064
  GitSyncRunState,
6058
6065
  HttpClient,
6059
6066
  ICON_MAX_LENGTH,
6067
+ ID_PCONNECTION_PROVIDER_ENUM,
6060
6068
  INTEGRATION_CATEGORY_ENUM,
6061
6069
  INTEGRATION_DESCRIPTION_MAX_LENGTH,
6062
6070
  INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM,
@@ -6070,6 +6078,7 @@ var GitBookAPI = class extends Api {
6070
6078
  INTEGRATION_TITLE_MAX_LENGTH,
6071
6079
  INTEGRATION_TITLE_MIN_LENGTH,
6072
6080
  INTEGRATION_VISIBILITY_ENUM,
6081
+ IdPConnectionProvider,
6073
6082
  IntegrationCategory,
6074
6083
  IntegrationInstallationSiteSelection,
6075
6084
  IntegrationInstallationSpaceSelection,
@@ -6140,8 +6149,6 @@ var GitBookAPI = class extends Api {
6140
6149
  SAMLProviderStatus,
6141
6150
  SCIMCONNECTION_LABEL_MAX_LENGTH,
6142
6151
  SCIMCONNECTION_LABEL_MIN_LENGTH,
6143
- SCIMCONNECTION_PROVIDER_ENUM,
6144
- SCIMConnectionProvider,
6145
6152
  SHA256_MAX_LENGTH,
6146
6153
  SHA256_MIN_LENGTH,
6147
6154
  SHARE_LINK_NAME_MAX_LENGTH,
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.211.0";
175
+ var version = "0.212.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -957,12 +957,12 @@ var OpenAPISpecProcessingState = /* @__PURE__ */ ((OpenAPISpecProcessingState2)
957
957
  OpenAPISpecProcessingState2["Complete"] = "complete";
958
958
  return OpenAPISpecProcessingState2;
959
959
  })(OpenAPISpecProcessingState || {});
960
- var SCIMConnectionProvider = /* @__PURE__ */ ((SCIMConnectionProvider2) => {
961
- SCIMConnectionProvider2["Okta"] = "okta";
962
- SCIMConnectionProvider2["Entra"] = "entra";
963
- SCIMConnectionProvider2["Generic"] = "generic";
964
- return SCIMConnectionProvider2;
965
- })(SCIMConnectionProvider || {});
960
+ var IdPConnectionProvider = /* @__PURE__ */ ((IdPConnectionProvider2) => {
961
+ IdPConnectionProvider2["Okta"] = "okta";
962
+ IdPConnectionProvider2["Entra"] = "entra";
963
+ IdPConnectionProvider2["Generic"] = "generic";
964
+ return IdPConnectionProvider2;
965
+ })(IdPConnectionProvider || {});
966
966
  var OrganizationDomainStatus = /* @__PURE__ */ ((OrganizationDomainStatus2) => {
967
967
  OrganizationDomainStatus2["Legacy"] = "legacy";
968
968
  OrganizationDomainStatus2["Pending"] = "pending";
@@ -3974,6 +3974,13 @@ var Api = class extends HttpClient {
3974
3974
  secure: true,
3975
3975
  ...params
3976
3976
  }),
3977
+ mergeSiteChangeRequest: (organizationId, siteId, changeRequestId, params = {}) => this.request({
3978
+ path: `/orgs/${organizationId}/sites/${siteId}/change-requests/${changeRequestId}/merge`,
3979
+ method: "POST",
3980
+ secure: true,
3981
+ format: "json",
3982
+ ...params
3983
+ }),
3977
3984
  listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
3978
3985
  path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
3979
3986
  method: "GET",
@@ -5243,7 +5250,7 @@ var SAMLPROVIDER_DOMAIN_STATUS_ENUM = ["verified", "pending", "error", "legacy",
5243
5250
  var ORGANIZATION_DOMAIN_STATUS_ENUM = ["legacy", "pending", "verified", "error"];
5244
5251
  var SCIMCONNECTION_LABEL_MAX_LENGTH = 100;
5245
5252
  var SCIMCONNECTION_LABEL_MIN_LENGTH = 1;
5246
- var SCIMCONNECTION_PROVIDER_ENUM = ["okta", "entra", "generic"];
5253
+ var ID_PCONNECTION_PROVIDER_ENUM = ["okta", "entra", "generic"];
5247
5254
  var OPEN_APISPEC_SLUG_MAX_LENGTH = 100;
5248
5255
  var OPEN_APISPEC_SLUG_MIN_LENGTH = 1;
5249
5256
  var OPEN_APISPEC_SLUG_PATTERN = "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$";
@@ -5610,6 +5617,7 @@ export {
5610
5617
  GitSyncRunState,
5611
5618
  HttpClient,
5612
5619
  ICON_MAX_LENGTH,
5620
+ ID_PCONNECTION_PROVIDER_ENUM,
5613
5621
  INTEGRATION_CATEGORY_ENUM,
5614
5622
  INTEGRATION_DESCRIPTION_MAX_LENGTH,
5615
5623
  INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM,
@@ -5623,6 +5631,7 @@ export {
5623
5631
  INTEGRATION_TITLE_MAX_LENGTH,
5624
5632
  INTEGRATION_TITLE_MIN_LENGTH,
5625
5633
  INTEGRATION_VISIBILITY_ENUM,
5634
+ IdPConnectionProvider,
5626
5635
  IntegrationCategory,
5627
5636
  IntegrationInstallationSiteSelection,
5628
5637
  IntegrationInstallationSpaceSelection,
@@ -5693,8 +5702,6 @@ export {
5693
5702
  SAMLProviderStatus,
5694
5703
  SCIMCONNECTION_LABEL_MAX_LENGTH,
5695
5704
  SCIMCONNECTION_LABEL_MIN_LENGTH,
5696
- SCIMCONNECTION_PROVIDER_ENUM,
5697
- SCIMConnectionProvider,
5698
5705
  SHA256_MAX_LENGTH,
5699
5706
  SHA256_MIN_LENGTH,
5700
5707
  SHARE_LINK_NAME_MAX_LENGTH,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.211.0",
7
+ "version": "0.212.0",
8
8
  "license": "Apache-2.0",
9
9
  "sideEffects": false,
10
10
  "files": [
package/spec/openapi.json CHANGED
@@ -12237,7 +12237,7 @@
12237
12237
  "$ref": "#/components/schemas/SCIMConnectionLabel"
12238
12238
  },
12239
12239
  "provider": {
12240
- "$ref": "#/components/schemas/SCIMConnectionProvider"
12240
+ "$ref": "#/components/schemas/IdPConnectionProvider"
12241
12241
  }
12242
12242
  },
12243
12243
  "required": [
@@ -15704,6 +15704,83 @@
15704
15704
  }
15705
15705
  }
15706
15706
  },
15707
+ "/orgs/{organizationId}/sites/{siteId}/change-requests/{changeRequestId}/merge": {
15708
+ "post": {
15709
+ "operationId": "mergeSiteChangeRequest",
15710
+ "summary": "Merge a site change request into the site's live content",
15711
+ "description": "Merges every space edited in the change request into its published content, as one publication: either all of them are published or none of them are. If any space reports conflicts, nothing is published and those spaces are listed so they can be resolved and the change request merged again.",
15712
+ "x-internal": true,
15713
+ "tags": [
15714
+ "site-change-requests"
15715
+ ],
15716
+ "security": [
15717
+ {
15718
+ "user": []
15719
+ },
15720
+ {
15721
+ "oauth": [
15722
+ "change-request:merge"
15723
+ ]
15724
+ }
15725
+ ],
15726
+ "parameters": [
15727
+ {
15728
+ "$ref": "#/components/parameters/organizationId"
15729
+ },
15730
+ {
15731
+ "$ref": "#/components/parameters/siteId"
15732
+ },
15733
+ {
15734
+ "$ref": "#/components/parameters/siteChangeRequestId"
15735
+ }
15736
+ ],
15737
+ "responses": {
15738
+ "200": {
15739
+ "description": "The change request has been merged, or reported conflicts to resolve.",
15740
+ "content": {
15741
+ "application/json": {
15742
+ "schema": {
15743
+ "type": "object",
15744
+ "properties": {
15745
+ "result": {
15746
+ "type": "string",
15747
+ "enum": [
15748
+ "merge",
15749
+ "conflicts"
15750
+ ],
15751
+ "description": "\"merge\" when every space was published, \"conflicts\" when nothing was published. Each space that conflicts now serves a revision holding them, the same as a space change request, so read the change request's spaces to find which."
15752
+ },
15753
+ "revision": {
15754
+ "type": "string",
15755
+ "description": "ID of the site revision recording the merge. Absent when the result is \"conflicts\", since nothing was published."
15756
+ }
15757
+ },
15758
+ "required": [
15759
+ "result"
15760
+ ]
15761
+ }
15762
+ }
15763
+ }
15764
+ },
15765
+ "403": {
15766
+ "description": "The user cannot merge the change request, or a space it forked is not on the merge queue yet.",
15767
+ "$ref": "#/components/responses/ForbiddenError"
15768
+ },
15769
+ "404": {
15770
+ "description": "The change request could not be found.",
15771
+ "$ref": "#/components/responses/NotFoundError"
15772
+ },
15773
+ "409": {
15774
+ "description": "The change request has already been merged or is archived, or Git Sync is importing into a space it edited, or its last import there failed, or one of its spaces kept moving while the merge ran. Nothing was published in the last case, and the merge can be tried again.",
15775
+ "$ref": "#/components/responses/ConflictError"
15776
+ },
15777
+ "412": {
15778
+ "description": "The change request has no space to merge, or a space it forked has moved to another organization since.",
15779
+ "$ref": "#/components/responses/PreconditionFailedError"
15780
+ }
15781
+ }
15782
+ }
15783
+ },
15707
15784
  "/orgs/{organizationId}/sites/{siteId}/share-links": {
15708
15785
  "get": {
15709
15786
  "operationId": "listSiteShareLinks",
@@ -27000,6 +27077,20 @@
27000
27077
  "clientExtensionResults"
27001
27078
  ]
27002
27079
  },
27080
+ "PasskeySignInOptions": {
27081
+ "type": "object",
27082
+ "description": "WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser.",
27083
+ "additionalProperties": true,
27084
+ "properties": {
27085
+ "challenge": {
27086
+ "type": "string",
27087
+ "description": "Single-use challenge the passkey must sign."
27088
+ }
27089
+ },
27090
+ "required": [
27091
+ "challenge"
27092
+ ]
27093
+ },
27003
27094
  "PasskeyRegistrationOptions": {
27004
27095
  "type": "object",
27005
27096
  "description": "WebAuthn options for creating a passkey (PublicKeyCredentialCreationOptionsJSON), to pass unchanged to the browser.",
@@ -27084,12 +27175,17 @@
27084
27175
  },
27085
27176
  "revoked": {
27086
27177
  "type": "boolean",
27087
- "description": "Whether the API token can no longer be used to authenticate, because it was revoked or has expired."
27178
+ "deprecated": true,
27179
+ "description": "Whether the API token can no longer be used to authenticate, because it was revoked or has expired. Deprecated, use `revokedAt` instead."
27088
27180
  },
27089
27181
  "expiresAt": {
27090
27182
  "$ref": "#/components/schemas/Timestamp",
27091
27183
  "description": "When the API token stops authenticating. Absent for a token that never expires."
27092
27184
  },
27185
+ "revokedAt": {
27186
+ "$ref": "#/components/schemas/Timestamp",
27187
+ "description": "When the API token was revoked. Absent when it was not revoked."
27188
+ },
27093
27189
  "ipRules": {
27094
27190
  "type": "array",
27095
27191
  "description": "IP rules restricting where the token can be used from. Absent when unrestricted.",
@@ -36515,6 +36611,16 @@
36515
36611
  "pdf"
36516
36612
  ]
36517
36613
  },
36614
+ "CustomizationPageActionConditions": {
36615
+ "type": "object",
36616
+ "description": "Conditions restricting page actions to the visitors matching them, keyed by page action type.\nA page action without a condition is shown to every visitor. Only enabled page actions can have\na condition, and the `assistant` action cannot have one.\n",
36617
+ "propertyNames": {
36618
+ "$ref": "#/components/schemas/CustomizationPageActionType"
36619
+ },
36620
+ "additionalProperties": {
36621
+ "$ref": "#/components/schemas/Expression"
36622
+ }
36623
+ },
36518
36624
  "SiteExternalLinksTarget": {
36519
36625
  "type": "string",
36520
36626
  "description": "How external links should open when clicked.\n- `self`: External links open in the current tab.\n- `blank`: External links open in a new browser tab.\n",
@@ -36858,6 +36964,10 @@
36858
36964
  "items": {
36859
36965
  "$ref": "#/components/schemas/CustomizationPageActionType"
36860
36966
  }
36967
+ },
36968
+ "conditions": {
36969
+ "description": "Conditions restricting enabled page actions to the visitors matching them. Returned by the\ncustomization endpoints when a page action has one, and left out of published content,\nwhere they are already applied to the visitor. When updating, leaving it out keeps the\ncurrent conditions and an empty object removes them.\n",
36970
+ "$ref": "#/components/schemas/CustomizationPageActionConditions"
36861
36971
  }
36862
36972
  },
36863
36973
  "required": [
@@ -46596,9 +46706,9 @@
46596
46706
  "minLength": 1,
46597
46707
  "maxLength": 100
46598
46708
  },
46599
- "SCIMConnectionProvider": {
46709
+ "IdPConnectionProvider": {
46600
46710
  "type": "string",
46601
- "description": "Identity provider that provisions members through the SCIM connection.",
46711
+ "description": "Identity provider behind the connection.",
46602
46712
  "enum": [
46603
46713
  "okta",
46604
46714
  "entra",
@@ -46624,7 +46734,7 @@
46624
46734
  "$ref": "#/components/schemas/SCIMConnectionLabel"
46625
46735
  },
46626
46736
  "provider": {
46627
- "$ref": "#/components/schemas/SCIMConnectionProvider"
46737
+ "$ref": "#/components/schemas/IdPConnectionProvider"
46628
46738
  },
46629
46739
  "baseURL": {
46630
46740
  "description": "SCIM base URL to configure in the identity provider",
@@ -58872,20 +58982,6 @@
58872
58982
  "clientExtensionResults"
58873
58983
  ]
58874
58984
  },
58875
- "PasskeySignInOptions": {
58876
- "type": "object",
58877
- "description": "WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser.",
58878
- "additionalProperties": true,
58879
- "properties": {
58880
- "challenge": {
58881
- "type": "string",
58882
- "description": "Single-use challenge the passkey must sign."
58883
- }
58884
- },
58885
- "required": [
58886
- "challenge"
58887
- ]
58888
- },
58889
58985
  "UnsplashImage": {
58890
58986
  "type": "object",
58891
58987
  "required": [
package/spec/openapi.yaml CHANGED
@@ -7016,7 +7016,7 @@ paths:
7016
7016
  label:
7017
7017
  $ref: '#/components/schemas/SCIMConnectionLabel'
7018
7018
  provider:
7019
- $ref: '#/components/schemas/SCIMConnectionProvider'
7019
+ $ref: '#/components/schemas/IdPConnectionProvider'
7020
7020
  required:
7021
7021
  - label
7022
7022
  - provider
@@ -8973,6 +8973,53 @@ paths:
8973
8973
  '409':
8974
8974
  description: The change request has been merged and cannot be deleted.
8975
8975
  $ref: '#/components/responses/ConflictError'
8976
+ /orgs/{organizationId}/sites/{siteId}/change-requests/{changeRequestId}/merge:
8977
+ post:
8978
+ operationId: mergeSiteChangeRequest
8979
+ summary: Merge a site change request into the site's live content
8980
+ description: 'Merges every space edited in the change request into its published content, as one publication: either all of them are published or none of them are. If any space reports conflicts, nothing is published and those spaces are listed so they can be resolved and the change request merged again.'
8981
+ x-internal: true
8982
+ tags:
8983
+ - site-change-requests
8984
+ security:
8985
+ - user: []
8986
+ - oauth:
8987
+ - change-request:merge
8988
+ parameters:
8989
+ - $ref: '#/components/parameters/organizationId'
8990
+ - $ref: '#/components/parameters/siteId'
8991
+ - $ref: '#/components/parameters/siteChangeRequestId'
8992
+ responses:
8993
+ '200':
8994
+ description: The change request has been merged, or reported conflicts to resolve.
8995
+ content:
8996
+ application/json:
8997
+ schema:
8998
+ type: object
8999
+ properties:
9000
+ result:
9001
+ type: string
9002
+ enum:
9003
+ - merge
9004
+ - conflicts
9005
+ description: '"merge" when every space was published, "conflicts" when nothing was published. Each space that conflicts now serves a revision holding them, the same as a space change request, so read the change request''s spaces to find which.'
9006
+ revision:
9007
+ type: string
9008
+ description: ID of the site revision recording the merge. Absent when the result is "conflicts", since nothing was published.
9009
+ required:
9010
+ - result
9011
+ '403':
9012
+ description: The user cannot merge the change request, or a space it forked is not on the merge queue yet.
9013
+ $ref: '#/components/responses/ForbiddenError'
9014
+ '404':
9015
+ description: The change request could not be found.
9016
+ $ref: '#/components/responses/NotFoundError'
9017
+ '409':
9018
+ description: The change request has already been merged or is archived, or Git Sync is importing into a space it edited, or its last import there failed, or one of its spaces kept moving while the merge ran. Nothing was published in the last case, and the merge can be tried again.
9019
+ $ref: '#/components/responses/ConflictError'
9020
+ '412':
9021
+ description: The change request has no space to merge, or a space it forked has moved to another organization since.
9022
+ $ref: '#/components/responses/PreconditionFailedError'
8976
9023
  /orgs/{organizationId}/sites/{siteId}/share-links:
8977
9024
  get:
8978
9025
  operationId: listSiteShareLinks
@@ -15505,6 +15552,16 @@ components:
15505
15552
  - type
15506
15553
  - response
15507
15554
  - clientExtensionResults
15555
+ PasskeySignInOptions:
15556
+ type: object
15557
+ description: WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser.
15558
+ additionalProperties: true
15559
+ properties:
15560
+ challenge:
15561
+ type: string
15562
+ description: Single-use challenge the passkey must sign.
15563
+ required:
15564
+ - challenge
15508
15565
  PasskeyRegistrationOptions:
15509
15566
  type: object
15510
15567
  description: WebAuthn options for creating a passkey (PublicKeyCredentialCreationOptionsJSON), to pass unchanged to the browser.
@@ -15567,10 +15624,14 @@ components:
15567
15624
  description: The API token creation date.
15568
15625
  revoked:
15569
15626
  type: boolean
15570
- description: Whether the API token can no longer be used to authenticate, because it was revoked or has expired.
15627
+ deprecated: true
15628
+ description: Whether the API token can no longer be used to authenticate, because it was revoked or has expired. Deprecated, use `revokedAt` instead.
15571
15629
  expiresAt:
15572
15630
  $ref: '#/components/schemas/Timestamp'
15573
15631
  description: When the API token stops authenticating. Absent for a token that never expires.
15632
+ revokedAt:
15633
+ $ref: '#/components/schemas/Timestamp'
15634
+ description: When the API token was revoked. Absent when it was not revoked.
15574
15635
  ipRules:
15575
15636
  type: array
15576
15637
  description: IP rules restricting where the token can be used from. Absent when unrestricted.
@@ -21727,6 +21788,16 @@ components:
21727
21788
  - mcp
21728
21789
  - git
21729
21790
  - pdf
21791
+ CustomizationPageActionConditions:
21792
+ type: object
21793
+ description: |
21794
+ Conditions restricting page actions to the visitors matching them, keyed by page action type.
21795
+ A page action without a condition is shown to every visitor. Only enabled page actions can have
21796
+ a condition, and the `assistant` action cannot have one.
21797
+ propertyNames:
21798
+ $ref: '#/components/schemas/CustomizationPageActionType'
21799
+ additionalProperties:
21800
+ $ref: '#/components/schemas/Expression'
21730
21801
  SiteExternalLinksTarget:
21731
21802
  type: string
21732
21803
  description: |
@@ -21990,6 +22061,13 @@ components:
21990
22061
  When the menu is off, the assistant stays reachable from the header via `ai.mode`.
21991
22062
  items:
21992
22063
  $ref: '#/components/schemas/CustomizationPageActionType'
22064
+ conditions:
22065
+ description: |
22066
+ Conditions restricting enabled page actions to the visitors matching them. Returned by the
22067
+ customization endpoints when a page action has one, and left out of published content,
22068
+ where they are already applied to the visitor. When updating, leaving it out keeps the
22069
+ current conditions and an empty object removes them.
22070
+ $ref: '#/components/schemas/CustomizationPageActionConditions'
21993
22071
  required:
21994
22072
  - items
21995
22073
  externalLinks:
@@ -28696,9 +28774,9 @@ components:
28696
28774
  description: Name of the SCIM connection, shown to organization admins.
28697
28775
  minLength: 1
28698
28776
  maxLength: 100
28699
- SCIMConnectionProvider:
28777
+ IdPConnectionProvider:
28700
28778
  type: string
28701
- description: Identity provider that provisions members through the SCIM connection.
28779
+ description: Identity provider behind the connection.
28702
28780
  enum:
28703
28781
  - okta
28704
28782
  - entra
@@ -28718,7 +28796,7 @@ components:
28718
28796
  label:
28719
28797
  $ref: '#/components/schemas/SCIMConnectionLabel'
28720
28798
  provider:
28721
- $ref: '#/components/schemas/SCIMConnectionProvider'
28799
+ $ref: '#/components/schemas/IdPConnectionProvider'
28722
28800
  baseURL:
28723
28801
  description: SCIM base URL to configure in the identity provider
28724
28802
  $ref: '#/components/schemas/URL'
@@ -37162,16 +37240,6 @@ components:
37162
37240
  - type
37163
37241
  - response
37164
37242
  - clientExtensionResults
37165
- PasskeySignInOptions:
37166
- type: object
37167
- description: WebAuthn options for signing in with a passkey (PublicKeyCredentialRequestOptionsJSON), to pass unchanged to the browser.
37168
- additionalProperties: true
37169
- properties:
37170
- challenge:
37171
- type: string
37172
- description: Single-use challenge the passkey must sign.
37173
- required:
37174
- - challenge
37175
37243
  UnsplashImage:
37176
37244
  type: object
37177
37245
  required: