@gitbook/api 0.190.0 → 0.191.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
@@ -332,6 +332,10 @@ export declare enum SiteQuestionType {
332
332
  Reference = "reference",
333
333
  Unknown = "unknown"
334
334
  }
335
+ /** Findings source filter matching evidence coming from site questions. */
336
+ export declare enum SiteTriageFilterQuestions {
337
+ Questions = "questions"
338
+ }
335
339
  /** Estimated end-user severity of a site finding. */
336
340
  export declare enum SiteFindingSeverity {
337
341
  Low = "low",
@@ -6010,6 +6014,8 @@ export interface GitSyncInstallationSetupCommon {
6010
6014
  * @default false
6011
6015
  */
6012
6016
  previewExternalBranches?: boolean;
6017
+ /** Agent instruction files GitBook should always export at the repository root. */
6018
+ agentInstructions?: ("agents" | "claude")[];
6013
6019
  /** Which side should be treated as the source of truth when Git Sync is configured. */
6014
6020
  priority?: GitSyncInstallationPriority;
6015
6021
  }
@@ -6637,6 +6643,12 @@ export interface SiteScan {
6637
6643
  location: string;
6638
6644
  };
6639
6645
  }
6646
+ /**
6647
+ * Findings source filter matching evidence coming from a given connection,
6648
+ * encoded as `connection:<connectionId>`.
6649
+ * @pattern ^connection:.+$
6650
+ */
6651
+ export type SiteTriageFilterConnections = string;
6640
6652
  /**
6641
6653
  * Short finding title
6642
6654
  * @maxLength 256
@@ -7432,7 +7444,8 @@ export interface AIAttachmentFile {
7432
7444
  url: URL;
7433
7445
  /** Name of the file. */
7434
7446
  filename: string;
7435
- contentType: "application/pdf";
7447
+ /** MIME type of the file. Must be a file type supported by the underlying model (see the OpenAI file-inputs documentation). */
7448
+ contentType: string;
7436
7449
  }
7437
7450
  export type AIAttachment = AIAttachmentImage | AIAttachmentFile;
7438
7451
  /** Context about the current user sending a message. */
@@ -15088,6 +15101,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15088
15101
  }, params?: RequestParams) => Promise<HttpResponse<List & {
15089
15102
  items: (SearchSpaceResult | SearchRecordResult)[];
15090
15103
  }, any>>;
15104
+ /**
15105
+ * @description Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.
15106
+ *
15107
+ * @tags site-insights
15108
+ * @name SubmitSiteAgentFeedback
15109
+ * @summary Submit agent feedback for a site
15110
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/agent-feedback
15111
+ * @secure
15112
+ */
15113
+ submitSiteAgentFeedback: (organizationId: EntityId, siteId: string, data: {
15114
+ /**
15115
+ * The feedback about the content of the site.
15116
+ * @minLength 1
15117
+ * @maxLength 2048
15118
+ */
15119
+ feedback: string;
15120
+ /** The end goal the agent is trying to accomplish on behalf of the user, giving the context the agent was working towards when it encountered the issue. */
15121
+ goal?: AgentGoal;
15122
+ /** URL of the content the feedback is about. */
15123
+ url: URL;
15124
+ /** ID of the space the feedback is about. */
15125
+ spaceId: string;
15126
+ /** ID of the page the feedback is about. */
15127
+ pageId: string;
15128
+ }, params?: RequestParams) => Promise<HttpResponse<void, any>>;
15091
15129
  /**
15092
15130
  * @description The response is streamed.
15093
15131
  *
@@ -15205,19 +15243,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15205
15243
  }, params?: RequestParams) => Promise<HttpResponse<List & {
15206
15244
  items: SiteScan[];
15207
15245
  }, any>>;
15208
- /**
15209
- * No description
15210
- *
15211
- * @tags site-context
15212
- * @name CreateSiteScan
15213
- * @summary Enqueue a new site scan
15214
- * @request POST:/orgs/{organizationId}/sites/{siteId}/scans
15215
- * @secure
15216
- */
15217
- createSiteScan: (organizationId: EntityId, siteId: string, data: {
15218
- /** The site topic ID to scan. */
15219
- topic: string;
15220
- }, params?: RequestParams) => Promise<HttpResponse<SiteScan, any>>;
15221
15246
  /**
15222
15247
  * No description
15223
15248
  *
@@ -15256,6 +15281,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15256
15281
  severity?: SiteFindingSeverity;
15257
15282
  /** Filter findings that have at least one associated change request. */
15258
15283
  hasChangeRequests?: boolean;
15284
+ /** Filter findings by the source of their evidence. Each entry is either `connection:<connectionId>` (findings with at least one piece of evidence coming from the given connection) or `questions` (findings with at least one piece of evidence coming from a site question). When multiple entries are given, findings matching any of them are returned. */
15285
+ source?: (SiteTriageFilterQuestions | SiteTriageFilterConnections)[];
15259
15286
  }, params?: RequestParams) => Promise<HttpResponse<List & {
15260
15287
  items: SiteFinding[];
15261
15288
  }, any>>;
@@ -149,6 +149,8 @@ export declare const SITE_SCAN_STATUS_ENUM: ["pending", "running", "done", "fail
149
149
  export declare const SITE_FINDING_STATUS_ENUM: ["candidate", "open", "done", "canceled"];
150
150
  export declare const SITE_FINDING_TYPE_ENUM: ["content-outdated", "content-incorrect", "content-gap", "other"];
151
151
  export declare const SITE_FINDING_SEVERITY_ENUM: ["low", "medium", "high"];
152
+ export declare const SITE_TRIAGE_FILTER_QUESTIONS_ENUM: ["questions"];
153
+ export declare const SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN = "^connection:.+$";
152
154
  export declare const SITE_FINDING_TITLE_MAX_LENGTH = 256;
153
155
  export declare const SITE_QUESTION_TYPE_ENUM: ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
154
156
  export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
package/dist/index.cjs CHANGED
@@ -462,6 +462,8 @@ __export(src_exports, {
462
462
  SITE_SPACE_PATH_MIN_LENGTH: () => SITE_SPACE_PATH_MIN_LENGTH,
463
463
  SITE_TITLE_MAX_LENGTH: () => SITE_TITLE_MAX_LENGTH,
464
464
  SITE_TITLE_MIN_LENGTH: () => SITE_TITLE_MIN_LENGTH,
465
+ SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN: () => SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN,
466
+ SITE_TRIAGE_FILTER_QUESTIONS_ENUM: () => SITE_TRIAGE_FILTER_QUESTIONS_ENUM,
465
467
  SITE_TYPE_ENUM: () => SITE_TYPE_ENUM,
466
468
  SITE_VISIBILITY_ENUM: () => SITE_VISIBILITY_ENUM,
467
469
  SPACE_EDIT_MODE_ENUM: () => SPACE_EDIT_MODE_ENUM,
@@ -503,6 +505,7 @@ __export(src_exports, {
503
505
  SiteSettingsFindingChangeRequests: () => SiteSettingsFindingChangeRequests,
504
506
  SiteSettingsScanTopics: () => SiteSettingsScanTopics,
505
507
  SiteSocialAccountPlatform: () => SiteSocialAccountPlatform,
508
+ SiteTriageFilterQuestions: () => SiteTriageFilterQuestions,
506
509
  SiteType: () => SiteType,
507
510
  SiteVisibility: () => SiteVisibility,
508
511
  SpaceEditMode: () => SpaceEditMode,
@@ -525,7 +528,7 @@ module.exports = __toCommonJS(src_exports);
525
528
 
526
529
  // package.json
527
530
  var name = "@gitbook/api";
528
- var version = "0.190.0";
531
+ var version = "0.191.0";
529
532
 
530
533
  // src/client.ts
531
534
  var import_event_iterator = __toESM(require_node(), 1);
@@ -981,6 +984,10 @@ var SiteQuestionType = /* @__PURE__ */ ((SiteQuestionType2) => {
981
984
  SiteQuestionType2["Unknown"] = "unknown";
982
985
  return SiteQuestionType2;
983
986
  })(SiteQuestionType || {});
987
+ var SiteTriageFilterQuestions = /* @__PURE__ */ ((SiteTriageFilterQuestions2) => {
988
+ SiteTriageFilterQuestions2["Questions"] = "questions";
989
+ return SiteTriageFilterQuestions2;
990
+ })(SiteTriageFilterQuestions || {});
984
991
  var SiteFindingSeverity = /* @__PURE__ */ ((SiteFindingSeverity2) => {
985
992
  SiteFindingSeverity2["Low"] = "low";
986
993
  SiteFindingSeverity2["Medium"] = "medium";
@@ -3906,6 +3913,14 @@ var Api = class extends HttpClient {
3906
3913
  format: "json",
3907
3914
  ...params
3908
3915
  }),
3916
+ submitSiteAgentFeedback: (organizationId, siteId, data, params = {}) => this.request({
3917
+ path: `/orgs/${organizationId}/sites/${siteId}/agent-feedback`,
3918
+ method: "POST",
3919
+ body: data,
3920
+ secure: true,
3921
+ type: "application/json" /* Json */,
3922
+ ...params
3923
+ }),
3909
3924
  streamAskInSite: (organizationId, siteId, data, query, params = {}) => this.streamRequest({
3910
3925
  path: `/orgs/${organizationId}/sites/${siteId}/ask`,
3911
3926
  method: "POST",
@@ -3953,15 +3968,6 @@ var Api = class extends HttpClient {
3953
3968
  format: "json",
3954
3969
  ...params
3955
3970
  }),
3956
- createSiteScan: (organizationId, siteId, data, params = {}) => this.request({
3957
- path: `/orgs/${organizationId}/sites/${siteId}/scans`,
3958
- method: "POST",
3959
- body: data,
3960
- secure: true,
3961
- type: "application/json" /* Json */,
3962
- format: "json",
3963
- ...params
3964
- }),
3965
3971
  getSiteScanById: (organizationId, siteId, siteScanId, params = {}) => this.request({
3966
3972
  path: `/orgs/${organizationId}/sites/${siteId}/scans/${siteScanId}`,
3967
3973
  method: "GET",
@@ -4833,6 +4839,8 @@ var SITE_SCAN_STATUS_ENUM = ["pending", "running", "done", "failed"];
4833
4839
  var SITE_FINDING_STATUS_ENUM = ["candidate", "open", "done", "canceled"];
4834
4840
  var SITE_FINDING_TYPE_ENUM = ["content-outdated", "content-incorrect", "content-gap", "other"];
4835
4841
  var SITE_FINDING_SEVERITY_ENUM = ["low", "medium", "high"];
4842
+ var SITE_TRIAGE_FILTER_QUESTIONS_ENUM = ["questions"];
4843
+ var SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN = "^connection:.+$";
4836
4844
  var SITE_FINDING_TITLE_MAX_LENGTH = 256;
4837
4845
  var SITE_QUESTION_TYPE_ENUM = ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
4838
4846
  var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
@@ -5249,6 +5257,8 @@ var GitBookAPI = class extends Api {
5249
5257
  SITE_SPACE_PATH_MIN_LENGTH,
5250
5258
  SITE_TITLE_MAX_LENGTH,
5251
5259
  SITE_TITLE_MIN_LENGTH,
5260
+ SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN,
5261
+ SITE_TRIAGE_FILTER_QUESTIONS_ENUM,
5252
5262
  SITE_TYPE_ENUM,
5253
5263
  SITE_VISIBILITY_ENUM,
5254
5264
  SPACE_EDIT_MODE_ENUM,
@@ -5290,6 +5300,7 @@ var GitBookAPI = class extends Api {
5290
5300
  SiteSettingsFindingChangeRequests,
5291
5301
  SiteSettingsScanTopics,
5292
5302
  SiteSocialAccountPlatform,
5303
+ SiteTriageFilterQuestions,
5293
5304
  SiteType,
5294
5305
  SiteVisibility,
5295
5306
  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.190.0";
175
+ var version = "0.191.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -628,6 +628,10 @@ var SiteQuestionType = /* @__PURE__ */ ((SiteQuestionType2) => {
628
628
  SiteQuestionType2["Unknown"] = "unknown";
629
629
  return SiteQuestionType2;
630
630
  })(SiteQuestionType || {});
631
+ var SiteTriageFilterQuestions = /* @__PURE__ */ ((SiteTriageFilterQuestions2) => {
632
+ SiteTriageFilterQuestions2["Questions"] = "questions";
633
+ return SiteTriageFilterQuestions2;
634
+ })(SiteTriageFilterQuestions || {});
631
635
  var SiteFindingSeverity = /* @__PURE__ */ ((SiteFindingSeverity2) => {
632
636
  SiteFindingSeverity2["Low"] = "low";
633
637
  SiteFindingSeverity2["Medium"] = "medium";
@@ -3553,6 +3557,14 @@ var Api = class extends HttpClient {
3553
3557
  format: "json",
3554
3558
  ...params
3555
3559
  }),
3560
+ submitSiteAgentFeedback: (organizationId, siteId, data, params = {}) => this.request({
3561
+ path: `/orgs/${organizationId}/sites/${siteId}/agent-feedback`,
3562
+ method: "POST",
3563
+ body: data,
3564
+ secure: true,
3565
+ type: "application/json" /* Json */,
3566
+ ...params
3567
+ }),
3556
3568
  streamAskInSite: (organizationId, siteId, data, query, params = {}) => this.streamRequest({
3557
3569
  path: `/orgs/${organizationId}/sites/${siteId}/ask`,
3558
3570
  method: "POST",
@@ -3600,15 +3612,6 @@ var Api = class extends HttpClient {
3600
3612
  format: "json",
3601
3613
  ...params
3602
3614
  }),
3603
- createSiteScan: (organizationId, siteId, data, params = {}) => this.request({
3604
- path: `/orgs/${organizationId}/sites/${siteId}/scans`,
3605
- method: "POST",
3606
- body: data,
3607
- secure: true,
3608
- type: "application/json" /* Json */,
3609
- format: "json",
3610
- ...params
3611
- }),
3612
3615
  getSiteScanById: (organizationId, siteId, siteScanId, params = {}) => this.request({
3613
3616
  path: `/orgs/${organizationId}/sites/${siteId}/scans/${siteScanId}`,
3614
3617
  method: "GET",
@@ -4480,6 +4483,8 @@ var SITE_SCAN_STATUS_ENUM = ["pending", "running", "done", "failed"];
4480
4483
  var SITE_FINDING_STATUS_ENUM = ["candidate", "open", "done", "canceled"];
4481
4484
  var SITE_FINDING_TYPE_ENUM = ["content-outdated", "content-incorrect", "content-gap", "other"];
4482
4485
  var SITE_FINDING_SEVERITY_ENUM = ["low", "medium", "high"];
4486
+ var SITE_TRIAGE_FILTER_QUESTIONS_ENUM = ["questions"];
4487
+ var SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN = "^connection:.+$";
4483
4488
  var SITE_FINDING_TITLE_MAX_LENGTH = 256;
4484
4489
  var SITE_QUESTION_TYPE_ENUM = ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
4485
4490
  var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
@@ -4895,6 +4900,8 @@ export {
4895
4900
  SITE_SPACE_PATH_MIN_LENGTH,
4896
4901
  SITE_TITLE_MAX_LENGTH,
4897
4902
  SITE_TITLE_MIN_LENGTH,
4903
+ SITE_TRIAGE_FILTER_CONNECTIONS_PATTERN,
4904
+ SITE_TRIAGE_FILTER_QUESTIONS_ENUM,
4898
4905
  SITE_TYPE_ENUM,
4899
4906
  SITE_VISIBILITY_ENUM,
4900
4907
  SPACE_EDIT_MODE_ENUM,
@@ -4936,6 +4943,7 @@ export {
4936
4943
  SiteSettingsFindingChangeRequests,
4937
4944
  SiteSettingsScanTopics,
4938
4945
  SiteSocialAccountPlatform,
4946
+ SiteTriageFilterQuestions,
4939
4947
  SiteType,
4940
4948
  SiteVisibility,
4941
4949
  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.190.0",
7
+ "version": "0.191.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -14759,6 +14759,75 @@
14759
14759
  }
14760
14760
  }
14761
14761
  },
14762
+ "/orgs/{organizationId}/sites/{siteId}/agent-feedback": {
14763
+ "post": {
14764
+ "operationId": "submitSiteAgentFeedback",
14765
+ "summary": "Submit agent feedback for a site",
14766
+ "description": "Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.",
14767
+ "x-internal": true,
14768
+ "tags": [
14769
+ "site-insights"
14770
+ ],
14771
+ "security": [
14772
+ {
14773
+ "user": []
14774
+ }
14775
+ ],
14776
+ "parameters": [
14777
+ {
14778
+ "$ref": "#/components/parameters/organizationId"
14779
+ },
14780
+ {
14781
+ "$ref": "#/components/parameters/siteId"
14782
+ }
14783
+ ],
14784
+ "requestBody": {
14785
+ "required": true,
14786
+ "content": {
14787
+ "application/json": {
14788
+ "schema": {
14789
+ "type": "object",
14790
+ "properties": {
14791
+ "feedback": {
14792
+ "description": "The feedback about the content of the site.",
14793
+ "type": "string",
14794
+ "minLength": 1,
14795
+ "maxLength": 2048
14796
+ },
14797
+ "goal": {
14798
+ "description": "The end goal the agent is trying to accomplish on behalf of the user, giving the context the agent was working towards when it encountered the issue.\n",
14799
+ "$ref": "#/components/schemas/AgentGoal"
14800
+ },
14801
+ "url": {
14802
+ "description": "URL of the content the feedback is about.",
14803
+ "$ref": "#/components/schemas/URL"
14804
+ },
14805
+ "spaceId": {
14806
+ "description": "ID of the space the feedback is about.",
14807
+ "type": "string"
14808
+ },
14809
+ "pageId": {
14810
+ "description": "ID of the page the feedback is about.",
14811
+ "type": "string"
14812
+ }
14813
+ },
14814
+ "required": [
14815
+ "feedback",
14816
+ "url",
14817
+ "spaceId",
14818
+ "pageId"
14819
+ ]
14820
+ }
14821
+ }
14822
+ }
14823
+ },
14824
+ "responses": {
14825
+ "204": {
14826
+ "description": "Feedback submitted"
14827
+ }
14828
+ }
14829
+ }
14830
+ },
14762
14831
  "/orgs/{organizationId}/sites/{siteId}/ask": {
14763
14832
  "post": {
14764
14833
  "operationId": "streamAskInSite",
@@ -15155,62 +15224,6 @@
15155
15224
  }
15156
15225
  }
15157
15226
  }
15158
- },
15159
- "post": {
15160
- "operationId": "createSiteScan",
15161
- "summary": "Enqueue a new site scan",
15162
- "tags": [
15163
- "site-context"
15164
- ],
15165
- "security": [
15166
- {
15167
- "user": []
15168
- },
15169
- {
15170
- "oauth": [
15171
- "site:write"
15172
- ]
15173
- }
15174
- ],
15175
- "parameters": [
15176
- {
15177
- "$ref": "#/components/parameters/organizationId"
15178
- },
15179
- {
15180
- "$ref": "#/components/parameters/siteId"
15181
- }
15182
- ],
15183
- "requestBody": {
15184
- "required": true,
15185
- "content": {
15186
- "application/json": {
15187
- "schema": {
15188
- "type": "object",
15189
- "required": [
15190
- "topic"
15191
- ],
15192
- "properties": {
15193
- "topic": {
15194
- "type": "string",
15195
- "description": "The site topic ID to scan."
15196
- }
15197
- }
15198
- }
15199
- }
15200
- }
15201
- },
15202
- "responses": {
15203
- "202": {
15204
- "description": "Site scan has been enqueued",
15205
- "content": {
15206
- "application/json": {
15207
- "schema": {
15208
- "$ref": "#/components/schemas/SiteScan"
15209
- }
15210
- }
15211
- }
15212
- }
15213
- }
15214
15227
  }
15215
15228
  },
15216
15229
  "/orgs/{organizationId}/sites/{siteId}/scans/{siteScanId}": {
@@ -15324,6 +15337,24 @@
15324
15337
  "schema": {
15325
15338
  "type": "boolean"
15326
15339
  }
15340
+ },
15341
+ {
15342
+ "name": "source",
15343
+ "in": "query",
15344
+ "description": "Filter findings by the source of their evidence. Each entry is either `connection:<connectionId>` (findings with at least one piece of evidence coming from the given connection) or `questions` (findings with at least one piece of evidence coming from a site question). When multiple entries are given, findings matching any of them are returned.",
15345
+ "schema": {
15346
+ "type": "array",
15347
+ "items": {
15348
+ "oneOf": [
15349
+ {
15350
+ "$ref": "#/components/schemas/SiteTriageFilterQuestions"
15351
+ },
15352
+ {
15353
+ "$ref": "#/components/schemas/SiteTriageFilterConnections"
15354
+ }
15355
+ ]
15356
+ }
15357
+ }
15327
15358
  }
15328
15359
  ],
15329
15360
  "responses": {
@@ -38927,6 +38958,17 @@
38927
38958
  "default": false,
38928
38959
  "description": "Whether previews should be generated from branches outside the configured branch."
38929
38960
  },
38961
+ "agentInstructions": {
38962
+ "type": "array",
38963
+ "description": "Agent instruction files GitBook should always export at the repository root.",
38964
+ "items": {
38965
+ "type": "string",
38966
+ "enum": [
38967
+ "agents",
38968
+ "claude"
38969
+ ]
38970
+ }
38971
+ },
38930
38972
  "priority": {
38931
38973
  "$ref": "#/components/schemas/GitSyncInstallationPriority"
38932
38974
  }
@@ -41101,6 +41143,18 @@
41101
41143
  "high"
41102
41144
  ]
41103
41145
  },
41146
+ "SiteTriageFilterQuestions": {
41147
+ "type": "string",
41148
+ "description": "Findings source filter matching evidence coming from site questions.\n",
41149
+ "enum": [
41150
+ "questions"
41151
+ ]
41152
+ },
41153
+ "SiteTriageFilterConnections": {
41154
+ "type": "string",
41155
+ "description": "Findings source filter matching evidence coming from a given connection,\nencoded as `connection:<connectionId>`.\n",
41156
+ "pattern": "^connection:.+$"
41157
+ },
41104
41158
  "SiteFindingTitle": {
41105
41159
  "type": "string",
41106
41160
  "description": "Short finding title",
@@ -43666,9 +43720,7 @@
43666
43720
  },
43667
43721
  "contentType": {
43668
43722
  "type": "string",
43669
- "enum": [
43670
- "application/pdf"
43671
- ]
43723
+ "description": "MIME type of the file. Must be a file type supported by the underlying model (see the OpenAI file-inputs documentation)."
43672
43724
  }
43673
43725
  },
43674
43726
  "required": [
package/spec/openapi.yaml CHANGED
@@ -8329,6 +8329,52 @@ paths:
8329
8329
  - $ref: "#/components/schemas/SearchRecordResult"
8330
8330
  discriminator:
8331
8331
  propertyName: type
8332
+ /orgs/{organizationId}/sites/{siteId}/agent-feedback:
8333
+ post:
8334
+ operationId: submitSiteAgentFeedback
8335
+ summary: Submit agent feedback for a site
8336
+ description: Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.
8337
+ x-internal: true
8338
+ tags:
8339
+ - site-insights
8340
+ security:
8341
+ - user: []
8342
+ parameters:
8343
+ - $ref: "#/components/parameters/organizationId"
8344
+ - $ref: "#/components/parameters/siteId"
8345
+ requestBody:
8346
+ required: true
8347
+ content:
8348
+ application/json:
8349
+ schema:
8350
+ type: object
8351
+ properties:
8352
+ feedback:
8353
+ description: The feedback about the content of the site.
8354
+ type: string
8355
+ minLength: 1
8356
+ maxLength: 2048
8357
+ goal:
8358
+ description: |
8359
+ The end goal the agent is trying to accomplish on behalf of the user, giving the context the agent was working towards when it encountered the issue.
8360
+ $ref: "#/components/schemas/AgentGoal"
8361
+ url:
8362
+ description: URL of the content the feedback is about.
8363
+ $ref: "#/components/schemas/URL"
8364
+ spaceId:
8365
+ description: ID of the space the feedback is about.
8366
+ type: string
8367
+ pageId:
8368
+ description: ID of the page the feedback is about.
8369
+ type: string
8370
+ required:
8371
+ - feedback
8372
+ - url
8373
+ - spaceId
8374
+ - pageId
8375
+ responses:
8376
+ "204":
8377
+ description: Feedback submitted
8332
8378
  /orgs/{organizationId}/sites/{siteId}/ask:
8333
8379
  post:
8334
8380
  operationId: streamAskInSite
@@ -8547,37 +8593,6 @@ paths:
8547
8593
  type: array
8548
8594
  items:
8549
8595
  $ref: "#/components/schemas/SiteScan"
8550
- post:
8551
- operationId: createSiteScan
8552
- summary: Enqueue a new site scan
8553
- tags:
8554
- - site-context
8555
- security:
8556
- - user: []
8557
- - oauth:
8558
- - site:write
8559
- parameters:
8560
- - $ref: "#/components/parameters/organizationId"
8561
- - $ref: "#/components/parameters/siteId"
8562
- requestBody:
8563
- required: true
8564
- content:
8565
- application/json:
8566
- schema:
8567
- type: object
8568
- required:
8569
- - topic
8570
- properties:
8571
- topic:
8572
- type: string
8573
- description: The site topic ID to scan.
8574
- responses:
8575
- "202":
8576
- description: Site scan has been enqueued
8577
- content:
8578
- application/json:
8579
- schema:
8580
- $ref: "#/components/schemas/SiteScan"
8581
8596
  /orgs/{organizationId}/sites/{siteId}/scans/{siteScanId}:
8582
8597
  get:
8583
8598
  operationId: getSiteScanById
@@ -8639,6 +8654,15 @@ paths:
8639
8654
  description: Filter findings that have at least one associated change request.
8640
8655
  schema:
8641
8656
  type: boolean
8657
+ - name: source
8658
+ in: query
8659
+ description: Filter findings by the source of their evidence. Each entry is either `connection:<connectionId>` (findings with at least one piece of evidence coming from the given connection) or `questions` (findings with at least one piece of evidence coming from a site question). When multiple entries are given, findings matching any of them are returned.
8660
+ schema:
8661
+ type: array
8662
+ items:
8663
+ oneOf:
8664
+ - $ref: "#/components/schemas/SiteTriageFilterQuestions"
8665
+ - $ref: "#/components/schemas/SiteTriageFilterConnections"
8642
8666
  responses:
8643
8667
  "200":
8644
8668
  description: OK
@@ -23700,6 +23724,14 @@ components:
23700
23724
  type: boolean
23701
23725
  default: false
23702
23726
  description: Whether previews should be generated from branches outside the configured branch.
23727
+ agentInstructions:
23728
+ type: array
23729
+ description: Agent instruction files GitBook should always export at the repository root.
23730
+ items:
23731
+ type: string
23732
+ enum:
23733
+ - agents
23734
+ - claude
23703
23735
  priority:
23704
23736
  $ref: "#/components/schemas/GitSyncInstallationPriority"
23705
23737
  GitSyncInstallationSetupGitHub:
@@ -25267,6 +25299,18 @@ components:
25267
25299
  - low
25268
25300
  - medium
25269
25301
  - high
25302
+ SiteTriageFilterQuestions:
25303
+ type: string
25304
+ description: |
25305
+ Findings source filter matching evidence coming from site questions.
25306
+ enum:
25307
+ - questions
25308
+ SiteTriageFilterConnections:
25309
+ type: string
25310
+ description: |
25311
+ Findings source filter matching evidence coming from a given connection,
25312
+ encoded as `connection:<connectionId>`.
25313
+ pattern: ^connection:.+$
25270
25314
  SiteFindingTitle:
25271
25315
  type: string
25272
25316
  description: Short finding title
@@ -27039,8 +27083,7 @@ components:
27039
27083
  description: Name of the file.
27040
27084
  contentType:
27041
27085
  type: string
27042
- enum:
27043
- - application/pdf
27086
+ description: MIME type of the file. Must be a file type supported by the underlying model (see the OpenAI file-inputs documentation).
27044
27087
  required:
27045
27088
  - type
27046
27089
  - url