@gitbook/api 0.75.0 → 0.76.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
@@ -3004,33 +3004,35 @@ export interface IntegrationEventLog {
3004
3004
  export interface IntegrationEventTrace {
3005
3005
  logs: IntegrationEventLog[];
3006
3006
  }
3007
- /** Installation of an integration at a space level */
3008
- export interface IntegrationSpaceInstallation {
3007
+ /** Base properties of an installation of an integration on a site or space. */
3008
+ export interface IntegrationContentInstallationBase {
3009
3009
  /** Unique name identifier of the integration */
3010
3010
  integration: string;
3011
3011
  /** ID of the integration installation */
3012
3012
  installation: string;
3013
- /** The space the integration is installed on. Using the string value is deprecated in favor of space.id */
3014
- space: string | Space;
3015
3013
  status: IntegrationInstallationStatus;
3016
- /** Configuration of the integration for this space */
3014
+ /** Configuration of the integration for this site */
3017
3015
  configuration: object;
3018
3016
  /** External IDs assigned by the integration. */
3019
3017
  externalIds: IntegrationInstallationExternalIds;
3020
3018
  /** URLs associated with the object */
3021
3019
  urls: {
3022
3020
  /**
3023
- * URL of the integration's space installation in the API
3021
+ * URL of the integration's installation in the API
3024
3022
  * @format uri
3025
3023
  */
3026
3024
  location: string;
3027
3025
  /**
3028
- * Public HTTP endpoint for the integration's space installation
3026
+ * Public HTTP endpoint for the integration's installation
3029
3027
  * @format uri
3030
3028
  */
3031
3029
  publicEndpoint: string;
3032
3030
  };
3033
3031
  }
3032
+ export type IntegrationSpaceInstallation = IntegrationContentInstallationBase & {
3033
+ /** The space the integration is installed on. Using the string value is deprecated in favor of space.id */
3034
+ space: string | Space;
3035
+ };
3034
3036
  export declare enum ContentKitIcon {
3035
3037
  Close = "close",
3036
3038
  Edit = "edit",
@@ -3503,33 +3505,10 @@ export interface Site {
3503
3505
  published?: string;
3504
3506
  };
3505
3507
  }
3506
- /** Installation of an integration at a site level */
3507
- export interface IntegrationSiteInstallation {
3508
- /** Unique name identifier of the integration */
3509
- integration: string;
3510
- /** ID of the integration installation */
3511
- installation: string;
3508
+ export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
3512
3509
  /** The site the integration is installed on. Using the string value is deprecated in favor of site.id */
3513
3510
  site: string | Site;
3514
- status: IntegrationInstallationStatus;
3515
- /** Configuration of the integration for this site */
3516
- configuration: object;
3517
- /** External IDs assigned by the integration. */
3518
- externalIds: IntegrationInstallationExternalIds;
3519
- /** URLs associated with the object */
3520
- urls: {
3521
- /**
3522
- * URL of the integration's site installation in the API
3523
- * @format uri
3524
- */
3525
- location: string;
3526
- /**
3527
- * Public HTTP endpoint for the integration's site installation
3528
- * @format uri
3529
- */
3530
- publicEndpoint: string;
3531
- };
3532
- }
3511
+ };
3533
3512
  export interface UpdateIntegrationSiteInstallation {
3534
3513
  /** External IDs assigned by the integration. */
3535
3514
  externalIds?: IntegrationInstallationExternalIds;
@@ -4108,29 +4087,6 @@ export type BillingOperationPreviewResponse = {
4108
4087
  plan: BillingProduct;
4109
4088
  invoice?: BillingInvoicePreview;
4110
4089
  };
4111
- export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
4112
- /** Type of Object, always equals to "publishing-auth" */
4113
- object: 'publishing-auth';
4114
- /** Private key used to sign JWT tokens. */
4115
- privateKey: string;
4116
- /**
4117
- * URL to redirect to when the visitor auth secret is invalid.
4118
- * @format uri
4119
- */
4120
- fallbackURL?: string;
4121
- /**
4122
- * Name of the Visitor Authentication integration installed on the site (if any).
4123
- * It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
4124
- */
4125
- integration?: string;
4126
- };
4127
- export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
4128
- /**
4129
- * A fallback URL that will be used if authentication fails.
4130
- * @format uri
4131
- */
4132
- fallbackURL?: string;
4133
- };
4134
4090
  export declare enum CustomizationIconsStyle {
4135
4091
  Regular = "regular",
4136
4092
  Solid = "solid",
@@ -4219,6 +4175,39 @@ export interface SiteIntegrationScript {
4219
4175
  /** If true, the script will potentially load use cookies and visitors should be aware. */
4220
4176
  cookies: boolean;
4221
4177
  }
4178
+ export interface PublishedContentSite {
4179
+ object: 'published-content-site';
4180
+ site: Site;
4181
+ structure: SiteStructure;
4182
+ customizations: {
4183
+ site: SiteCustomizationSettings;
4184
+ siteSpaces: Record<string, SiteCustomizationSettings>;
4185
+ };
4186
+ scripts: SiteIntegrationScript[];
4187
+ }
4188
+ export type SitePublishingAuth = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
4189
+ /** Type of Object, always equals to "publishing-auth" */
4190
+ object: 'publishing-auth';
4191
+ /** Private key used to sign JWT tokens. */
4192
+ privateKey: string;
4193
+ /**
4194
+ * URL to redirect to when the visitor auth secret is invalid.
4195
+ * @format uri
4196
+ */
4197
+ fallbackURL?: string;
4198
+ /**
4199
+ * Name of the Visitor Authentication integration installed on the site (if any).
4200
+ * It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
4201
+ */
4202
+ integration?: string;
4203
+ };
4204
+ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIntegrationBackend) & {
4205
+ /**
4206
+ * A fallback URL that will be used if authentication fails.
4207
+ * @format uri
4208
+ */
4209
+ fallbackURL?: string;
4210
+ };
4222
4211
  export interface SiteSectionPointer {
4223
4212
  type: 'site-section';
4224
4213
  /** Unique identifier for the site section */
@@ -4672,6 +4661,14 @@ export interface OrganizationTransferResponse {
4672
4661
  /** The new hostname if the source organization needed to change hostname. */
4673
4662
  newSourceHostname?: string;
4674
4663
  }
4664
+ export type IntegrationEnvironmentSpaceInstallation = IntegrationContentInstallationBase & {
4665
+ /** The space the integration is installed on. */
4666
+ space: string;
4667
+ };
4668
+ export type IntegrationEnvironmentSiteInstallation = IntegrationContentInstallationBase & {
4669
+ /** The site the integration is installed on. */
4670
+ site: string;
4671
+ };
4675
4672
  /** Runtime environment provided during the execution of integration's code. */
4676
4673
  export interface IntegrationEnvironment {
4677
4674
  /**
@@ -4682,10 +4679,8 @@ export interface IntegrationEnvironment {
4682
4679
  integration: Integration;
4683
4680
  /** Installation of an integration on an account */
4684
4681
  installation?: IntegrationInstallation;
4685
- /** Installation of an integration at a space level */
4686
- spaceInstallation?: IntegrationSpaceInstallation;
4687
- /** Installation of an integration at a site level */
4688
- siteInstallation?: IntegrationSiteInstallation;
4682
+ spaceInstallation?: IntegrationEnvironmentSpaceInstallation;
4683
+ siteInstallation?: IntegrationEnvironmentSiteInstallation;
4689
4684
  /** Secrets stored on the integration and passed at runtime. */
4690
4685
  secrets: IntegrationSecrets;
4691
4686
  /**
@@ -4971,6 +4966,10 @@ export interface IntegrationSiteInstallationsChannel {
4971
4966
  integration: string;
4972
4967
  installation: string;
4973
4968
  }
4969
+ export interface PublishedContentSiteChannel {
4970
+ channel: 'published-content-site';
4971
+ site: string;
4972
+ }
4974
4973
  export interface SiteChannel {
4975
4974
  channel: 'site';
4976
4975
  site: string;
@@ -5030,7 +5029,7 @@ export interface GitSyncOperationChannel {
5030
5029
  space: string;
5031
5030
  }
5032
5031
  /** Channel to subscribe to for realtime updates. */
5033
- export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel;
5032
+ export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel;
5034
5033
  export interface GitSyncOperationChannelData {
5035
5034
  channel: 'space-gitsync-operation';
5036
5035
  /** Data passed on the channel messages for GitSync running in a space. */
@@ -9288,6 +9287,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9288
9287
  * @secure
9289
9288
  */
9290
9289
  deleteSiteById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9290
+ /**
9291
+ * No description
9292
+ *
9293
+ * @tags sites
9294
+ * @name GetPublishedContentSite
9295
+ * @summary Get the complete profile of a site in an organization to provide the published experience. It includes site, customization, structure, integration scripts etc.
9296
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/published
9297
+ * @secure
9298
+ */
9299
+ getPublishedContentSite: (organizationId: string, siteId: string, query?: {
9300
+ /** For sites published via share-links, the share key is useful to resolve published URLs. */
9301
+ shareKey?: string;
9302
+ }, params?: RequestParams) => Promise<HttpResponse<PublishedContentSite, Error | {
9303
+ error: {
9304
+ /** @format int32 */
9305
+ code: 404;
9306
+ message: string;
9307
+ };
9308
+ }>>;
9291
9309
  /**
9292
9310
  * No description
9293
9311
  *
package/dist/index.cjs CHANGED
@@ -244,7 +244,7 @@ module.exports = __toCommonJS(src_exports);
244
244
 
245
245
  // package.json
246
246
  var name = "@gitbook/api";
247
- var version = "0.75.0";
247
+ var version = "0.76.0";
248
248
 
249
249
  // src/client.ts
250
250
  var import_event_iterator = __toESM(require_node(), 1);
@@ -2888,6 +2888,14 @@ var Api = class extends HttpClient {
2888
2888
  secure: true,
2889
2889
  ...params
2890
2890
  }),
2891
+ getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
2892
+ path: `/orgs/${organizationId}/sites/${siteId}/published`,
2893
+ method: "GET",
2894
+ query,
2895
+ secure: true,
2896
+ format: "json",
2897
+ ...params
2898
+ }),
2891
2899
  publishSite: (organizationId, siteId, params = {}) => this.request({
2892
2900
  path: `/orgs/${organizationId}/sites/${siteId}/publish`,
2893
2901
  method: "POST",
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.75.0";
175
+ var version = "0.76.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -2816,6 +2816,14 @@ var Api = class extends HttpClient {
2816
2816
  secure: true,
2817
2817
  ...params
2818
2818
  }),
2819
+ getPublishedContentSite: (organizationId, siteId, query, params = {}) => this.request({
2820
+ path: `/orgs/${organizationId}/sites/${siteId}/published`,
2821
+ method: "GET",
2822
+ query,
2823
+ secure: true,
2824
+ format: "json",
2825
+ ...params
2826
+ }),
2819
2827
  publishSite: (organizationId, siteId, params = {}) => this.request({
2820
2828
  path: `/orgs/${organizationId}/sites/${siteId}/publish`,
2821
2829
  method: "POST",
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.75.0",
7
+ "version": "0.76.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -12113,6 +12113,50 @@
12113
12113
  }
12114
12114
  }
12115
12115
  },
12116
+ "/orgs/{organizationId}/sites/{siteId}/published": {
12117
+ "get": {
12118
+ "operationId": "getPublishedContentSite",
12119
+ "summary": "Get the complete profile of a site in an organization to provide the published experience. It includes site, customization, structure, integration scripts etc.",
12120
+ "tags": [
12121
+ "sites"
12122
+ ],
12123
+ "security": [
12124
+ {
12125
+ "user": []
12126
+ }
12127
+ ],
12128
+ "parameters": [
12129
+ {
12130
+ "$ref": "#/components/parameters/organizationId"
12131
+ },
12132
+ {
12133
+ "$ref": "#/components/parameters/siteId"
12134
+ },
12135
+ {
12136
+ "$ref": "#/components/parameters/siteShareKey"
12137
+ }
12138
+ ],
12139
+ "responses": {
12140
+ "200": {
12141
+ "description": "OK",
12142
+ "content": {
12143
+ "application/json": {
12144
+ "schema": {
12145
+ "$ref": "#/components/schemas/PublishedContentSite"
12146
+ }
12147
+ }
12148
+ }
12149
+ },
12150
+ "404": {
12151
+ "description": "No matching site found",
12152
+ "$ref": "#/components/responses/NotFoundError"
12153
+ },
12154
+ "default": {
12155
+ "$ref": "#/components/responses/UnexpectedError"
12156
+ }
12157
+ }
12158
+ }
12159
+ },
12116
12160
  "/orgs/{organizationId}/sites/{siteId}/publish": {
12117
12161
  "post": {
12118
12162
  "operationId": "publishSite",
@@ -25770,9 +25814,9 @@
25770
25814
  }
25771
25815
  }
25772
25816
  },
25773
- "IntegrationSpaceInstallation": {
25817
+ "IntegrationContentInstallationBase": {
25774
25818
  "type": "object",
25775
- "description": "Installation of an integration at a space level",
25819
+ "description": "Base properties of an installation of an integration on a site or space.",
25776
25820
  "properties": {
25777
25821
  "integration": {
25778
25822
  "description": "Unique name identifier of the integration",
@@ -25782,22 +25826,11 @@
25782
25826
  "description": "ID of the integration installation",
25783
25827
  "type": "string"
25784
25828
  },
25785
- "space": {
25786
- "description": "The space the integration is installed on. Using the string value is deprecated in favor of space.id",
25787
- "oneOf": [
25788
- {
25789
- "type": "string"
25790
- },
25791
- {
25792
- "$ref": "#/components/schemas/Space"
25793
- }
25794
- ]
25795
- },
25796
25829
  "status": {
25797
25830
  "$ref": "#/components/schemas/IntegrationInstallationStatus"
25798
25831
  },
25799
25832
  "configuration": {
25800
- "description": "Configuration of the integration for this space",
25833
+ "description": "Configuration of the integration for this site",
25801
25834
  "type": "object"
25802
25835
  },
25803
25836
  "externalIds": {
@@ -25809,12 +25842,12 @@
25809
25842
  "properties": {
25810
25843
  "location": {
25811
25844
  "type": "string",
25812
- "description": "URL of the integration's space installation in the API",
25845
+ "description": "URL of the integration's installation in the API",
25813
25846
  "format": "uri"
25814
25847
  },
25815
25848
  "publicEndpoint": {
25816
25849
  "type": "string",
25817
- "description": "Public HTTP endpoint for the integration's space installation",
25850
+ "description": "Public HTTP endpoint for the integration's installation",
25818
25851
  "format": "uri"
25819
25852
  }
25820
25853
  },
@@ -25827,13 +25860,38 @@
25827
25860
  "required": [
25828
25861
  "integration",
25829
25862
  "installation",
25830
- "space",
25831
25863
  "status",
25832
25864
  "configuration",
25833
25865
  "externalIds",
25834
25866
  "urls"
25835
25867
  ]
25836
25868
  },
25869
+ "IntegrationSpaceInstallation": {
25870
+ "allOf": [
25871
+ {
25872
+ "$ref": "#/components/schemas/IntegrationContentInstallationBase"
25873
+ },
25874
+ {
25875
+ "type": "object",
25876
+ "properties": {
25877
+ "space": {
25878
+ "description": "The space the integration is installed on. Using the string value is deprecated in favor of space.id",
25879
+ "oneOf": [
25880
+ {
25881
+ "type": "string"
25882
+ },
25883
+ {
25884
+ "$ref": "#/components/schemas/Space"
25885
+ }
25886
+ ]
25887
+ }
25888
+ },
25889
+ "required": [
25890
+ "space"
25891
+ ]
25892
+ }
25893
+ ]
25894
+ },
25837
25895
  "ContentKitIcon": {
25838
25896
  "type": "string",
25839
25897
  "enum": [
@@ -27402,67 +27460,29 @@
27402
27460
  ]
27403
27461
  },
27404
27462
  "IntegrationSiteInstallation": {
27405
- "type": "object",
27406
- "description": "Installation of an integration at a site level",
27407
- "properties": {
27408
- "integration": {
27409
- "description": "Unique name identifier of the integration",
27410
- "type": "string"
27411
- },
27412
- "installation": {
27413
- "description": "ID of the integration installation",
27414
- "type": "string"
27415
- },
27416
- "site": {
27417
- "description": "The site the integration is installed on. Using the string value is deprecated in favor of site.id",
27418
- "oneOf": [
27419
- {
27420
- "type": "string"
27421
- },
27422
- {
27423
- "$ref": "#/components/schemas/Site"
27424
- }
27425
- ]
27426
- },
27427
- "status": {
27428
- "$ref": "#/components/schemas/IntegrationInstallationStatus"
27429
- },
27430
- "configuration": {
27431
- "description": "Configuration of the integration for this site",
27432
- "type": "object"
27433
- },
27434
- "externalIds": {
27435
- "$ref": "#/components/schemas/IntegrationInstallationExternalIds"
27463
+ "allOf": [
27464
+ {
27465
+ "$ref": "#/components/schemas/IntegrationContentInstallationBase"
27436
27466
  },
27437
- "urls": {
27467
+ {
27438
27468
  "type": "object",
27439
- "description": "URLs associated with the object",
27440
27469
  "properties": {
27441
- "location": {
27442
- "type": "string",
27443
- "description": "URL of the integration's site installation in the API",
27444
- "format": "uri"
27445
- },
27446
- "publicEndpoint": {
27447
- "type": "string",
27448
- "description": "Public HTTP endpoint for the integration's site installation",
27449
- "format": "uri"
27470
+ "site": {
27471
+ "description": "The site the integration is installed on. Using the string value is deprecated in favor of site.id",
27472
+ "oneOf": [
27473
+ {
27474
+ "type": "string"
27475
+ },
27476
+ {
27477
+ "$ref": "#/components/schemas/Site"
27478
+ }
27479
+ ]
27450
27480
  }
27451
27481
  },
27452
27482
  "required": [
27453
- "location",
27454
- "publicEndpoint"
27483
+ "site"
27455
27484
  ]
27456
27485
  }
27457
- },
27458
- "required": [
27459
- "integration",
27460
- "installation",
27461
- "site",
27462
- "status",
27463
- "configuration",
27464
- "externalIds",
27465
- "urls"
27466
27486
  ]
27467
27487
  },
27468
27488
  "UpdateIntegrationSiteInstallation": {
@@ -29200,73 +29220,6 @@
29200
29220
  }
29201
29221
  ]
29202
29222
  },
29203
- "SitePublishingAuth": {
29204
- "allOf": [
29205
- {
29206
- "oneOf": [
29207
- {
29208
- "$ref": "#/components/schemas/VisitorAuthCustomBackend"
29209
- },
29210
- {
29211
- "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
29212
- }
29213
- ]
29214
- },
29215
- {
29216
- "type": "object",
29217
- "properties": {
29218
- "object": {
29219
- "type": "string",
29220
- "description": "Type of Object, always equals to \"publishing-auth\"",
29221
- "enum": [
29222
- "publishing-auth"
29223
- ]
29224
- },
29225
- "privateKey": {
29226
- "type": "string",
29227
- "description": "Private key used to sign JWT tokens."
29228
- },
29229
- "fallbackURL": {
29230
- "type": "string",
29231
- "format": "uri",
29232
- "description": "URL to redirect to when the visitor auth secret is invalid."
29233
- },
29234
- "integration": {
29235
- "type": "string",
29236
- "description": "Name of the Visitor Authentication integration installed on the site (if any).\nIt is also the one being used as VA backend when the published auth settings are configured to use \"integration\" as backend.\n"
29237
- }
29238
- },
29239
- "required": [
29240
- "object",
29241
- "privateKey"
29242
- ]
29243
- }
29244
- ]
29245
- },
29246
- "SitePublishingAuthUpdate": {
29247
- "allOf": [
29248
- {
29249
- "oneOf": [
29250
- {
29251
- "$ref": "#/components/schemas/VisitorAuthCustomBackend"
29252
- },
29253
- {
29254
- "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
29255
- }
29256
- ]
29257
- },
29258
- {
29259
- "type": "object",
29260
- "properties": {
29261
- "fallbackURL": {
29262
- "type": "string",
29263
- "format": "uri",
29264
- "description": "A fallback URL that will be used if authentication fails."
29265
- }
29266
- }
29267
- }
29268
- ]
29269
- },
29270
29223
  "CustomizationIconsStyle": {
29271
29224
  "type": "string",
29272
29225
  "enum": [
@@ -29557,6 +29510,121 @@
29557
29510
  "cookies"
29558
29511
  ]
29559
29512
  },
29513
+ "PublishedContentSite": {
29514
+ "type": "object",
29515
+ "properties": {
29516
+ "object": {
29517
+ "type": "string",
29518
+ "enum": [
29519
+ "published-content-site"
29520
+ ]
29521
+ },
29522
+ "site": {
29523
+ "$ref": "#/components/schemas/Site"
29524
+ },
29525
+ "structure": {
29526
+ "$ref": "#/components/schemas/SiteStructure"
29527
+ },
29528
+ "customizations": {
29529
+ "type": "object",
29530
+ "properties": {
29531
+ "site": {
29532
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
29533
+ },
29534
+ "siteSpaces": {
29535
+ "type": "object",
29536
+ "additionalProperties": {
29537
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
29538
+ }
29539
+ }
29540
+ },
29541
+ "required": [
29542
+ "site",
29543
+ "siteSpaces"
29544
+ ]
29545
+ },
29546
+ "scripts": {
29547
+ "type": "array",
29548
+ "items": {
29549
+ "$ref": "#/components/schemas/SiteIntegrationScript"
29550
+ }
29551
+ }
29552
+ },
29553
+ "required": [
29554
+ "object",
29555
+ "site",
29556
+ "structure",
29557
+ "customizations",
29558
+ "scripts"
29559
+ ]
29560
+ },
29561
+ "SitePublishingAuth": {
29562
+ "allOf": [
29563
+ {
29564
+ "oneOf": [
29565
+ {
29566
+ "$ref": "#/components/schemas/VisitorAuthCustomBackend"
29567
+ },
29568
+ {
29569
+ "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
29570
+ }
29571
+ ]
29572
+ },
29573
+ {
29574
+ "type": "object",
29575
+ "properties": {
29576
+ "object": {
29577
+ "type": "string",
29578
+ "description": "Type of Object, always equals to \"publishing-auth\"",
29579
+ "enum": [
29580
+ "publishing-auth"
29581
+ ]
29582
+ },
29583
+ "privateKey": {
29584
+ "type": "string",
29585
+ "description": "Private key used to sign JWT tokens."
29586
+ },
29587
+ "fallbackURL": {
29588
+ "type": "string",
29589
+ "format": "uri",
29590
+ "description": "URL to redirect to when the visitor auth secret is invalid."
29591
+ },
29592
+ "integration": {
29593
+ "type": "string",
29594
+ "description": "Name of the Visitor Authentication integration installed on the site (if any).\nIt is also the one being used as VA backend when the published auth settings are configured to use \"integration\" as backend.\n"
29595
+ }
29596
+ },
29597
+ "required": [
29598
+ "object",
29599
+ "privateKey"
29600
+ ]
29601
+ }
29602
+ ]
29603
+ },
29604
+ "SitePublishingAuthUpdate": {
29605
+ "allOf": [
29606
+ {
29607
+ "oneOf": [
29608
+ {
29609
+ "$ref": "#/components/schemas/VisitorAuthCustomBackend"
29610
+ },
29611
+ {
29612
+ "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
29613
+ }
29614
+ ]
29615
+ },
29616
+ {
29617
+ "type": "object",
29618
+ "properties": {
29619
+ "fallbackURL": {
29620
+ "type": "string",
29621
+ "format": "uri",
29622
+ "description": "A fallback URL that will be used if authentication fails."
29623
+ }
29624
+ }
29625
+ }
29626
+ ]
29627
+ },
29560
29628
  "SiteSectionPointer": {
29561
29629
  "type": "object",
29562
29630
  "properties": {
@@ -30923,6 +30991,44 @@
30923
30991
  }
30924
30992
  }
30925
30993
  },
30994
+ "IntegrationEnvironmentSpaceInstallation": {
30995
+ "allOf": [
30996
+ {
30997
+ "$ref": "#/components/schemas/IntegrationContentInstallationBase"
30998
+ },
30999
+ {
31000
+ "type": "object",
31001
+ "properties": {
31002
+ "space": {
31003
+ "description": "The space the integration is installed on.",
31004
+ "type": "string"
31005
+ }
31006
+ },
31007
+ "required": [
31008
+ "space"
31009
+ ]
31010
+ }
31011
+ ]
31012
+ },
31013
+ "IntegrationEnvironmentSiteInstallation": {
31014
+ "allOf": [
31015
+ {
31016
+ "$ref": "#/components/schemas/IntegrationContentInstallationBase"
31017
+ },
31018
+ {
31019
+ "type": "object",
31020
+ "properties": {
31021
+ "site": {
31022
+ "description": "The site the integration is installed on.",
31023
+ "type": "string"
31024
+ }
31025
+ },
31026
+ "required": [
31027
+ "site"
31028
+ ]
31029
+ }
31030
+ ]
31031
+ },
30926
31032
  "IntegrationEnvironment": {
30927
31033
  "type": "object",
30928
31034
  "description": "Runtime environment provided during the execution of integration's code.",
@@ -30939,10 +31045,10 @@
30939
31045
  "$ref": "#/components/schemas/IntegrationInstallation"
30940
31046
  },
30941
31047
  "spaceInstallation": {
30942
- "$ref": "#/components/schemas/IntegrationSpaceInstallation"
31048
+ "$ref": "#/components/schemas/IntegrationEnvironmentSpaceInstallation"
30943
31049
  },
30944
31050
  "siteInstallation": {
30945
- "$ref": "#/components/schemas/IntegrationSiteInstallation"
31051
+ "$ref": "#/components/schemas/IntegrationEnvironmentSiteInstallation"
30946
31052
  },
30947
31053
  "secrets": {
30948
31054
  "$ref": "#/components/schemas/IntegrationSecrets"
@@ -32088,6 +32194,24 @@
32088
32194
  "installation"
32089
32195
  ]
32090
32196
  },
32197
+ "PublishedContentSiteChannel": {
32198
+ "type": "object",
32199
+ "properties": {
32200
+ "channel": {
32201
+ "type": "string",
32202
+ "enum": [
32203
+ "published-content-site"
32204
+ ]
32205
+ },
32206
+ "site": {
32207
+ "type": "string"
32208
+ }
32209
+ },
32210
+ "required": [
32211
+ "channel",
32212
+ "site"
32213
+ ]
32214
+ },
32091
32215
  "SiteChannel": {
32092
32216
  "type": "object",
32093
32217
  "properties": {
@@ -32478,6 +32602,9 @@
32478
32602
  {
32479
32603
  "$ref": "#/components/schemas/IntegrationSiteInstallationsChannel"
32480
32604
  },
32605
+ {
32606
+ "$ref": "#/components/schemas/PublishedContentSiteChannel"
32607
+ },
32481
32608
  {
32482
32609
  "$ref": "#/components/schemas/SiteChannel"
32483
32610
  },
package/spec/openapi.yaml CHANGED
@@ -6748,6 +6748,30 @@ paths:
6748
6748
  description: Site has been deleted
6749
6749
  default:
6750
6750
  $ref: "#/components/responses/UnexpectedError"
6751
+ "/orgs/{organizationId}/sites/{siteId}/published":
6752
+ get:
6753
+ operationId: getPublishedContentSite
6754
+ summary: Get the complete profile of a site in an organization to provide the published experience. It includes site, customization, structure, integration scripts etc.
6755
+ tags:
6756
+ - sites
6757
+ security:
6758
+ - user: []
6759
+ parameters:
6760
+ - $ref: "#/components/parameters/organizationId"
6761
+ - $ref: "#/components/parameters/siteId"
6762
+ - $ref: "#/components/parameters/siteShareKey"
6763
+ responses:
6764
+ "200":
6765
+ description: OK
6766
+ content:
6767
+ application/json:
6768
+ schema:
6769
+ $ref: "#/components/schemas/PublishedContentSite"
6770
+ "404":
6771
+ description: No matching site found
6772
+ $ref: "#/components/responses/NotFoundError"
6773
+ default:
6774
+ $ref: "#/components/responses/UnexpectedError"
6751
6775
  "/orgs/{organizationId}/sites/{siteId}/publish":
6752
6776
  post:
6753
6777
  operationId: publishSite
@@ -15500,9 +15524,9 @@ components:
15500
15524
  type: array
15501
15525
  items:
15502
15526
  $ref: "#/components/schemas/IntegrationEventLog"
15503
- IntegrationSpaceInstallation:
15527
+ IntegrationContentInstallationBase:
15504
15528
  type: object
15505
- description: Installation of an integration at a space level
15529
+ description: Base properties of an installation of an integration on a site or space.
15506
15530
  properties:
15507
15531
  integration:
15508
15532
  description: Unique name identifier of the integration
@@ -15510,15 +15534,10 @@ components:
15510
15534
  installation:
15511
15535
  description: ID of the integration installation
15512
15536
  type: string
15513
- space:
15514
- description: The space the integration is installed on. Using the string value is deprecated in favor of space.id
15515
- oneOf:
15516
- - type: string
15517
- - $ref: "#/components/schemas/Space"
15518
15537
  status:
15519
15538
  $ref: "#/components/schemas/IntegrationInstallationStatus"
15520
15539
  configuration:
15521
- description: Configuration of the integration for this space
15540
+ description: Configuration of the integration for this site
15522
15541
  type: object
15523
15542
  externalIds:
15524
15543
  $ref: "#/components/schemas/IntegrationInstallationExternalIds"
@@ -15528,11 +15547,11 @@ components:
15528
15547
  properties:
15529
15548
  location:
15530
15549
  type: string
15531
- description: URL of the integration's space installation in the API
15550
+ description: URL of the integration's installation in the API
15532
15551
  format: uri
15533
15552
  publicEndpoint:
15534
15553
  type: string
15535
- description: Public HTTP endpoint for the integration's space installation
15554
+ description: Public HTTP endpoint for the integration's installation
15536
15555
  format: uri
15537
15556
  required:
15538
15557
  - location
@@ -15540,11 +15559,22 @@ components:
15540
15559
  required:
15541
15560
  - integration
15542
15561
  - installation
15543
- - space
15544
15562
  - status
15545
15563
  - configuration
15546
15564
  - externalIds
15547
15565
  - urls
15566
+ IntegrationSpaceInstallation:
15567
+ allOf:
15568
+ - $ref: "#/components/schemas/IntegrationContentInstallationBase"
15569
+ - type: object
15570
+ properties:
15571
+ space:
15572
+ description: The space the integration is installed on. Using the string value is deprecated in favor of space.id
15573
+ oneOf:
15574
+ - type: string
15575
+ - $ref: "#/components/schemas/Space"
15576
+ required:
15577
+ - space
15548
15578
  ContentKitIcon:
15549
15579
  type: string
15550
15580
  enum:
@@ -16553,50 +16583,17 @@ components:
16553
16583
  - defaultSpace
16554
16584
  - urls
16555
16585
  IntegrationSiteInstallation:
16556
- type: object
16557
- description: Installation of an integration at a site level
16558
- properties:
16559
- integration:
16560
- description: Unique name identifier of the integration
16561
- type: string
16562
- installation:
16563
- description: ID of the integration installation
16564
- type: string
16565
- site:
16566
- description: The site the integration is installed on. Using the string value is deprecated in favor of site.id
16567
- oneOf:
16568
- - type: string
16569
- - $ref: "#/components/schemas/Site"
16570
- status:
16571
- $ref: "#/components/schemas/IntegrationInstallationStatus"
16572
- configuration:
16573
- description: Configuration of the integration for this site
16574
- type: object
16575
- externalIds:
16576
- $ref: "#/components/schemas/IntegrationInstallationExternalIds"
16577
- urls:
16578
- type: object
16579
- description: URLs associated with the object
16586
+ allOf:
16587
+ - $ref: "#/components/schemas/IntegrationContentInstallationBase"
16588
+ - type: object
16580
16589
  properties:
16581
- location:
16582
- type: string
16583
- description: URL of the integration's site installation in the API
16584
- format: uri
16585
- publicEndpoint:
16586
- type: string
16587
- description: Public HTTP endpoint for the integration's site installation
16588
- format: uri
16590
+ site:
16591
+ description: The site the integration is installed on. Using the string value is deprecated in favor of site.id
16592
+ oneOf:
16593
+ - type: string
16594
+ - $ref: "#/components/schemas/Site"
16589
16595
  required:
16590
- - location
16591
- - publicEndpoint
16592
- required:
16593
- - integration
16594
- - installation
16595
- - site
16596
- - status
16597
- - configuration
16598
- - externalIds
16599
- - urls
16596
+ - site
16600
16597
  UpdateIntegrationSiteInstallation:
16601
16598
  type: object
16602
16599
  properties:
@@ -17760,44 +17757,6 @@ components:
17760
17757
  required:
17761
17758
  - type
17762
17759
  - plan
17763
- SitePublishingAuth:
17764
- allOf:
17765
- - oneOf:
17766
- - $ref: "#/components/schemas/VisitorAuthCustomBackend"
17767
- - $ref: "#/components/schemas/VisitorAuthIntegrationBackend"
17768
- - type: object
17769
- properties:
17770
- object:
17771
- type: string
17772
- description: Type of Object, always equals to "publishing-auth"
17773
- enum:
17774
- - publishing-auth
17775
- privateKey:
17776
- type: string
17777
- description: Private key used to sign JWT tokens.
17778
- fallbackURL:
17779
- type: string
17780
- format: uri
17781
- description: URL to redirect to when the visitor auth secret is invalid.
17782
- integration:
17783
- type: string
17784
- description: |
17785
- Name of the Visitor Authentication integration installed on the site (if any).
17786
- It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
17787
- required:
17788
- - object
17789
- - privateKey
17790
- SitePublishingAuthUpdate:
17791
- allOf:
17792
- - oneOf:
17793
- - $ref: "#/components/schemas/VisitorAuthCustomBackend"
17794
- - $ref: "#/components/schemas/VisitorAuthIntegrationBackend"
17795
- - type: object
17796
- properties:
17797
- fallbackURL:
17798
- type: string
17799
- format: uri
17800
- description: A fallback URL that will be used if authentication fails.
17801
17760
  CustomizationIconsStyle:
17802
17761
  type: string
17803
17762
  enum:
@@ -17995,6 +17954,77 @@ components:
17995
17954
  required:
17996
17955
  - script
17997
17956
  - cookies
17957
+ PublishedContentSite:
17958
+ type: object
17959
+ properties:
17960
+ object:
17961
+ type: string
17962
+ enum:
17963
+ - published-content-site
17964
+ site:
17965
+ $ref: "#/components/schemas/Site"
17966
+ structure:
17967
+ $ref: "#/components/schemas/SiteStructure"
17968
+ customizations:
17969
+ type: object
17970
+ properties:
17971
+ site:
17972
+ $ref: "#/components/schemas/SiteCustomizationSettings"
17973
+ siteSpaces:
17974
+ type: object
17975
+ additionalProperties:
17976
+ $ref: "#/components/schemas/SiteCustomizationSettings"
17977
+ required:
17978
+ - site
17979
+ - siteSpaces
17980
+ scripts:
17981
+ type: array
17982
+ items:
17983
+ $ref: "#/components/schemas/SiteIntegrationScript"
17984
+ required:
17985
+ - object
17986
+ - site
17987
+ - structure
17988
+ - customizations
17989
+ - scripts
17990
+ SitePublishingAuth:
17991
+ allOf:
17992
+ - oneOf:
17993
+ - $ref: "#/components/schemas/VisitorAuthCustomBackend"
17994
+ - $ref: "#/components/schemas/VisitorAuthIntegrationBackend"
17995
+ - type: object
17996
+ properties:
17997
+ object:
17998
+ type: string
17999
+ description: Type of Object, always equals to "publishing-auth"
18000
+ enum:
18001
+ - publishing-auth
18002
+ privateKey:
18003
+ type: string
18004
+ description: Private key used to sign JWT tokens.
18005
+ fallbackURL:
18006
+ type: string
18007
+ format: uri
18008
+ description: URL to redirect to when the visitor auth secret is invalid.
18009
+ integration:
18010
+ type: string
18011
+ description: |
18012
+ Name of the Visitor Authentication integration installed on the site (if any).
18013
+ It is also the one being used as VA backend when the published auth settings are configured to use "integration" as backend.
18014
+ required:
18015
+ - object
18016
+ - privateKey
18017
+ SitePublishingAuthUpdate:
18018
+ allOf:
18019
+ - oneOf:
18020
+ - $ref: "#/components/schemas/VisitorAuthCustomBackend"
18021
+ - $ref: "#/components/schemas/VisitorAuthIntegrationBackend"
18022
+ - type: object
18023
+ properties:
18024
+ fallbackURL:
18025
+ type: string
18026
+ format: uri
18027
+ description: A fallback URL that will be used if authentication fails.
17998
18028
  SiteSectionPointer:
17999
18029
  type: object
18000
18030
  properties:
@@ -18890,6 +18920,26 @@ components:
18890
18920
  newSourceHostname:
18891
18921
  type: string
18892
18922
  description: The new hostname if the source organization needed to change hostname.
18923
+ IntegrationEnvironmentSpaceInstallation:
18924
+ allOf:
18925
+ - $ref: "#/components/schemas/IntegrationContentInstallationBase"
18926
+ - type: object
18927
+ properties:
18928
+ space:
18929
+ description: The space the integration is installed on.
18930
+ type: string
18931
+ required:
18932
+ - space
18933
+ IntegrationEnvironmentSiteInstallation:
18934
+ allOf:
18935
+ - $ref: "#/components/schemas/IntegrationContentInstallationBase"
18936
+ - type: object
18937
+ properties:
18938
+ site:
18939
+ description: The site the integration is installed on.
18940
+ type: string
18941
+ required:
18942
+ - site
18893
18943
  IntegrationEnvironment:
18894
18944
  type: object
18895
18945
  description: Runtime environment provided during the execution of integration's code.
@@ -18903,9 +18953,9 @@ components:
18903
18953
  installation:
18904
18954
  $ref: "#/components/schemas/IntegrationInstallation"
18905
18955
  spaceInstallation:
18906
- $ref: "#/components/schemas/IntegrationSpaceInstallation"
18956
+ $ref: "#/components/schemas/IntegrationEnvironmentSpaceInstallation"
18907
18957
  siteInstallation:
18908
- $ref: "#/components/schemas/IntegrationSiteInstallation"
18958
+ $ref: "#/components/schemas/IntegrationEnvironmentSiteInstallation"
18909
18959
  secrets:
18910
18960
  $ref: "#/components/schemas/IntegrationSecrets"
18911
18961
  signingSecret:
@@ -19671,6 +19721,18 @@ components:
19671
19721
  - channel
19672
19722
  - integration
19673
19723
  - installation
19724
+ PublishedContentSiteChannel:
19725
+ type: object
19726
+ properties:
19727
+ channel:
19728
+ type: string
19729
+ enum:
19730
+ - published-content-site
19731
+ site:
19732
+ type: string
19733
+ required:
19734
+ - channel
19735
+ - site
19674
19736
  SiteChannel:
19675
19737
  type: object
19676
19738
  properties:
@@ -19889,6 +19951,7 @@ components:
19889
19951
  - $ref: "#/components/schemas/IntegrationSpaceInstallationsChannel"
19890
19952
  - $ref: "#/components/schemas/IntegrationSiteInstallationChannel"
19891
19953
  - $ref: "#/components/schemas/IntegrationSiteInstallationsChannel"
19954
+ - $ref: "#/components/schemas/PublishedContentSiteChannel"
19892
19955
  - $ref: "#/components/schemas/SiteChannel"
19893
19956
  - $ref: "#/components/schemas/SiteCustomizationChannel"
19894
19957
  - $ref: "#/components/schemas/SiteIntegrationsChannel"