@gitbook/api 0.58.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 +37 -9
- package/dist/index.cjs +20 -1
- package/dist/index.js +19 -1
- package/package.json +1 -1
- package/spec/openapi.json +152 -31
- package/spec/openapi.yaml +90 -20
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
|
};
|
|
@@ -8518,6 +8536,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8518
8536
|
* @secure
|
|
8519
8537
|
*/
|
|
8520
8538
|
createSite: (organizationId: string, data: {
|
|
8539
|
+
/** The type of the site, defaults to Basic */
|
|
8540
|
+
type?: SiteType;
|
|
8521
8541
|
/** Title of the site */
|
|
8522
8542
|
title?: SiteTitle;
|
|
8523
8543
|
/**
|
|
@@ -8591,7 +8611,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8591
8611
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/publish
|
|
8592
8612
|
* @secure
|
|
8593
8613
|
*/
|
|
8594
|
-
publishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site
|
|
8614
|
+
publishSite: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<Site | {
|
|
8615
|
+
type: 'checkout';
|
|
8616
|
+
/** Stripe payment session ID */
|
|
8617
|
+
sessionId: string;
|
|
8618
|
+
}, Error>>;
|
|
8595
8619
|
/**
|
|
8596
8620
|
* No description
|
|
8597
8621
|
*
|
|
@@ -8742,17 +8766,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8742
8766
|
} | {
|
|
8743
8767
|
/** User must complete a checkout before publishing. */
|
|
8744
8768
|
type: 'checkout';
|
|
8745
|
-
/** Stripe payment session ID */
|
|
8746
|
-
sessionId: string;
|
|
8747
8769
|
} | {
|
|
8748
8770
|
/** User cannot publish due to lack of permissions. */
|
|
8749
8771
|
type: 'no-permissions';
|
|
8750
|
-
} | {
|
|
8751
|
-
/** User must upgrade their organization plan before publishing. */
|
|
8752
|
-
type: 'legacy-upgrade';
|
|
8753
|
-
/** The org plan to upgrade to */
|
|
8754
|
-
plan: BillingProduct;
|
|
8755
|
-
invoice?: BillingInvoicePreview;
|
|
8756
8772
|
}, Error | {
|
|
8757
8773
|
error: {
|
|
8758
8774
|
/** @format int32 */
|
|
@@ -9066,6 +9082,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9066
9082
|
* @secure
|
|
9067
9083
|
*/
|
|
9068
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>>;
|
|
9069
9097
|
/**
|
|
9070
9098
|
* No description
|
|
9071
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.
|
|
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";
|
|
@@ -3023,6 +3032,15 @@ var Api = class extends HttpClient {
|
|
|
3023
3032
|
format: "json",
|
|
3024
3033
|
...params
|
|
3025
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
|
+
}),
|
|
3026
3044
|
moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
3027
3045
|
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
|
|
3028
3046
|
method: "POST",
|
|
@@ -3225,6 +3243,7 @@ var GitBookAPI = class extends Api {
|
|
|
3225
3243
|
CustomizationCorners,
|
|
3226
3244
|
CustomizationFont,
|
|
3227
3245
|
CustomizationHeaderPreset,
|
|
3246
|
+
CustomizationIconsStyle,
|
|
3228
3247
|
CustomizationLocale,
|
|
3229
3248
|
CustomizationThemeMode,
|
|
3230
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.
|
|
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";
|
|
@@ -2957,6 +2965,15 @@ var Api = class extends HttpClient {
|
|
|
2957
2965
|
format: "json",
|
|
2958
2966
|
...params
|
|
2959
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
|
+
}),
|
|
2960
2977
|
moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
|
|
2961
2978
|
path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
|
|
2962
2979
|
method: "POST",
|
|
@@ -3158,6 +3175,7 @@ export {
|
|
|
3158
3175
|
CustomizationCorners,
|
|
3159
3176
|
CustomizationFont,
|
|
3160
3177
|
CustomizationHeaderPreset,
|
|
3178
|
+
CustomizationIconsStyle,
|
|
3161
3179
|
CustomizationLocale,
|
|
3162
3180
|
CustomizationThemeMode,
|
|
3163
3181
|
GITBOOK_DEFAULT_ENDPOINT,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -11546,6 +11546,10 @@
|
|
|
11546
11546
|
"schema": {
|
|
11547
11547
|
"type": "object",
|
|
11548
11548
|
"properties": {
|
|
11549
|
+
"type": {
|
|
11550
|
+
"description": "The type of the site, defaults to Basic",
|
|
11551
|
+
"$ref": "#/components/schemas/SiteType"
|
|
11552
|
+
},
|
|
11549
11553
|
"title": {
|
|
11550
11554
|
"$ref": "#/components/schemas/SiteTitle"
|
|
11551
11555
|
},
|
|
@@ -11756,7 +11760,31 @@
|
|
|
11756
11760
|
"content": {
|
|
11757
11761
|
"application/json": {
|
|
11758
11762
|
"schema": {
|
|
11759
|
-
"
|
|
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
|
+
]
|
|
11760
11788
|
}
|
|
11761
11789
|
}
|
|
11762
11790
|
}
|
|
@@ -12315,15 +12343,10 @@
|
|
|
12315
12343
|
"enum": [
|
|
12316
12344
|
"checkout"
|
|
12317
12345
|
]
|
|
12318
|
-
},
|
|
12319
|
-
"sessionId": {
|
|
12320
|
-
"type": "string",
|
|
12321
|
-
"description": "Stripe payment session ID"
|
|
12322
12346
|
}
|
|
12323
12347
|
},
|
|
12324
12348
|
"required": [
|
|
12325
|
-
"type"
|
|
12326
|
-
"sessionId"
|
|
12349
|
+
"type"
|
|
12327
12350
|
]
|
|
12328
12351
|
},
|
|
12329
12352
|
{
|
|
@@ -12340,29 +12363,6 @@
|
|
|
12340
12363
|
"required": [
|
|
12341
12364
|
"type"
|
|
12342
12365
|
]
|
|
12343
|
-
},
|
|
12344
|
-
{
|
|
12345
|
-
"type": "object",
|
|
12346
|
-
"properties": {
|
|
12347
|
-
"type": {
|
|
12348
|
-
"description": "User must upgrade their organization plan before publishing.",
|
|
12349
|
-
"type": "string",
|
|
12350
|
-
"enum": [
|
|
12351
|
-
"legacy-upgrade"
|
|
12352
|
-
]
|
|
12353
|
-
},
|
|
12354
|
-
"plan": {
|
|
12355
|
-
"description": "The org plan to upgrade to",
|
|
12356
|
-
"$ref": "#/components/schemas/BillingProduct"
|
|
12357
|
-
},
|
|
12358
|
-
"invoice": {
|
|
12359
|
-
"$ref": "#/components/schemas/BillingInvoicePreview"
|
|
12360
|
-
}
|
|
12361
|
-
},
|
|
12362
|
-
"required": [
|
|
12363
|
-
"type",
|
|
12364
|
-
"plan"
|
|
12365
|
-
]
|
|
12366
12366
|
}
|
|
12367
12367
|
]
|
|
12368
12368
|
}
|
|
@@ -13290,6 +13290,88 @@
|
|
|
13290
13290
|
}
|
|
13291
13291
|
}
|
|
13292
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
|
+
},
|
|
13293
13375
|
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move": {
|
|
13294
13376
|
"post": {
|
|
13295
13377
|
"operationId": "moveSiteSpace",
|
|
@@ -18427,6 +18509,12 @@
|
|
|
18427
18509
|
"commitMessageTemplate"
|
|
18428
18510
|
]
|
|
18429
18511
|
},
|
|
18512
|
+
"Icon": {
|
|
18513
|
+
"type": "string",
|
|
18514
|
+
"maxLength": 50,
|
|
18515
|
+
"description": "Name of the icon",
|
|
18516
|
+
"example": "gear"
|
|
18517
|
+
},
|
|
18430
18518
|
"RevisionPageBase": {
|
|
18431
18519
|
"type": "object",
|
|
18432
18520
|
"properties": {
|
|
@@ -18443,6 +18531,10 @@
|
|
|
18443
18531
|
"description": "Emoji of the page, if one has been set.",
|
|
18444
18532
|
"$ref": "#/components/schemas/Emoji"
|
|
18445
18533
|
},
|
|
18534
|
+
"icon": {
|
|
18535
|
+
"description": "Icon of the page, if one has been set.",
|
|
18536
|
+
"$ref": "#/components/schemas/Icon"
|
|
18537
|
+
},
|
|
18446
18538
|
"createdAt": {
|
|
18447
18539
|
"description": "When the page was first created. Only present if page has been edited at least once.",
|
|
18448
18540
|
"$ref": "#/components/schemas/Timestamp"
|
|
@@ -26528,6 +26620,16 @@
|
|
|
26528
26620
|
}
|
|
26529
26621
|
]
|
|
26530
26622
|
},
|
|
26623
|
+
"CustomizationIconsStyle": {
|
|
26624
|
+
"type": "string",
|
|
26625
|
+
"enum": [
|
|
26626
|
+
"regular",
|
|
26627
|
+
"solid",
|
|
26628
|
+
"duotone",
|
|
26629
|
+
"light",
|
|
26630
|
+
"thin"
|
|
26631
|
+
]
|
|
26632
|
+
},
|
|
26531
26633
|
"SiteCustomizationSettings": {
|
|
26532
26634
|
"type": "object",
|
|
26533
26635
|
"properties": {
|
|
@@ -26549,13 +26651,17 @@
|
|
|
26549
26651
|
},
|
|
26550
26652
|
"background": {
|
|
26551
26653
|
"$ref": "#/components/schemas/CustomizationBackground"
|
|
26654
|
+
},
|
|
26655
|
+
"icons": {
|
|
26656
|
+
"$ref": "#/components/schemas/CustomizationIconsStyle"
|
|
26552
26657
|
}
|
|
26553
26658
|
},
|
|
26554
26659
|
"required": [
|
|
26555
26660
|
"primaryColor",
|
|
26556
26661
|
"corners",
|
|
26557
26662
|
"font",
|
|
26558
|
-
"background"
|
|
26663
|
+
"background",
|
|
26664
|
+
"icons"
|
|
26559
26665
|
]
|
|
26560
26666
|
},
|
|
26561
26667
|
"internationalization": {
|
|
@@ -26919,6 +27025,21 @@
|
|
|
26919
27025
|
}
|
|
26920
27026
|
]
|
|
26921
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
|
+
},
|
|
26922
27043
|
"background": {
|
|
26923
27044
|
"description": "The style of background to use. Set to null to reset the override.",
|
|
26924
27045
|
"oneOf": [
|
package/spec/openapi.yaml
CHANGED
|
@@ -6440,6 +6440,9 @@ paths:
|
|
|
6440
6440
|
schema:
|
|
6441
6441
|
type: object
|
|
6442
6442
|
properties:
|
|
6443
|
+
type:
|
|
6444
|
+
description: The type of the site, defaults to Basic
|
|
6445
|
+
$ref: "#/components/schemas/SiteType"
|
|
6443
6446
|
title:
|
|
6444
6447
|
$ref: "#/components/schemas/SiteTitle"
|
|
6445
6448
|
visibility:
|
|
@@ -6559,7 +6562,21 @@ paths:
|
|
|
6559
6562
|
content:
|
|
6560
6563
|
application/json:
|
|
6561
6564
|
schema:
|
|
6562
|
-
|
|
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
|
|
6563
6580
|
default:
|
|
6564
6581
|
$ref: "#/components/responses/UnexpectedError"
|
|
6565
6582
|
"/orgs/{organizationId}/sites/{siteId}/unpublish":
|
|
@@ -6880,12 +6897,8 @@ paths:
|
|
|
6880
6897
|
type: string
|
|
6881
6898
|
enum:
|
|
6882
6899
|
- checkout
|
|
6883
|
-
sessionId:
|
|
6884
|
-
type: string
|
|
6885
|
-
description: Stripe payment session ID
|
|
6886
6900
|
required:
|
|
6887
6901
|
- type
|
|
6888
|
-
- sessionId
|
|
6889
6902
|
- type: object
|
|
6890
6903
|
properties:
|
|
6891
6904
|
type:
|
|
@@ -6895,21 +6908,6 @@ paths:
|
|
|
6895
6908
|
- no-permissions
|
|
6896
6909
|
required:
|
|
6897
6910
|
- type
|
|
6898
|
-
- type: object
|
|
6899
|
-
properties:
|
|
6900
|
-
type:
|
|
6901
|
-
description: User must upgrade their organization plan before publishing.
|
|
6902
|
-
type: string
|
|
6903
|
-
enum:
|
|
6904
|
-
- legacy-upgrade
|
|
6905
|
-
plan:
|
|
6906
|
-
description: The org plan to upgrade to
|
|
6907
|
-
$ref: "#/components/schemas/BillingProduct"
|
|
6908
|
-
invoice:
|
|
6909
|
-
$ref: "#/components/schemas/BillingInvoicePreview"
|
|
6910
|
-
required:
|
|
6911
|
-
- type
|
|
6912
|
-
- plan
|
|
6913
6911
|
"404":
|
|
6914
6912
|
description: No matching site found
|
|
6915
6913
|
$ref: "#/components/responses/NotFoundError"
|
|
@@ -7411,6 +7409,51 @@ paths:
|
|
|
7411
7409
|
$ref: "#/components/schemas/AnalyticsContentPages"
|
|
7412
7410
|
default:
|
|
7413
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"
|
|
7414
7457
|
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move":
|
|
7415
7458
|
post:
|
|
7416
7459
|
operationId: moveSiteSpace
|
|
@@ -10748,6 +10791,11 @@ components:
|
|
|
10748
10791
|
- repoTreeURL
|
|
10749
10792
|
- repoCommitURL
|
|
10750
10793
|
- commitMessageTemplate
|
|
10794
|
+
Icon:
|
|
10795
|
+
type: string
|
|
10796
|
+
maxLength: 50
|
|
10797
|
+
description: Name of the icon
|
|
10798
|
+
example: gear
|
|
10751
10799
|
RevisionPageBase:
|
|
10752
10800
|
type: object
|
|
10753
10801
|
properties:
|
|
@@ -10761,6 +10809,9 @@ components:
|
|
|
10761
10809
|
emoji:
|
|
10762
10810
|
description: Emoji of the page, if one has been set.
|
|
10763
10811
|
$ref: "#/components/schemas/Emoji"
|
|
10812
|
+
icon:
|
|
10813
|
+
description: Icon of the page, if one has been set.
|
|
10814
|
+
$ref: "#/components/schemas/Icon"
|
|
10764
10815
|
createdAt:
|
|
10765
10816
|
description: When the page was first created. Only present if page has been edited at least once.
|
|
10766
10817
|
$ref: "#/components/schemas/Timestamp"
|
|
@@ -16147,6 +16198,14 @@ components:
|
|
|
16147
16198
|
type: string
|
|
16148
16199
|
format: uri
|
|
16149
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
|
|
16150
16209
|
SiteCustomizationSettings:
|
|
16151
16210
|
type: object
|
|
16152
16211
|
properties:
|
|
@@ -16164,11 +16223,14 @@ components:
|
|
|
16164
16223
|
$ref: "#/components/schemas/CustomizationFont"
|
|
16165
16224
|
background:
|
|
16166
16225
|
$ref: "#/components/schemas/CustomizationBackground"
|
|
16226
|
+
icons:
|
|
16227
|
+
$ref: "#/components/schemas/CustomizationIconsStyle"
|
|
16167
16228
|
required:
|
|
16168
16229
|
- primaryColor
|
|
16169
16230
|
- corners
|
|
16170
16231
|
- font
|
|
16171
16232
|
- background
|
|
16233
|
+
- icons
|
|
16172
16234
|
internationalization:
|
|
16173
16235
|
type: object
|
|
16174
16236
|
properties:
|
|
@@ -16410,6 +16472,14 @@ components:
|
|
|
16410
16472
|
nullable: true
|
|
16411
16473
|
enum:
|
|
16412
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
|
|
16413
16483
|
background:
|
|
16414
16484
|
description: The style of background to use. Set to null to reset the override.
|
|
16415
16485
|
oneOf:
|