@gitbook/api 0.167.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;
@@ -4334,6 +4334,11 @@ export interface Site {
4334
4334
  * @format uri
4335
4335
  */
4336
4336
  published?: string;
4337
+ /**
4338
+ * URL of the preview version of the site.
4339
+ * @format uri
4340
+ */
4341
+ preview: string;
4337
4342
  };
4338
4343
  }
4339
4344
  export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
@@ -4714,6 +4719,8 @@ export type LocalizedString = Record<TranslationLanguage, string>;
4714
4719
  * @maxLength 256
4715
4720
  */
4716
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>;
4717
4724
  /**
4718
4725
  * Path to the section on the site
4719
4726
  * @minLength 1
@@ -4737,6 +4744,8 @@ export interface SiteSpace {
4737
4744
  section?: string;
4738
4745
  space: Space;
4739
4746
  title: string;
4747
+ /** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
4748
+ localizedTitle?: LocalizedString;
4740
4749
  /** Whether this is the default space for the site */
4741
4750
  default?: boolean;
4742
4751
  /** Conditional expression used to evaluate whether the site space should be shown to the site's visitor. */
@@ -4765,6 +4774,8 @@ export interface SiteSection {
4765
4774
  localizedTitle?: LocalizedString;
4766
4775
  /** Description of the site section */
4767
4776
  description?: SiteSectionDescription;
4777
+ /** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
4778
+ localizedDescription?: LocalizedSectionDescription;
4768
4779
  /** Whether this is the default section for the site */
4769
4780
  default?: boolean;
4770
4781
  /** Path to the section on the site */
@@ -4798,6 +4809,8 @@ export interface SiteSectionGroup {
4798
4809
  id: string;
4799
4810
  /** Title of the site section group */
4800
4811
  title: SiteSectionGroupTitle;
4812
+ /** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
4813
+ localizedTitle?: LocalizedString;
4801
4814
  /**
4802
4815
  * List of site section ids that are members of the group. Use `children` instead.
4803
4816
  * @deprecated
@@ -6323,6 +6336,38 @@ export interface SiteTopic {
6323
6336
  location: string;
6324
6337
  };
6325
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
+ };
6326
6371
  /** Identifiers for a GitBook site session, used for analytics and adaptive content. */
6327
6372
  export interface SiteInsightsSession {
6328
6373
  /** GitBook's unique identifier of the visitor. */
@@ -6668,38 +6713,6 @@ export interface AIMessage {
6668
6713
  export type SiteQuestionAnswerWithResponse = SiteQuestionAnswer & {
6669
6714
  response: AIMessage;
6670
6715
  };
6671
- export interface SiteQuestionAnswerSourceBase {
6672
- object: "site-question-answer-source";
6673
- /** The ID of the source. */
6674
- id: string;
6675
- /** Relative weight of this source in the generated answer. */
6676
- weight: number;
6677
- /** The title of the source. */
6678
- title: string;
6679
- /** URLs associated with the site question answer. */
6680
- urls: {
6681
- /**
6682
- * URL of the site question answer in the API.
6683
- * @format uri
6684
- */
6685
- location: string;
6686
- };
6687
- }
6688
- /** Source data pointing to a page used for a site question answer. */
6689
- export type SiteQuestionAnswerSourcePage = SiteQuestionAnswerSourceBase & {
6690
- type: "page";
6691
- /** The space ID of the source page. */
6692
- space: string;
6693
- /** The revision ID used for this source page. */
6694
- revision: string;
6695
- /** The page ID of the source page. */
6696
- page: string;
6697
- };
6698
- export type SiteQuestionAnswerSourceRecord = SiteQuestionAnswerSourceBase & {
6699
- type: "record";
6700
- /** The site context record ID. */
6701
- record: string;
6702
- };
6703
6716
  export type SiteSpaceCustomizationSettings = SiteCustomizationSettings & {
6704
6717
  /** Indicates whether the site customization settings have been overridden. */
6705
6718
  hasOverrides: boolean;
@@ -7646,6 +7659,8 @@ export interface PublishedSiteContent {
7646
7659
  contextId?: string;
7647
7660
  /** The canonical URL of the resolution. */
7648
7661
  canonicalUrl: string;
7662
+ /** Whether the URL is a preview URL */
7663
+ preview?: boolean;
7649
7664
  }
7650
7665
  export type PublishedSiteContentLookup = PublishedContentRedirect | PublishedSiteContent;
7651
7666
  /** An object that describes the payload of site visitor info. It can include a jwt token with signed claims and/or a record of its unsigned claims. */
@@ -13135,6 +13150,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13135
13150
  * @default true
13136
13151
  */
13137
13152
  draft?: boolean;
13153
+ /** Target URL of the preview. If not provided, the default site preview URL will be used. */
13154
+ target?: string;
13138
13155
  }, params?: RequestParams) => Promise<HttpResponse<{
13139
13156
  url: URL;
13140
13157
  }, {
@@ -13305,6 +13322,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13305
13322
  updateSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, data: {
13306
13323
  /** Title of the site section group */
13307
13324
  title?: SiteSectionGroupTitle;
13325
+ /** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
13326
+ localizedTitle?: LocalizedString;
13308
13327
  icon?: Icon | null;
13309
13328
  }, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
13310
13329
  /**
@@ -13400,6 +13419,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13400
13419
  condition?: Expression | null;
13401
13420
  icon?: Icon | null;
13402
13421
  description?: SiteSectionDescription | null;
13422
+ /** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
13423
+ localizedDescription?: LocalizedSectionDescription;
13403
13424
  }, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
13404
13425
  /**
13405
13426
  * No description
@@ -13863,6 +13884,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13863
13884
  * @secure
13864
13885
  */
13865
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>>;
13866
13908
  /**
13867
13909
  * No description
13868
13910
  *
@@ -13929,6 +13971,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13929
13971
  * @secure
13930
13972
  */
13931
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>>;
13932
13984
  /**
13933
13985
  * No description
13934
13986
  *
@@ -14014,6 +14066,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14014
14066
  overrideSiteSpaceCustomizationById: (organizationId: EntityId, siteId: string, siteSpaceId: string, data: {
14015
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. */
14016
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;
14017
14071
  styling?: {
14018
14072
  /** The site theme. Set to null to reset the override. */
14019
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.167.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.167.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.167.0",
7
+ "version": "0.169.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -12635,6 +12635,14 @@
12635
12635
  "type": "boolean",
12636
12636
  "default": true
12637
12637
  }
12638
+ },
12639
+ {
12640
+ "name": "target",
12641
+ "in": "query",
12642
+ "description": "Target URL of the preview. If not provided, the default site preview URL will be used.",
12643
+ "schema": {
12644
+ "type": "string"
12645
+ }
12638
12646
  }
12639
12647
  ],
12640
12648
  "responses": {
@@ -13147,6 +13155,9 @@
13147
13155
  "title": {
13148
13156
  "$ref": "#/components/schemas/SiteSectionGroupTitle"
13149
13157
  },
13158
+ "localizedTitle": {
13159
+ "$ref": "#/components/schemas/LocalizedString"
13160
+ },
13150
13161
  "icon": {
13151
13162
  "oneOf": [
13152
13163
  {
@@ -13520,6 +13531,9 @@
13520
13531
  "type": "null"
13521
13532
  }
13522
13533
  ]
13534
+ },
13535
+ "localizedDescription": {
13536
+ "$ref": "#/components/schemas/LocalizedSectionDescription"
13523
13537
  }
13524
13538
  }
13525
13539
  }
@@ -15065,6 +15079,67 @@
15065
15079
  }
15066
15080
  }
15067
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
+ },
15068
15143
  "/orgs/{organizationId}/sites/{siteId}/question-stats": {
15069
15144
  "get": {
15070
15145
  "operationId": "getSiteQuestionStats",
@@ -15296,6 +15371,46 @@
15296
15371
  }
15297
15372
  }
15298
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
+ },
15299
15414
  "/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources": {
15300
15415
  "get": {
15301
15416
  "operationId": "listSiteQuestionAnswerSources",
@@ -15542,6 +15657,17 @@
15542
15657
  }
15543
15658
  ]
15544
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
+ },
15545
15671
  "styling": {
15546
15672
  "type": "object",
15547
15673
  "properties": {
@@ -31436,11 +31562,17 @@
31436
31562
  "type": "string",
31437
31563
  "description": "URL of the published version of the site. Only defined when site is published.",
31438
31564
  "format": "uri"
31565
+ },
31566
+ "preview": {
31567
+ "type": "string",
31568
+ "description": "URL of the preview version of the site.",
31569
+ "format": "uri"
31439
31570
  }
31440
31571
  },
31441
31572
  "required": [
31442
31573
  "app",
31443
- "location"
31574
+ "location",
31575
+ "preview"
31444
31576
  ]
31445
31577
  }
31446
31578
  },
@@ -32920,6 +33052,18 @@
32920
33052
  "minLength": 0,
32921
33053
  "maxLength": 256
32922
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
+ },
32923
33067
  "SiteSectionPath": {
32924
33068
  "type": "string",
32925
33069
  "description": "Path to the section on the site",
@@ -32959,6 +33103,9 @@
32959
33103
  "title": {
32960
33104
  "type": "string"
32961
33105
  },
33106
+ "localizedTitle": {
33107
+ "$ref": "#/components/schemas/LocalizedString"
33108
+ },
32962
33109
  "default": {
32963
33110
  "type": "boolean",
32964
33111
  "description": "Whether this is the default space for the site"
@@ -33019,6 +33166,9 @@
33019
33166
  "description": {
33020
33167
  "$ref": "#/components/schemas/SiteSectionDescription"
33021
33168
  },
33169
+ "localizedDescription": {
33170
+ "$ref": "#/components/schemas/LocalizedSectionDescription"
33171
+ },
33022
33172
  "default": {
33023
33173
  "type": "boolean",
33024
33174
  "description": "Whether this is the default section for the site"
@@ -33087,6 +33237,9 @@
33087
33237
  "title": {
33088
33238
  "$ref": "#/components/schemas/SiteSectionGroupTitle"
33089
33239
  },
33240
+ "localizedTitle": {
33241
+ "$ref": "#/components/schemas/LocalizedString"
33242
+ },
33090
33243
  "sections": {
33091
33244
  "type": "array",
33092
33245
  "deprecated": true,
@@ -38016,6 +38169,127 @@
38016
38169
  "yes"
38017
38170
  ]
38018
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
+ },
38019
38293
  "SiteQuestionAnswerRelevance": {
38020
38294
  "type": "string",
38021
38295
  "description": "Relevance classification of the user question.",
@@ -39237,127 +39511,6 @@
39237
39511
  }
39238
39512
  ]
39239
39513
  },
39240
- "SiteQuestionAnswerSourceBase": {
39241
- "type": "object",
39242
- "properties": {
39243
- "object": {
39244
- "type": "string",
39245
- "enum": [
39246
- "site-question-answer-source"
39247
- ]
39248
- },
39249
- "id": {
39250
- "type": "string",
39251
- "description": "The ID of the source."
39252
- },
39253
- "weight": {
39254
- "type": "number",
39255
- "description": "Relative weight of this source in the generated answer."
39256
- },
39257
- "title": {
39258
- "type": "string",
39259
- "description": "The title of the source."
39260
- },
39261
- "urls": {
39262
- "type": "object",
39263
- "description": "URLs associated with the site question answer.",
39264
- "properties": {
39265
- "location": {
39266
- "type": "string",
39267
- "format": "uri",
39268
- "description": "URL of the site question answer in the API."
39269
- }
39270
- },
39271
- "required": [
39272
- "location"
39273
- ]
39274
- }
39275
- },
39276
- "required": [
39277
- "object",
39278
- "id",
39279
- "title",
39280
- "weight",
39281
- "urls"
39282
- ]
39283
- },
39284
- "SiteQuestionAnswerSourcePage": {
39285
- "allOf": [
39286
- {
39287
- "$ref": "#/components/schemas/SiteQuestionAnswerSourceBase"
39288
- },
39289
- {
39290
- "type": "object",
39291
- "title": "Page source",
39292
- "description": "Source data pointing to a page used for a site question answer.",
39293
- "properties": {
39294
- "type": {
39295
- "type": "string",
39296
- "enum": [
39297
- "page"
39298
- ]
39299
- },
39300
- "space": {
39301
- "type": "string",
39302
- "description": "The space ID of the source page."
39303
- },
39304
- "revision": {
39305
- "type": "string",
39306
- "description": "The revision ID used for this source page."
39307
- },
39308
- "page": {
39309
- "type": "string",
39310
- "description": "The page ID of the source page."
39311
- }
39312
- },
39313
- "required": [
39314
- "type",
39315
- "space",
39316
- "revision",
39317
- "page"
39318
- ]
39319
- }
39320
- ]
39321
- },
39322
- "SiteQuestionAnswerSourceRecord": {
39323
- "allOf": [
39324
- {
39325
- "$ref": "#/components/schemas/SiteQuestionAnswerSourceBase"
39326
- },
39327
- {
39328
- "type": "object",
39329
- "properties": {
39330
- "type": {
39331
- "type": "string",
39332
- "enum": [
39333
- "record"
39334
- ]
39335
- },
39336
- "record": {
39337
- "type": "string",
39338
- "description": "The site context record ID."
39339
- }
39340
- },
39341
- "required": [
39342
- "type",
39343
- "record"
39344
- ]
39345
- }
39346
- ]
39347
- },
39348
- "SiteQuestionAnswerSource": {
39349
- "oneOf": [
39350
- {
39351
- "$ref": "#/components/schemas/SiteQuestionAnswerSourcePage"
39352
- },
39353
- {
39354
- "$ref": "#/components/schemas/SiteQuestionAnswerSourceRecord"
39355
- }
39356
- ],
39357
- "discriminator": {
39358
- "propertyName": "type"
39359
- }
39360
- },
39361
39514
  "SiteSpaceCustomizationSettings": {
39362
39515
  "allOf": [
39363
39516
  {
@@ -43684,6 +43837,10 @@
43684
43837
  "canonicalUrl": {
43685
43838
  "type": "string",
43686
43839
  "description": "The canonical URL of the resolution."
43840
+ },
43841
+ "preview": {
43842
+ "type": "boolean",
43843
+ "description": "Whether the URL is a preview URL"
43687
43844
  }
43688
43845
  },
43689
43846
  "required": [
package/spec/openapi.yaml CHANGED
@@ -7184,6 +7184,11 @@ paths:
7184
7184
  schema:
7185
7185
  type: boolean
7186
7186
  default: true
7187
+ - name: target
7188
+ in: query
7189
+ description: Target URL of the preview. If not provided, the default site preview URL will be used.
7190
+ schema:
7191
+ type: string
7187
7192
  responses:
7188
7193
  "200":
7189
7194
  description: OK
@@ -7464,6 +7469,8 @@ paths:
7464
7469
  properties:
7465
7470
  title:
7466
7471
  $ref: "#/components/schemas/SiteSectionGroupTitle"
7472
+ localizedTitle:
7473
+ $ref: "#/components/schemas/LocalizedString"
7467
7474
  icon:
7468
7475
  oneOf:
7469
7476
  - $ref: "#/components/schemas/Icon"
@@ -7658,6 +7665,8 @@ paths:
7658
7665
  oneOf:
7659
7666
  - $ref: "#/components/schemas/SiteSectionDescription"
7660
7667
  - type: "null"
7668
+ localizedDescription:
7669
+ $ref: "#/components/schemas/LocalizedSectionDescription"
7661
7670
  responses:
7662
7671
  "200":
7663
7672
  description: OK
@@ -8477,6 +8486,36 @@ paths:
8477
8486
  application/json:
8478
8487
  schema:
8479
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"
8480
8519
  "/orgs/{organizationId}/sites/{siteId}/question-stats":
8481
8520
  get:
8482
8521
  operationId: getSiteQuestionStats
@@ -8607,6 +8646,27 @@ paths:
8607
8646
  application/json:
8608
8647
  schema:
8609
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"
8610
8670
  "/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources":
8611
8671
  get:
8612
8672
  operationId: listSiteQuestionAnswerSources
@@ -8738,6 +8798,11 @@ paths:
8738
8798
  oneOf:
8739
8799
  - $ref: "#/components/schemas/SiteTitle"
8740
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"
8741
8806
  styling:
8742
8807
  type: object
8743
8808
  properties:
@@ -18935,9 +19000,14 @@ components:
18935
19000
  type: string
18936
19001
  description: URL of the published version of the site. Only defined when site is published.
18937
19002
  format: uri
19003
+ preview:
19004
+ type: string
19005
+ description: URL of the preview version of the site.
19006
+ format: uri
18938
19007
  required:
18939
19008
  - app
18940
19009
  - location
19010
+ - preview
18941
19011
  required:
18942
19012
  - object
18943
19013
  - id
@@ -19870,6 +19940,15 @@ components:
19870
19940
  description: Description of the site section
19871
19941
  minLength: 0
19872
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"
19873
19952
  SiteSectionPath:
19874
19953
  type: string
19875
19954
  description: Path to the section on the site
@@ -19900,6 +19979,8 @@ components:
19900
19979
  $ref: "#/components/schemas/Space"
19901
19980
  title:
19902
19981
  type: string
19982
+ localizedTitle:
19983
+ $ref: "#/components/schemas/LocalizedString"
19903
19984
  default:
19904
19985
  type: boolean
19905
19986
  description: Whether this is the default space for the site
@@ -19944,6 +20025,8 @@ components:
19944
20025
  $ref: "#/components/schemas/LocalizedString"
19945
20026
  description:
19946
20027
  $ref: "#/components/schemas/SiteSectionDescription"
20028
+ localizedDescription:
20029
+ $ref: "#/components/schemas/LocalizedSectionDescription"
19947
20030
  default:
19948
20031
  type: boolean
19949
20032
  description: Whether this is the default section for the site
@@ -19994,6 +20077,8 @@ components:
19994
20077
  description: Unique identifier of the site section group
19995
20078
  title:
19996
20079
  $ref: "#/components/schemas/SiteSectionGroupTitle"
20080
+ localizedTitle:
20081
+ $ref: "#/components/schemas/LocalizedString"
19997
20082
  sections:
19998
20083
  type: array
19999
20084
  deprecated: true
@@ -23451,6 +23536,84 @@ components:
23451
23536
  - no
23452
23537
  - partially
23453
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
23454
23617
  SiteQuestionAnswerRelevance:
23455
23618
  type: string
23456
23619
  description: Relevance classification of the user question.
@@ -24285,84 +24448,6 @@ components:
24285
24448
  $ref: "#/components/schemas/AIMessage"
24286
24449
  required:
24287
24450
  - response
24288
- SiteQuestionAnswerSourceBase:
24289
- type: object
24290
- properties:
24291
- object:
24292
- type: string
24293
- enum:
24294
- - site-question-answer-source
24295
- id:
24296
- type: string
24297
- description: The ID of the source.
24298
- weight:
24299
- type: number
24300
- description: Relative weight of this source in the generated answer.
24301
- title:
24302
- type: string
24303
- description: The title of the source.
24304
- urls:
24305
- type: object
24306
- description: URLs associated with the site question answer.
24307
- properties:
24308
- location:
24309
- type: string
24310
- format: uri
24311
- description: URL of the site question answer in the API.
24312
- required:
24313
- - location
24314
- required:
24315
- - object
24316
- - id
24317
- - title
24318
- - weight
24319
- - urls
24320
- SiteQuestionAnswerSourcePage:
24321
- allOf:
24322
- - $ref: "#/components/schemas/SiteQuestionAnswerSourceBase"
24323
- - type: object
24324
- title: Page source
24325
- description: Source data pointing to a page used for a site question answer.
24326
- properties:
24327
- type:
24328
- type: string
24329
- enum:
24330
- - page
24331
- space:
24332
- type: string
24333
- description: The space ID of the source page.
24334
- revision:
24335
- type: string
24336
- description: The revision ID used for this source page.
24337
- page:
24338
- type: string
24339
- description: The page ID of the source page.
24340
- required:
24341
- - type
24342
- - space
24343
- - revision
24344
- - page
24345
- SiteQuestionAnswerSourceRecord:
24346
- allOf:
24347
- - $ref: "#/components/schemas/SiteQuestionAnswerSourceBase"
24348
- - type: object
24349
- properties:
24350
- type:
24351
- type: string
24352
- enum:
24353
- - record
24354
- record:
24355
- type: string
24356
- description: The site context record ID.
24357
- required:
24358
- - type
24359
- - record
24360
- SiteQuestionAnswerSource:
24361
- oneOf:
24362
- - $ref: "#/components/schemas/SiteQuestionAnswerSourcePage"
24363
- - $ref: "#/components/schemas/SiteQuestionAnswerSourceRecord"
24364
- discriminator:
24365
- propertyName: type
24366
24451
  SiteSpaceCustomizationSettings:
24367
24452
  allOf:
24368
24453
  - $ref: "#/components/schemas/SiteCustomizationSettings"
@@ -27166,6 +27251,9 @@ components:
27166
27251
  canonicalUrl:
27167
27252
  type: string
27168
27253
  description: The canonical URL of the resolution.
27254
+ preview:
27255
+ type: boolean
27256
+ description: Whether the URL is a preview URL
27169
27257
  required:
27170
27258
  - site
27171
27259
  - siteSpace