@gitbook/api 0.157.0 → 0.158.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 +44 -0
- package/dist/constants.d.ts +3 -0
- package/dist/index.cjs +29 -1
- package/dist/index.js +25 -1
- package/package.json +1 -1
- package/spec/openapi.json +78 -0
- package/spec/openapi.yaml +59 -0
package/dist/client.d.ts
CHANGED
|
@@ -300,6 +300,8 @@ export interface Space {
|
|
|
300
300
|
changeRequestsOpen: number;
|
|
301
301
|
/** Count of draft change requests on the space. */
|
|
302
302
|
changeRequestsDraft: number;
|
|
303
|
+
/** Whether the space is powered by V2 of the content system. */
|
|
304
|
+
internal_poweredByV2?: boolean;
|
|
303
305
|
/** The set of permissions for the space */
|
|
304
306
|
permissions: {
|
|
305
307
|
/** Can the user view the space content. */
|
|
@@ -5296,6 +5298,44 @@ export declare enum SiteExternalLinksTarget {
|
|
|
5296
5298
|
Self = "self",
|
|
5297
5299
|
Blank = "blank"
|
|
5298
5300
|
}
|
|
5301
|
+
/** The platform of the social handle. */
|
|
5302
|
+
export declare enum SiteSocialAccountPlatform {
|
|
5303
|
+
Twitter = "twitter",
|
|
5304
|
+
Instagram = "instagram",
|
|
5305
|
+
Facebook = "facebook",
|
|
5306
|
+
Linkedin = "linkedin",
|
|
5307
|
+
Github = "github",
|
|
5308
|
+
Discord = "discord",
|
|
5309
|
+
Slack = "slack",
|
|
5310
|
+
Youtube = "youtube",
|
|
5311
|
+
Tiktok = "tiktok",
|
|
5312
|
+
Reddit = "reddit",
|
|
5313
|
+
Bluesky = "bluesky",
|
|
5314
|
+
Mastodon = "mastodon",
|
|
5315
|
+
Threads = "threads",
|
|
5316
|
+
Medium = "medium"
|
|
5317
|
+
}
|
|
5318
|
+
/**
|
|
5319
|
+
* A handle on a social platform, without prefixes like the @ symbol.
|
|
5320
|
+
* @minLength 1
|
|
5321
|
+
* @maxLength 128
|
|
5322
|
+
*/
|
|
5323
|
+
export type SiteSocialAccountHandle = string;
|
|
5324
|
+
export interface SiteSocialAccount {
|
|
5325
|
+
/** The platform of the social handle. */
|
|
5326
|
+
platform: SiteSocialAccountPlatform;
|
|
5327
|
+
/** A handle on a social platform, without prefixes like the @ symbol. */
|
|
5328
|
+
handle: SiteSocialAccountHandle;
|
|
5329
|
+
display: {
|
|
5330
|
+
/** @default true */
|
|
5331
|
+
footer: boolean;
|
|
5332
|
+
};
|
|
5333
|
+
}
|
|
5334
|
+
/**
|
|
5335
|
+
* The social accounts of the site.
|
|
5336
|
+
* @maxItems 10
|
|
5337
|
+
*/
|
|
5338
|
+
export type SiteSocialAccounts = SiteSocialAccount[];
|
|
5299
5339
|
export interface SiteCustomizationSettings {
|
|
5300
5340
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
5301
5341
|
title?: SiteTitle;
|
|
@@ -5443,6 +5483,8 @@ export interface SiteCustomizationSettings {
|
|
|
5443
5483
|
socialPreview: {
|
|
5444
5484
|
url?: URL;
|
|
5445
5485
|
};
|
|
5486
|
+
/** The social accounts of the site. */
|
|
5487
|
+
socialAccounts: SiteSocialAccounts;
|
|
5446
5488
|
insights: {
|
|
5447
5489
|
/**
|
|
5448
5490
|
* Whether GitBook identifies the visitor on the site using a cookie.
|
|
@@ -12397,6 +12439,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12397
12439
|
* @max 1000
|
|
12398
12440
|
*/
|
|
12399
12441
|
limit?: number;
|
|
12442
|
+
/** Search share links by name or key */
|
|
12443
|
+
search?: string;
|
|
12400
12444
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12401
12445
|
items: ShareLink[];
|
|
12402
12446
|
}, any>>;
|
package/dist/constants.d.ts
CHANGED
|
@@ -127,6 +127,9 @@ export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
|
|
|
127
127
|
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
128
128
|
export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
129
129
|
export declare const SITE_EXTERNAL_LINKS_TARGET_ENUM: ["self", "blank"];
|
|
130
|
+
export declare const SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM: ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
|
|
131
|
+
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
132
|
+
export declare const SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
130
133
|
export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
131
134
|
export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
132
135
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
package/dist/index.cjs
CHANGED
|
@@ -401,6 +401,9 @@ __export(src_exports, {
|
|
|
401
401
|
SITE_SECTION_PATH_MIN_LENGTH: () => SITE_SECTION_PATH_MIN_LENGTH,
|
|
402
402
|
SITE_SECTION_TITLE_MAX_LENGTH: () => SITE_SECTION_TITLE_MAX_LENGTH,
|
|
403
403
|
SITE_SECTION_TITLE_MIN_LENGTH: () => SITE_SECTION_TITLE_MIN_LENGTH,
|
|
404
|
+
SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH: () => SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH,
|
|
405
|
+
SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH: () => SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH,
|
|
406
|
+
SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM: () => SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM,
|
|
404
407
|
SITE_SPACE_PATH_MAX_LENGTH: () => SITE_SPACE_PATH_MAX_LENGTH,
|
|
405
408
|
SITE_SPACE_PATH_MIN_LENGTH: () => SITE_SPACE_PATH_MIN_LENGTH,
|
|
406
409
|
SITE_TITLE_MAX_LENGTH: () => SITE_TITLE_MAX_LENGTH,
|
|
@@ -429,6 +432,7 @@ __export(src_exports, {
|
|
|
429
432
|
SiteInsightsVisitorBrowser: () => SiteInsightsVisitorBrowser,
|
|
430
433
|
SiteInsightsVisitorDevice: () => SiteInsightsVisitorDevice,
|
|
431
434
|
SiteInsightsVisitorOS: () => SiteInsightsVisitorOS,
|
|
435
|
+
SiteSocialAccountPlatform: () => SiteSocialAccountPlatform,
|
|
432
436
|
SiteType: () => SiteType,
|
|
433
437
|
SiteVisibility: () => SiteVisibility,
|
|
434
438
|
SpaceEditMode: () => SpaceEditMode,
|
|
@@ -449,7 +453,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
449
453
|
|
|
450
454
|
// package.json
|
|
451
455
|
var name = "@gitbook/api";
|
|
452
|
-
var version = "0.
|
|
456
|
+
var version = "0.158.0";
|
|
453
457
|
|
|
454
458
|
// src/client.ts
|
|
455
459
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1096,6 +1100,23 @@ var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
|
|
|
1096
1100
|
SiteExternalLinksTarget2["Blank"] = "blank";
|
|
1097
1101
|
return SiteExternalLinksTarget2;
|
|
1098
1102
|
})(SiteExternalLinksTarget || {});
|
|
1103
|
+
var SiteSocialAccountPlatform = /* @__PURE__ */ ((SiteSocialAccountPlatform2) => {
|
|
1104
|
+
SiteSocialAccountPlatform2["Twitter"] = "twitter";
|
|
1105
|
+
SiteSocialAccountPlatform2["Instagram"] = "instagram";
|
|
1106
|
+
SiteSocialAccountPlatform2["Facebook"] = "facebook";
|
|
1107
|
+
SiteSocialAccountPlatform2["Linkedin"] = "linkedin";
|
|
1108
|
+
SiteSocialAccountPlatform2["Github"] = "github";
|
|
1109
|
+
SiteSocialAccountPlatform2["Discord"] = "discord";
|
|
1110
|
+
SiteSocialAccountPlatform2["Slack"] = "slack";
|
|
1111
|
+
SiteSocialAccountPlatform2["Youtube"] = "youtube";
|
|
1112
|
+
SiteSocialAccountPlatform2["Tiktok"] = "tiktok";
|
|
1113
|
+
SiteSocialAccountPlatform2["Reddit"] = "reddit";
|
|
1114
|
+
SiteSocialAccountPlatform2["Bluesky"] = "bluesky";
|
|
1115
|
+
SiteSocialAccountPlatform2["Mastodon"] = "mastodon";
|
|
1116
|
+
SiteSocialAccountPlatform2["Threads"] = "threads";
|
|
1117
|
+
SiteSocialAccountPlatform2["Medium"] = "medium";
|
|
1118
|
+
return SiteSocialAccountPlatform2;
|
|
1119
|
+
})(SiteSocialAccountPlatform || {});
|
|
1099
1120
|
var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
1100
1121
|
AIModel2["Fast"] = "fast";
|
|
1101
1122
|
AIModel2["ReasoningLow"] = "reasoning-low";
|
|
@@ -4127,6 +4148,9 @@ var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
|
|
|
4127
4148
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
4128
4149
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
4129
4150
|
var SITE_EXTERNAL_LINKS_TARGET_ENUM = ["self", "blank"];
|
|
4151
|
+
var SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM = ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
|
|
4152
|
+
var SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
4153
|
+
var SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
4130
4154
|
var SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
4131
4155
|
var SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
4132
4156
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
@@ -4455,6 +4479,9 @@ var GitBookAPI = class extends Api {
|
|
|
4455
4479
|
SITE_SECTION_PATH_MIN_LENGTH,
|
|
4456
4480
|
SITE_SECTION_TITLE_MAX_LENGTH,
|
|
4457
4481
|
SITE_SECTION_TITLE_MIN_LENGTH,
|
|
4482
|
+
SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH,
|
|
4483
|
+
SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH,
|
|
4484
|
+
SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM,
|
|
4458
4485
|
SITE_SPACE_PATH_MAX_LENGTH,
|
|
4459
4486
|
SITE_SPACE_PATH_MIN_LENGTH,
|
|
4460
4487
|
SITE_TITLE_MAX_LENGTH,
|
|
@@ -4483,6 +4510,7 @@ var GitBookAPI = class extends Api {
|
|
|
4483
4510
|
SiteInsightsVisitorBrowser,
|
|
4484
4511
|
SiteInsightsVisitorDevice,
|
|
4485
4512
|
SiteInsightsVisitorOS,
|
|
4513
|
+
SiteSocialAccountPlatform,
|
|
4486
4514
|
SiteType,
|
|
4487
4515
|
SiteVisibility,
|
|
4488
4516
|
SpaceEditMode,
|
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.158.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -819,6 +819,23 @@ var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
|
|
|
819
819
|
SiteExternalLinksTarget2["Blank"] = "blank";
|
|
820
820
|
return SiteExternalLinksTarget2;
|
|
821
821
|
})(SiteExternalLinksTarget || {});
|
|
822
|
+
var SiteSocialAccountPlatform = /* @__PURE__ */ ((SiteSocialAccountPlatform2) => {
|
|
823
|
+
SiteSocialAccountPlatform2["Twitter"] = "twitter";
|
|
824
|
+
SiteSocialAccountPlatform2["Instagram"] = "instagram";
|
|
825
|
+
SiteSocialAccountPlatform2["Facebook"] = "facebook";
|
|
826
|
+
SiteSocialAccountPlatform2["Linkedin"] = "linkedin";
|
|
827
|
+
SiteSocialAccountPlatform2["Github"] = "github";
|
|
828
|
+
SiteSocialAccountPlatform2["Discord"] = "discord";
|
|
829
|
+
SiteSocialAccountPlatform2["Slack"] = "slack";
|
|
830
|
+
SiteSocialAccountPlatform2["Youtube"] = "youtube";
|
|
831
|
+
SiteSocialAccountPlatform2["Tiktok"] = "tiktok";
|
|
832
|
+
SiteSocialAccountPlatform2["Reddit"] = "reddit";
|
|
833
|
+
SiteSocialAccountPlatform2["Bluesky"] = "bluesky";
|
|
834
|
+
SiteSocialAccountPlatform2["Mastodon"] = "mastodon";
|
|
835
|
+
SiteSocialAccountPlatform2["Threads"] = "threads";
|
|
836
|
+
SiteSocialAccountPlatform2["Medium"] = "medium";
|
|
837
|
+
return SiteSocialAccountPlatform2;
|
|
838
|
+
})(SiteSocialAccountPlatform || {});
|
|
822
839
|
var AIModel = /* @__PURE__ */ ((AIModel2) => {
|
|
823
840
|
AIModel2["Fast"] = "fast";
|
|
824
841
|
AIModel2["ReasoningLow"] = "reasoning-low";
|
|
@@ -3850,6 +3867,9 @@ var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
|
|
|
3850
3867
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
|
|
3851
3868
|
var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
|
|
3852
3869
|
var SITE_EXTERNAL_LINKS_TARGET_ENUM = ["self", "blank"];
|
|
3870
|
+
var SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM = ["twitter", "instagram", "facebook", "linkedin", "github", "discord", "slack", "youtube", "tiktok", "reddit", "bluesky", "mastodon", "threads", "medium"];
|
|
3871
|
+
var SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH = 128;
|
|
3872
|
+
var SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH = 1;
|
|
3853
3873
|
var SHARE_LINK_NAME_MAX_LENGTH = 50;
|
|
3854
3874
|
var SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
3855
3875
|
var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
@@ -4177,6 +4197,9 @@ export {
|
|
|
4177
4197
|
SITE_SECTION_PATH_MIN_LENGTH,
|
|
4178
4198
|
SITE_SECTION_TITLE_MAX_LENGTH,
|
|
4179
4199
|
SITE_SECTION_TITLE_MIN_LENGTH,
|
|
4200
|
+
SITE_SOCIAL_ACCOUNT_HANDLE_MAX_LENGTH,
|
|
4201
|
+
SITE_SOCIAL_ACCOUNT_HANDLE_MIN_LENGTH,
|
|
4202
|
+
SITE_SOCIAL_ACCOUNT_PLATFORM_ENUM,
|
|
4180
4203
|
SITE_SPACE_PATH_MAX_LENGTH,
|
|
4181
4204
|
SITE_SPACE_PATH_MIN_LENGTH,
|
|
4182
4205
|
SITE_TITLE_MAX_LENGTH,
|
|
@@ -4205,6 +4228,7 @@ export {
|
|
|
4205
4228
|
SiteInsightsVisitorBrowser,
|
|
4206
4229
|
SiteInsightsVisitorDevice,
|
|
4207
4230
|
SiteInsightsVisitorOS,
|
|
4231
|
+
SiteSocialAccountPlatform,
|
|
4208
4232
|
SiteType,
|
|
4209
4233
|
SiteVisibility,
|
|
4210
4234
|
SpaceEditMode,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -12704,6 +12704,14 @@
|
|
|
12704
12704
|
},
|
|
12705
12705
|
{
|
|
12706
12706
|
"$ref": "#/components/parameters/listLimit"
|
|
12707
|
+
},
|
|
12708
|
+
{
|
|
12709
|
+
"name": "search",
|
|
12710
|
+
"in": "query",
|
|
12711
|
+
"description": "Search share links by name or key",
|
|
12712
|
+
"schema": {
|
|
12713
|
+
"type": "string"
|
|
12714
|
+
}
|
|
12707
12715
|
}
|
|
12708
12716
|
],
|
|
12709
12717
|
"responses": {
|
|
@@ -18120,6 +18128,10 @@
|
|
|
18120
18128
|
"type": "number",
|
|
18121
18129
|
"description": "Count of draft change requests on the space."
|
|
18122
18130
|
},
|
|
18131
|
+
"internal_poweredByV2": {
|
|
18132
|
+
"type": "boolean",
|
|
18133
|
+
"description": "Whether the space is powered by V2 of the content system."
|
|
18134
|
+
},
|
|
18123
18135
|
"permissions": {
|
|
18124
18136
|
"type": "object",
|
|
18125
18137
|
"description": "The set of permissions for the space",
|
|
@@ -34354,6 +34366,68 @@
|
|
|
34354
34366
|
"blank"
|
|
34355
34367
|
]
|
|
34356
34368
|
},
|
|
34369
|
+
"SiteSocialAccountPlatform": {
|
|
34370
|
+
"description": "The platform of the social handle.",
|
|
34371
|
+
"type": "string",
|
|
34372
|
+
"enum": [
|
|
34373
|
+
"twitter",
|
|
34374
|
+
"instagram",
|
|
34375
|
+
"facebook",
|
|
34376
|
+
"linkedin",
|
|
34377
|
+
"github",
|
|
34378
|
+
"discord",
|
|
34379
|
+
"slack",
|
|
34380
|
+
"youtube",
|
|
34381
|
+
"tiktok",
|
|
34382
|
+
"reddit",
|
|
34383
|
+
"bluesky",
|
|
34384
|
+
"mastodon",
|
|
34385
|
+
"threads",
|
|
34386
|
+
"medium"
|
|
34387
|
+
]
|
|
34388
|
+
},
|
|
34389
|
+
"SiteSocialAccountHandle": {
|
|
34390
|
+
"description": "A handle on a social platform, without prefixes like the @ symbol.",
|
|
34391
|
+
"type": "string",
|
|
34392
|
+
"minLength": 1,
|
|
34393
|
+
"maxLength": 128
|
|
34394
|
+
},
|
|
34395
|
+
"SiteSocialAccount": {
|
|
34396
|
+
"type": "object",
|
|
34397
|
+
"properties": {
|
|
34398
|
+
"platform": {
|
|
34399
|
+
"$ref": "#/components/schemas/SiteSocialAccountPlatform"
|
|
34400
|
+
},
|
|
34401
|
+
"handle": {
|
|
34402
|
+
"$ref": "#/components/schemas/SiteSocialAccountHandle"
|
|
34403
|
+
},
|
|
34404
|
+
"display": {
|
|
34405
|
+
"type": "object",
|
|
34406
|
+
"properties": {
|
|
34407
|
+
"footer": {
|
|
34408
|
+
"type": "boolean",
|
|
34409
|
+
"default": true
|
|
34410
|
+
}
|
|
34411
|
+
},
|
|
34412
|
+
"required": [
|
|
34413
|
+
"footer"
|
|
34414
|
+
]
|
|
34415
|
+
}
|
|
34416
|
+
},
|
|
34417
|
+
"required": [
|
|
34418
|
+
"platform",
|
|
34419
|
+
"handle",
|
|
34420
|
+
"display"
|
|
34421
|
+
]
|
|
34422
|
+
},
|
|
34423
|
+
"SiteSocialAccounts": {
|
|
34424
|
+
"type": "array",
|
|
34425
|
+
"description": "The social accounts of the site.",
|
|
34426
|
+
"items": {
|
|
34427
|
+
"$ref": "#/components/schemas/SiteSocialAccount"
|
|
34428
|
+
},
|
|
34429
|
+
"maxItems": 10
|
|
34430
|
+
},
|
|
34357
34431
|
"SiteCustomizationSettings": {
|
|
34358
34432
|
"type": "object",
|
|
34359
34433
|
"properties": {
|
|
@@ -34670,6 +34744,9 @@
|
|
|
34670
34744
|
}
|
|
34671
34745
|
}
|
|
34672
34746
|
},
|
|
34747
|
+
"socialAccounts": {
|
|
34748
|
+
"$ref": "#/components/schemas/SiteSocialAccounts"
|
|
34749
|
+
},
|
|
34673
34750
|
"insights": {
|
|
34674
34751
|
"type": "object",
|
|
34675
34752
|
"properties": {
|
|
@@ -34702,6 +34779,7 @@
|
|
|
34702
34779
|
"git",
|
|
34703
34780
|
"privacyPolicy",
|
|
34704
34781
|
"socialPreview",
|
|
34782
|
+
"socialAccounts",
|
|
34705
34783
|
"insights"
|
|
34706
34784
|
]
|
|
34707
34785
|
},
|
package/spec/openapi.yaml
CHANGED
|
@@ -7219,6 +7219,11 @@ paths:
|
|
|
7219
7219
|
- $ref: "#/components/parameters/siteId"
|
|
7220
7220
|
- $ref: "#/components/parameters/listPage"
|
|
7221
7221
|
- $ref: "#/components/parameters/listLimit"
|
|
7222
|
+
- name: search
|
|
7223
|
+
in: query
|
|
7224
|
+
description: Search share links by name or key
|
|
7225
|
+
schema:
|
|
7226
|
+
type: string
|
|
7222
7227
|
responses:
|
|
7223
7228
|
"200":
|
|
7224
7229
|
description: OK
|
|
@@ -10496,6 +10501,9 @@ components:
|
|
|
10496
10501
|
changeRequestsDraft:
|
|
10497
10502
|
type: number
|
|
10498
10503
|
description: Count of draft change requests on the space.
|
|
10504
|
+
internal_poweredByV2:
|
|
10505
|
+
type: boolean
|
|
10506
|
+
description: Whether the space is powered by V2 of the content system.
|
|
10499
10507
|
permissions:
|
|
10500
10508
|
type: object
|
|
10501
10509
|
description: The set of permissions for the space
|
|
@@ -21199,6 +21207,54 @@ components:
|
|
|
21199
21207
|
enum:
|
|
21200
21208
|
- self
|
|
21201
21209
|
- blank
|
|
21210
|
+
SiteSocialAccountPlatform:
|
|
21211
|
+
description: The platform of the social handle.
|
|
21212
|
+
type: string
|
|
21213
|
+
enum:
|
|
21214
|
+
- twitter
|
|
21215
|
+
- instagram
|
|
21216
|
+
- facebook
|
|
21217
|
+
- linkedin
|
|
21218
|
+
- github
|
|
21219
|
+
- discord
|
|
21220
|
+
- slack
|
|
21221
|
+
- youtube
|
|
21222
|
+
- tiktok
|
|
21223
|
+
- reddit
|
|
21224
|
+
- bluesky
|
|
21225
|
+
- mastodon
|
|
21226
|
+
- threads
|
|
21227
|
+
- medium
|
|
21228
|
+
SiteSocialAccountHandle:
|
|
21229
|
+
description: A handle on a social platform, without prefixes like the @ symbol.
|
|
21230
|
+
type: string
|
|
21231
|
+
minLength: 1
|
|
21232
|
+
maxLength: 128
|
|
21233
|
+
SiteSocialAccount:
|
|
21234
|
+
type: object
|
|
21235
|
+
properties:
|
|
21236
|
+
platform:
|
|
21237
|
+
$ref: "#/components/schemas/SiteSocialAccountPlatform"
|
|
21238
|
+
handle:
|
|
21239
|
+
$ref: "#/components/schemas/SiteSocialAccountHandle"
|
|
21240
|
+
display:
|
|
21241
|
+
type: object
|
|
21242
|
+
properties:
|
|
21243
|
+
footer:
|
|
21244
|
+
type: boolean
|
|
21245
|
+
default: true
|
|
21246
|
+
required:
|
|
21247
|
+
- footer
|
|
21248
|
+
required:
|
|
21249
|
+
- platform
|
|
21250
|
+
- handle
|
|
21251
|
+
- display
|
|
21252
|
+
SiteSocialAccounts:
|
|
21253
|
+
type: array
|
|
21254
|
+
description: The social accounts of the site.
|
|
21255
|
+
items:
|
|
21256
|
+
$ref: "#/components/schemas/SiteSocialAccount"
|
|
21257
|
+
maxItems: 10
|
|
21202
21258
|
SiteCustomizationSettings:
|
|
21203
21259
|
type: object
|
|
21204
21260
|
properties:
|
|
@@ -21419,6 +21475,8 @@ components:
|
|
|
21419
21475
|
properties:
|
|
21420
21476
|
url:
|
|
21421
21477
|
$ref: "#/components/schemas/URL"
|
|
21478
|
+
socialAccounts:
|
|
21479
|
+
$ref: "#/components/schemas/SiteSocialAccounts"
|
|
21422
21480
|
insights:
|
|
21423
21481
|
type: object
|
|
21424
21482
|
properties:
|
|
@@ -21446,6 +21504,7 @@ components:
|
|
|
21446
21504
|
- git
|
|
21447
21505
|
- privacyPolicy
|
|
21448
21506
|
- socialPreview
|
|
21507
|
+
- socialAccounts
|
|
21449
21508
|
- insights
|
|
21450
21509
|
SiteIntegrationScript:
|
|
21451
21510
|
type: object
|