@gitbook/api 0.155.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 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. */
@@ -1100,7 +1102,7 @@ export interface DocumentBlockExpandable {
1100
1102
  fragment: 'expandable-body';
1101
1103
  type: 'expandable-body';
1102
1104
  /** @minItems 1 */
1103
- nodes: (DocumentBlocksEssentials | DocumentBlockImages | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent)[];
1105
+ nodes: (DocumentBlocksEssentials | DocumentBlockFile | DocumentBlockImages | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent)[];
1104
1106
  }))[];
1105
1107
  meta?: {
1106
1108
  /** Unique ID to be used in an URL for the block. */
@@ -2758,11 +2760,17 @@ export interface IntegrationContentSource {
2758
2760
  /** ContentKit component for configuration */
2759
2761
  configuration: IntegrationConfigurationComponent;
2760
2762
  }
2763
+ /**
2764
+ * Property title for an integration configuration property
2765
+ * @minLength 2
2766
+ * @maxLength 50
2767
+ */
2768
+ export type IntegrationPropertyTitle = string;
2761
2769
  /** Schema for a configuration */
2762
2770
  export interface IntegrationConfigurationSchema {
2763
2771
  properties: Record<string, {
2764
- /** @maxLength 30 */
2765
- title?: string;
2772
+ /** Property title for an integration configuration property */
2773
+ title?: IntegrationPropertyTitle;
2766
2774
  /** @maxLength 100 */
2767
2775
  description?: string;
2768
2776
  } & ({
@@ -5290,6 +5298,44 @@ export declare enum SiteExternalLinksTarget {
5290
5298
  Self = "self",
5291
5299
  Blank = "blank"
5292
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[];
5293
5339
  export interface SiteCustomizationSettings {
5294
5340
  /** Title to use for the published site. If not defined, it'll fallback to the default content title. */
5295
5341
  title?: SiteTitle;
@@ -5437,6 +5483,8 @@ export interface SiteCustomizationSettings {
5437
5483
  socialPreview: {
5438
5484
  url?: URL;
5439
5485
  };
5486
+ /** The social accounts of the site. */
5487
+ socialAccounts: SiteSocialAccounts;
5440
5488
  insights: {
5441
5489
  /**
5442
5490
  * Whether GitBook identifies the visitor on the site using a cookie.
@@ -5614,7 +5662,14 @@ export interface AIAttachmentImage {
5614
5662
  type: 'image';
5615
5663
  url: URL;
5616
5664
  }
5617
- export type AIAttachment = AIAttachmentImage;
5665
+ export interface AIAttachmentFile {
5666
+ type: 'file';
5667
+ url: URL;
5668
+ /** Name of the file. */
5669
+ filename: string;
5670
+ contentType: 'application/pdf';
5671
+ }
5672
+ export type AIAttachment = AIAttachmentImage | AIAttachmentFile;
5618
5673
  /** Input version of an AI message. */
5619
5674
  export interface AIMessageInput {
5620
5675
  role: 'user';
@@ -5749,6 +5804,13 @@ export interface AIToolCallGetPages {
5749
5804
  /** The revision ID of the space. */
5750
5805
  revisionId: string;
5751
5806
  }
5807
+ export interface AIToolCallGetReusableContents {
5808
+ tool: 'getReusableContents';
5809
+ /** The ID of the space being accessed. */
5810
+ spaceId: string;
5811
+ /** The revision ID of the space. */
5812
+ revisionId: string;
5813
+ }
5752
5814
  /** Result of a search */
5753
5815
  export interface AIToolCallSearchResult {
5754
5816
  /** The ID of the space */
@@ -5905,7 +5967,7 @@ export interface AIToolCallOther {
5905
5967
  /** Summary of a generic tool call. */
5906
5968
  summary: AIToolCallOtherSummary;
5907
5969
  }
5908
- export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallCreateChangeRequest | AIToolCallComment | AIToolCallReplyToComment | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
5970
+ export type AIToolCall = AIToolCallGetPageContent | AIToolCallGetPages | AIToolCallGetReusableContents | AIToolCallSearch | AIToolCallEditPage | AIToolCallCreatePage | AIToolCallDeletePage | AIToolCallRenamePage | AIToolCallMovePage | AIToolCallListModifiedPages | AIToolCallGetPageDiff | AIToolCallCreateReusableContent | AIToolCallEditReusableContent | AIToolCallGetReusableContent | AIToolCallCreateChangeRequest | AIToolCallComment | AIToolCallReplyToComment | AIToolCallSubmitChangeRequestReview | AIToolCallMCP | AIToolCallOther;
5909
5971
  /** Message emitted by the server to indicate that the AI has called a tool. */
5910
5972
  export interface AIStreamResponseToolCall {
5911
5973
  type: 'response_tool_call';
@@ -7606,6 +7668,7 @@ export type DocumentTextBackgroundColor = DocumentTextColor;
7606
7668
  export type SpaceVisitorAuth = VisitorAuth;
7607
7669
  export type SpaceVisitorAuthCustomBackend = VisitorAuthCustomBackend;
7608
7670
  export type SpaceVisitorAuthIntegrationBackend = VisitorAuthIntegrationBackend;
7671
+ export type IngegrationPropertyTitle = IntegrationPropertyTitle;
7609
7672
  export type UserPermissions = Index;
7610
7673
  export type SiteRedirectDestinationSpace = SiteRedirectDestinationSiteSpace;
7611
7674
  export type OpenAPISpecSourceURL = URL;
@@ -12376,6 +12439,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12376
12439
  * @max 1000
12377
12440
  */
12378
12441
  limit?: number;
12442
+ /** Search share links by name or key */
12443
+ search?: string;
12379
12444
  }, params?: RequestParams) => Promise<HttpResponse<List & {
12380
12445
  items: ShareLink[];
12381
12446
  }, any>>;
@@ -59,6 +59,8 @@ export declare const INTEGRATION_TARGET_ENUM: ["all", "site", "space", "organiza
59
59
  export declare const INTEGRATION_VISIBILITY_ENUM: ["public", "private", "unlisted"];
60
60
  export declare const INTEGRATION_SCOPE_ENUM: ["space:content:read", "space:content:write", "space:metadata:read", "space:metadata:write", "space:git:sync", "page:feedback:read", "site:metadata:read", "site:views:read", "site:script:inject", "site:script:cookies", "site:visitor:auth", "site:adaptive:read", "site:adaptive:write", "openapi:read", "openapi:write", "conversations:ingest"];
61
61
  export declare const INTEGRATION_CATEGORY_ENUM: ["analytics", "collaboration", "content", "gitsync", "marketing", "visitor-auth", "other"];
62
+ export declare const INTEGRATION_PROPERTY_TITLE_MAX_LENGTH = 50;
63
+ export declare const INTEGRATION_PROPERTY_TITLE_MIN_LENGTH = 2;
62
64
  export declare const INTEGRATION_INSTALLATION_STATUS_ENUM: ["active", "pending", "paused"];
63
65
  export declare const INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM: ["all", "selected"];
64
66
  export declare const INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM: ["all", "selected"];
@@ -125,6 +127,9 @@ export declare const CUSTOMIZATION_AIMODE_ENUM: ["none", "search", "assistant"];
125
127
  export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
126
128
  export declare const CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
127
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;
128
133
  export declare const SHARE_LINK_NAME_MAX_LENGTH = 50;
129
134
  export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
130
135
  export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
package/dist/index.cjs CHANGED
@@ -304,6 +304,8 @@ __export(src_exports, {
304
304
  INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM: () => INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM,
305
305
  INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM: () => INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM,
306
306
  INTEGRATION_INSTALLATION_STATUS_ENUM: () => INTEGRATION_INSTALLATION_STATUS_ENUM,
307
+ INTEGRATION_PROPERTY_TITLE_MAX_LENGTH: () => INTEGRATION_PROPERTY_TITLE_MAX_LENGTH,
308
+ INTEGRATION_PROPERTY_TITLE_MIN_LENGTH: () => INTEGRATION_PROPERTY_TITLE_MIN_LENGTH,
307
309
  INTEGRATION_SCOPE_ENUM: () => INTEGRATION_SCOPE_ENUM,
308
310
  INTEGRATION_SUMMARY_MAX_LENGTH: () => INTEGRATION_SUMMARY_MAX_LENGTH,
309
311
  INTEGRATION_TARGET_ENUM: () => INTEGRATION_TARGET_ENUM,
@@ -399,6 +401,9 @@ __export(src_exports, {
399
401
  SITE_SECTION_PATH_MIN_LENGTH: () => SITE_SECTION_PATH_MIN_LENGTH,
400
402
  SITE_SECTION_TITLE_MAX_LENGTH: () => SITE_SECTION_TITLE_MAX_LENGTH,
401
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,
402
407
  SITE_SPACE_PATH_MAX_LENGTH: () => SITE_SPACE_PATH_MAX_LENGTH,
403
408
  SITE_SPACE_PATH_MIN_LENGTH: () => SITE_SPACE_PATH_MIN_LENGTH,
404
409
  SITE_TITLE_MAX_LENGTH: () => SITE_TITLE_MAX_LENGTH,
@@ -427,6 +432,7 @@ __export(src_exports, {
427
432
  SiteInsightsVisitorBrowser: () => SiteInsightsVisitorBrowser,
428
433
  SiteInsightsVisitorDevice: () => SiteInsightsVisitorDevice,
429
434
  SiteInsightsVisitorOS: () => SiteInsightsVisitorOS,
435
+ SiteSocialAccountPlatform: () => SiteSocialAccountPlatform,
430
436
  SiteType: () => SiteType,
431
437
  SiteVisibility: () => SiteVisibility,
432
438
  SpaceEditMode: () => SpaceEditMode,
@@ -447,7 +453,7 @@ module.exports = __toCommonJS(src_exports);
447
453
 
448
454
  // package.json
449
455
  var name = "@gitbook/api";
450
- var version = "0.155.0";
456
+ var version = "0.158.0";
451
457
 
452
458
  // src/client.ts
453
459
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1094,6 +1100,23 @@ var SiteExternalLinksTarget = /* @__PURE__ */ ((SiteExternalLinksTarget2) => {
1094
1100
  SiteExternalLinksTarget2["Blank"] = "blank";
1095
1101
  return SiteExternalLinksTarget2;
1096
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 || {});
1097
1120
  var AIModel = /* @__PURE__ */ ((AIModel2) => {
1098
1121
  AIModel2["Fast"] = "fast";
1099
1122
  AIModel2["ReasoningLow"] = "reasoning-low";
@@ -4057,6 +4080,8 @@ var INTEGRATION_TARGET_ENUM = ["all", "site", "space", "organization"];
4057
4080
  var INTEGRATION_VISIBILITY_ENUM = ["public", "private", "unlisted"];
4058
4081
  var INTEGRATION_SCOPE_ENUM = ["space:content:read", "space:content:write", "space:metadata:read", "space:metadata:write", "space:git:sync", "page:feedback:read", "site:metadata:read", "site:views:read", "site:script:inject", "site:script:cookies", "site:visitor:auth", "site:adaptive:read", "site:adaptive:write", "openapi:read", "openapi:write", "conversations:ingest"];
4059
4082
  var INTEGRATION_CATEGORY_ENUM = ["analytics", "collaboration", "content", "gitsync", "marketing", "visitor-auth", "other"];
4083
+ var INTEGRATION_PROPERTY_TITLE_MAX_LENGTH = 50;
4084
+ var INTEGRATION_PROPERTY_TITLE_MIN_LENGTH = 2;
4060
4085
  var INTEGRATION_INSTALLATION_STATUS_ENUM = ["active", "pending", "paused"];
4061
4086
  var INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM = ["all", "selected"];
4062
4087
  var INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM = ["all", "selected"];
@@ -4123,6 +4148,9 @@ var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
4123
4148
  var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
4124
4149
  var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
4125
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;
4126
4154
  var SHARE_LINK_NAME_MAX_LENGTH = 50;
4127
4155
  var SHARE_LINK_NAME_MIN_LENGTH = 0;
4128
4156
  var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
@@ -4354,6 +4382,8 @@ var GitBookAPI = class extends Api {
4354
4382
  INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM,
4355
4383
  INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM,
4356
4384
  INTEGRATION_INSTALLATION_STATUS_ENUM,
4385
+ INTEGRATION_PROPERTY_TITLE_MAX_LENGTH,
4386
+ INTEGRATION_PROPERTY_TITLE_MIN_LENGTH,
4357
4387
  INTEGRATION_SCOPE_ENUM,
4358
4388
  INTEGRATION_SUMMARY_MAX_LENGTH,
4359
4389
  INTEGRATION_TARGET_ENUM,
@@ -4449,6 +4479,9 @@ var GitBookAPI = class extends Api {
4449
4479
  SITE_SECTION_PATH_MIN_LENGTH,
4450
4480
  SITE_SECTION_TITLE_MAX_LENGTH,
4451
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,
4452
4485
  SITE_SPACE_PATH_MAX_LENGTH,
4453
4486
  SITE_SPACE_PATH_MIN_LENGTH,
4454
4487
  SITE_TITLE_MAX_LENGTH,
@@ -4477,6 +4510,7 @@ var GitBookAPI = class extends Api {
4477
4510
  SiteInsightsVisitorBrowser,
4478
4511
  SiteInsightsVisitorDevice,
4479
4512
  SiteInsightsVisitorOS,
4513
+ SiteSocialAccountPlatform,
4480
4514
  SiteType,
4481
4515
  SiteVisibility,
4482
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.155.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";
@@ -3782,6 +3799,8 @@ var INTEGRATION_TARGET_ENUM = ["all", "site", "space", "organization"];
3782
3799
  var INTEGRATION_VISIBILITY_ENUM = ["public", "private", "unlisted"];
3783
3800
  var INTEGRATION_SCOPE_ENUM = ["space:content:read", "space:content:write", "space:metadata:read", "space:metadata:write", "space:git:sync", "page:feedback:read", "site:metadata:read", "site:views:read", "site:script:inject", "site:script:cookies", "site:visitor:auth", "site:adaptive:read", "site:adaptive:write", "openapi:read", "openapi:write", "conversations:ingest"];
3784
3801
  var INTEGRATION_CATEGORY_ENUM = ["analytics", "collaboration", "content", "gitsync", "marketing", "visitor-auth", "other"];
3802
+ var INTEGRATION_PROPERTY_TITLE_MAX_LENGTH = 50;
3803
+ var INTEGRATION_PROPERTY_TITLE_MIN_LENGTH = 2;
3785
3804
  var INTEGRATION_INSTALLATION_STATUS_ENUM = ["active", "pending", "paused"];
3786
3805
  var INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM = ["all", "selected"];
3787
3806
  var INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM = ["all", "selected"];
@@ -3848,6 +3867,9 @@ var CUSTOMIZATION_AIMODE_ENUM = ["none", "search", "assistant"];
3848
3867
  var CUSTOMIZATION_SUGGESTED_QUESTION_MAX_LENGTH = 64;
3849
3868
  var CUSTOMIZATION_SUGGESTED_QUESTION_MIN_LENGTH = 3;
3850
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;
3851
3873
  var SHARE_LINK_NAME_MAX_LENGTH = 50;
3852
3874
  var SHARE_LINK_NAME_MIN_LENGTH = 0;
3853
3875
  var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
@@ -4078,6 +4100,8 @@ export {
4078
4100
  INTEGRATION_INSTALLATION_SITE_SELECTION_ENUM,
4079
4101
  INTEGRATION_INSTALLATION_SPACE_SELECTION_ENUM,
4080
4102
  INTEGRATION_INSTALLATION_STATUS_ENUM,
4103
+ INTEGRATION_PROPERTY_TITLE_MAX_LENGTH,
4104
+ INTEGRATION_PROPERTY_TITLE_MIN_LENGTH,
4081
4105
  INTEGRATION_SCOPE_ENUM,
4082
4106
  INTEGRATION_SUMMARY_MAX_LENGTH,
4083
4107
  INTEGRATION_TARGET_ENUM,
@@ -4173,6 +4197,9 @@ export {
4173
4197
  SITE_SECTION_PATH_MIN_LENGTH,
4174
4198
  SITE_SECTION_TITLE_MAX_LENGTH,
4175
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,
4176
4203
  SITE_SPACE_PATH_MAX_LENGTH,
4177
4204
  SITE_SPACE_PATH_MIN_LENGTH,
4178
4205
  SITE_TITLE_MAX_LENGTH,
@@ -4201,6 +4228,7 @@ export {
4201
4228
  SiteInsightsVisitorBrowser,
4202
4229
  SiteInsightsVisitorDevice,
4203
4230
  SiteInsightsVisitorOS,
4231
+ SiteSocialAccountPlatform,
4204
4232
  SiteType,
4205
4233
  SiteVisibility,
4206
4234
  SpaceEditMode,
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.155.0",
7
+ "version": "0.158.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
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",
@@ -21540,6 +21552,9 @@
21540
21552
  {
21541
21553
  "$ref": "#/components/schemas/DocumentBlocksEssentials"
21542
21554
  },
21555
+ {
21556
+ "$ref": "#/components/schemas/DocumentBlockFile"
21557
+ },
21543
21558
  {
21544
21559
  "$ref": "#/components/schemas/DocumentBlockImages"
21545
21560
  },
@@ -27058,6 +27073,12 @@
27058
27073
  "configuration"
27059
27074
  ]
27060
27075
  },
27076
+ "IntegrationPropertyTitle": {
27077
+ "type": "string",
27078
+ "description": "Property title for an integration configuration property",
27079
+ "minLength": 2,
27080
+ "maxLength": 50
27081
+ },
27061
27082
  "IntegrationConfigurationSchema": {
27062
27083
  "type": "object",
27063
27084
  "description": "Schema for a configuration",
@@ -27070,8 +27091,7 @@
27070
27091
  "type": "object",
27071
27092
  "properties": {
27072
27093
  "title": {
27073
- "type": "string",
27074
- "maxLength": 30
27094
+ "$ref": "#/components/schemas/IntegrationPropertyTitle"
27075
27095
  },
27076
27096
  "description": {
27077
27097
  "type": "string",
@@ -34346,6 +34366,68 @@
34346
34366
  "blank"
34347
34367
  ]
34348
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
+ },
34349
34431
  "SiteCustomizationSettings": {
34350
34432
  "type": "object",
34351
34433
  "properties": {
@@ -34662,6 +34744,9 @@
34662
34744
  }
34663
34745
  }
34664
34746
  },
34747
+ "socialAccounts": {
34748
+ "$ref": "#/components/schemas/SiteSocialAccounts"
34749
+ },
34665
34750
  "insights": {
34666
34751
  "type": "object",
34667
34752
  "properties": {
@@ -34694,6 +34779,7 @@
34694
34779
  "git",
34695
34780
  "privacyPolicy",
34696
34781
  "socialPreview",
34782
+ "socialAccounts",
34697
34783
  "insights"
34698
34784
  ]
34699
34785
  },
@@ -35263,10 +35349,43 @@
35263
35349
  "url"
35264
35350
  ]
35265
35351
  },
35352
+ "AIAttachmentFile": {
35353
+ "type": "object",
35354
+ "properties": {
35355
+ "type": {
35356
+ "type": "string",
35357
+ "enum": [
35358
+ "file"
35359
+ ]
35360
+ },
35361
+ "url": {
35362
+ "$ref": "#/components/schemas/URL"
35363
+ },
35364
+ "filename": {
35365
+ "type": "string",
35366
+ "description": "Name of the file."
35367
+ },
35368
+ "contentType": {
35369
+ "type": "string",
35370
+ "enum": [
35371
+ "application/pdf"
35372
+ ]
35373
+ }
35374
+ },
35375
+ "required": [
35376
+ "type",
35377
+ "url",
35378
+ "filename",
35379
+ "contentType"
35380
+ ]
35381
+ },
35266
35382
  "AIAttachment": {
35267
35383
  "oneOf": [
35268
35384
  {
35269
35385
  "$ref": "#/components/schemas/AIAttachmentImage"
35386
+ },
35387
+ {
35388
+ "$ref": "#/components/schemas/AIAttachmentFile"
35270
35389
  }
35271
35390
  ]
35272
35391
  },
@@ -35694,6 +35813,30 @@
35694
35813
  "revisionId"
35695
35814
  ]
35696
35815
  },
35816
+ "AIToolCallGetReusableContents": {
35817
+ "type": "object",
35818
+ "properties": {
35819
+ "tool": {
35820
+ "type": "string",
35821
+ "enum": [
35822
+ "getReusableContents"
35823
+ ]
35824
+ },
35825
+ "spaceId": {
35826
+ "type": "string",
35827
+ "description": "The ID of the space being accessed."
35828
+ },
35829
+ "revisionId": {
35830
+ "type": "string",
35831
+ "description": "The revision ID of the space."
35832
+ }
35833
+ },
35834
+ "required": [
35835
+ "tool",
35836
+ "spaceId",
35837
+ "revisionId"
35838
+ ]
35839
+ },
35697
35840
  "AIToolCallSearchResult": {
35698
35841
  "type": "object",
35699
35842
  "description": "Result of a search",
@@ -36212,6 +36355,9 @@
36212
36355
  {
36213
36356
  "$ref": "#/components/schemas/AIToolCallGetPages"
36214
36357
  },
36358
+ {
36359
+ "$ref": "#/components/schemas/AIToolCallGetReusableContents"
36360
+ },
36215
36361
  {
36216
36362
  "$ref": "#/components/schemas/AIToolCallSearch"
36217
36363
  },
@@ -42902,6 +43048,9 @@
42902
43048
  "SpaceVisitorAuthIntegrationBackend": {
42903
43049
  "$ref": "#/components/schemas/VisitorAuthIntegrationBackend"
42904
43050
  },
43051
+ "IngegrationPropertyTitle": {
43052
+ "$ref": "#/components/schemas/IntegrationPropertyTitle"
43053
+ },
42905
43054
  "UserPermissions": {
42906
43055
  "$ref": "#/components/schemas/_index"
42907
43056
  },
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
@@ -12689,6 +12697,7 @@ components:
12689
12697
  items:
12690
12698
  oneOf:
12691
12699
  - $ref: "#/components/schemas/DocumentBlocksEssentials"
12700
+ - $ref: "#/components/schemas/DocumentBlockFile"
12692
12701
  - $ref: "#/components/schemas/DocumentBlockImages"
12693
12702
  - $ref: "#/components/schemas/DocumentBlockCode"
12694
12703
  - $ref: "#/components/schemas/DocumentBlockTable"
@@ -16281,6 +16290,11 @@ components:
16281
16290
  - id
16282
16291
  - title
16283
16292
  - configuration
16293
+ IntegrationPropertyTitle:
16294
+ type: string
16295
+ description: Property title for an integration configuration property
16296
+ minLength: 2
16297
+ maxLength: 50
16284
16298
  IntegrationConfigurationSchema:
16285
16299
  type: object
16286
16300
  description: Schema for a configuration
@@ -16292,8 +16306,7 @@ components:
16292
16306
  - type: object
16293
16307
  properties:
16294
16308
  title:
16295
- type: string
16296
- maxLength: 30
16309
+ $ref: "#/components/schemas/IntegrationPropertyTitle"
16297
16310
  description:
16298
16311
  type: string
16299
16312
  maxLength: 100
@@ -21194,6 +21207,54 @@ components:
21194
21207
  enum:
21195
21208
  - self
21196
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
21197
21258
  SiteCustomizationSettings:
21198
21259
  type: object
21199
21260
  properties:
@@ -21414,6 +21475,8 @@ components:
21414
21475
  properties:
21415
21476
  url:
21416
21477
  $ref: "#/components/schemas/URL"
21478
+ socialAccounts:
21479
+ $ref: "#/components/schemas/SiteSocialAccounts"
21417
21480
  insights:
21418
21481
  type: object
21419
21482
  properties:
@@ -21441,6 +21504,7 @@ components:
21441
21504
  - git
21442
21505
  - privacyPolicy
21443
21506
  - socialPreview
21507
+ - socialAccounts
21444
21508
  - insights
21445
21509
  SiteIntegrationScript:
21446
21510
  type: object
@@ -21812,9 +21876,31 @@ components:
21812
21876
  required:
21813
21877
  - type
21814
21878
  - url
21879
+ AIAttachmentFile:
21880
+ type: object
21881
+ properties:
21882
+ type:
21883
+ type: string
21884
+ enum:
21885
+ - file
21886
+ url:
21887
+ $ref: "#/components/schemas/URL"
21888
+ filename:
21889
+ type: string
21890
+ description: Name of the file.
21891
+ contentType:
21892
+ type: string
21893
+ enum:
21894
+ - application/pdf
21895
+ required:
21896
+ - type
21897
+ - url
21898
+ - filename
21899
+ - contentType
21815
21900
  AIAttachment:
21816
21901
  oneOf:
21817
21902
  - $ref: "#/components/schemas/AIAttachmentImage"
21903
+ - $ref: "#/components/schemas/AIAttachmentFile"
21818
21904
  AIMessageInput:
21819
21905
  type: object
21820
21906
  description: Input version of an AI message.
@@ -22122,6 +22208,23 @@ components:
22122
22208
  - tool
22123
22209
  - spaceId
22124
22210
  - revisionId
22211
+ AIToolCallGetReusableContents:
22212
+ type: object
22213
+ properties:
22214
+ tool:
22215
+ type: string
22216
+ enum:
22217
+ - getReusableContents
22218
+ spaceId:
22219
+ type: string
22220
+ description: The ID of the space being accessed.
22221
+ revisionId:
22222
+ type: string
22223
+ description: The revision ID of the space.
22224
+ required:
22225
+ - tool
22226
+ - spaceId
22227
+ - revisionId
22125
22228
  AIToolCallSearchResult:
22126
22229
  type: object
22127
22230
  description: Result of a search
@@ -22494,6 +22597,7 @@ components:
22494
22597
  oneOf:
22495
22598
  - $ref: "#/components/schemas/AIToolCallGetPageContent"
22496
22599
  - $ref: "#/components/schemas/AIToolCallGetPages"
22600
+ - $ref: "#/components/schemas/AIToolCallGetReusableContents"
22497
22601
  - $ref: "#/components/schemas/AIToolCallSearch"
22498
22602
  - $ref: "#/components/schemas/AIToolCallEditPage"
22499
22603
  - $ref: "#/components/schemas/AIToolCallCreatePage"
@@ -26803,6 +26907,8 @@ components:
26803
26907
  $ref: "#/components/schemas/VisitorAuthCustomBackend"
26804
26908
  SpaceVisitorAuthIntegrationBackend:
26805
26909
  $ref: "#/components/schemas/VisitorAuthIntegrationBackend"
26910
+ IngegrationPropertyTitle:
26911
+ $ref: "#/components/schemas/IntegrationPropertyTitle"
26806
26912
  UserPermissions:
26807
26913
  $ref: "#/components/schemas/_index"
26808
26914
  SiteRedirectDestinationSpace: