@gitbook/api 0.161.0 → 0.163.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.
@@ -26,6 +26,7 @@ export declare const CHANGE_REQUEST_SUBJECT_MAX_LENGTH = 100;
26
26
  export declare const CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
27
27
  export declare const ORGANIZATION_TITLE_MAX_LENGTH = 255;
28
28
  export declare const ORGANIZATION_TITLE_MIN_LENGTH = 2;
29
+ export declare const ORGANIZATION_TITLE_PATTERN = "\\S.*\\S";
29
30
  export declare const ORGANIZATION_HOSTNAME_MAX_LENGTH = 32;
30
31
  export declare const ORGANIZATION_HOSTNAME_MIN_LENGTH = 3;
31
32
  export declare const ORGANIZATION_TYPE_ENUM: ["business", "community"];
@@ -140,6 +141,11 @@ export declare const CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
140
141
  export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
141
142
  export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
142
143
  export declare const CONTEXT_CONNECTION_STATUS_ENUM: ["pending", "syncing", "succeeded", "failed"];
144
+ export declare const SITE_QUESTION_TYPE_ENUM: ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
145
+ export declare const SITE_QUESTION_ANSWER_RESOLUTION_ENUM: ["no", "partially", "yes"];
146
+ export declare const SITE_QUESTION_ANSWER_CONFIDENCE_ENUM: ["low", "medium", "high"];
147
+ export declare const SITE_QUESTION_ANSWER_RELEVANCE_ENUM: ["relevant", "spam", "off-topic", "unclear"];
148
+ export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant", "developer"];
143
149
  export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
144
150
  export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "embed"];
145
151
  export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header", "footer", "sidebar", "content"];
@@ -172,5 +178,5 @@ export declare const GIT_SYNC_OPERATION_STAGE_ENUM: ["repo_fetch", "config_check
172
178
  export declare const BILLING_STATUS_ENUM: ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
173
179
  export declare const APIINTEGRATION_SCOPE_ENUM: ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
174
180
  export declare const SITE_ADS_STATUS_ENUM: ["pending", "in-review", "live", "rejected", "disabled"];
175
- export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant", "developer"];
181
+ export declare const SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM: ["page", "record"];
176
182
  export declare const AGENT_STATUS_ENUM: ["idle", "processing", "errored"];
package/dist/index.cjs CHANGED
@@ -345,6 +345,7 @@ __export(src_exports, {
345
345
  ORGANIZATION_TEAM_TITLE_MIN_LENGTH: () => ORGANIZATION_TEAM_TITLE_MIN_LENGTH,
346
346
  ORGANIZATION_TITLE_MAX_LENGTH: () => ORGANIZATION_TITLE_MAX_LENGTH,
347
347
  ORGANIZATION_TITLE_MIN_LENGTH: () => ORGANIZATION_TITLE_MIN_LENGTH,
348
+ ORGANIZATION_TITLE_PATTERN: () => ORGANIZATION_TITLE_PATTERN,
348
349
  ORGANIZATION_TYPE_ENUM: () => ORGANIZATION_TYPE_ENUM,
349
350
  ORGANIZATION_USE_CASE_ENUM: () => ORGANIZATION_USE_CASE_ENUM,
350
351
  OpenAPISpecProcessingErrorCode: () => OpenAPISpecProcessingErrorCode,
@@ -402,6 +403,11 @@ __export(src_exports, {
402
403
  SITE_MCP_SERVER_NAME_MIN_LENGTH: () => SITE_MCP_SERVER_NAME_MIN_LENGTH,
403
404
  SITE_PROXY_ORIGIN_MAX_LENGTH: () => SITE_PROXY_ORIGIN_MAX_LENGTH,
404
405
  SITE_PROXY_ORIGIN_PATTERN: () => SITE_PROXY_ORIGIN_PATTERN,
406
+ SITE_QUESTION_ANSWER_CONFIDENCE_ENUM: () => SITE_QUESTION_ANSWER_CONFIDENCE_ENUM,
407
+ SITE_QUESTION_ANSWER_RELEVANCE_ENUM: () => SITE_QUESTION_ANSWER_RELEVANCE_ENUM,
408
+ SITE_QUESTION_ANSWER_RESOLUTION_ENUM: () => SITE_QUESTION_ANSWER_RESOLUTION_ENUM,
409
+ SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM: () => SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM,
410
+ SITE_QUESTION_TYPE_ENUM: () => SITE_QUESTION_TYPE_ENUM,
405
411
  SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH: () => SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH,
406
412
  SITE_REDIRECT_SOURCE_PATH_PATTERN: () => SITE_REDIRECT_SOURCE_PATH_PATTERN,
407
413
  SITE_SECTION_DESCRIPTION_MAX_LENGTH: () => SITE_SECTION_DESCRIPTION_MAX_LENGTH,
@@ -443,6 +449,11 @@ __export(src_exports, {
443
449
  SiteInsightsVisitorBrowser: () => SiteInsightsVisitorBrowser,
444
450
  SiteInsightsVisitorDevice: () => SiteInsightsVisitorDevice,
445
451
  SiteInsightsVisitorOS: () => SiteInsightsVisitorOS,
452
+ SiteQuestionAnswerConfidence: () => SiteQuestionAnswerConfidence,
453
+ SiteQuestionAnswerRelevance: () => SiteQuestionAnswerRelevance,
454
+ SiteQuestionAnswerResolution: () => SiteQuestionAnswerResolution,
455
+ SiteQuestionAnswerSourceType: () => SiteQuestionAnswerSourceType,
456
+ SiteQuestionType: () => SiteQuestionType,
446
457
  SiteSocialAccountPlatform: () => SiteSocialAccountPlatform,
447
458
  SiteType: () => SiteType,
448
459
  SiteVisibility: () => SiteVisibility,
@@ -464,7 +475,7 @@ module.exports = __toCommonJS(src_exports);
464
475
 
465
476
  // package.json
466
477
  var name = "@gitbook/api";
467
- var version = "0.161.0";
478
+ var version = "0.163.0";
468
479
 
469
480
  // src/client.ts
470
481
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1207,6 +1218,39 @@ var ContextConnectionStatus = /* @__PURE__ */ ((ContextConnectionStatus2) => {
1207
1218
  ContextConnectionStatus2["Failed"] = "failed";
1208
1219
  return ContextConnectionStatus2;
1209
1220
  })(ContextConnectionStatus || {});
1221
+ var SiteQuestionType = /* @__PURE__ */ ((SiteQuestionType2) => {
1222
+ SiteQuestionType2["Exploring"] = "exploring";
1223
+ SiteQuestionType2["HowTo"] = "how-to";
1224
+ SiteQuestionType2["Troubleshooting"] = "troubleshooting";
1225
+ SiteQuestionType2["Reference"] = "reference";
1226
+ SiteQuestionType2["Unknown"] = "unknown";
1227
+ return SiteQuestionType2;
1228
+ })(SiteQuestionType || {});
1229
+ var SiteQuestionAnswerResolution = /* @__PURE__ */ ((SiteQuestionAnswerResolution2) => {
1230
+ SiteQuestionAnswerResolution2["No"] = "no";
1231
+ SiteQuestionAnswerResolution2["Partially"] = "partially";
1232
+ SiteQuestionAnswerResolution2["Yes"] = "yes";
1233
+ return SiteQuestionAnswerResolution2;
1234
+ })(SiteQuestionAnswerResolution || {});
1235
+ var SiteQuestionAnswerConfidence = /* @__PURE__ */ ((SiteQuestionAnswerConfidence2) => {
1236
+ SiteQuestionAnswerConfidence2["Low"] = "low";
1237
+ SiteQuestionAnswerConfidence2["Medium"] = "medium";
1238
+ SiteQuestionAnswerConfidence2["High"] = "high";
1239
+ return SiteQuestionAnswerConfidence2;
1240
+ })(SiteQuestionAnswerConfidence || {});
1241
+ var SiteQuestionAnswerRelevance = /* @__PURE__ */ ((SiteQuestionAnswerRelevance2) => {
1242
+ SiteQuestionAnswerRelevance2["Relevant"] = "relevant";
1243
+ SiteQuestionAnswerRelevance2["Spam"] = "spam";
1244
+ SiteQuestionAnswerRelevance2["OffTopic"] = "off-topic";
1245
+ SiteQuestionAnswerRelevance2["Unclear"] = "unclear";
1246
+ return SiteQuestionAnswerRelevance2;
1247
+ })(SiteQuestionAnswerRelevance || {});
1248
+ var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
1249
+ AIMessageRole2["User"] = "user";
1250
+ AIMessageRole2["Assistant"] = "assistant";
1251
+ AIMessageRole2["Developer"] = "developer";
1252
+ return AIMessageRole2;
1253
+ })(AIMessageRole || {});
1210
1254
  var AIModel = /* @__PURE__ */ ((AIModel2) => {
1211
1255
  AIModel2["Fast"] = "fast";
1212
1256
  AIModel2["ReasoningLow"] = "reasoning-low";
@@ -1418,12 +1462,11 @@ var SiteAdsStatus = /* @__PURE__ */ ((SiteAdsStatus2) => {
1418
1462
  SiteAdsStatus2["Disabled"] = "disabled";
1419
1463
  return SiteAdsStatus2;
1420
1464
  })(SiteAdsStatus || {});
1421
- var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
1422
- AIMessageRole2["User"] = "user";
1423
- AIMessageRole2["Assistant"] = "assistant";
1424
- AIMessageRole2["Developer"] = "developer";
1425
- return AIMessageRole2;
1426
- })(AIMessageRole || {});
1465
+ var SiteQuestionAnswerSourceType = /* @__PURE__ */ ((SiteQuestionAnswerSourceType2) => {
1466
+ SiteQuestionAnswerSourceType2["Page"] = "page";
1467
+ SiteQuestionAnswerSourceType2["Record"] = "record";
1468
+ return SiteQuestionAnswerSourceType2;
1469
+ })(SiteQuestionAnswerSourceType || {});
1427
1470
  var AgentStatus = /* @__PURE__ */ ((AgentStatus2) => {
1428
1471
  AgentStatus2["Idle"] = "idle";
1429
1472
  AgentStatus2["Processing"] = "processing";
@@ -3852,23 +3895,22 @@ var Api = class extends HttpClient {
3852
3895
  secure: true,
3853
3896
  ...params
3854
3897
  }),
3855
- listSiteContextTopics: (organizationId, siteId, query, params = {}) => this.request({
3856
- path: `/orgs/${organizationId}/sites/${siteId}/context-topics`,
3898
+ listSiteTopics: (organizationId, siteId, params = {}) => this.request({
3899
+ path: `/orgs/${organizationId}/sites/${siteId}/topics`,
3857
3900
  method: "GET",
3858
- query,
3859
3901
  secure: true,
3860
3902
  format: "json",
3861
3903
  ...params
3862
3904
  }),
3863
- getSiteContextTopicById: (organizationId, siteId, siteContextTopicId, params = {}) => this.request({
3864
- path: `/orgs/${organizationId}/sites/${siteId}/context-topics/${siteContextTopicId}`,
3905
+ getSiteTopicById: (organizationId, siteId, siteTopicId, params = {}) => this.request({
3906
+ path: `/orgs/${organizationId}/sites/${siteId}/topics/${siteTopicId}`,
3865
3907
  method: "GET",
3866
3908
  secure: true,
3867
3909
  format: "json",
3868
3910
  ...params
3869
3911
  }),
3870
- updateSiteContextTopicById: (organizationId, siteId, siteContextTopicId, data, params = {}) => this.request({
3871
- path: `/orgs/${organizationId}/sites/${siteId}/context-topics/${siteContextTopicId}`,
3912
+ updateSiteTopicById: (organizationId, siteId, siteTopicId, data, params = {}) => this.request({
3913
+ path: `/orgs/${organizationId}/sites/${siteId}/topics/${siteTopicId}`,
3872
3914
  method: "PATCH",
3873
3915
  body: data,
3874
3916
  secure: true,
@@ -3876,6 +3918,44 @@ var Api = class extends HttpClient {
3876
3918
  format: "json",
3877
3919
  ...params
3878
3920
  }),
3921
+ listSiteQuestions: (organizationId, siteId, query, params = {}) => this.request({
3922
+ path: `/orgs/${organizationId}/sites/${siteId}/questions`,
3923
+ method: "GET",
3924
+ query,
3925
+ secure: true,
3926
+ format: "json",
3927
+ ...params
3928
+ }),
3929
+ getSiteQuestionById: (organizationId, siteId, siteQuestionId, params = {}) => this.request({
3930
+ path: `/orgs/${organizationId}/sites/${siteId}/questions/${siteQuestionId}`,
3931
+ method: "GET",
3932
+ secure: true,
3933
+ format: "json",
3934
+ ...params
3935
+ }),
3936
+ listSiteQuestionAnswers: (organizationId, siteId, query, params = {}) => this.request({
3937
+ path: `/orgs/${organizationId}/sites/${siteId}/answers`,
3938
+ method: "GET",
3939
+ query,
3940
+ secure: true,
3941
+ format: "json",
3942
+ ...params
3943
+ }),
3944
+ getSiteQuestionAnswerById: (organizationId, siteId, siteQuestionAnswerId, params = {}) => this.request({
3945
+ path: `/orgs/${organizationId}/sites/${siteId}/answers/${siteQuestionAnswerId}`,
3946
+ method: "GET",
3947
+ secure: true,
3948
+ format: "json",
3949
+ ...params
3950
+ }),
3951
+ listSiteQuestionAnswerSources: (organizationId, siteId, siteQuestionAnswerId, query, params = {}) => this.request({
3952
+ path: `/orgs/${organizationId}/sites/${siteId}/answers/${siteQuestionAnswerId}/sources`,
3953
+ method: "GET",
3954
+ query,
3955
+ secure: true,
3956
+ format: "json",
3957
+ ...params
3958
+ }),
3879
3959
  updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
3880
3960
  path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
3881
3961
  method: "PATCH",
@@ -4050,6 +4130,15 @@ var Api = class extends HttpClient {
4050
4130
  format: "json",
4051
4131
  ...params
4052
4132
  }),
4133
+ bulkUpsertSiteRedirects: (organizationId, siteId, data, params = {}) => this.request({
4134
+ path: `/orgs/${organizationId}/sites/${siteId}/redirects`,
4135
+ method: "PUT",
4136
+ body: data,
4137
+ secure: true,
4138
+ type: "application/json" /* Json */,
4139
+ format: "json",
4140
+ ...params
4141
+ }),
4053
4142
  listSiteRedirects: (organizationId, siteId, query, params = {}) => this.request({
4054
4143
  path: `/orgs/${organizationId}/sites/${siteId}/redirects`,
4055
4144
  method: "GET",
@@ -4277,6 +4366,7 @@ var CHANGE_REQUEST_SUBJECT_MAX_LENGTH = 100;
4277
4366
  var CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
4278
4367
  var ORGANIZATION_TITLE_MAX_LENGTH = 255;
4279
4368
  var ORGANIZATION_TITLE_MIN_LENGTH = 2;
4369
+ var ORGANIZATION_TITLE_PATTERN = "\\S.*\\S";
4280
4370
  var ORGANIZATION_HOSTNAME_MAX_LENGTH = 32;
4281
4371
  var ORGANIZATION_HOSTNAME_MIN_LENGTH = 3;
4282
4372
  var ORGANIZATION_TYPE_ENUM = ["business", "community"];
@@ -4391,6 +4481,11 @@ var CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
4391
4481
  var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
4392
4482
  var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
4393
4483
  var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
4484
+ var SITE_QUESTION_TYPE_ENUM = ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
4485
+ var SITE_QUESTION_ANSWER_RESOLUTION_ENUM = ["no", "partially", "yes"];
4486
+ var SITE_QUESTION_ANSWER_CONFIDENCE_ENUM = ["low", "medium", "high"];
4487
+ var SITE_QUESTION_ANSWER_RELEVANCE_ENUM = ["relevant", "spam", "off-topic", "unclear"];
4488
+ var AIMESSAGE_ROLE_ENUM = ["user", "assistant", "developer"];
4394
4489
  var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
4395
4490
  var SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM = ["site", "embed"];
4396
4491
  var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sidebar", "content"];
@@ -4423,7 +4518,7 @@ var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_proc
4423
4518
  var BILLING_STATUS_ENUM = ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
4424
4519
  var APIINTEGRATION_SCOPE_ENUM = ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
4425
4520
  var SITE_ADS_STATUS_ENUM = ["pending", "in-review", "live", "rejected", "disabled"];
4426
- var AIMESSAGE_ROLE_ENUM = ["user", "assistant", "developer"];
4521
+ var SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM = ["page", "record"];
4427
4522
  var AGENT_STATUS_ENUM = ["idle", "processing", "errored"];
4428
4523
 
4429
4524
  // src/index.ts
@@ -4661,6 +4756,7 @@ var GitBookAPI = class extends Api {
4661
4756
  ORGANIZATION_TEAM_TITLE_MIN_LENGTH,
4662
4757
  ORGANIZATION_TITLE_MAX_LENGTH,
4663
4758
  ORGANIZATION_TITLE_MIN_LENGTH,
4759
+ ORGANIZATION_TITLE_PATTERN,
4664
4760
  ORGANIZATION_TYPE_ENUM,
4665
4761
  ORGANIZATION_USE_CASE_ENUM,
4666
4762
  OpenAPISpecProcessingErrorCode,
@@ -4718,6 +4814,11 @@ var GitBookAPI = class extends Api {
4718
4814
  SITE_MCP_SERVER_NAME_MIN_LENGTH,
4719
4815
  SITE_PROXY_ORIGIN_MAX_LENGTH,
4720
4816
  SITE_PROXY_ORIGIN_PATTERN,
4817
+ SITE_QUESTION_ANSWER_CONFIDENCE_ENUM,
4818
+ SITE_QUESTION_ANSWER_RELEVANCE_ENUM,
4819
+ SITE_QUESTION_ANSWER_RESOLUTION_ENUM,
4820
+ SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM,
4821
+ SITE_QUESTION_TYPE_ENUM,
4721
4822
  SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH,
4722
4823
  SITE_REDIRECT_SOURCE_PATH_PATTERN,
4723
4824
  SITE_SECTION_DESCRIPTION_MAX_LENGTH,
@@ -4759,6 +4860,11 @@ var GitBookAPI = class extends Api {
4759
4860
  SiteInsightsVisitorBrowser,
4760
4861
  SiteInsightsVisitorDevice,
4761
4862
  SiteInsightsVisitorOS,
4863
+ SiteQuestionAnswerConfidence,
4864
+ SiteQuestionAnswerRelevance,
4865
+ SiteQuestionAnswerResolution,
4866
+ SiteQuestionAnswerSourceType,
4867
+ SiteQuestionType,
4762
4868
  SiteSocialAccountPlatform,
4763
4869
  SiteType,
4764
4870
  SiteVisibility,
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.161.0";
175
+ var version = "0.163.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -915,6 +915,39 @@ var ContextConnectionStatus = /* @__PURE__ */ ((ContextConnectionStatus2) => {
915
915
  ContextConnectionStatus2["Failed"] = "failed";
916
916
  return ContextConnectionStatus2;
917
917
  })(ContextConnectionStatus || {});
918
+ var SiteQuestionType = /* @__PURE__ */ ((SiteQuestionType2) => {
919
+ SiteQuestionType2["Exploring"] = "exploring";
920
+ SiteQuestionType2["HowTo"] = "how-to";
921
+ SiteQuestionType2["Troubleshooting"] = "troubleshooting";
922
+ SiteQuestionType2["Reference"] = "reference";
923
+ SiteQuestionType2["Unknown"] = "unknown";
924
+ return SiteQuestionType2;
925
+ })(SiteQuestionType || {});
926
+ var SiteQuestionAnswerResolution = /* @__PURE__ */ ((SiteQuestionAnswerResolution2) => {
927
+ SiteQuestionAnswerResolution2["No"] = "no";
928
+ SiteQuestionAnswerResolution2["Partially"] = "partially";
929
+ SiteQuestionAnswerResolution2["Yes"] = "yes";
930
+ return SiteQuestionAnswerResolution2;
931
+ })(SiteQuestionAnswerResolution || {});
932
+ var SiteQuestionAnswerConfidence = /* @__PURE__ */ ((SiteQuestionAnswerConfidence2) => {
933
+ SiteQuestionAnswerConfidence2["Low"] = "low";
934
+ SiteQuestionAnswerConfidence2["Medium"] = "medium";
935
+ SiteQuestionAnswerConfidence2["High"] = "high";
936
+ return SiteQuestionAnswerConfidence2;
937
+ })(SiteQuestionAnswerConfidence || {});
938
+ var SiteQuestionAnswerRelevance = /* @__PURE__ */ ((SiteQuestionAnswerRelevance2) => {
939
+ SiteQuestionAnswerRelevance2["Relevant"] = "relevant";
940
+ SiteQuestionAnswerRelevance2["Spam"] = "spam";
941
+ SiteQuestionAnswerRelevance2["OffTopic"] = "off-topic";
942
+ SiteQuestionAnswerRelevance2["Unclear"] = "unclear";
943
+ return SiteQuestionAnswerRelevance2;
944
+ })(SiteQuestionAnswerRelevance || {});
945
+ var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
946
+ AIMessageRole2["User"] = "user";
947
+ AIMessageRole2["Assistant"] = "assistant";
948
+ AIMessageRole2["Developer"] = "developer";
949
+ return AIMessageRole2;
950
+ })(AIMessageRole || {});
918
951
  var AIModel = /* @__PURE__ */ ((AIModel2) => {
919
952
  AIModel2["Fast"] = "fast";
920
953
  AIModel2["ReasoningLow"] = "reasoning-low";
@@ -1126,12 +1159,11 @@ var SiteAdsStatus = /* @__PURE__ */ ((SiteAdsStatus2) => {
1126
1159
  SiteAdsStatus2["Disabled"] = "disabled";
1127
1160
  return SiteAdsStatus2;
1128
1161
  })(SiteAdsStatus || {});
1129
- var AIMessageRole = /* @__PURE__ */ ((AIMessageRole2) => {
1130
- AIMessageRole2["User"] = "user";
1131
- AIMessageRole2["Assistant"] = "assistant";
1132
- AIMessageRole2["Developer"] = "developer";
1133
- return AIMessageRole2;
1134
- })(AIMessageRole || {});
1162
+ var SiteQuestionAnswerSourceType = /* @__PURE__ */ ((SiteQuestionAnswerSourceType2) => {
1163
+ SiteQuestionAnswerSourceType2["Page"] = "page";
1164
+ SiteQuestionAnswerSourceType2["Record"] = "record";
1165
+ return SiteQuestionAnswerSourceType2;
1166
+ })(SiteQuestionAnswerSourceType || {});
1135
1167
  var AgentStatus = /* @__PURE__ */ ((AgentStatus2) => {
1136
1168
  AgentStatus2["Idle"] = "idle";
1137
1169
  AgentStatus2["Processing"] = "processing";
@@ -3560,23 +3592,22 @@ var Api = class extends HttpClient {
3560
3592
  secure: true,
3561
3593
  ...params
3562
3594
  }),
3563
- listSiteContextTopics: (organizationId, siteId, query, params = {}) => this.request({
3564
- path: `/orgs/${organizationId}/sites/${siteId}/context-topics`,
3595
+ listSiteTopics: (organizationId, siteId, params = {}) => this.request({
3596
+ path: `/orgs/${organizationId}/sites/${siteId}/topics`,
3565
3597
  method: "GET",
3566
- query,
3567
3598
  secure: true,
3568
3599
  format: "json",
3569
3600
  ...params
3570
3601
  }),
3571
- getSiteContextTopicById: (organizationId, siteId, siteContextTopicId, params = {}) => this.request({
3572
- path: `/orgs/${organizationId}/sites/${siteId}/context-topics/${siteContextTopicId}`,
3602
+ getSiteTopicById: (organizationId, siteId, siteTopicId, params = {}) => this.request({
3603
+ path: `/orgs/${organizationId}/sites/${siteId}/topics/${siteTopicId}`,
3573
3604
  method: "GET",
3574
3605
  secure: true,
3575
3606
  format: "json",
3576
3607
  ...params
3577
3608
  }),
3578
- updateSiteContextTopicById: (organizationId, siteId, siteContextTopicId, data, params = {}) => this.request({
3579
- path: `/orgs/${organizationId}/sites/${siteId}/context-topics/${siteContextTopicId}`,
3609
+ updateSiteTopicById: (organizationId, siteId, siteTopicId, data, params = {}) => this.request({
3610
+ path: `/orgs/${organizationId}/sites/${siteId}/topics/${siteTopicId}`,
3580
3611
  method: "PATCH",
3581
3612
  body: data,
3582
3613
  secure: true,
@@ -3584,6 +3615,44 @@ var Api = class extends HttpClient {
3584
3615
  format: "json",
3585
3616
  ...params
3586
3617
  }),
3618
+ listSiteQuestions: (organizationId, siteId, query, params = {}) => this.request({
3619
+ path: `/orgs/${organizationId}/sites/${siteId}/questions`,
3620
+ method: "GET",
3621
+ query,
3622
+ secure: true,
3623
+ format: "json",
3624
+ ...params
3625
+ }),
3626
+ getSiteQuestionById: (organizationId, siteId, siteQuestionId, params = {}) => this.request({
3627
+ path: `/orgs/${organizationId}/sites/${siteId}/questions/${siteQuestionId}`,
3628
+ method: "GET",
3629
+ secure: true,
3630
+ format: "json",
3631
+ ...params
3632
+ }),
3633
+ listSiteQuestionAnswers: (organizationId, siteId, query, params = {}) => this.request({
3634
+ path: `/orgs/${organizationId}/sites/${siteId}/answers`,
3635
+ method: "GET",
3636
+ query,
3637
+ secure: true,
3638
+ format: "json",
3639
+ ...params
3640
+ }),
3641
+ getSiteQuestionAnswerById: (organizationId, siteId, siteQuestionAnswerId, params = {}) => this.request({
3642
+ path: `/orgs/${organizationId}/sites/${siteId}/answers/${siteQuestionAnswerId}`,
3643
+ method: "GET",
3644
+ secure: true,
3645
+ format: "json",
3646
+ ...params
3647
+ }),
3648
+ listSiteQuestionAnswerSources: (organizationId, siteId, siteQuestionAnswerId, query, params = {}) => this.request({
3649
+ path: `/orgs/${organizationId}/sites/${siteId}/answers/${siteQuestionAnswerId}/sources`,
3650
+ method: "GET",
3651
+ query,
3652
+ secure: true,
3653
+ format: "json",
3654
+ ...params
3655
+ }),
3587
3656
  updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
3588
3657
  path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
3589
3658
  method: "PATCH",
@@ -3758,6 +3827,15 @@ var Api = class extends HttpClient {
3758
3827
  format: "json",
3759
3828
  ...params
3760
3829
  }),
3830
+ bulkUpsertSiteRedirects: (organizationId, siteId, data, params = {}) => this.request({
3831
+ path: `/orgs/${organizationId}/sites/${siteId}/redirects`,
3832
+ method: "PUT",
3833
+ body: data,
3834
+ secure: true,
3835
+ type: "application/json" /* Json */,
3836
+ format: "json",
3837
+ ...params
3838
+ }),
3761
3839
  listSiteRedirects: (organizationId, siteId, query, params = {}) => this.request({
3762
3840
  path: `/orgs/${organizationId}/sites/${siteId}/redirects`,
3763
3841
  method: "GET",
@@ -3985,6 +4063,7 @@ var CHANGE_REQUEST_SUBJECT_MAX_LENGTH = 100;
3985
4063
  var CHANGE_REQUEST_SUBJECT_MIN_LENGTH = 0;
3986
4064
  var ORGANIZATION_TITLE_MAX_LENGTH = 255;
3987
4065
  var ORGANIZATION_TITLE_MIN_LENGTH = 2;
4066
+ var ORGANIZATION_TITLE_PATTERN = "\\S.*\\S";
3988
4067
  var ORGANIZATION_HOSTNAME_MAX_LENGTH = 32;
3989
4068
  var ORGANIZATION_HOSTNAME_MIN_LENGTH = 3;
3990
4069
  var ORGANIZATION_TYPE_ENUM = ["business", "community"];
@@ -4099,6 +4178,11 @@ var CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
4099
4178
  var CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
4100
4179
  var CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
4101
4180
  var CONTEXT_CONNECTION_STATUS_ENUM = ["pending", "syncing", "succeeded", "failed"];
4181
+ var SITE_QUESTION_TYPE_ENUM = ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
4182
+ var SITE_QUESTION_ANSWER_RESOLUTION_ENUM = ["no", "partially", "yes"];
4183
+ var SITE_QUESTION_ANSWER_CONFIDENCE_ENUM = ["low", "medium", "high"];
4184
+ var SITE_QUESTION_ANSWER_RELEVANCE_ENUM = ["relevant", "spam", "off-topic", "unclear"];
4185
+ var AIMESSAGE_ROLE_ENUM = ["user", "assistant", "developer"];
4102
4186
  var AIMODEL_ENUM = ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
4103
4187
  var SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM = ["site", "embed"];
4104
4188
  var SITE_INSIGHTS_LINK_POSITION_ENUM = ["announcement", "header", "footer", "sidebar", "content"];
@@ -4131,7 +4215,7 @@ var GIT_SYNC_OPERATION_STAGE_ENUM = ["repo_fetch", "config_check", "content_proc
4131
4215
  var BILLING_STATUS_ENUM = ["trialing", "active", "past_due", "incomplete_expired", "canceled", "unpaid", "paused"];
4132
4216
  var APIINTEGRATION_SCOPE_ENUM = ["integration:read", "integration:update", "integration:installation:read", "integration:installation:update"];
4133
4217
  var SITE_ADS_STATUS_ENUM = ["pending", "in-review", "live", "rejected", "disabled"];
4134
- var AIMESSAGE_ROLE_ENUM = ["user", "assistant", "developer"];
4218
+ var SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM = ["page", "record"];
4135
4219
  var AGENT_STATUS_ENUM = ["idle", "processing", "errored"];
4136
4220
 
4137
4221
  // src/index.ts
@@ -4368,6 +4452,7 @@ export {
4368
4452
  ORGANIZATION_TEAM_TITLE_MIN_LENGTH,
4369
4453
  ORGANIZATION_TITLE_MAX_LENGTH,
4370
4454
  ORGANIZATION_TITLE_MIN_LENGTH,
4455
+ ORGANIZATION_TITLE_PATTERN,
4371
4456
  ORGANIZATION_TYPE_ENUM,
4372
4457
  ORGANIZATION_USE_CASE_ENUM,
4373
4458
  OpenAPISpecProcessingErrorCode,
@@ -4425,6 +4510,11 @@ export {
4425
4510
  SITE_MCP_SERVER_NAME_MIN_LENGTH,
4426
4511
  SITE_PROXY_ORIGIN_MAX_LENGTH,
4427
4512
  SITE_PROXY_ORIGIN_PATTERN,
4513
+ SITE_QUESTION_ANSWER_CONFIDENCE_ENUM,
4514
+ SITE_QUESTION_ANSWER_RELEVANCE_ENUM,
4515
+ SITE_QUESTION_ANSWER_RESOLUTION_ENUM,
4516
+ SITE_QUESTION_ANSWER_SOURCE_TYPE_ENUM,
4517
+ SITE_QUESTION_TYPE_ENUM,
4428
4518
  SITE_REDIRECT_SOURCE_PATH_MAX_LENGTH,
4429
4519
  SITE_REDIRECT_SOURCE_PATH_PATTERN,
4430
4520
  SITE_SECTION_DESCRIPTION_MAX_LENGTH,
@@ -4466,6 +4556,11 @@ export {
4466
4556
  SiteInsightsVisitorBrowser,
4467
4557
  SiteInsightsVisitorDevice,
4468
4558
  SiteInsightsVisitorOS,
4559
+ SiteQuestionAnswerConfidence,
4560
+ SiteQuestionAnswerRelevance,
4561
+ SiteQuestionAnswerResolution,
4562
+ SiteQuestionAnswerSourceType,
4563
+ SiteQuestionType,
4469
4564
  SiteSocialAccountPlatform,
4470
4565
  SiteType,
4471
4566
  SiteVisibility,
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.161.0",
7
+ "version": "0.163.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",