@gitbook/api 0.117.0 → 0.118.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
@@ -825,7 +825,7 @@ export interface DocumentBlockDivider {
825
825
  isVoid: true;
826
826
  data: object;
827
827
  }
828
- export type DocumentBlockImageDimension = number | {
828
+ export type Length = number | {
829
829
  unit: string;
830
830
  value: number;
831
831
  };
@@ -836,8 +836,8 @@ export interface DocumentBlockImage {
836
836
  data: {
837
837
  ref: ContentRefURL | ContentRefFile;
838
838
  refDark?: ContentRefURL | ContentRefFile;
839
- width?: DocumentBlockImageDimension;
840
- height?: DocumentBlockImageDimension;
839
+ width?: Length;
840
+ height?: Length;
841
841
  alt?: string;
842
842
  };
843
843
  fragments: (DocumentFragment & {
@@ -1107,7 +1107,9 @@ export interface DocumentBlockColumn {
1107
1107
  key?: string;
1108
1108
  nodes: (DocumentBlocksEssentials | DocumentBlockImages)[];
1109
1109
  isVoid?: false;
1110
- data: object;
1110
+ data: {
1111
+ width?: Length;
1112
+ };
1111
1113
  }
1112
1114
  export interface DocumentBlockColumns {
1113
1115
  object: 'block';
@@ -2674,6 +2676,11 @@ export interface UpdateCustomFieldValues {
2674
2676
  /** Secrets stored on the integration and passed at runtime. */
2675
2677
  export type IntegrationSecrets = Record<string, string>;
2676
2678
  export interface PublishIntegration {
2679
+ /**
2680
+ * The runtime version to use for the integration. If not specified, the integration will use the default runtime.
2681
+ * @default "v1"
2682
+ */
2683
+ runtime?: 'v1' | 'v2';
2677
2684
  /**
2678
2685
  * Base64 content of the icon
2679
2686
  * @format byte
@@ -3198,6 +3205,15 @@ export type SiteAds = {
3198
3205
  /** The ad network zone ID */
3199
3206
  zoneId: string;
3200
3207
  };
3208
+ /**
3209
+ * Defines if the site will be included in the agent's context.
3210
+ * - `excluded` means that the agent will not be able to access the site.
3211
+ * - `included` means that the agent will be able to access the site.
3212
+ */
3213
+ export declare enum SiteAgentsContext {
3214
+ Excluded = "excluded",
3215
+ Included = "included"
3216
+ }
3201
3217
  /** A list of all premium customizations. */
3202
3218
  export declare enum SiteCustomizationFeature {
3203
3219
  HeaderLogo = "header-logo",
@@ -3256,6 +3272,12 @@ export interface Site {
3256
3272
  createdAt: string;
3257
3273
  adaptiveContent?: SiteAdaptiveContent;
3258
3274
  ads?: SiteAds;
3275
+ /**
3276
+ * Defines if the site will be included in the agent's context.
3277
+ * - `excluded` means that the agent will not be able to access the site.
3278
+ * - `included` means that the agent will be able to access the site.
3279
+ */
3280
+ agentsContext: SiteAgentsContext;
3259
3281
  /** A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified. */
3260
3282
  features: SiteFeature[];
3261
3283
  /** URLs associated with the object */
@@ -4660,7 +4682,17 @@ export interface CustomizationTint {
4660
4682
  }
4661
4683
  export declare enum CustomizationCorners {
4662
4684
  Straight = "straight",
4663
- Rounded = "rounded"
4685
+ Rounded = "rounded",
4686
+ Circular = "circular"
4687
+ }
4688
+ /**
4689
+ * The degree of visual depth (through shadows, gradients and elevation effects) of elements on the site.
4690
+ * - `subtle`: Subtle shadows and minimal elevation.
4691
+ * - `flat`: Flat elements, no shadows and no elevation.
4692
+ */
4693
+ export declare enum CustomizationDepth {
4694
+ Subtle = "subtle",
4695
+ Flat = "flat"
4664
4696
  }
4665
4697
  /**
4666
4698
  * The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
@@ -4810,6 +4842,12 @@ export interface SiteCustomizationSettings {
4810
4842
  warningColor: CustomizationThemedColor;
4811
4843
  dangerColor: CustomizationThemedColor;
4812
4844
  corners: CustomizationCorners;
4845
+ /**
4846
+ * The degree of visual depth (through shadows, gradients and elevation effects) of elements on the site.
4847
+ * - `subtle`: Subtle shadows and minimal elevation.
4848
+ * - `flat`: Flat elements, no shadows and no elevation.
4849
+ */
4850
+ depth: CustomizationDepth;
4813
4851
  /**
4814
4852
  * The style used for regular links in the main content, header and footer. Sidebar items are styled separately.
4815
4853
  * - `default`: Links are colored in the primary color and feature an underline in the same color.
@@ -5133,7 +5171,7 @@ export interface AIStreamResponseFinish {
5133
5171
  }
5134
5172
  /** Message emitted by the server to indicate the latest block of the document. The block can either be a new block or an update to the previous block. */
5135
5173
  export interface AIStreamResponseDocument {
5136
- type: 'response_document';
5174
+ type: 'response_document' | 'response_reasoning';
5137
5175
  /** The ID of the message that this event is composing. */
5138
5176
  messageId: string;
5139
5177
  /** The index of the step of the message that this event is composing. */
@@ -6099,6 +6137,10 @@ export interface TriggerContentIndexingContext {
6099
6137
  /** Whether to force a complete re-indexing of the Space. */
6100
6138
  force: boolean;
6101
6139
  }
6140
+ /** Predefined GitBook user identifiers */
6141
+ export declare enum GitBookUsers {
6142
+ GitbookAgent = "gitbook:agent"
6143
+ }
6102
6144
  export interface ContentPublishingAuth {
6103
6145
  /** Type of Object, always equals to "publishing-auth" */
6104
6146
  object: 'publishing-auth';
@@ -6786,6 +6828,7 @@ export interface Seat {
6786
6828
  /** A step in a message from the AI agent. */
6787
6829
  export interface AIMessageStep {
6788
6830
  content: JSONDocument;
6831
+ reasoning?: JSONDocument;
6789
6832
  toolCalls?: AIToolCall[];
6790
6833
  }
6791
6834
  export interface AIMessage {
@@ -10306,7 +10349,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10306
10349
  *
10307
10350
  * @tags integrations
10308
10351
  * @name ListOrganizationIntegrations
10309
- * @summary List all integrations
10352
+ * @summary List all public integrations along with private ones trusted by the specific org.
10310
10353
  * @request GET:/orgs/{organizationId}/integrations
10311
10354
  * @secure
10312
10355
  */
@@ -10335,6 +10378,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10335
10378
  contentSources?: boolean;
10336
10379
  /** If defined, only list integrations owned by the given organization. */
10337
10380
  owner?: string;
10381
+ /** Filter the integrations by scope */
10382
+ scope?: IntegrationScope;
10338
10383
  }, params?: RequestParams) => Promise<HttpResponse<List & {
10339
10384
  items: Integration[];
10340
10385
  }, any>>;
@@ -11290,6 +11335,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11290
11335
  /** Basename for the site. For e.g. api */
11291
11336
  basename?: SiteBasename;
11292
11337
  adaptiveContent?: SiteAdaptiveContent;
11338
+ /**
11339
+ * Defines if the site will be included in the agent's context.
11340
+ * - `excluded` means that the agent will not be able to access the site.
11341
+ * - `included` means that the agent will be able to access the site.
11342
+ */
11343
+ agentsContext?: SiteAgentsContext;
11293
11344
  /** ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section. */
11294
11345
  defaultSiteSpace?: string;
11295
11346
  /** ID of the site-section to be used as the default. */
@@ -11330,12 +11381,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11330
11381
  * No description
11331
11382
  *
11332
11383
  * @tags sites
11333
- * @name CreateOrUpdateSiteAdaptiveSchema
11334
- * @summary Create or update the JSON schema of the attributes expected for an Adaptive content site visitor.
11384
+ * @name UpdateSiteAdaptiveSchema
11385
+ * @summary Update the JSON schema of the attributes expected for an Adaptive content site visitor.
11335
11386
  * @request PUT:/orgs/{organizationId}/sites/{siteId}/adaptive-schema
11336
11387
  * @secure
11337
11388
  */
11338
- createOrUpdateSiteAdaptiveSchema: (organizationId: string, siteId: string, data: {
11389
+ updateSiteAdaptiveSchema: (organizationId: string, siteId: string, data: {
11339
11390
  /** The JSON schema to set on the site. */
11340
11391
  jsonSchema: SiteAdaptiveJSONSchema;
11341
11392
  }, params?: RequestParams) => Promise<HttpResponse<SiteAdaptiveSchema, Error | {
@@ -11958,6 +12009,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11958
12009
  tint?: CustomizationTint | null;
11959
12010
  /** The style of the corners to use. Set to null to reset the override. */
11960
12011
  corners?: CustomizationCorners | null;
12012
+ /** The depth of elements on the site. Set to null to reset the override. */
12013
+ depth?: CustomizationDepth | null;
11961
12014
  /** The style for links to use. Set to null to reset the override. */
11962
12015
  links?: CustomizationLinksStyle | null;
11963
12016
  /** The font family to use for the content. Set to null to reset the override. */
package/dist/index.cjs CHANGED
@@ -206,6 +206,7 @@ __export(src_exports, {
206
206
  CustomizationBackground: () => CustomizationBackground,
207
207
  CustomizationCorners: () => CustomizationCorners,
208
208
  CustomizationDefaultFont: () => CustomizationDefaultFont,
209
+ CustomizationDepth: () => CustomizationDepth,
209
210
  CustomizationHeaderPreset: () => CustomizationHeaderPreset,
210
211
  CustomizationIconsStyle: () => CustomizationIconsStyle,
211
212
  CustomizationLinksStyle: () => CustomizationLinksStyle,
@@ -218,6 +219,7 @@ __export(src_exports, {
218
219
  GITBOOK_DEFAULT_ENDPOINT: () => GITBOOK_DEFAULT_ENDPOINT,
219
220
  GitBookAPI: () => GitBookAPI,
220
221
  GitBookAPIError: () => GitBookAPIError,
222
+ GitBookUsers: () => GitBookUsers,
221
223
  GitSyncOperationDirection: () => GitSyncOperationDirection,
222
224
  GitSyncOperationStage: () => GitSyncOperationStage,
223
225
  GitSyncOperationState: () => GitSyncOperationState,
@@ -246,6 +248,7 @@ __export(src_exports, {
246
248
  SAMLProviderStatus: () => SAMLProviderStatus,
247
249
  SiteAdsStatus: () => SiteAdsStatus,
248
250
  SiteAdsTopic: () => SiteAdsTopic,
251
+ SiteAgentsContext: () => SiteAgentsContext,
249
252
  SiteCustomizationFeature: () => SiteCustomizationFeature,
250
253
  SiteInsightsAdPlacement: () => SiteInsightsAdPlacement,
251
254
  SiteInsightsEventType: () => SiteInsightsEventType,
@@ -268,7 +271,7 @@ module.exports = __toCommonJS(src_exports);
268
271
 
269
272
  // package.json
270
273
  var name = "@gitbook/api";
271
- var version = "0.117.0";
274
+ var version = "0.118.0";
272
275
 
273
276
  // src/client.ts
274
277
  var import_event_iterator = __toESM(require_node(), 1);
@@ -654,6 +657,11 @@ var SiteAdsTopic = /* @__PURE__ */ ((SiteAdsTopic2) => {
654
657
  SiteAdsTopic2["Crypto"] = "crypto";
655
658
  return SiteAdsTopic2;
656
659
  })(SiteAdsTopic || {});
660
+ var SiteAgentsContext = /* @__PURE__ */ ((SiteAgentsContext2) => {
661
+ SiteAgentsContext2["Excluded"] = "excluded";
662
+ SiteAgentsContext2["Included"] = "included";
663
+ return SiteAgentsContext2;
664
+ })(SiteAgentsContext || {});
657
665
  var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
658
666
  SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
659
667
  SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
@@ -725,8 +733,14 @@ var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
725
733
  var CustomizationCorners = /* @__PURE__ */ ((CustomizationCorners2) => {
726
734
  CustomizationCorners2["Straight"] = "straight";
727
735
  CustomizationCorners2["Rounded"] = "rounded";
736
+ CustomizationCorners2["Circular"] = "circular";
728
737
  return CustomizationCorners2;
729
738
  })(CustomizationCorners || {});
739
+ var CustomizationDepth = /* @__PURE__ */ ((CustomizationDepth2) => {
740
+ CustomizationDepth2["Subtle"] = "subtle";
741
+ CustomizationDepth2["Flat"] = "flat";
742
+ return CustomizationDepth2;
743
+ })(CustomizationDepth || {});
730
744
  var CustomizationLinksStyle = /* @__PURE__ */ ((CustomizationLinksStyle2) => {
731
745
  CustomizationLinksStyle2["Default"] = "default";
732
746
  CustomizationLinksStyle2["Accent"] = "accent";
@@ -958,6 +972,10 @@ var CloudflareHostnameTLSValidationMethod = /* @__PURE__ */ ((CloudflareHostname
958
972
  CloudflareHostnameTLSValidationMethod2["Email"] = "email";
959
973
  return CloudflareHostnameTLSValidationMethod2;
960
974
  })(CloudflareHostnameTLSValidationMethod || {});
975
+ var GitBookUsers = /* @__PURE__ */ ((GitBookUsers2) => {
976
+ GitBookUsers2["GitbookAgent"] = "gitbook:agent";
977
+ return GitBookUsers2;
978
+ })(GitBookUsers || {});
961
979
  var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
962
980
  RevisionSemanticChangeType2["PageCreated"] = "page_created";
963
981
  RevisionSemanticChangeType2["PageEdited"] = "page_edited";
@@ -3070,7 +3088,7 @@ var Api = class extends HttpClient {
3070
3088
  format: "json",
3071
3089
  ...params
3072
3090
  }),
3073
- createOrUpdateSiteAdaptiveSchema: (organizationId, siteId, data, params = {}) => this.request({
3091
+ updateSiteAdaptiveSchema: (organizationId, siteId, data, params = {}) => this.request({
3074
3092
  path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
3075
3093
  method: "PUT",
3076
3094
  body: data,
@@ -3684,6 +3702,7 @@ var GitBookAPI = class extends Api {
3684
3702
  CustomizationBackground,
3685
3703
  CustomizationCorners,
3686
3704
  CustomizationDefaultFont,
3705
+ CustomizationDepth,
3687
3706
  CustomizationHeaderPreset,
3688
3707
  CustomizationIconsStyle,
3689
3708
  CustomizationLinksStyle,
@@ -3696,6 +3715,7 @@ var GitBookAPI = class extends Api {
3696
3715
  GITBOOK_DEFAULT_ENDPOINT,
3697
3716
  GitBookAPI,
3698
3717
  GitBookAPIError,
3718
+ GitBookUsers,
3699
3719
  GitSyncOperationDirection,
3700
3720
  GitSyncOperationStage,
3701
3721
  GitSyncOperationState,
@@ -3724,6 +3744,7 @@ var GitBookAPI = class extends Api {
3724
3744
  SAMLProviderStatus,
3725
3745
  SiteAdsStatus,
3726
3746
  SiteAdsTopic,
3747
+ SiteAgentsContext,
3727
3748
  SiteCustomizationFeature,
3728
3749
  SiteInsightsAdPlacement,
3729
3750
  SiteInsightsEventType,
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.117.0";
175
+ var version = "0.118.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -558,6 +558,11 @@ var SiteAdsTopic = /* @__PURE__ */ ((SiteAdsTopic2) => {
558
558
  SiteAdsTopic2["Crypto"] = "crypto";
559
559
  return SiteAdsTopic2;
560
560
  })(SiteAdsTopic || {});
561
+ var SiteAgentsContext = /* @__PURE__ */ ((SiteAgentsContext2) => {
562
+ SiteAgentsContext2["Excluded"] = "excluded";
563
+ SiteAgentsContext2["Included"] = "included";
564
+ return SiteAgentsContext2;
565
+ })(SiteAgentsContext || {});
561
566
  var SiteCustomizationFeature = /* @__PURE__ */ ((SiteCustomizationFeature2) => {
562
567
  SiteCustomizationFeature2["HeaderLogo"] = "header-logo";
563
568
  SiteCustomizationFeature2["ThemePreset"] = "theme-preset";
@@ -629,8 +634,14 @@ var CustomizationTheme = /* @__PURE__ */ ((CustomizationTheme2) => {
629
634
  var CustomizationCorners = /* @__PURE__ */ ((CustomizationCorners2) => {
630
635
  CustomizationCorners2["Straight"] = "straight";
631
636
  CustomizationCorners2["Rounded"] = "rounded";
637
+ CustomizationCorners2["Circular"] = "circular";
632
638
  return CustomizationCorners2;
633
639
  })(CustomizationCorners || {});
640
+ var CustomizationDepth = /* @__PURE__ */ ((CustomizationDepth2) => {
641
+ CustomizationDepth2["Subtle"] = "subtle";
642
+ CustomizationDepth2["Flat"] = "flat";
643
+ return CustomizationDepth2;
644
+ })(CustomizationDepth || {});
634
645
  var CustomizationLinksStyle = /* @__PURE__ */ ((CustomizationLinksStyle2) => {
635
646
  CustomizationLinksStyle2["Default"] = "default";
636
647
  CustomizationLinksStyle2["Accent"] = "accent";
@@ -862,6 +873,10 @@ var CloudflareHostnameTLSValidationMethod = /* @__PURE__ */ ((CloudflareHostname
862
873
  CloudflareHostnameTLSValidationMethod2["Email"] = "email";
863
874
  return CloudflareHostnameTLSValidationMethod2;
864
875
  })(CloudflareHostnameTLSValidationMethod || {});
876
+ var GitBookUsers = /* @__PURE__ */ ((GitBookUsers2) => {
877
+ GitBookUsers2["GitbookAgent"] = "gitbook:agent";
878
+ return GitBookUsers2;
879
+ })(GitBookUsers || {});
865
880
  var RevisionSemanticChangeType = /* @__PURE__ */ ((RevisionSemanticChangeType2) => {
866
881
  RevisionSemanticChangeType2["PageCreated"] = "page_created";
867
882
  RevisionSemanticChangeType2["PageEdited"] = "page_edited";
@@ -2974,7 +2989,7 @@ var Api = class extends HttpClient {
2974
2989
  format: "json",
2975
2990
  ...params
2976
2991
  }),
2977
- createOrUpdateSiteAdaptiveSchema: (organizationId, siteId, data, params = {}) => this.request({
2992
+ updateSiteAdaptiveSchema: (organizationId, siteId, data, params = {}) => this.request({
2978
2993
  path: `/orgs/${organizationId}/sites/${siteId}/adaptive-schema`,
2979
2994
  method: "PUT",
2980
2995
  body: data,
@@ -3587,6 +3602,7 @@ export {
3587
3602
  CustomizationBackground,
3588
3603
  CustomizationCorners,
3589
3604
  CustomizationDefaultFont,
3605
+ CustomizationDepth,
3590
3606
  CustomizationHeaderPreset,
3591
3607
  CustomizationIconsStyle,
3592
3608
  CustomizationLinksStyle,
@@ -3599,6 +3615,7 @@ export {
3599
3615
  GITBOOK_DEFAULT_ENDPOINT,
3600
3616
  GitBookAPI,
3601
3617
  GitBookAPIError,
3618
+ GitBookUsers,
3602
3619
  GitSyncOperationDirection,
3603
3620
  GitSyncOperationStage,
3604
3621
  GitSyncOperationState,
@@ -3627,6 +3644,7 @@ export {
3627
3644
  SAMLProviderStatus,
3628
3645
  SiteAdsStatus,
3629
3646
  SiteAdsTopic,
3647
+ SiteAgentsContext,
3630
3648
  SiteCustomizationFeature,
3631
3649
  SiteInsightsAdPlacement,
3632
3650
  SiteInsightsEventType,
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.117.0",
7
+ "version": "0.118.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -9310,7 +9310,7 @@
9310
9310
  "/orgs/{organizationId}/integrations": {
9311
9311
  "get": {
9312
9312
  "operationId": "listOrganizationIntegrations",
9313
- "summary": "List all integrations",
9313
+ "summary": "List all public integrations along with private ones trusted by the specific org.",
9314
9314
  "tags": [
9315
9315
  "integrations"
9316
9316
  ],
@@ -9341,6 +9341,9 @@
9341
9341
  },
9342
9342
  {
9343
9343
  "$ref": "#/components/parameters/integrationSearchOwner"
9344
+ },
9345
+ {
9346
+ "$ref": "#/components/parameters/integrationSearchScope"
9344
9347
  }
9345
9348
  ],
9346
9349
  "responses": {
@@ -10669,7 +10672,7 @@
10669
10672
  ],
10670
10673
  "security": [
10671
10674
  {
10672
- "integration": []
10675
+ "integration-installation": []
10673
10676
  }
10674
10677
  ],
10675
10678
  "parameters": [
@@ -11926,6 +11929,9 @@
11926
11929
  "adaptiveContent": {
11927
11930
  "$ref": "#/components/schemas/SiteAdaptiveContent"
11928
11931
  },
11932
+ "agentsContext": {
11933
+ "$ref": "#/components/schemas/SiteAgentsContext"
11934
+ },
11929
11935
  "defaultSiteSpace": {
11930
11936
  "type": "string",
11931
11937
  "description": "ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section."
@@ -12034,8 +12040,8 @@
12034
12040
  }
12035
12041
  },
12036
12042
  "put": {
12037
- "operationId": "createOrUpdateSiteAdaptiveSchema",
12038
- "summary": "Create or update the JSON schema of the attributes expected for an Adaptive content site visitor.",
12043
+ "operationId": "updateSiteAdaptiveSchema",
12044
+ "summary": "Update the JSON schema of the attributes expected for an Adaptive content site visitor.",
12039
12045
  "tags": [
12040
12046
  "sites"
12041
12047
  ],
@@ -12082,16 +12088,6 @@
12082
12088
  }
12083
12089
  }
12084
12090
  },
12085
- "201": {
12086
- "description": "The site adaptive schema has been created.",
12087
- "content": {
12088
- "application/json": {
12089
- "schema": {
12090
- "$ref": "#/components/schemas/SiteAdaptiveSchema"
12091
- }
12092
- }
12093
- }
12094
- },
12095
12091
  "400": {
12096
12092
  "$ref": "#/components/responses/BadRequestError"
12097
12093
  },
@@ -14123,6 +14119,21 @@
14123
14119
  }
14124
14120
  ]
14125
14121
  },
14122
+ "depth": {
14123
+ "description": "The depth of elements on the site. Set to null to reset the override.",
14124
+ "oneOf": [
14125
+ {
14126
+ "$ref": "#/components/schemas/CustomizationDepth"
14127
+ },
14128
+ {
14129
+ "type": "string",
14130
+ "nullable": true,
14131
+ "enum": [
14132
+ null
14133
+ ]
14134
+ }
14135
+ ]
14136
+ },
14126
14137
  "links": {
14127
14138
  "description": "The style for links to use. Set to null to reset the override.",
14128
14139
  "oneOf": [
@@ -19528,7 +19539,7 @@
19528
19539
  "data"
19529
19540
  ]
19530
19541
  },
19531
- "DocumentBlockImageDimension": {
19542
+ "Length": {
19532
19543
  "oneOf": [
19533
19544
  {
19534
19545
  "type": "number"
@@ -19592,10 +19603,10 @@
19592
19603
  ]
19593
19604
  },
19594
19605
  "width": {
19595
- "$ref": "#/components/schemas/DocumentBlockImageDimension"
19606
+ "$ref": "#/components/schemas/Length"
19596
19607
  },
19597
19608
  "height": {
19598
- "$ref": "#/components/schemas/DocumentBlockImageDimension"
19609
+ "$ref": "#/components/schemas/Length"
19599
19610
  },
19600
19611
  "alt": {
19601
19612
  "type": "string"
@@ -20936,7 +20947,11 @@
20936
20947
  },
20937
20948
  "data": {
20938
20949
  "type": "object",
20939
- "properties": {},
20950
+ "properties": {
20951
+ "width": {
20952
+ "$ref": "#/components/schemas/Length"
20953
+ }
20954
+ },
20940
20955
  "additionalProperties": false
20941
20956
  }
20942
20957
  },
@@ -25687,6 +25702,15 @@
25687
25702
  "PublishIntegration": {
25688
25703
  "type": "object",
25689
25704
  "properties": {
25705
+ "runtime": {
25706
+ "type": "string",
25707
+ "description": "The runtime version to use for the integration. If not specified, the integration will use the default runtime.",
25708
+ "default": "v1",
25709
+ "enum": [
25710
+ "v1",
25711
+ "v2"
25712
+ ]
25713
+ },
25690
25714
  "icon": {
25691
25715
  "type": "string",
25692
25716
  "format": "byte",
@@ -27326,6 +27350,14 @@
27326
27350
  }
27327
27351
  ]
27328
27352
  },
27353
+ "SiteAgentsContext": {
27354
+ "type": "string",
27355
+ "description": "Defines if the site will be included in the agent's context.\n- `excluded` means that the agent will not be able to access the site.\n- `included` means that the agent will be able to access the site.\n",
27356
+ "enum": [
27357
+ "excluded",
27358
+ "included"
27359
+ ]
27360
+ },
27329
27361
  "SiteCustomizationFeature": {
27330
27362
  "type": "string",
27331
27363
  "description": "A list of all premium customizations.",
@@ -27474,6 +27506,9 @@
27474
27506
  "ads": {
27475
27507
  "$ref": "#/components/schemas/SiteAds"
27476
27508
  },
27509
+ "agentsContext": {
27510
+ "$ref": "#/components/schemas/SiteAgentsContext"
27511
+ },
27477
27512
  "features": {
27478
27513
  "description": "A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.\n",
27479
27514
  "type": "array",
@@ -27518,6 +27553,7 @@
27518
27553
  "siteSpaces",
27519
27554
  "defaultSpace",
27520
27555
  "features",
27556
+ "agentsContext",
27521
27557
  "urls"
27522
27558
  ]
27523
27559
  },
@@ -31736,7 +31772,16 @@
31736
31772
  "type": "string",
31737
31773
  "enum": [
31738
31774
  "straight",
31739
- "rounded"
31775
+ "rounded",
31776
+ "circular"
31777
+ ]
31778
+ },
31779
+ "CustomizationDepth": {
31780
+ "type": "string",
31781
+ "description": "The degree of visual depth (through shadows, gradients and elevation effects) of elements on the site.\n- `subtle`: Subtle shadows and minimal elevation.\n- `flat`: Flat elements, no shadows and no elevation.\n",
31782
+ "enum": [
31783
+ "subtle",
31784
+ "flat"
31740
31785
  ]
31741
31786
  },
31742
31787
  "CustomizationLinksStyle": {
@@ -32004,6 +32049,9 @@
32004
32049
  "corners": {
32005
32050
  "$ref": "#/components/schemas/CustomizationCorners"
32006
32051
  },
32052
+ "depth": {
32053
+ "$ref": "#/components/schemas/CustomizationDepth"
32054
+ },
32007
32055
  "links": {
32008
32056
  "$ref": "#/components/schemas/CustomizationLinksStyle"
32009
32057
  },
@@ -32044,6 +32092,7 @@
32044
32092
  "warningColor",
32045
32093
  "dangerColor",
32046
32094
  "corners",
32095
+ "depth",
32047
32096
  "links",
32048
32097
  "font",
32049
32098
  "background",
@@ -32963,7 +33012,8 @@
32963
33012
  "type": {
32964
33013
  "type": "string",
32965
33014
  "enum": [
32966
- "response_document"
33015
+ "response_document",
33016
+ "response_reasoning"
32967
33017
  ]
32968
33018
  },
32969
33019
  "messageId": {
@@ -36716,6 +36766,13 @@
36716
36766
  "force"
36717
36767
  ]
36718
36768
  },
36769
+ "GitBookUsers": {
36770
+ "type": "string",
36771
+ "description": "Predefined GitBook user identifiers",
36772
+ "enum": [
36773
+ "gitbook:agent"
36774
+ ]
36775
+ },
36719
36776
  "ContentPublishingAuth": {
36720
36777
  "type": "object",
36721
36778
  "properties": {
@@ -39394,6 +39451,9 @@
39394
39451
  "content": {
39395
39452
  "$ref": "#/components/schemas/JSONDocument"
39396
39453
  },
39454
+ "reasoning": {
39455
+ "$ref": "#/components/schemas/JSONDocument"
39456
+ },
39397
39457
  "toolCalls": {
39398
39458
  "type": "array",
39399
39459
  "items": {
package/spec/openapi.yaml CHANGED
@@ -5318,7 +5318,7 @@ paths:
5318
5318
  "/orgs/{organizationId}/integrations":
5319
5319
  get:
5320
5320
  operationId: listOrganizationIntegrations
5321
- summary: List all integrations
5321
+ summary: List all public integrations along with private ones trusted by the specific org.
5322
5322
  tags:
5323
5323
  - integrations
5324
5324
  parameters:
@@ -5331,6 +5331,7 @@ paths:
5331
5331
  - $ref: "#/components/parameters/integrationSearchBlocks"
5332
5332
  - $ref: "#/components/parameters/integrationSearchContentSources"
5333
5333
  - $ref: "#/components/parameters/integrationSearchOwner"
5334
+ - $ref: "#/components/parameters/integrationSearchScope"
5334
5335
  responses:
5335
5336
  "200":
5336
5337
  description: List of integrations.
@@ -6065,7 +6066,7 @@ paths:
6065
6066
  tags:
6066
6067
  - conversations
6067
6068
  security:
6068
- - integration: []
6069
+ - integration-installation: []
6069
6070
  parameters:
6070
6071
  - $ref: "#/components/parameters/organizationId"
6071
6072
  requestBody:
@@ -6780,6 +6781,8 @@ paths:
6780
6781
  $ref: "#/components/schemas/SiteBasename"
6781
6782
  adaptiveContent:
6782
6783
  $ref: "#/components/schemas/SiteAdaptiveContent"
6784
+ agentsContext:
6785
+ $ref: "#/components/schemas/SiteAgentsContext"
6783
6786
  defaultSiteSpace:
6784
6787
  type: string
6785
6788
  description: ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section.
@@ -6840,8 +6843,8 @@ paths:
6840
6843
  default:
6841
6844
  $ref: "#/components/responses/UnexpectedError"
6842
6845
  put:
6843
- operationId: createOrUpdateSiteAdaptiveSchema
6844
- summary: Create or update the JSON schema of the attributes expected for an Adaptive content site visitor.
6846
+ operationId: updateSiteAdaptiveSchema
6847
+ summary: Update the JSON schema of the attributes expected for an Adaptive content site visitor.
6845
6848
  tags:
6846
6849
  - sites
6847
6850
  security:
@@ -6868,12 +6871,6 @@ paths:
6868
6871
  application/json:
6869
6872
  schema:
6870
6873
  $ref: "#/components/schemas/SiteAdaptiveSchema"
6871
- "201":
6872
- description: The site adaptive schema has been created.
6873
- content:
6874
- application/json:
6875
- schema:
6876
- $ref: "#/components/schemas/SiteAdaptiveSchema"
6877
6874
  "400":
6878
6875
  $ref: "#/components/responses/BadRequestError"
6879
6876
  default:
@@ -7981,6 +7978,14 @@ paths:
7981
7978
  nullable: true
7982
7979
  enum:
7983
7980
  - null
7981
+ depth:
7982
+ description: The depth of elements on the site. Set to null to reset the override.
7983
+ oneOf:
7984
+ - $ref: "#/components/schemas/CustomizationDepth"
7985
+ - type: string
7986
+ nullable: true
7987
+ enum:
7988
+ - null
7984
7989
  links:
7985
7990
  description: The style for links to use. Set to null to reset the override.
7986
7991
  oneOf:
@@ -11459,7 +11464,7 @@ components:
11459
11464
  - type
11460
11465
  - isVoid
11461
11466
  - data
11462
- DocumentBlockImageDimension:
11467
+ Length:
11463
11468
  oneOf:
11464
11469
  - type: number
11465
11470
  - type: object
@@ -11496,9 +11501,9 @@ components:
11496
11501
  - $ref: "#/components/schemas/ContentRefURL"
11497
11502
  - $ref: "#/components/schemas/ContentRefFile"
11498
11503
  width:
11499
- $ref: "#/components/schemas/DocumentBlockImageDimension"
11504
+ $ref: "#/components/schemas/Length"
11500
11505
  height:
11501
- $ref: "#/components/schemas/DocumentBlockImageDimension"
11506
+ $ref: "#/components/schemas/Length"
11502
11507
  alt:
11503
11508
  type: string
11504
11509
  required:
@@ -12333,7 +12338,9 @@ components:
12333
12338
  - false
12334
12339
  data:
12335
12340
  type: object
12336
- properties: {}
12341
+ properties:
12342
+ width:
12343
+ $ref: "#/components/schemas/Length"
12337
12344
  additionalProperties: false
12338
12345
  required:
12339
12346
  - object
@@ -15491,6 +15498,13 @@ components:
15491
15498
  PublishIntegration:
15492
15499
  type: object
15493
15500
  properties:
15501
+ runtime:
15502
+ type: string
15503
+ description: The runtime version to use for the integration. If not specified, the integration will use the default runtime.
15504
+ default: v1
15505
+ enum:
15506
+ - v1
15507
+ - v2
15494
15508
  icon:
15495
15509
  type: string
15496
15510
  format: byte
@@ -16537,6 +16551,15 @@ components:
16537
16551
  zoneId:
16538
16552
  type: string
16539
16553
  description: The ad network zone ID
16554
+ SiteAgentsContext:
16555
+ type: string
16556
+ description: |
16557
+ Defines if the site will be included in the agent's context.
16558
+ - `excluded` means that the agent will not be able to access the site.
16559
+ - `included` means that the agent will be able to access the site.
16560
+ enum:
16561
+ - excluded
16562
+ - included
16540
16563
  SiteCustomizationFeature:
16541
16564
  type: string
16542
16565
  description: A list of all premium customizations.
@@ -16642,6 +16665,8 @@ components:
16642
16665
  $ref: "#/components/schemas/SiteAdaptiveContent"
16643
16666
  ads:
16644
16667
  $ref: "#/components/schemas/SiteAds"
16668
+ agentsContext:
16669
+ $ref: "#/components/schemas/SiteAgentsContext"
16645
16670
  features:
16646
16671
  description: |
16647
16672
  A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.
@@ -16678,6 +16703,7 @@ components:
16678
16703
  - siteSpaces
16679
16704
  - defaultSpace
16680
16705
  - features
16706
+ - agentsContext
16681
16707
  - urls
16682
16708
  IntegrationSiteInstallation:
16683
16709
  allOf:
@@ -19532,6 +19558,16 @@ components:
19532
19558
  enum:
19533
19559
  - straight
19534
19560
  - rounded
19561
+ - circular
19562
+ CustomizationDepth:
19563
+ type: string
19564
+ description: |
19565
+ The degree of visual depth (through shadows, gradients and elevation effects) of elements on the site.
19566
+ - `subtle`: Subtle shadows and minimal elevation.
19567
+ - `flat`: Flat elements, no shadows and no elevation.
19568
+ enum:
19569
+ - subtle
19570
+ - flat
19535
19571
  CustomizationLinksStyle:
19536
19572
  type: string
19537
19573
  description: |
@@ -19737,6 +19773,8 @@ components:
19737
19773
  $ref: "#/components/schemas/CustomizationThemedColor"
19738
19774
  corners:
19739
19775
  $ref: "#/components/schemas/CustomizationCorners"
19776
+ depth:
19777
+ $ref: "#/components/schemas/CustomizationDepth"
19740
19778
  links:
19741
19779
  $ref: "#/components/schemas/CustomizationLinksStyle"
19742
19780
  font:
@@ -19766,6 +19804,7 @@ components:
19766
19804
  - warningColor
19767
19805
  - dangerColor
19768
19806
  - corners
19807
+ - depth
19769
19808
  - links
19770
19809
  - font
19771
19810
  - background
@@ -20386,6 +20425,7 @@ components:
20386
20425
  type: string
20387
20426
  enum:
20388
20427
  - response_document
20428
+ - response_reasoning
20389
20429
  messageId:
20390
20430
  type: string
20391
20431
  description: |
@@ -22832,6 +22872,11 @@ components:
22832
22872
  required:
22833
22873
  - spaceId
22834
22874
  - force
22875
+ GitBookUsers:
22876
+ type: string
22877
+ description: Predefined GitBook user identifiers
22878
+ enum:
22879
+ - gitbook:agent
22835
22880
  ContentPublishingAuth:
22836
22881
  type: object
22837
22882
  properties:
@@ -24555,6 +24600,8 @@ components:
24555
24600
  properties:
24556
24601
  content:
24557
24602
  $ref: "#/components/schemas/JSONDocument"
24603
+ reasoning:
24604
+ $ref: "#/components/schemas/JSONDocument"
24558
24605
  toolCalls:
24559
24606
  type: array
24560
24607
  items: