@gitbook/api 0.57.0 → 0.59.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
@@ -1026,6 +1026,12 @@ export interface SyncGitRepository {
1026
1026
  /** Optional metadata to store on the space about the Git provider */
1027
1027
  gitInfo?: UpdateSpaceGitInfo;
1028
1028
  }
1029
+ /**
1030
+ * Name of the icon
1031
+ * @maxLength 50
1032
+ * @example "gear"
1033
+ */
1034
+ export declare type Icon = string;
1029
1035
  export interface RevisionPageBase {
1030
1036
  /** Unique identifier for the page in the revision */
1031
1037
  id: string;
@@ -1036,6 +1042,8 @@ export interface RevisionPageBase {
1036
1042
  title: string;
1037
1043
  /** Emoji of the page, if one has been set. */
1038
1044
  emoji?: Emoji;
1045
+ /** Icon of the page, if one has been set. */
1046
+ icon?: Icon;
1039
1047
  /** When the page was first created. Only present if page has been edited at least once. */
1040
1048
  createdAt?: Timestamp;
1041
1049
  /** When the page was last edited. Only present if page has been edited at least once. */
@@ -3780,6 +3788,13 @@ export declare type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | Visit
3780
3788
  */
3781
3789
  fallbackURL?: string;
3782
3790
  };
3791
+ export declare enum CustomizationIconsStyle {
3792
+ Regular = "regular",
3793
+ Solid = "solid",
3794
+ Duotone = "duotone",
3795
+ Light = "light",
3796
+ Thin = "thin"
3797
+ }
3783
3798
  export interface SiteCustomizationSettings {
3784
3799
  /** Title to use for the published site. If not defined, it'll fallback to the default content title. */
3785
3800
  title?: SiteTitle;
@@ -3788,6 +3803,7 @@ export interface SiteCustomizationSettings {
3788
3803
  corners: CustomizationCorners;
3789
3804
  font: CustomizationFont;
3790
3805
  background: CustomizationBackground;
3806
+ icons: CustomizationIconsStyle;
3791
3807
  };
3792
3808
  internationalization: {
3793
3809
  /** Language for the UI element */
@@ -3898,6 +3914,8 @@ export interface SiteSpaceCustomizationOverrides {
3898
3914
  corners?: CustomizationCorners | null;
3899
3915
  /** The font family to use for the content. Set to null to reset the override. */
3900
3916
  font?: CustomizationFont | null;
3917
+ /** The icons style to use for the content. Set to null to reset the override. */
3918
+ icons?: CustomizationIconsStyle | null;
3901
3919
  /** The style of background to use. Set to null to reset the override. */
3902
3920
  background?: CustomizationBackground | null;
3903
3921
  };
@@ -4849,7 +4867,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4849
4867
  * @request GET:/spaces/{spaceId}
4850
4868
  * @secure
4851
4869
  */
4852
- getSpaceById: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
4870
+ getSpaceById: (spaceId: string, query?: {
4871
+ /** For sites published via share-links, the share key is useful to resolve published URLs. */
4872
+ shareKey?: string;
4873
+ }, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
4853
4874
  /**
4854
4875
  * No description
4855
4876
  *
@@ -8515,6 +8536,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8515
8536
  * @secure
8516
8537
  */
8517
8538
  createSite: (organizationId: string, data: {
8539
+ /** The type of the site, defaults to Basic */
8540
+ type?: SiteType;
8518
8541
  /** Title of the site */
8519
8542
  title?: SiteTitle;
8520
8543
  /**
@@ -8588,7 +8611,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8588
8611
  * @request POST:/orgs/{organizationId}/sites/{siteId}/publish
8589
8612
  * @secure
8590
8613
  */
8591
- publishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
8614
+ publishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site | {
8615
+ type: 'checkout';
8616
+ /** Stripe payment session ID */
8617
+ sessionId: string;
8618
+ }, Error>>;
8592
8619
  /**
8593
8620
  * No description
8594
8621
  *
@@ -8739,17 +8766,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8739
8766
  } | {
8740
8767
  /** User must complete a checkout before publishing. */
8741
8768
  type: 'checkout';
8742
- /** Stripe payment session ID */
8743
- sessionId: string;
8744
8769
  } | {
8745
8770
  /** User cannot publish due to lack of permissions. */
8746
8771
  type: 'no-permissions';
8747
- } | {
8748
- /** User must upgrade their organization plan before publishing. */
8749
- type: 'legacy-upgrade';
8750
- /** The org plan to upgrade to */
8751
- plan: BillingProduct;
8752
- invoice?: BillingInvoicePreview;
8753
8772
  }, Error | {
8754
8773
  error: {
8755
8774
  /** @format int32 */
@@ -9043,7 +9062,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9043
9062
  * @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization/raw
9044
9063
  * @secure
9045
9064
  */
9046
- getSiteSpaceRawCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
9065
+ getSiteSpaceRawCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings & {
9066
+ /** Indicates whether the site customization settings have been overridden. */
9067
+ hasOverrides: boolean;
9068
+ }, Error | {
9047
9069
  error: {
9048
9070
  /** @format int32 */
9049
9071
  code: 400;
@@ -9060,6 +9082,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9060
9082
  * @secure
9061
9083
  */
9062
9084
  getContentAnalyticsForSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<AnalyticsContentPages, Error>>;
9085
+ /**
9086
+ * No description
9087
+ *
9088
+ * @tags sites
9089
+ * @name CreateSitesPageFeedback
9090
+ * @summary Create a page feedback by a visitor on a site.
9091
+ * @request PUT:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/pages/{pageId}/feedbacks/{visitorId}
9092
+ * @secure
9093
+ */
9094
+ createSitesPageFeedback: (organizationId: string, siteId: string, siteSpaceId: string, pageId: string, visitorId: string, data: {
9095
+ rating: PageFeedbackRating;
9096
+ }, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
9063
9097
  /**
9064
9098
  * No description
9065
9099
  *
package/dist/index.cjs CHANGED
@@ -203,6 +203,7 @@ __export(src_exports, {
203
203
  CustomizationCorners: () => CustomizationCorners,
204
204
  CustomizationFont: () => CustomizationFont,
205
205
  CustomizationHeaderPreset: () => CustomizationHeaderPreset,
206
+ CustomizationIconsStyle: () => CustomizationIconsStyle,
206
207
  CustomizationLocale: () => CustomizationLocale,
207
208
  CustomizationThemeMode: () => CustomizationThemeMode,
208
209
  GITBOOK_DEFAULT_ENDPOINT: () => GITBOOK_DEFAULT_ENDPOINT,
@@ -238,7 +239,7 @@ module.exports = __toCommonJS(src_exports);
238
239
 
239
240
  // package.json
240
241
  var name = "@gitbook/api";
241
- var version = "0.57.0";
242
+ var version = "0.59.0";
242
243
 
243
244
  // src/client.ts
244
245
  var import_event_iterator = __toESM(require_node(), 1);
@@ -669,6 +670,14 @@ var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
669
670
  SiteVisibility2["VisitorAuth"] = "visitor-auth";
670
671
  return SiteVisibility2;
671
672
  })(SiteVisibility || {});
673
+ var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
674
+ CustomizationIconsStyle2["Regular"] = "regular";
675
+ CustomizationIconsStyle2["Solid"] = "solid";
676
+ CustomizationIconsStyle2["Duotone"] = "duotone";
677
+ CustomizationIconsStyle2["Light"] = "light";
678
+ CustomizationIconsStyle2["Thin"] = "thin";
679
+ return CustomizationIconsStyle2;
680
+ })(CustomizationIconsStyle || {});
672
681
  var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
673
682
  CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
674
683
  CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
@@ -1009,9 +1018,10 @@ var Api = class extends HttpClient {
1009
1018
  })
1010
1019
  };
1011
1020
  this.spaces = {
1012
- getSpaceById: (spaceId, params = {}) => this.request({
1021
+ getSpaceById: (spaceId, query, params = {}) => this.request({
1013
1022
  path: `/spaces/${spaceId}`,
1014
1023
  method: "GET",
1024
+ query,
1015
1025
  secure: true,
1016
1026
  format: "json",
1017
1027
  ...params
@@ -3022,6 +3032,15 @@ var Api = class extends HttpClient {
3022
3032
  format: "json",
3023
3033
  ...params
3024
3034
  }),
3035
+ createSitesPageFeedback: (organizationId, siteId, siteSpaceId, pageId, visitorId, data, params = {}) => this.request({
3036
+ path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/insights/pages/${pageId}/feedbacks/${visitorId}`,
3037
+ method: "PUT",
3038
+ body: data,
3039
+ secure: true,
3040
+ type: "application/json" /* Json */,
3041
+ format: "json",
3042
+ ...params
3043
+ }),
3025
3044
  moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
3026
3045
  path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
3027
3046
  method: "POST",
@@ -3224,6 +3243,7 @@ var GitBookAPI = class extends Api {
3224
3243
  CustomizationCorners,
3225
3244
  CustomizationFont,
3226
3245
  CustomizationHeaderPreset,
3246
+ CustomizationIconsStyle,
3227
3247
  CustomizationLocale,
3228
3248
  CustomizationThemeMode,
3229
3249
  GITBOOK_DEFAULT_ENDPOINT,
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.57.0";
175
+ var version = "0.59.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -603,6 +603,14 @@ var SiteVisibility = /* @__PURE__ */ ((SiteVisibility2) => {
603
603
  SiteVisibility2["VisitorAuth"] = "visitor-auth";
604
604
  return SiteVisibility2;
605
605
  })(SiteVisibility || {});
606
+ var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
607
+ CustomizationIconsStyle2["Regular"] = "regular";
608
+ CustomizationIconsStyle2["Solid"] = "solid";
609
+ CustomizationIconsStyle2["Duotone"] = "duotone";
610
+ CustomizationIconsStyle2["Light"] = "light";
611
+ CustomizationIconsStyle2["Thin"] = "thin";
612
+ return CustomizationIconsStyle2;
613
+ })(CustomizationIconsStyle || {});
606
614
  var CustomHostnameDnsStatus = /* @__PURE__ */ ((CustomHostnameDnsStatus2) => {
607
615
  CustomHostnameDnsStatus2["DnsPassed"] = "dns_passed";
608
616
  CustomHostnameDnsStatus2["DnsWrongCname"] = "dns_wrong_cname";
@@ -943,9 +951,10 @@ var Api = class extends HttpClient {
943
951
  })
944
952
  };
945
953
  this.spaces = {
946
- getSpaceById: (spaceId, params = {}) => this.request({
954
+ getSpaceById: (spaceId, query, params = {}) => this.request({
947
955
  path: `/spaces/${spaceId}`,
948
956
  method: "GET",
957
+ query,
949
958
  secure: true,
950
959
  format: "json",
951
960
  ...params
@@ -2956,6 +2965,15 @@ var Api = class extends HttpClient {
2956
2965
  format: "json",
2957
2966
  ...params
2958
2967
  }),
2968
+ createSitesPageFeedback: (organizationId, siteId, siteSpaceId, pageId, visitorId, data, params = {}) => this.request({
2969
+ path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/insights/pages/${pageId}/feedbacks/${visitorId}`,
2970
+ method: "PUT",
2971
+ body: data,
2972
+ secure: true,
2973
+ type: "application/json" /* Json */,
2974
+ format: "json",
2975
+ ...params
2976
+ }),
2959
2977
  moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
2960
2978
  path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
2961
2979
  method: "POST",
@@ -3157,6 +3175,7 @@ export {
3157
3175
  CustomizationCorners,
3158
3176
  CustomizationFont,
3159
3177
  CustomizationHeaderPreset,
3178
+ CustomizationIconsStyle,
3160
3179
  CustomizationLocale,
3161
3180
  CustomizationThemeMode,
3162
3181
  GITBOOK_DEFAULT_ENDPOINT,
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.57.0",
7
+ "version": "0.59.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -364,6 +364,9 @@
364
364
  "parameters": [
365
365
  {
366
366
  "$ref": "#/components/parameters/spaceId"
367
+ },
368
+ {
369
+ "$ref": "#/components/parameters/siteShareKey"
367
370
  }
368
371
  ],
369
372
  "responses": {
@@ -11543,6 +11546,10 @@
11543
11546
  "schema": {
11544
11547
  "type": "object",
11545
11548
  "properties": {
11549
+ "type": {
11550
+ "description": "The type of the site, defaults to Basic",
11551
+ "$ref": "#/components/schemas/SiteType"
11552
+ },
11546
11553
  "title": {
11547
11554
  "$ref": "#/components/schemas/SiteTitle"
11548
11555
  },
@@ -11753,7 +11760,31 @@
11753
11760
  "content": {
11754
11761
  "application/json": {
11755
11762
  "schema": {
11756
- "$ref": "#/components/schemas/Site"
11763
+ "oneOf": [
11764
+ {
11765
+ "$ref": "#/components/schemas/Site"
11766
+ },
11767
+ {
11768
+ "type": "object",
11769
+ "description": "User needs to checkout in order to publish the site.",
11770
+ "properties": {
11771
+ "type": {
11772
+ "type": "string",
11773
+ "enum": [
11774
+ "checkout"
11775
+ ]
11776
+ },
11777
+ "sessionId": {
11778
+ "type": "string",
11779
+ "description": "Stripe payment session ID"
11780
+ }
11781
+ },
11782
+ "required": [
11783
+ "type",
11784
+ "sessionId"
11785
+ ]
11786
+ }
11787
+ ]
11757
11788
  }
11758
11789
  }
11759
11790
  }
@@ -12312,15 +12343,10 @@
12312
12343
  "enum": [
12313
12344
  "checkout"
12314
12345
  ]
12315
- },
12316
- "sessionId": {
12317
- "type": "string",
12318
- "description": "Stripe payment session ID"
12319
12346
  }
12320
12347
  },
12321
12348
  "required": [
12322
- "type",
12323
- "sessionId"
12349
+ "type"
12324
12350
  ]
12325
12351
  },
12326
12352
  {
@@ -12337,29 +12363,6 @@
12337
12363
  "required": [
12338
12364
  "type"
12339
12365
  ]
12340
- },
12341
- {
12342
- "type": "object",
12343
- "properties": {
12344
- "type": {
12345
- "description": "User must upgrade their organization plan before publishing.",
12346
- "type": "string",
12347
- "enum": [
12348
- "legacy-upgrade"
12349
- ]
12350
- },
12351
- "plan": {
12352
- "description": "The org plan to upgrade to",
12353
- "$ref": "#/components/schemas/BillingProduct"
12354
- },
12355
- "invoice": {
12356
- "$ref": "#/components/schemas/BillingInvoicePreview"
12357
- }
12358
- },
12359
- "required": [
12360
- "type",
12361
- "plan"
12362
- ]
12363
12366
  }
12364
12367
  ]
12365
12368
  }
@@ -13216,7 +13219,23 @@
13216
13219
  "content": {
13217
13220
  "application/json": {
13218
13221
  "schema": {
13219
- "$ref": "#/components/schemas/SiteCustomizationSettings"
13222
+ "allOf": [
13223
+ {
13224
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
13225
+ },
13226
+ {
13227
+ "type": "object",
13228
+ "properties": {
13229
+ "hasOverrides": {
13230
+ "type": "boolean",
13231
+ "description": "Indicates whether the site customization settings have been overridden."
13232
+ }
13233
+ },
13234
+ "required": [
13235
+ "hasOverrides"
13236
+ ]
13237
+ }
13238
+ ]
13220
13239
  }
13221
13240
  }
13222
13241
  }
@@ -13271,6 +13290,88 @@
13271
13290
  }
13272
13291
  }
13273
13292
  },
13293
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/pages/{pageId}/feedbacks/{visitorId}": {
13294
+ "put": {
13295
+ "operationId": "createSitesPageFeedback",
13296
+ "summary": "Create a page feedback by a visitor on a site.",
13297
+ "tags": [
13298
+ "sites"
13299
+ ],
13300
+ "security": [
13301
+ {
13302
+ "user": []
13303
+ }
13304
+ ],
13305
+ "parameters": [
13306
+ {
13307
+ "$ref": "#/components/parameters/organizationId"
13308
+ },
13309
+ {
13310
+ "$ref": "#/components/parameters/siteId"
13311
+ },
13312
+ {
13313
+ "$ref": "#/components/parameters/siteSpaceId"
13314
+ },
13315
+ {
13316
+ "$ref": "#/components/parameters/pageId"
13317
+ },
13318
+ {
13319
+ "$ref": "#/components/parameters/visitorId"
13320
+ }
13321
+ ],
13322
+ "requestBody": {
13323
+ "required": true,
13324
+ "content": {
13325
+ "application/json": {
13326
+ "schema": {
13327
+ "type": "object",
13328
+ "properties": {
13329
+ "rating": {
13330
+ "$ref": "#/components/schemas/PageFeedbackRating"
13331
+ }
13332
+ },
13333
+ "required": [
13334
+ "rating"
13335
+ ]
13336
+ }
13337
+ }
13338
+ }
13339
+ },
13340
+ "responses": {
13341
+ "200": {
13342
+ "description": "Feedback updated",
13343
+ "content": {
13344
+ "application/json": {
13345
+ "schema": {
13346
+ "$ref": "#/components/schemas/PageFeedback"
13347
+ }
13348
+ }
13349
+ }
13350
+ },
13351
+ "201": {
13352
+ "description": "Feedback created",
13353
+ "headers": {
13354
+ "Location": {
13355
+ "description": "URL for the feedback",
13356
+ "schema": {
13357
+ "type": "string"
13358
+ }
13359
+ }
13360
+ },
13361
+ "content": {
13362
+ "application/json": {
13363
+ "schema": {
13364
+ "$ref": "#/components/schemas/PageFeedback"
13365
+ }
13366
+ }
13367
+ }
13368
+ },
13369
+ "default": {
13370
+ "$ref": "#/components/responses/UnexpectedError"
13371
+ }
13372
+ }
13373
+ }
13374
+ },
13274
13375
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move": {
13275
13376
  "post": {
13276
13377
  "operationId": "moveSiteSpace",
@@ -13974,6 +14075,14 @@
13974
14075
  "type": "string"
13975
14076
  }
13976
14077
  },
14078
+ "siteShareKey": {
14079
+ "name": "shareKey",
14080
+ "in": "query",
14081
+ "description": "For sites published via share-links, the share key is useful to resolve published URLs.",
14082
+ "schema": {
14083
+ "type": "string"
14084
+ }
14085
+ },
13977
14086
  "revisionMetadata": {
13978
14087
  "name": "metadata",
13979
14088
  "in": "query",
@@ -14248,14 +14357,6 @@
14248
14357
  "default": false
14249
14358
  }
14250
14359
  },
14251
- "siteShareKey": {
14252
- "name": "shareKey",
14253
- "in": "query",
14254
- "description": "For sites published via share-links, the share key is useful to resolve published URLs.",
14255
- "schema": {
14256
- "type": "string"
14257
- }
14258
- },
14259
14360
  "siteSpaceId": {
14260
14361
  "name": "siteSpaceId",
14261
14362
  "in": "path",
@@ -18408,6 +18509,12 @@
18408
18509
  "commitMessageTemplate"
18409
18510
  ]
18410
18511
  },
18512
+ "Icon": {
18513
+ "type": "string",
18514
+ "maxLength": 50,
18515
+ "description": "Name of the icon",
18516
+ "example": "gear"
18517
+ },
18411
18518
  "RevisionPageBase": {
18412
18519
  "type": "object",
18413
18520
  "properties": {
@@ -18424,6 +18531,10 @@
18424
18531
  "description": "Emoji of the page, if one has been set.",
18425
18532
  "$ref": "#/components/schemas/Emoji"
18426
18533
  },
18534
+ "icon": {
18535
+ "description": "Icon of the page, if one has been set.",
18536
+ "$ref": "#/components/schemas/Icon"
18537
+ },
18427
18538
  "createdAt": {
18428
18539
  "description": "When the page was first created. Only present if page has been edited at least once.",
18429
18540
  "$ref": "#/components/schemas/Timestamp"
@@ -26509,6 +26620,16 @@
26509
26620
  }
26510
26621
  ]
26511
26622
  },
26623
+ "CustomizationIconsStyle": {
26624
+ "type": "string",
26625
+ "enum": [
26626
+ "regular",
26627
+ "solid",
26628
+ "duotone",
26629
+ "light",
26630
+ "thin"
26631
+ ]
26632
+ },
26512
26633
  "SiteCustomizationSettings": {
26513
26634
  "type": "object",
26514
26635
  "properties": {
@@ -26530,13 +26651,17 @@
26530
26651
  },
26531
26652
  "background": {
26532
26653
  "$ref": "#/components/schemas/CustomizationBackground"
26654
+ },
26655
+ "icons": {
26656
+ "$ref": "#/components/schemas/CustomizationIconsStyle"
26533
26657
  }
26534
26658
  },
26535
26659
  "required": [
26536
26660
  "primaryColor",
26537
26661
  "corners",
26538
26662
  "font",
26539
- "background"
26663
+ "background",
26664
+ "icons"
26540
26665
  ]
26541
26666
  },
26542
26667
  "internationalization": {
@@ -26900,6 +27025,21 @@
26900
27025
  }
26901
27026
  ]
26902
27027
  },
27028
+ "icons": {
27029
+ "description": "The icons style to use for the content. Set to null to reset the override.",
27030
+ "oneOf": [
27031
+ {
27032
+ "$ref": "#/components/schemas/CustomizationIconsStyle"
27033
+ },
27034
+ {
27035
+ "type": "string",
27036
+ "nullable": true,
27037
+ "enum": [
27038
+ null
27039
+ ]
27040
+ }
27041
+ ]
27042
+ },
26903
27043
  "background": {
26904
27044
  "description": "The style of background to use. Set to null to reset the override.",
26905
27045
  "oneOf": [
package/spec/openapi.yaml CHANGED
@@ -214,6 +214,7 @@ paths:
214
214
  - user: []
215
215
  parameters:
216
216
  - $ref: "#/components/parameters/spaceId"
217
+ - $ref: "#/components/parameters/siteShareKey"
217
218
  responses:
218
219
  "200":
219
220
  description: OK
@@ -6439,6 +6440,9 @@ paths:
6439
6440
  schema:
6440
6441
  type: object
6441
6442
  properties:
6443
+ type:
6444
+ description: The type of the site, defaults to Basic
6445
+ $ref: "#/components/schemas/SiteType"
6442
6446
  title:
6443
6447
  $ref: "#/components/schemas/SiteTitle"
6444
6448
  visibility:
@@ -6558,7 +6562,21 @@ paths:
6558
6562
  content:
6559
6563
  application/json:
6560
6564
  schema:
6561
- $ref: "#/components/schemas/Site"
6565
+ oneOf:
6566
+ - $ref: "#/components/schemas/Site"
6567
+ - type: object
6568
+ description: User needs to checkout in order to publish the site.
6569
+ properties:
6570
+ type:
6571
+ type: string
6572
+ enum:
6573
+ - checkout
6574
+ sessionId:
6575
+ type: string
6576
+ description: Stripe payment session ID
6577
+ required:
6578
+ - type
6579
+ - sessionId
6562
6580
  default:
6563
6581
  $ref: "#/components/responses/UnexpectedError"
6564
6582
  "/orgs/{organizationId}/sites/{siteId}/unpublish":
@@ -6879,12 +6897,8 @@ paths:
6879
6897
  type: string
6880
6898
  enum:
6881
6899
  - checkout
6882
- sessionId:
6883
- type: string
6884
- description: Stripe payment session ID
6885
6900
  required:
6886
6901
  - type
6887
- - sessionId
6888
6902
  - type: object
6889
6903
  properties:
6890
6904
  type:
@@ -6894,21 +6908,6 @@ paths:
6894
6908
  - no-permissions
6895
6909
  required:
6896
6910
  - type
6897
- - type: object
6898
- properties:
6899
- type:
6900
- description: User must upgrade their organization plan before publishing.
6901
- type: string
6902
- enum:
6903
- - legacy-upgrade
6904
- plan:
6905
- description: The org plan to upgrade to
6906
- $ref: "#/components/schemas/BillingProduct"
6907
- invoice:
6908
- $ref: "#/components/schemas/BillingInvoicePreview"
6909
- required:
6910
- - type
6911
- - plan
6912
6911
  "404":
6913
6912
  description: No matching site found
6914
6913
  $ref: "#/components/responses/NotFoundError"
@@ -7375,7 +7374,15 @@ paths:
7375
7374
  content:
7376
7375
  application/json:
7377
7376
  schema:
7378
- $ref: "#/components/schemas/SiteCustomizationSettings"
7377
+ allOf:
7378
+ - $ref: "#/components/schemas/SiteCustomizationSettings"
7379
+ - type: object
7380
+ properties:
7381
+ hasOverrides:
7382
+ type: boolean
7383
+ description: Indicates whether the site customization settings have been overridden.
7384
+ required:
7385
+ - hasOverrides
7379
7386
  "400":
7380
7387
  $ref: "#/components/responses/BadRequestError"
7381
7388
  default:
@@ -7402,6 +7409,51 @@ paths:
7402
7409
  $ref: "#/components/schemas/AnalyticsContentPages"
7403
7410
  default:
7404
7411
  $ref: "#/components/responses/UnexpectedError"
7412
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/pages/{pageId}/feedbacks/{visitorId}":
7413
+ put:
7414
+ operationId: createSitesPageFeedback
7415
+ summary: Create a page feedback by a visitor on a site.
7416
+ tags:
7417
+ - sites
7418
+ security:
7419
+ - user: []
7420
+ parameters:
7421
+ - $ref: "#/components/parameters/organizationId"
7422
+ - $ref: "#/components/parameters/siteId"
7423
+ - $ref: "#/components/parameters/siteSpaceId"
7424
+ - $ref: "#/components/parameters/pageId"
7425
+ - $ref: "#/components/parameters/visitorId"
7426
+ requestBody:
7427
+ required: true
7428
+ content:
7429
+ application/json:
7430
+ schema:
7431
+ type: object
7432
+ properties:
7433
+ rating:
7434
+ $ref: "#/components/schemas/PageFeedbackRating"
7435
+ required:
7436
+ - rating
7437
+ responses:
7438
+ "200":
7439
+ description: Feedback updated
7440
+ content:
7441
+ application/json:
7442
+ schema:
7443
+ $ref: "#/components/schemas/PageFeedback"
7444
+ "201":
7445
+ description: Feedback created
7446
+ headers:
7447
+ Location:
7448
+ description: URL for the feedback
7449
+ schema:
7450
+ type: string
7451
+ content:
7452
+ application/json:
7453
+ schema:
7454
+ $ref: "#/components/schemas/PageFeedback"
7455
+ default:
7456
+ $ref: "#/components/responses/UnexpectedError"
7405
7457
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move":
7406
7458
  post:
7407
7459
  operationId: moveSiteSpace
@@ -7819,6 +7871,12 @@ components:
7819
7871
  description: The unique id of the space
7820
7872
  schema:
7821
7873
  type: string
7874
+ siteShareKey:
7875
+ name: shareKey
7876
+ in: query
7877
+ description: For sites published via share-links, the share key is useful to resolve published URLs.
7878
+ schema:
7879
+ type: string
7822
7880
  revisionMetadata:
7823
7881
  name: metadata
7824
7882
  in: query
@@ -8033,12 +8091,6 @@ components:
8033
8091
  schema:
8034
8092
  type: boolean
8035
8093
  default: false
8036
- siteShareKey:
8037
- name: shareKey
8038
- in: query
8039
- description: For sites published via share-links, the share key is useful to resolve published URLs.
8040
- schema:
8041
- type: string
8042
8094
  siteSpaceId:
8043
8095
  name: siteSpaceId
8044
8096
  in: path
@@ -10739,6 +10791,11 @@ components:
10739
10791
  - repoTreeURL
10740
10792
  - repoCommitURL
10741
10793
  - commitMessageTemplate
10794
+ Icon:
10795
+ type: string
10796
+ maxLength: 50
10797
+ description: Name of the icon
10798
+ example: gear
10742
10799
  RevisionPageBase:
10743
10800
  type: object
10744
10801
  properties:
@@ -10752,6 +10809,9 @@ components:
10752
10809
  emoji:
10753
10810
  description: Emoji of the page, if one has been set.
10754
10811
  $ref: "#/components/schemas/Emoji"
10812
+ icon:
10813
+ description: Icon of the page, if one has been set.
10814
+ $ref: "#/components/schemas/Icon"
10755
10815
  createdAt:
10756
10816
  description: When the page was first created. Only present if page has been edited at least once.
10757
10817
  $ref: "#/components/schemas/Timestamp"
@@ -16138,6 +16198,14 @@ components:
16138
16198
  type: string
16139
16199
  format: uri
16140
16200
  description: A fallback URL that will be used if authentication fails.
16201
+ CustomizationIconsStyle:
16202
+ type: string
16203
+ enum:
16204
+ - regular
16205
+ - solid
16206
+ - duotone
16207
+ - light
16208
+ - thin
16141
16209
  SiteCustomizationSettings:
16142
16210
  type: object
16143
16211
  properties:
@@ -16155,11 +16223,14 @@ components:
16155
16223
  $ref: "#/components/schemas/CustomizationFont"
16156
16224
  background:
16157
16225
  $ref: "#/components/schemas/CustomizationBackground"
16226
+ icons:
16227
+ $ref: "#/components/schemas/CustomizationIconsStyle"
16158
16228
  required:
16159
16229
  - primaryColor
16160
16230
  - corners
16161
16231
  - font
16162
16232
  - background
16233
+ - icons
16163
16234
  internationalization:
16164
16235
  type: object
16165
16236
  properties:
@@ -16401,6 +16472,14 @@ components:
16401
16472
  nullable: true
16402
16473
  enum:
16403
16474
  - null
16475
+ icons:
16476
+ description: The icons style to use for the content. Set to null to reset the override.
16477
+ oneOf:
16478
+ - $ref: "#/components/schemas/CustomizationIconsStyle"
16479
+ - type: string
16480
+ nullable: true
16481
+ enum:
16482
+ - null
16404
16483
  background:
16405
16484
  description: The style of background to use. Set to null to reset the override.
16406
16485
  oneOf: