@gitbook/api 0.168.0 → 0.169.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
@@ -1000,9 +1000,9 @@ export type PublishedContentRedirect = {
1000
1000
  site: string;
1001
1001
  redirect: URL;
1002
1002
  };
1003
- export type SiteQuestionAnswerSource = SiteQuestionAnswerSourcePage | SiteQuestionAnswerSourceRecord;
1004
1003
  /** Result of a search */
1005
1004
  export type AIToolCallSearchResult = AIToolCallSearchResultPage | AIToolCallSearchResultRecord;
1005
+ export type SiteQuestionAnswerSource = SiteQuestionAnswerSourcePage | SiteQuestionAnswerSourceRecord;
1006
1006
  export type SearchAIAnswerSource = SearchAIAnswerSourcePage | SearchAIAnswerSourceRecord;
1007
1007
  /** Element used as root */
1008
1008
  export type ContentKitRootElement = ContentKitBlock | ContentKitModal | ContentKitConfiguration;
@@ -4719,6 +4719,8 @@ export type LocalizedString = Record<TranslationLanguage, string>;
4719
4719
  * @maxLength 256
4720
4720
  */
4721
4721
  export type SiteSectionDescription = string;
4722
+ /** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
4723
+ export type LocalizedSectionDescription = Record<TranslationLanguage, string>;
4722
4724
  /**
4723
4725
  * Path to the section on the site
4724
4726
  * @minLength 1
@@ -4742,6 +4744,8 @@ export interface SiteSpace {
4742
4744
  section?: string;
4743
4745
  space: Space;
4744
4746
  title: string;
4747
+ /** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
4748
+ localizedTitle?: LocalizedString;
4745
4749
  /** Whether this is the default space for the site */
4746
4750
  default?: boolean;
4747
4751
  /** Conditional expression used to evaluate whether the site space should be shown to the site's visitor. */
@@ -4770,6 +4774,8 @@ export interface SiteSection {
4770
4774
  localizedTitle?: LocalizedString;
4771
4775
  /** Description of the site section */
4772
4776
  description?: SiteSectionDescription;
4777
+ /** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
4778
+ localizedDescription?: LocalizedSectionDescription;
4773
4779
  /** Whether this is the default section for the site */
4774
4780
  default?: boolean;
4775
4781
  /** Path to the section on the site */
@@ -4803,6 +4809,8 @@ export interface SiteSectionGroup {
4803
4809
  id: string;
4804
4810
  /** Title of the site section group */
4805
4811
  title: SiteSectionGroupTitle;
4812
+ /** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
4813
+ localizedTitle?: LocalizedString;
4806
4814
  /**
4807
4815
  * List of site section ids that are members of the group. Use `children` instead.
4808
4816
  * @deprecated
@@ -6328,6 +6336,38 @@ export interface SiteTopic {
6328
6336
  location: string;
6329
6337
  };
6330
6338
  }
6339
+ export interface SiteQuestionAnswerSourceBase {
6340
+ object: "site-question-answer-source";
6341
+ /** The ID of the source. */
6342
+ id: string;
6343
+ /** Relative weight of this source in the generated answer. */
6344
+ weight: number;
6345
+ /** The title of the source. */
6346
+ title: string;
6347
+ /** URLs associated with the site question answer. */
6348
+ urls: {
6349
+ /**
6350
+ * URL of the site question answer in the API.
6351
+ * @format uri
6352
+ */
6353
+ location: string;
6354
+ };
6355
+ }
6356
+ /** Source data pointing to a page used for a site question answer. */
6357
+ export type SiteQuestionAnswerSourcePage = SiteQuestionAnswerSourceBase & {
6358
+ type: "page";
6359
+ /** The space ID of the source page. */
6360
+ space: string;
6361
+ /** The revision ID used for this source page. */
6362
+ revision: string;
6363
+ /** The page ID of the source page. */
6364
+ page: string;
6365
+ };
6366
+ export type SiteQuestionAnswerSourceRecord = SiteQuestionAnswerSourceBase & {
6367
+ type: "record";
6368
+ /** The site context record ID. */
6369
+ record: string;
6370
+ };
6331
6371
  /** Identifiers for a GitBook site session, used for analytics and adaptive content. */
6332
6372
  export interface SiteInsightsSession {
6333
6373
  /** GitBook's unique identifier of the visitor. */
@@ -6673,38 +6713,6 @@ export interface AIMessage {
6673
6713
  export type SiteQuestionAnswerWithResponse = SiteQuestionAnswer & {
6674
6714
  response: AIMessage;
6675
6715
  };
6676
- export interface SiteQuestionAnswerSourceBase {
6677
- object: "site-question-answer-source";
6678
- /** The ID of the source. */
6679
- id: string;
6680
- /** Relative weight of this source in the generated answer. */
6681
- weight: number;
6682
- /** The title of the source. */
6683
- title: string;
6684
- /** URLs associated with the site question answer. */
6685
- urls: {
6686
- /**
6687
- * URL of the site question answer in the API.
6688
- * @format uri
6689
- */
6690
- location: string;
6691
- };
6692
- }
6693
- /** Source data pointing to a page used for a site question answer. */
6694
- export type SiteQuestionAnswerSourcePage = SiteQuestionAnswerSourceBase & {
6695
- type: "page";
6696
- /** The space ID of the source page. */
6697
- space: string;
6698
- /** The revision ID used for this source page. */
6699
- revision: string;
6700
- /** The page ID of the source page. */
6701
- page: string;
6702
- };
6703
- export type SiteQuestionAnswerSourceRecord = SiteQuestionAnswerSourceBase & {
6704
- type: "record";
6705
- /** The site context record ID. */
6706
- record: string;
6707
- };
6708
6716
  export type SiteSpaceCustomizationSettings = SiteCustomizationSettings & {
6709
6717
  /** Indicates whether the site customization settings have been overridden. */
6710
6718
  hasOverrides: boolean;
@@ -13314,6 +13322,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13314
13322
  updateSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, data: {
13315
13323
  /** Title of the site section group */
13316
13324
  title?: SiteSectionGroupTitle;
13325
+ /** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
13326
+ localizedTitle?: LocalizedString;
13317
13327
  icon?: Icon | null;
13318
13328
  }, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
13319
13329
  /**
@@ -13409,6 +13419,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13409
13419
  condition?: Expression | null;
13410
13420
  icon?: Icon | null;
13411
13421
  description?: SiteSectionDescription | null;
13422
+ /** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
13423
+ localizedDescription?: LocalizedSectionDescription;
13412
13424
  }, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
13413
13425
  /**
13414
13426
  * No description
@@ -13872,6 +13884,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13872
13884
  * @secure
13873
13885
  */
13874
13886
  getSiteQuestionById: (organizationId: EntityId, siteId: string, siteQuestionId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
13887
+ /**
13888
+ * No description
13889
+ *
13890
+ * @tags site-questions
13891
+ * @name ListSiteQuestionSources
13892
+ * @summary List sources for a question
13893
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources
13894
+ * @secure
13895
+ */
13896
+ listSiteQuestionSources: (organizationId: EntityId, siteId: string, siteQuestionId: string, query?: {
13897
+ /** Identifier of the page results to fetch. */
13898
+ page?: string;
13899
+ /**
13900
+ * The number of results per page
13901
+ * @min 0
13902
+ * @max 1000
13903
+ */
13904
+ limit?: number;
13905
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
13906
+ items: SiteQuestionAnswerSource[];
13907
+ }, any>>;
13875
13908
  /**
13876
13909
  * No description
13877
13910
  *
@@ -13938,6 +13971,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13938
13971
  * @secure
13939
13972
  */
13940
13973
  getSiteQuestionAnswerById: (organizationId: EntityId, siteId: string, siteQuestionAnswerId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestionAnswerWithResponse, any>>;
13974
+ /**
13975
+ * No description
13976
+ *
13977
+ * @tags site-questions
13978
+ * @name GetSiteQuestionAnswerThreadById
13979
+ * @summary Get a site answer thread by answer ID
13980
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread
13981
+ * @secure
13982
+ */
13983
+ getSiteQuestionAnswerThreadById: (organizationId: EntityId, siteId: string, siteQuestionAnswerId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestionAnswerWithResponse[], any>>;
13941
13984
  /**
13942
13985
  * No description
13943
13986
  *
@@ -14023,6 +14066,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14023
14066
  overrideSiteSpaceCustomizationById: (organizationId: EntityId, siteId: string, siteSpaceId: string, data: {
14024
14067
  /** Title to use for the published site variant. If not defined, the title will not be changed. If set to null, the title will be unset and will fallback to the content title. */
14025
14068
  title?: SiteTitle | null;
14069
+ /** Localized titles for the site variant, keyed by locale. If not defined, the localized title will not be changed. If set to null, all localized titles will be removed. */
14070
+ localizedTitle?: LocalizedString | null;
14026
14071
  styling?: {
14027
14072
  /** The site theme. Set to null to reset the override. */
14028
14073
  theme?: CustomizationTheme | null;
package/dist/index.cjs CHANGED
@@ -486,7 +486,7 @@ module.exports = __toCommonJS(src_exports);
486
486
 
487
487
  // package.json
488
488
  var name = "@gitbook/api";
489
- var version = "0.168.0";
489
+ var version = "0.169.0";
490
490
 
491
491
  // src/client.ts
492
492
  var import_event_iterator = __toESM(require_node(), 1);
@@ -3985,6 +3985,14 @@ var Api = class extends HttpClient {
3985
3985
  format: "json",
3986
3986
  ...params
3987
3987
  }),
3988
+ listSiteQuestionSources: (organizationId, siteId, siteQuestionId, query, params = {}) => this.request({
3989
+ path: `/orgs/${organizationId}/sites/${siteId}/questions/${siteQuestionId}/sources`,
3990
+ method: "GET",
3991
+ query,
3992
+ secure: true,
3993
+ format: "json",
3994
+ ...params
3995
+ }),
3988
3996
  getSiteQuestionStats: (organizationId, siteId, query, params = {}) => this.request({
3989
3997
  path: `/orgs/${organizationId}/sites/${siteId}/question-stats`,
3990
3998
  method: "GET",
@@ -4008,6 +4016,13 @@ var Api = class extends HttpClient {
4008
4016
  format: "json",
4009
4017
  ...params
4010
4018
  }),
4019
+ getSiteQuestionAnswerThreadById: (organizationId, siteId, siteQuestionAnswerId, params = {}) => this.request({
4020
+ path: `/orgs/${organizationId}/sites/${siteId}/answers/${siteQuestionAnswerId}/thread`,
4021
+ method: "GET",
4022
+ secure: true,
4023
+ format: "json",
4024
+ ...params
4025
+ }),
4011
4026
  listSiteQuestionAnswerSources: (organizationId, siteId, siteQuestionAnswerId, query, params = {}) => this.request({
4012
4027
  path: `/orgs/${organizationId}/sites/${siteId}/answers/${siteQuestionAnswerId}/sources`,
4013
4028
  method: "GET",
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.168.0";
175
+ var version = "0.169.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -3671,6 +3671,14 @@ var Api = class extends HttpClient {
3671
3671
  format: "json",
3672
3672
  ...params
3673
3673
  }),
3674
+ listSiteQuestionSources: (organizationId, siteId, siteQuestionId, query, params = {}) => this.request({
3675
+ path: `/orgs/${organizationId}/sites/${siteId}/questions/${siteQuestionId}/sources`,
3676
+ method: "GET",
3677
+ query,
3678
+ secure: true,
3679
+ format: "json",
3680
+ ...params
3681
+ }),
3674
3682
  getSiteQuestionStats: (organizationId, siteId, query, params = {}) => this.request({
3675
3683
  path: `/orgs/${organizationId}/sites/${siteId}/question-stats`,
3676
3684
  method: "GET",
@@ -3694,6 +3702,13 @@ var Api = class extends HttpClient {
3694
3702
  format: "json",
3695
3703
  ...params
3696
3704
  }),
3705
+ getSiteQuestionAnswerThreadById: (organizationId, siteId, siteQuestionAnswerId, params = {}) => this.request({
3706
+ path: `/orgs/${organizationId}/sites/${siteId}/answers/${siteQuestionAnswerId}/thread`,
3707
+ method: "GET",
3708
+ secure: true,
3709
+ format: "json",
3710
+ ...params
3711
+ }),
3697
3712
  listSiteQuestionAnswerSources: (organizationId, siteId, siteQuestionAnswerId, query, params = {}) => this.request({
3698
3713
  path: `/orgs/${organizationId}/sites/${siteId}/answers/${siteQuestionAnswerId}/sources`,
3699
3714
  method: "GET",
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.168.0",
7
+ "version": "0.169.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -13155,6 +13155,9 @@
13155
13155
  "title": {
13156
13156
  "$ref": "#/components/schemas/SiteSectionGroupTitle"
13157
13157
  },
13158
+ "localizedTitle": {
13159
+ "$ref": "#/components/schemas/LocalizedString"
13160
+ },
13158
13161
  "icon": {
13159
13162
  "oneOf": [
13160
13163
  {
@@ -13528,6 +13531,9 @@
13528
13531
  "type": "null"
13529
13532
  }
13530
13533
  ]
13534
+ },
13535
+ "localizedDescription": {
13536
+ "$ref": "#/components/schemas/LocalizedSectionDescription"
13531
13537
  }
13532
13538
  }
13533
13539
  }
@@ -15073,6 +15079,67 @@
15073
15079
  }
15074
15080
  }
15075
15081
  },
15082
+ "/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources": {
15083
+ "get": {
15084
+ "operationId": "listSiteQuestionSources",
15085
+ "summary": "List sources for a question",
15086
+ "tags": [
15087
+ "site-questions"
15088
+ ],
15089
+ "security": [
15090
+ {
15091
+ "user": []
15092
+ }
15093
+ ],
15094
+ "parameters": [
15095
+ {
15096
+ "$ref": "#/components/parameters/organizationId"
15097
+ },
15098
+ {
15099
+ "$ref": "#/components/parameters/siteId"
15100
+ },
15101
+ {
15102
+ "$ref": "#/components/parameters/siteQuestionId"
15103
+ },
15104
+ {
15105
+ "$ref": "#/components/parameters/listPage"
15106
+ },
15107
+ {
15108
+ "$ref": "#/components/parameters/listLimit"
15109
+ }
15110
+ ],
15111
+ "responses": {
15112
+ "200": {
15113
+ "description": "OK",
15114
+ "content": {
15115
+ "application/json": {
15116
+ "schema": {
15117
+ "allOf": [
15118
+ {
15119
+ "$ref": "#/components/schemas/List"
15120
+ },
15121
+ {
15122
+ "type": "object",
15123
+ "required": [
15124
+ "items"
15125
+ ],
15126
+ "properties": {
15127
+ "items": {
15128
+ "type": "array",
15129
+ "items": {
15130
+ "$ref": "#/components/schemas/SiteQuestionAnswerSource"
15131
+ }
15132
+ }
15133
+ }
15134
+ }
15135
+ ]
15136
+ }
15137
+ }
15138
+ }
15139
+ }
15140
+ }
15141
+ }
15142
+ },
15076
15143
  "/orgs/{organizationId}/sites/{siteId}/question-stats": {
15077
15144
  "get": {
15078
15145
  "operationId": "getSiteQuestionStats",
@@ -15304,6 +15371,46 @@
15304
15371
  }
15305
15372
  }
15306
15373
  },
15374
+ "/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread": {
15375
+ "get": {
15376
+ "operationId": "getSiteQuestionAnswerThreadById",
15377
+ "summary": "Get a site answer thread by answer ID",
15378
+ "tags": [
15379
+ "site-questions"
15380
+ ],
15381
+ "security": [
15382
+ {
15383
+ "user": []
15384
+ }
15385
+ ],
15386
+ "parameters": [
15387
+ {
15388
+ "$ref": "#/components/parameters/organizationId"
15389
+ },
15390
+ {
15391
+ "$ref": "#/components/parameters/siteId"
15392
+ },
15393
+ {
15394
+ "$ref": "#/components/parameters/siteQuestionAnswerId"
15395
+ }
15396
+ ],
15397
+ "responses": {
15398
+ "200": {
15399
+ "description": "OK",
15400
+ "content": {
15401
+ "application/json": {
15402
+ "schema": {
15403
+ "type": "array",
15404
+ "items": {
15405
+ "$ref": "#/components/schemas/SiteQuestionAnswerWithResponse"
15406
+ }
15407
+ }
15408
+ }
15409
+ }
15410
+ }
15411
+ }
15412
+ }
15413
+ },
15307
15414
  "/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources": {
15308
15415
  "get": {
15309
15416
  "operationId": "listSiteQuestionAnswerSources",
@@ -15550,6 +15657,17 @@
15550
15657
  }
15551
15658
  ]
15552
15659
  },
15660
+ "localizedTitle": {
15661
+ "description": "Localized titles for the site variant, keyed by locale. If not defined, the localized title will not be changed. If set to null, all localized titles will be removed.",
15662
+ "oneOf": [
15663
+ {
15664
+ "$ref": "#/components/schemas/LocalizedString"
15665
+ },
15666
+ {
15667
+ "type": "null"
15668
+ }
15669
+ ]
15670
+ },
15553
15671
  "styling": {
15554
15672
  "type": "object",
15555
15673
  "properties": {
@@ -32934,6 +33052,18 @@
32934
33052
  "minLength": 0,
32935
33053
  "maxLength": 256
32936
33054
  },
33055
+ "LocalizedSectionDescription": {
33056
+ "type": "object",
33057
+ "description": "Localized section description value, keyed by locale. Contains overrides for non-default languages only.",
33058
+ "x-typescript": "Partial<Record<TranslationLanguage, string>>",
33059
+ "additionalProperties": {
33060
+ "type": "string",
33061
+ "maxLength": 256
33062
+ },
33063
+ "propertyNames": {
33064
+ "$ref": "#/components/schemas/TranslationLanguage"
33065
+ }
33066
+ },
32937
33067
  "SiteSectionPath": {
32938
33068
  "type": "string",
32939
33069
  "description": "Path to the section on the site",
@@ -32973,6 +33103,9 @@
32973
33103
  "title": {
32974
33104
  "type": "string"
32975
33105
  },
33106
+ "localizedTitle": {
33107
+ "$ref": "#/components/schemas/LocalizedString"
33108
+ },
32976
33109
  "default": {
32977
33110
  "type": "boolean",
32978
33111
  "description": "Whether this is the default space for the site"
@@ -33033,6 +33166,9 @@
33033
33166
  "description": {
33034
33167
  "$ref": "#/components/schemas/SiteSectionDescription"
33035
33168
  },
33169
+ "localizedDescription": {
33170
+ "$ref": "#/components/schemas/LocalizedSectionDescription"
33171
+ },
33036
33172
  "default": {
33037
33173
  "type": "boolean",
33038
33174
  "description": "Whether this is the default section for the site"
@@ -33101,6 +33237,9 @@
33101
33237
  "title": {
33102
33238
  "$ref": "#/components/schemas/SiteSectionGroupTitle"
33103
33239
  },
33240
+ "localizedTitle": {
33241
+ "$ref": "#/components/schemas/LocalizedString"
33242
+ },
33104
33243
  "sections": {
33105
33244
  "type": "array",
33106
33245
  "deprecated": true,
@@ -38030,6 +38169,127 @@
38030
38169
  "yes"
38031
38170
  ]
38032
38171
  },
38172
+ "SiteQuestionAnswerSourceBase": {
38173
+ "type": "object",
38174
+ "properties": {
38175
+ "object": {
38176
+ "type": "string",
38177
+ "enum": [
38178
+ "site-question-answer-source"
38179
+ ]
38180
+ },
38181
+ "id": {
38182
+ "type": "string",
38183
+ "description": "The ID of the source."
38184
+ },
38185
+ "weight": {
38186
+ "type": "number",
38187
+ "description": "Relative weight of this source in the generated answer."
38188
+ },
38189
+ "title": {
38190
+ "type": "string",
38191
+ "description": "The title of the source."
38192
+ },
38193
+ "urls": {
38194
+ "type": "object",
38195
+ "description": "URLs associated with the site question answer.",
38196
+ "properties": {
38197
+ "location": {
38198
+ "type": "string",
38199
+ "format": "uri",
38200
+ "description": "URL of the site question answer in the API."
38201
+ }
38202
+ },
38203
+ "required": [
38204
+ "location"
38205
+ ]
38206
+ }
38207
+ },
38208
+ "required": [
38209
+ "object",
38210
+ "id",
38211
+ "title",
38212
+ "weight",
38213
+ "urls"
38214
+ ]
38215
+ },
38216
+ "SiteQuestionAnswerSourcePage": {
38217
+ "allOf": [
38218
+ {
38219
+ "$ref": "#/components/schemas/SiteQuestionAnswerSourceBase"
38220
+ },
38221
+ {
38222
+ "type": "object",
38223
+ "title": "Page source",
38224
+ "description": "Source data pointing to a page used for a site question answer.",
38225
+ "properties": {
38226
+ "type": {
38227
+ "type": "string",
38228
+ "enum": [
38229
+ "page"
38230
+ ]
38231
+ },
38232
+ "space": {
38233
+ "type": "string",
38234
+ "description": "The space ID of the source page."
38235
+ },
38236
+ "revision": {
38237
+ "type": "string",
38238
+ "description": "The revision ID used for this source page."
38239
+ },
38240
+ "page": {
38241
+ "type": "string",
38242
+ "description": "The page ID of the source page."
38243
+ }
38244
+ },
38245
+ "required": [
38246
+ "type",
38247
+ "space",
38248
+ "revision",
38249
+ "page"
38250
+ ]
38251
+ }
38252
+ ]
38253
+ },
38254
+ "SiteQuestionAnswerSourceRecord": {
38255
+ "allOf": [
38256
+ {
38257
+ "$ref": "#/components/schemas/SiteQuestionAnswerSourceBase"
38258
+ },
38259
+ {
38260
+ "type": "object",
38261
+ "properties": {
38262
+ "type": {
38263
+ "type": "string",
38264
+ "enum": [
38265
+ "record"
38266
+ ]
38267
+ },
38268
+ "record": {
38269
+ "type": "string",
38270
+ "description": "The site context record ID."
38271
+ }
38272
+ },
38273
+ "required": [
38274
+ "type",
38275
+ "record"
38276
+ ]
38277
+ }
38278
+ ]
38279
+ },
38280
+ "SiteQuestionAnswerSource": {
38281
+ "oneOf": [
38282
+ {
38283
+ "$ref": "#/components/schemas/SiteQuestionAnswerSourcePage"
38284
+ },
38285
+ {
38286
+ "$ref": "#/components/schemas/SiteQuestionAnswerSourceRecord"
38287
+ }
38288
+ ],
38289
+ "discriminator": {
38290
+ "propertyName": "type"
38291
+ }
38292
+ },
38033
38293
  "SiteQuestionAnswerRelevance": {
38034
38294
  "type": "string",
38035
38295
  "description": "Relevance classification of the user question.",
@@ -39251,127 +39511,6 @@
39251
39511
  }
39252
39512
  ]
39253
39513
  },
39254
- "SiteQuestionAnswerSourceBase": {
39255
- "type": "object",
39256
- "properties": {
39257
- "object": {
39258
- "type": "string",
39259
- "enum": [
39260
- "site-question-answer-source"
39261
- ]
39262
- },
39263
- "id": {
39264
- "type": "string",
39265
- "description": "The ID of the source."
39266
- },
39267
- "weight": {
39268
- "type": "number",
39269
- "description": "Relative weight of this source in the generated answer."
39270
- },
39271
- "title": {
39272
- "type": "string",
39273
- "description": "The title of the source."
39274
- },
39275
- "urls": {
39276
- "type": "object",
39277
- "description": "URLs associated with the site question answer.",
39278
- "properties": {
39279
- "location": {
39280
- "type": "string",
39281
- "format": "uri",
39282
- "description": "URL of the site question answer in the API."
39283
- }
39284
- },
39285
- "required": [
39286
- "location"
39287
- ]
39288
- }
39289
- },
39290
- "required": [
39291
- "object",
39292
- "id",
39293
- "title",
39294
- "weight",
39295
- "urls"
39296
- ]
39297
- },
39298
- "SiteQuestionAnswerSourcePage": {
39299
- "allOf": [
39300
- {
39301
- "$ref": "#/components/schemas/SiteQuestionAnswerSourceBase"
39302
- },
39303
- {
39304
- "type": "object",
39305
- "title": "Page source",
39306
- "description": "Source data pointing to a page used for a site question answer.",
39307
- "properties": {
39308
- "type": {
39309
- "type": "string",
39310
- "enum": [
39311
- "page"
39312
- ]
39313
- },
39314
- "space": {
39315
- "type": "string",
39316
- "description": "The space ID of the source page."
39317
- },
39318
- "revision": {
39319
- "type": "string",
39320
- "description": "The revision ID used for this source page."
39321
- },
39322
- "page": {
39323
- "type": "string",
39324
- "description": "The page ID of the source page."
39325
- }
39326
- },
39327
- "required": [
39328
- "type",
39329
- "space",
39330
- "revision",
39331
- "page"
39332
- ]
39333
- }
39334
- ]
39335
- },
39336
- "SiteQuestionAnswerSourceRecord": {
39337
- "allOf": [
39338
- {
39339
- "$ref": "#/components/schemas/SiteQuestionAnswerSourceBase"
39340
- },
39341
- {
39342
- "type": "object",
39343
- "properties": {
39344
- "type": {
39345
- "type": "string",
39346
- "enum": [
39347
- "record"
39348
- ]
39349
- },
39350
- "record": {
39351
- "type": "string",
39352
- "description": "The site context record ID."
39353
- }
39354
- },
39355
- "required": [
39356
- "type",
39357
- "record"
39358
- ]
39359
- }
39360
- ]
39361
- },
39362
- "SiteQuestionAnswerSource": {
39363
- "oneOf": [
39364
- {
39365
- "$ref": "#/components/schemas/SiteQuestionAnswerSourcePage"
39366
- },
39367
- {
39368
- "$ref": "#/components/schemas/SiteQuestionAnswerSourceRecord"
39369
- }
39370
- ],
39371
- "discriminator": {
39372
- "propertyName": "type"
39373
- }
39374
- },
39375
39514
  "SiteSpaceCustomizationSettings": {
39376
39515
  "allOf": [
39377
39516
  {
package/spec/openapi.yaml CHANGED
@@ -7469,6 +7469,8 @@ paths:
7469
7469
  properties:
7470
7470
  title:
7471
7471
  $ref: "#/components/schemas/SiteSectionGroupTitle"
7472
+ localizedTitle:
7473
+ $ref: "#/components/schemas/LocalizedString"
7472
7474
  icon:
7473
7475
  oneOf:
7474
7476
  - $ref: "#/components/schemas/Icon"
@@ -7663,6 +7665,8 @@ paths:
7663
7665
  oneOf:
7664
7666
  - $ref: "#/components/schemas/SiteSectionDescription"
7665
7667
  - type: "null"
7668
+ localizedDescription:
7669
+ $ref: "#/components/schemas/LocalizedSectionDescription"
7666
7670
  responses:
7667
7671
  "200":
7668
7672
  description: OK
@@ -8482,6 +8486,36 @@ paths:
8482
8486
  application/json:
8483
8487
  schema:
8484
8488
  $ref: "#/components/schemas/SiteQuestion"
8489
+ "/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources":
8490
+ get:
8491
+ operationId: listSiteQuestionSources
8492
+ summary: List sources for a question
8493
+ tags:
8494
+ - site-questions
8495
+ security:
8496
+ - user: []
8497
+ parameters:
8498
+ - $ref: "#/components/parameters/organizationId"
8499
+ - $ref: "#/components/parameters/siteId"
8500
+ - $ref: "#/components/parameters/siteQuestionId"
8501
+ - $ref: "#/components/parameters/listPage"
8502
+ - $ref: "#/components/parameters/listLimit"
8503
+ responses:
8504
+ "200":
8505
+ description: OK
8506
+ content:
8507
+ application/json:
8508
+ schema:
8509
+ allOf:
8510
+ - $ref: "#/components/schemas/List"
8511
+ - type: object
8512
+ required:
8513
+ - items
8514
+ properties:
8515
+ items:
8516
+ type: array
8517
+ items:
8518
+ $ref: "#/components/schemas/SiteQuestionAnswerSource"
8485
8519
  "/orgs/{organizationId}/sites/{siteId}/question-stats":
8486
8520
  get:
8487
8521
  operationId: getSiteQuestionStats
@@ -8612,6 +8646,27 @@ paths:
8612
8646
  application/json:
8613
8647
  schema:
8614
8648
  $ref: "#/components/schemas/SiteQuestionAnswerWithResponse"
8649
+ "/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread":
8650
+ get:
8651
+ operationId: getSiteQuestionAnswerThreadById
8652
+ summary: Get a site answer thread by answer ID
8653
+ tags:
8654
+ - site-questions
8655
+ security:
8656
+ - user: []
8657
+ parameters:
8658
+ - $ref: "#/components/parameters/organizationId"
8659
+ - $ref: "#/components/parameters/siteId"
8660
+ - $ref: "#/components/parameters/siteQuestionAnswerId"
8661
+ responses:
8662
+ "200":
8663
+ description: OK
8664
+ content:
8665
+ application/json:
8666
+ schema:
8667
+ type: array
8668
+ items:
8669
+ $ref: "#/components/schemas/SiteQuestionAnswerWithResponse"
8615
8670
  "/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources":
8616
8671
  get:
8617
8672
  operationId: listSiteQuestionAnswerSources
@@ -8743,6 +8798,11 @@ paths:
8743
8798
  oneOf:
8744
8799
  - $ref: "#/components/schemas/SiteTitle"
8745
8800
  - type: "null"
8801
+ localizedTitle:
8802
+ description: Localized titles for the site variant, keyed by locale. If not defined, the localized title will not be changed. If set to null, all localized titles will be removed.
8803
+ oneOf:
8804
+ - $ref: "#/components/schemas/LocalizedString"
8805
+ - type: "null"
8746
8806
  styling:
8747
8807
  type: object
8748
8808
  properties:
@@ -19880,6 +19940,15 @@ components:
19880
19940
  description: Description of the site section
19881
19941
  minLength: 0
19882
19942
  maxLength: 256
19943
+ LocalizedSectionDescription:
19944
+ type: object
19945
+ description: Localized section description value, keyed by locale. Contains overrides for non-default languages only.
19946
+ x-typescript: Partial<Record<TranslationLanguage, string>>
19947
+ additionalProperties:
19948
+ type: string
19949
+ maxLength: 256
19950
+ propertyNames:
19951
+ $ref: "#/components/schemas/TranslationLanguage"
19883
19952
  SiteSectionPath:
19884
19953
  type: string
19885
19954
  description: Path to the section on the site
@@ -19910,6 +19979,8 @@ components:
19910
19979
  $ref: "#/components/schemas/Space"
19911
19980
  title:
19912
19981
  type: string
19982
+ localizedTitle:
19983
+ $ref: "#/components/schemas/LocalizedString"
19913
19984
  default:
19914
19985
  type: boolean
19915
19986
  description: Whether this is the default space for the site
@@ -19954,6 +20025,8 @@ components:
19954
20025
  $ref: "#/components/schemas/LocalizedString"
19955
20026
  description:
19956
20027
  $ref: "#/components/schemas/SiteSectionDescription"
20028
+ localizedDescription:
20029
+ $ref: "#/components/schemas/LocalizedSectionDescription"
19957
20030
  default:
19958
20031
  type: boolean
19959
20032
  description: Whether this is the default section for the site
@@ -20004,6 +20077,8 @@ components:
20004
20077
  description: Unique identifier of the site section group
20005
20078
  title:
20006
20079
  $ref: "#/components/schemas/SiteSectionGroupTitle"
20080
+ localizedTitle:
20081
+ $ref: "#/components/schemas/LocalizedString"
20007
20082
  sections:
20008
20083
  type: array
20009
20084
  deprecated: true
@@ -23461,6 +23536,84 @@ components:
23461
23536
  - no
23462
23537
  - partially
23463
23538
  - yes
23539
+ SiteQuestionAnswerSourceBase:
23540
+ type: object
23541
+ properties:
23542
+ object:
23543
+ type: string
23544
+ enum:
23545
+ - site-question-answer-source
23546
+ id:
23547
+ type: string
23548
+ description: The ID of the source.
23549
+ weight:
23550
+ type: number
23551
+ description: Relative weight of this source in the generated answer.
23552
+ title:
23553
+ type: string
23554
+ description: The title of the source.
23555
+ urls:
23556
+ type: object
23557
+ description: URLs associated with the site question answer.
23558
+ properties:
23559
+ location:
23560
+ type: string
23561
+ format: uri
23562
+ description: URL of the site question answer in the API.
23563
+ required:
23564
+ - location
23565
+ required:
23566
+ - object
23567
+ - id
23568
+ - title
23569
+ - weight
23570
+ - urls
23571
+ SiteQuestionAnswerSourcePage:
23572
+ allOf:
23573
+ - $ref: "#/components/schemas/SiteQuestionAnswerSourceBase"
23574
+ - type: object
23575
+ title: Page source
23576
+ description: Source data pointing to a page used for a site question answer.
23577
+ properties:
23578
+ type:
23579
+ type: string
23580
+ enum:
23581
+ - page
23582
+ space:
23583
+ type: string
23584
+ description: The space ID of the source page.
23585
+ revision:
23586
+ type: string
23587
+ description: The revision ID used for this source page.
23588
+ page:
23589
+ type: string
23590
+ description: The page ID of the source page.
23591
+ required:
23592
+ - type
23593
+ - space
23594
+ - revision
23595
+ - page
23596
+ SiteQuestionAnswerSourceRecord:
23597
+ allOf:
23598
+ - $ref: "#/components/schemas/SiteQuestionAnswerSourceBase"
23599
+ - type: object
23600
+ properties:
23601
+ type:
23602
+ type: string
23603
+ enum:
23604
+ - record
23605
+ record:
23606
+ type: string
23607
+ description: The site context record ID.
23608
+ required:
23609
+ - type
23610
+ - record
23611
+ SiteQuestionAnswerSource:
23612
+ oneOf:
23613
+ - $ref: "#/components/schemas/SiteQuestionAnswerSourcePage"
23614
+ - $ref: "#/components/schemas/SiteQuestionAnswerSourceRecord"
23615
+ discriminator:
23616
+ propertyName: type
23464
23617
  SiteQuestionAnswerRelevance:
23465
23618
  type: string
23466
23619
  description: Relevance classification of the user question.
@@ -24295,84 +24448,6 @@ components:
24295
24448
  $ref: "#/components/schemas/AIMessage"
24296
24449
  required:
24297
24450
  - response
24298
- SiteQuestionAnswerSourceBase:
24299
- type: object
24300
- properties:
24301
- object:
24302
- type: string
24303
- enum:
24304
- - site-question-answer-source
24305
- id:
24306
- type: string
24307
- description: The ID of the source.
24308
- weight:
24309
- type: number
24310
- description: Relative weight of this source in the generated answer.
24311
- title:
24312
- type: string
24313
- description: The title of the source.
24314
- urls:
24315
- type: object
24316
- description: URLs associated with the site question answer.
24317
- properties:
24318
- location:
24319
- type: string
24320
- format: uri
24321
- description: URL of the site question answer in the API.
24322
- required:
24323
- - location
24324
- required:
24325
- - object
24326
- - id
24327
- - title
24328
- - weight
24329
- - urls
24330
- SiteQuestionAnswerSourcePage:
24331
- allOf:
24332
- - $ref: "#/components/schemas/SiteQuestionAnswerSourceBase"
24333
- - type: object
24334
- title: Page source
24335
- description: Source data pointing to a page used for a site question answer.
24336
- properties:
24337
- type:
24338
- type: string
24339
- enum:
24340
- - page
24341
- space:
24342
- type: string
24343
- description: The space ID of the source page.
24344
- revision:
24345
- type: string
24346
- description: The revision ID used for this source page.
24347
- page:
24348
- type: string
24349
- description: The page ID of the source page.
24350
- required:
24351
- - type
24352
- - space
24353
- - revision
24354
- - page
24355
- SiteQuestionAnswerSourceRecord:
24356
- allOf:
24357
- - $ref: "#/components/schemas/SiteQuestionAnswerSourceBase"
24358
- - type: object
24359
- properties:
24360
- type:
24361
- type: string
24362
- enum:
24363
- - record
24364
- record:
24365
- type: string
24366
- description: The site context record ID.
24367
- required:
24368
- - type
24369
- - record
24370
- SiteQuestionAnswerSource:
24371
- oneOf:
24372
- - $ref: "#/components/schemas/SiteQuestionAnswerSourcePage"
24373
- - $ref: "#/components/schemas/SiteQuestionAnswerSourceRecord"
24374
- discriminator:
24375
- propertyName: type
24376
24451
  SiteSpaceCustomizationSettings:
24377
24452
  allOf:
24378
24453
  - $ref: "#/components/schemas/SiteCustomizationSettings"