@gitbook/api 0.168.0 → 0.170.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 +93 -41
- package/dist/index.cjs +16 -1
- package/dist/index.js +16 -1
- package/package.json +1 -1
- package/spec/openapi.json +277 -128
- package/spec/openapi.yaml +167 -85
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;
|
|
@@ -4339,6 +4339,11 @@ export interface Site {
|
|
|
4339
4339
|
* @format uri
|
|
4340
4340
|
*/
|
|
4341
4341
|
preview: string;
|
|
4342
|
+
/**
|
|
4343
|
+
* URL of the login endpoint for visitors to authenticate with the site auth backend.
|
|
4344
|
+
* @format uri
|
|
4345
|
+
*/
|
|
4346
|
+
login?: string;
|
|
4342
4347
|
};
|
|
4343
4348
|
}
|
|
4344
4349
|
export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
|
|
@@ -4711,14 +4716,16 @@ export interface CreateOrganization {
|
|
|
4711
4716
|
* @maxLength 128
|
|
4712
4717
|
*/
|
|
4713
4718
|
export type SiteSectionTitle = string;
|
|
4714
|
-
/** Localized
|
|
4715
|
-
export type
|
|
4719
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
4720
|
+
export type LocalizedTitle = Record<TranslationLanguage, string>;
|
|
4716
4721
|
/**
|
|
4717
4722
|
* Description of the site section
|
|
4718
4723
|
* @minLength 0
|
|
4719
4724
|
* @maxLength 256
|
|
4720
4725
|
*/
|
|
4721
4726
|
export type SiteSectionDescription = string;
|
|
4727
|
+
/** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
|
|
4728
|
+
export type LocalizedSectionDescription = Record<TranslationLanguage, string>;
|
|
4722
4729
|
/**
|
|
4723
4730
|
* Path to the section on the site
|
|
4724
4731
|
* @minLength 1
|
|
@@ -4742,6 +4749,8 @@ export interface SiteSpace {
|
|
|
4742
4749
|
section?: string;
|
|
4743
4750
|
space: Space;
|
|
4744
4751
|
title: string;
|
|
4752
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
4753
|
+
localizedTitle?: LocalizedTitle;
|
|
4745
4754
|
/** Whether this is the default space for the site */
|
|
4746
4755
|
default?: boolean;
|
|
4747
4756
|
/** Conditional expression used to evaluate whether the site space should be shown to the site's visitor. */
|
|
@@ -4766,10 +4775,12 @@ export interface SiteSection {
|
|
|
4766
4775
|
id: string;
|
|
4767
4776
|
/** Title of the site section */
|
|
4768
4777
|
title: SiteSectionTitle;
|
|
4769
|
-
/** Localized
|
|
4770
|
-
localizedTitle?:
|
|
4778
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
4779
|
+
localizedTitle?: LocalizedTitle;
|
|
4771
4780
|
/** Description of the site section */
|
|
4772
4781
|
description?: SiteSectionDescription;
|
|
4782
|
+
/** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
|
|
4783
|
+
localizedDescription?: LocalizedSectionDescription;
|
|
4773
4784
|
/** Whether this is the default section for the site */
|
|
4774
4785
|
default?: boolean;
|
|
4775
4786
|
/** Path to the section on the site */
|
|
@@ -4803,6 +4814,8 @@ export interface SiteSectionGroup {
|
|
|
4803
4814
|
id: string;
|
|
4804
4815
|
/** Title of the site section group */
|
|
4805
4816
|
title: SiteSectionGroupTitle;
|
|
4817
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
4818
|
+
localizedTitle?: LocalizedTitle;
|
|
4806
4819
|
/**
|
|
4807
4820
|
* List of site section ids that are members of the group. Use `children` instead.
|
|
4808
4821
|
* @deprecated
|
|
@@ -4993,8 +5006,8 @@ export interface UpgradeOrganizationBilling {
|
|
|
4993
5006
|
reason?: string;
|
|
4994
5007
|
/** Coupon or promotion code to apply to the subscription */
|
|
4995
5008
|
coupon?: BillingCoupon;
|
|
4996
|
-
/** Mode to use for the upgrade (default value is `commit`): - `
|
|
4997
|
-
mode?: "
|
|
5009
|
+
/** Mode to use for the upgrade (default value is `commit`): - `commit`: a checkout session is returned or the upgrade is applied directly - `preview`: a preview invoice is always returned */
|
|
5010
|
+
mode?: "commit" | "preview";
|
|
4998
5011
|
}
|
|
4999
5012
|
export interface BillingInvoicePreview {
|
|
5000
5013
|
/** Amount of the invoice */
|
|
@@ -6328,6 +6341,38 @@ export interface SiteTopic {
|
|
|
6328
6341
|
location: string;
|
|
6329
6342
|
};
|
|
6330
6343
|
}
|
|
6344
|
+
export interface SiteQuestionAnswerSourceBase {
|
|
6345
|
+
object: "site-question-answer-source";
|
|
6346
|
+
/** The ID of the source. */
|
|
6347
|
+
id: string;
|
|
6348
|
+
/** Relative weight of this source in the generated answer. */
|
|
6349
|
+
weight: number;
|
|
6350
|
+
/** The title of the source. */
|
|
6351
|
+
title: string;
|
|
6352
|
+
/** URLs associated with the site question answer. */
|
|
6353
|
+
urls: {
|
|
6354
|
+
/**
|
|
6355
|
+
* URL of the site question answer in the API.
|
|
6356
|
+
* @format uri
|
|
6357
|
+
*/
|
|
6358
|
+
location: string;
|
|
6359
|
+
};
|
|
6360
|
+
}
|
|
6361
|
+
/** Source data pointing to a page used for a site question answer. */
|
|
6362
|
+
export type SiteQuestionAnswerSourcePage = SiteQuestionAnswerSourceBase & {
|
|
6363
|
+
type: "page";
|
|
6364
|
+
/** The space ID of the source page. */
|
|
6365
|
+
space: string;
|
|
6366
|
+
/** The revision ID used for this source page. */
|
|
6367
|
+
revision: string;
|
|
6368
|
+
/** The page ID of the source page. */
|
|
6369
|
+
page: string;
|
|
6370
|
+
};
|
|
6371
|
+
export type SiteQuestionAnswerSourceRecord = SiteQuestionAnswerSourceBase & {
|
|
6372
|
+
type: "record";
|
|
6373
|
+
/** The site context record ID. */
|
|
6374
|
+
record: string;
|
|
6375
|
+
};
|
|
6331
6376
|
/** Identifiers for a GitBook site session, used for analytics and adaptive content. */
|
|
6332
6377
|
export interface SiteInsightsSession {
|
|
6333
6378
|
/** GitBook's unique identifier of the visitor. */
|
|
@@ -6673,38 +6718,6 @@ export interface AIMessage {
|
|
|
6673
6718
|
export type SiteQuestionAnswerWithResponse = SiteQuestionAnswer & {
|
|
6674
6719
|
response: AIMessage;
|
|
6675
6720
|
};
|
|
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
6721
|
export type SiteSpaceCustomizationSettings = SiteCustomizationSettings & {
|
|
6709
6722
|
/** Indicates whether the site customization settings have been overridden. */
|
|
6710
6723
|
hasOverrides: boolean;
|
|
@@ -13314,6 +13327,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13314
13327
|
updateSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, data: {
|
|
13315
13328
|
/** Title of the site section group */
|
|
13316
13329
|
title?: SiteSectionGroupTitle;
|
|
13330
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
13331
|
+
localizedTitle?: LocalizedTitle;
|
|
13317
13332
|
icon?: Icon | null;
|
|
13318
13333
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
|
|
13319
13334
|
/**
|
|
@@ -13399,8 +13414,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13399
13414
|
updateSiteSectionById: (organizationId: EntityId, siteId: string, siteSectionId: string, data: {
|
|
13400
13415
|
/** Title of the site section */
|
|
13401
13416
|
title?: SiteSectionTitle;
|
|
13402
|
-
/** Localized
|
|
13403
|
-
localizedTitle?:
|
|
13417
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
13418
|
+
localizedTitle?: LocalizedTitle;
|
|
13404
13419
|
/** Path to the section on the site */
|
|
13405
13420
|
path?: SiteSectionPath;
|
|
13406
13421
|
/** ID of the site-space to be used as the default in this section. */
|
|
@@ -13409,6 +13424,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13409
13424
|
condition?: Expression | null;
|
|
13410
13425
|
icon?: Icon | null;
|
|
13411
13426
|
description?: SiteSectionDescription | null;
|
|
13427
|
+
/** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
|
|
13428
|
+
localizedDescription?: LocalizedSectionDescription;
|
|
13412
13429
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
|
|
13413
13430
|
/**
|
|
13414
13431
|
* No description
|
|
@@ -13851,6 +13868,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13851
13868
|
type?: SiteQuestionType;
|
|
13852
13869
|
/** Filter questions by answer resolution. */
|
|
13853
13870
|
answered?: SiteQuestionAnswerResolution;
|
|
13871
|
+
/** Filter questions by associated site topic ID. */
|
|
13872
|
+
topic?: string;
|
|
13854
13873
|
/** Identifier of the page results to fetch. */
|
|
13855
13874
|
page?: string;
|
|
13856
13875
|
/**
|
|
@@ -13872,6 +13891,27 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13872
13891
|
* @secure
|
|
13873
13892
|
*/
|
|
13874
13893
|
getSiteQuestionById: (organizationId: EntityId, siteId: string, siteQuestionId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
|
|
13894
|
+
/**
|
|
13895
|
+
* No description
|
|
13896
|
+
*
|
|
13897
|
+
* @tags site-questions
|
|
13898
|
+
* @name ListSiteQuestionSources
|
|
13899
|
+
* @summary List sources for a question
|
|
13900
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources
|
|
13901
|
+
* @secure
|
|
13902
|
+
*/
|
|
13903
|
+
listSiteQuestionSources: (organizationId: EntityId, siteId: string, siteQuestionId: string, query?: {
|
|
13904
|
+
/** Identifier of the page results to fetch. */
|
|
13905
|
+
page?: string;
|
|
13906
|
+
/**
|
|
13907
|
+
* The number of results per page
|
|
13908
|
+
* @min 0
|
|
13909
|
+
* @max 1000
|
|
13910
|
+
*/
|
|
13911
|
+
limit?: number;
|
|
13912
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13913
|
+
items: SiteQuestionAnswerSource[];
|
|
13914
|
+
}, any>>;
|
|
13875
13915
|
/**
|
|
13876
13916
|
* No description
|
|
13877
13917
|
*
|
|
@@ -13938,6 +13978,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13938
13978
|
* @secure
|
|
13939
13979
|
*/
|
|
13940
13980
|
getSiteQuestionAnswerById: (organizationId: EntityId, siteId: string, siteQuestionAnswerId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestionAnswerWithResponse, any>>;
|
|
13981
|
+
/**
|
|
13982
|
+
* No description
|
|
13983
|
+
*
|
|
13984
|
+
* @tags site-questions
|
|
13985
|
+
* @name GetSiteQuestionAnswerThreadById
|
|
13986
|
+
* @summary Get a site answer thread by answer ID
|
|
13987
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread
|
|
13988
|
+
* @secure
|
|
13989
|
+
*/
|
|
13990
|
+
getSiteQuestionAnswerThreadById: (organizationId: EntityId, siteId: string, siteQuestionAnswerId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestionAnswerWithResponse[], any>>;
|
|
13941
13991
|
/**
|
|
13942
13992
|
* No description
|
|
13943
13993
|
*
|
|
@@ -14023,6 +14073,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14023
14073
|
overrideSiteSpaceCustomizationById: (organizationId: EntityId, siteId: string, siteSpaceId: string, data: {
|
|
14024
14074
|
/** 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
14075
|
title?: SiteTitle | null;
|
|
14076
|
+
/** 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. */
|
|
14077
|
+
localizedTitle?: LocalizedTitle | null;
|
|
14026
14078
|
styling?: {
|
|
14027
14079
|
/** The site theme. Set to null to reset the override. */
|
|
14028
14080
|
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.
|
|
489
|
+
var version = "0.170.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.
|
|
175
|
+
var version = "0.170.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
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/LocalizedTitle"
|
|
13160
|
+
},
|
|
13158
13161
|
"icon": {
|
|
13159
13162
|
"oneOf": [
|
|
13160
13163
|
{
|
|
@@ -13489,7 +13492,7 @@
|
|
|
13489
13492
|
"$ref": "#/components/schemas/SiteSectionTitle"
|
|
13490
13493
|
},
|
|
13491
13494
|
"localizedTitle": {
|
|
13492
|
-
"$ref": "#/components/schemas/
|
|
13495
|
+
"$ref": "#/components/schemas/LocalizedTitle"
|
|
13493
13496
|
},
|
|
13494
13497
|
"path": {
|
|
13495
13498
|
"$ref": "#/components/schemas/SiteSectionPath"
|
|
@@ -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
|
}
|
|
@@ -14997,6 +15003,14 @@
|
|
|
14997
15003
|
"$ref": "#/components/schemas/SiteQuestionAnswerResolution"
|
|
14998
15004
|
}
|
|
14999
15005
|
},
|
|
15006
|
+
{
|
|
15007
|
+
"name": "topic",
|
|
15008
|
+
"in": "query",
|
|
15009
|
+
"description": "Filter questions by associated site topic ID.",
|
|
15010
|
+
"schema": {
|
|
15011
|
+
"type": "string"
|
|
15012
|
+
}
|
|
15013
|
+
},
|
|
15000
15014
|
{
|
|
15001
15015
|
"$ref": "#/components/parameters/listPage"
|
|
15002
15016
|
},
|
|
@@ -15073,6 +15087,67 @@
|
|
|
15073
15087
|
}
|
|
15074
15088
|
}
|
|
15075
15089
|
},
|
|
15090
|
+
"/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources": {
|
|
15091
|
+
"get": {
|
|
15092
|
+
"operationId": "listSiteQuestionSources",
|
|
15093
|
+
"summary": "List sources for a question",
|
|
15094
|
+
"tags": [
|
|
15095
|
+
"site-questions"
|
|
15096
|
+
],
|
|
15097
|
+
"security": [
|
|
15098
|
+
{
|
|
15099
|
+
"user": []
|
|
15100
|
+
}
|
|
15101
|
+
],
|
|
15102
|
+
"parameters": [
|
|
15103
|
+
{
|
|
15104
|
+
"$ref": "#/components/parameters/organizationId"
|
|
15105
|
+
},
|
|
15106
|
+
{
|
|
15107
|
+
"$ref": "#/components/parameters/siteId"
|
|
15108
|
+
},
|
|
15109
|
+
{
|
|
15110
|
+
"$ref": "#/components/parameters/siteQuestionId"
|
|
15111
|
+
},
|
|
15112
|
+
{
|
|
15113
|
+
"$ref": "#/components/parameters/listPage"
|
|
15114
|
+
},
|
|
15115
|
+
{
|
|
15116
|
+
"$ref": "#/components/parameters/listLimit"
|
|
15117
|
+
}
|
|
15118
|
+
],
|
|
15119
|
+
"responses": {
|
|
15120
|
+
"200": {
|
|
15121
|
+
"description": "OK",
|
|
15122
|
+
"content": {
|
|
15123
|
+
"application/json": {
|
|
15124
|
+
"schema": {
|
|
15125
|
+
"allOf": [
|
|
15126
|
+
{
|
|
15127
|
+
"$ref": "#/components/schemas/List"
|
|
15128
|
+
},
|
|
15129
|
+
{
|
|
15130
|
+
"type": "object",
|
|
15131
|
+
"required": [
|
|
15132
|
+
"items"
|
|
15133
|
+
],
|
|
15134
|
+
"properties": {
|
|
15135
|
+
"items": {
|
|
15136
|
+
"type": "array",
|
|
15137
|
+
"items": {
|
|
15138
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerSource"
|
|
15139
|
+
}
|
|
15140
|
+
}
|
|
15141
|
+
}
|
|
15142
|
+
}
|
|
15143
|
+
]
|
|
15144
|
+
}
|
|
15145
|
+
}
|
|
15146
|
+
}
|
|
15147
|
+
}
|
|
15148
|
+
}
|
|
15149
|
+
}
|
|
15150
|
+
},
|
|
15076
15151
|
"/orgs/{organizationId}/sites/{siteId}/question-stats": {
|
|
15077
15152
|
"get": {
|
|
15078
15153
|
"operationId": "getSiteQuestionStats",
|
|
@@ -15304,6 +15379,46 @@
|
|
|
15304
15379
|
}
|
|
15305
15380
|
}
|
|
15306
15381
|
},
|
|
15382
|
+
"/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread": {
|
|
15383
|
+
"get": {
|
|
15384
|
+
"operationId": "getSiteQuestionAnswerThreadById",
|
|
15385
|
+
"summary": "Get a site answer thread by answer ID",
|
|
15386
|
+
"tags": [
|
|
15387
|
+
"site-questions"
|
|
15388
|
+
],
|
|
15389
|
+
"security": [
|
|
15390
|
+
{
|
|
15391
|
+
"user": []
|
|
15392
|
+
}
|
|
15393
|
+
],
|
|
15394
|
+
"parameters": [
|
|
15395
|
+
{
|
|
15396
|
+
"$ref": "#/components/parameters/organizationId"
|
|
15397
|
+
},
|
|
15398
|
+
{
|
|
15399
|
+
"$ref": "#/components/parameters/siteId"
|
|
15400
|
+
},
|
|
15401
|
+
{
|
|
15402
|
+
"$ref": "#/components/parameters/siteQuestionAnswerId"
|
|
15403
|
+
}
|
|
15404
|
+
],
|
|
15405
|
+
"responses": {
|
|
15406
|
+
"200": {
|
|
15407
|
+
"description": "OK",
|
|
15408
|
+
"content": {
|
|
15409
|
+
"application/json": {
|
|
15410
|
+
"schema": {
|
|
15411
|
+
"type": "array",
|
|
15412
|
+
"items": {
|
|
15413
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerWithResponse"
|
|
15414
|
+
}
|
|
15415
|
+
}
|
|
15416
|
+
}
|
|
15417
|
+
}
|
|
15418
|
+
}
|
|
15419
|
+
}
|
|
15420
|
+
}
|
|
15421
|
+
},
|
|
15307
15422
|
"/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources": {
|
|
15308
15423
|
"get": {
|
|
15309
15424
|
"operationId": "listSiteQuestionAnswerSources",
|
|
@@ -15550,6 +15665,17 @@
|
|
|
15550
15665
|
}
|
|
15551
15666
|
]
|
|
15552
15667
|
},
|
|
15668
|
+
"localizedTitle": {
|
|
15669
|
+
"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.",
|
|
15670
|
+
"oneOf": [
|
|
15671
|
+
{
|
|
15672
|
+
"$ref": "#/components/schemas/LocalizedTitle"
|
|
15673
|
+
},
|
|
15674
|
+
{
|
|
15675
|
+
"type": "null"
|
|
15676
|
+
}
|
|
15677
|
+
]
|
|
15678
|
+
},
|
|
15553
15679
|
"styling": {
|
|
15554
15680
|
"type": "object",
|
|
15555
15681
|
"properties": {
|
|
@@ -31449,6 +31575,11 @@
|
|
|
31449
31575
|
"type": "string",
|
|
31450
31576
|
"description": "URL of the preview version of the site.",
|
|
31451
31577
|
"format": "uri"
|
|
31578
|
+
},
|
|
31579
|
+
"login": {
|
|
31580
|
+
"type": "string",
|
|
31581
|
+
"description": "URL of the login endpoint for visitors to authenticate with the site auth backend.\n",
|
|
31582
|
+
"format": "uri"
|
|
31452
31583
|
}
|
|
31453
31584
|
},
|
|
31454
31585
|
"required": [
|
|
@@ -32916,10 +33047,9 @@
|
|
|
32916
33047
|
"minLength": 2,
|
|
32917
33048
|
"maxLength": 128
|
|
32918
33049
|
},
|
|
32919
|
-
"
|
|
33050
|
+
"LocalizedTitle": {
|
|
32920
33051
|
"type": "object",
|
|
32921
|
-
"description": "Localized
|
|
32922
|
-
"x-typescript": "Partial<Record<TranslationLanguage, string>>",
|
|
33052
|
+
"description": "Localized title value, keyed by locale. Contains overrides for non-default languages only.",
|
|
32923
33053
|
"additionalProperties": {
|
|
32924
33054
|
"type": "string",
|
|
32925
33055
|
"maxLength": 128
|
|
@@ -32934,6 +33064,17 @@
|
|
|
32934
33064
|
"minLength": 0,
|
|
32935
33065
|
"maxLength": 256
|
|
32936
33066
|
},
|
|
33067
|
+
"LocalizedSectionDescription": {
|
|
33068
|
+
"type": "object",
|
|
33069
|
+
"description": "Localized section description value, keyed by locale. Contains overrides for non-default languages only.",
|
|
33070
|
+
"additionalProperties": {
|
|
33071
|
+
"type": "string",
|
|
33072
|
+
"maxLength": 256
|
|
33073
|
+
},
|
|
33074
|
+
"propertyNames": {
|
|
33075
|
+
"$ref": "#/components/schemas/TranslationLanguage"
|
|
33076
|
+
}
|
|
33077
|
+
},
|
|
32937
33078
|
"SiteSectionPath": {
|
|
32938
33079
|
"type": "string",
|
|
32939
33080
|
"description": "Path to the section on the site",
|
|
@@ -32973,6 +33114,9 @@
|
|
|
32973
33114
|
"title": {
|
|
32974
33115
|
"type": "string"
|
|
32975
33116
|
},
|
|
33117
|
+
"localizedTitle": {
|
|
33118
|
+
"$ref": "#/components/schemas/LocalizedTitle"
|
|
33119
|
+
},
|
|
32976
33120
|
"default": {
|
|
32977
33121
|
"type": "boolean",
|
|
32978
33122
|
"description": "Whether this is the default space for the site"
|
|
@@ -33028,11 +33172,14 @@
|
|
|
33028
33172
|
"$ref": "#/components/schemas/SiteSectionTitle"
|
|
33029
33173
|
},
|
|
33030
33174
|
"localizedTitle": {
|
|
33031
|
-
"$ref": "#/components/schemas/
|
|
33175
|
+
"$ref": "#/components/schemas/LocalizedTitle"
|
|
33032
33176
|
},
|
|
33033
33177
|
"description": {
|
|
33034
33178
|
"$ref": "#/components/schemas/SiteSectionDescription"
|
|
33035
33179
|
},
|
|
33180
|
+
"localizedDescription": {
|
|
33181
|
+
"$ref": "#/components/schemas/LocalizedSectionDescription"
|
|
33182
|
+
},
|
|
33036
33183
|
"default": {
|
|
33037
33184
|
"type": "boolean",
|
|
33038
33185
|
"description": "Whether this is the default section for the site"
|
|
@@ -33101,6 +33248,9 @@
|
|
|
33101
33248
|
"title": {
|
|
33102
33249
|
"$ref": "#/components/schemas/SiteSectionGroupTitle"
|
|
33103
33250
|
},
|
|
33251
|
+
"localizedTitle": {
|
|
33252
|
+
"$ref": "#/components/schemas/LocalizedTitle"
|
|
33253
|
+
},
|
|
33104
33254
|
"sections": {
|
|
33105
33255
|
"type": "array",
|
|
33106
33256
|
"deprecated": true,
|
|
@@ -33709,9 +33859,8 @@
|
|
|
33709
33859
|
},
|
|
33710
33860
|
"mode": {
|
|
33711
33861
|
"type": "string",
|
|
33712
|
-
"description": "Mode to use for the upgrade (default value is `commit`): - `
|
|
33862
|
+
"description": "Mode to use for the upgrade (default value is `commit`): - `commit`: a checkout session is returned or the upgrade is applied directly - `preview`: a preview invoice is always returned\n",
|
|
33713
33863
|
"enum": [
|
|
33714
|
-
"auto",
|
|
33715
33864
|
"commit",
|
|
33716
33865
|
"preview"
|
|
33717
33866
|
]
|
|
@@ -38030,6 +38179,127 @@
|
|
|
38030
38179
|
"yes"
|
|
38031
38180
|
]
|
|
38032
38181
|
},
|
|
38182
|
+
"SiteQuestionAnswerSourceBase": {
|
|
38183
|
+
"type": "object",
|
|
38184
|
+
"properties": {
|
|
38185
|
+
"object": {
|
|
38186
|
+
"type": "string",
|
|
38187
|
+
"enum": [
|
|
38188
|
+
"site-question-answer-source"
|
|
38189
|
+
]
|
|
38190
|
+
},
|
|
38191
|
+
"id": {
|
|
38192
|
+
"type": "string",
|
|
38193
|
+
"description": "The ID of the source."
|
|
38194
|
+
},
|
|
38195
|
+
"weight": {
|
|
38196
|
+
"type": "number",
|
|
38197
|
+
"description": "Relative weight of this source in the generated answer."
|
|
38198
|
+
},
|
|
38199
|
+
"title": {
|
|
38200
|
+
"type": "string",
|
|
38201
|
+
"description": "The title of the source."
|
|
38202
|
+
},
|
|
38203
|
+
"urls": {
|
|
38204
|
+
"type": "object",
|
|
38205
|
+
"description": "URLs associated with the site question answer.",
|
|
38206
|
+
"properties": {
|
|
38207
|
+
"location": {
|
|
38208
|
+
"type": "string",
|
|
38209
|
+
"format": "uri",
|
|
38210
|
+
"description": "URL of the site question answer in the API."
|
|
38211
|
+
}
|
|
38212
|
+
},
|
|
38213
|
+
"required": [
|
|
38214
|
+
"location"
|
|
38215
|
+
]
|
|
38216
|
+
}
|
|
38217
|
+
},
|
|
38218
|
+
"required": [
|
|
38219
|
+
"object",
|
|
38220
|
+
"id",
|
|
38221
|
+
"title",
|
|
38222
|
+
"weight",
|
|
38223
|
+
"urls"
|
|
38224
|
+
]
|
|
38225
|
+
},
|
|
38226
|
+
"SiteQuestionAnswerSourcePage": {
|
|
38227
|
+
"allOf": [
|
|
38228
|
+
{
|
|
38229
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerSourceBase"
|
|
38230
|
+
},
|
|
38231
|
+
{
|
|
38232
|
+
"type": "object",
|
|
38233
|
+
"title": "Page source",
|
|
38234
|
+
"description": "Source data pointing to a page used for a site question answer.",
|
|
38235
|
+
"properties": {
|
|
38236
|
+
"type": {
|
|
38237
|
+
"type": "string",
|
|
38238
|
+
"enum": [
|
|
38239
|
+
"page"
|
|
38240
|
+
]
|
|
38241
|
+
},
|
|
38242
|
+
"space": {
|
|
38243
|
+
"type": "string",
|
|
38244
|
+
"description": "The space ID of the source page."
|
|
38245
|
+
},
|
|
38246
|
+
"revision": {
|
|
38247
|
+
"type": "string",
|
|
38248
|
+
"description": "The revision ID used for this source page."
|
|
38249
|
+
},
|
|
38250
|
+
"page": {
|
|
38251
|
+
"type": "string",
|
|
38252
|
+
"description": "The page ID of the source page."
|
|
38253
|
+
}
|
|
38254
|
+
},
|
|
38255
|
+
"required": [
|
|
38256
|
+
"type",
|
|
38257
|
+
"space",
|
|
38258
|
+
"revision",
|
|
38259
|
+
"page"
|
|
38260
|
+
]
|
|
38261
|
+
}
|
|
38262
|
+
]
|
|
38263
|
+
},
|
|
38264
|
+
"SiteQuestionAnswerSourceRecord": {
|
|
38265
|
+
"allOf": [
|
|
38266
|
+
{
|
|
38267
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerSourceBase"
|
|
38268
|
+
},
|
|
38269
|
+
{
|
|
38270
|
+
"type": "object",
|
|
38271
|
+
"properties": {
|
|
38272
|
+
"type": {
|
|
38273
|
+
"type": "string",
|
|
38274
|
+
"enum": [
|
|
38275
|
+
"record"
|
|
38276
|
+
]
|
|
38277
|
+
},
|
|
38278
|
+
"record": {
|
|
38279
|
+
"type": "string",
|
|
38280
|
+
"description": "The site context record ID."
|
|
38281
|
+
}
|
|
38282
|
+
},
|
|
38283
|
+
"required": [
|
|
38284
|
+
"type",
|
|
38285
|
+
"record"
|
|
38286
|
+
]
|
|
38287
|
+
}
|
|
38288
|
+
]
|
|
38289
|
+
},
|
|
38290
|
+
"SiteQuestionAnswerSource": {
|
|
38291
|
+
"oneOf": [
|
|
38292
|
+
{
|
|
38293
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerSourcePage"
|
|
38294
|
+
},
|
|
38295
|
+
{
|
|
38296
|
+
"$ref": "#/components/schemas/SiteQuestionAnswerSourceRecord"
|
|
38297
|
+
}
|
|
38298
|
+
],
|
|
38299
|
+
"discriminator": {
|
|
38300
|
+
"propertyName": "type"
|
|
38301
|
+
}
|
|
38302
|
+
},
|
|
38033
38303
|
"SiteQuestionAnswerRelevance": {
|
|
38034
38304
|
"type": "string",
|
|
38035
38305
|
"description": "Relevance classification of the user question.",
|
|
@@ -39251,127 +39521,6 @@
|
|
|
39251
39521
|
}
|
|
39252
39522
|
]
|
|
39253
39523
|
},
|
|
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
39524
|
"SiteSpaceCustomizationSettings": {
|
|
39376
39525
|
"allOf": [
|
|
39377
39526
|
{
|
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/LocalizedTitle"
|
|
7472
7474
|
icon:
|
|
7473
7475
|
oneOf:
|
|
7474
7476
|
- $ref: "#/components/schemas/Icon"
|
|
@@ -7644,7 +7646,7 @@ paths:
|
|
|
7644
7646
|
title:
|
|
7645
7647
|
$ref: "#/components/schemas/SiteSectionTitle"
|
|
7646
7648
|
localizedTitle:
|
|
7647
|
-
$ref: "#/components/schemas/
|
|
7649
|
+
$ref: "#/components/schemas/LocalizedTitle"
|
|
7648
7650
|
path:
|
|
7649
7651
|
$ref: "#/components/schemas/SiteSectionPath"
|
|
7650
7652
|
defaultSiteSpace:
|
|
@@ -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
|
|
@@ -8445,6 +8449,11 @@ paths:
|
|
|
8445
8449
|
description: Filter questions by answer resolution.
|
|
8446
8450
|
schema:
|
|
8447
8451
|
$ref: "#/components/schemas/SiteQuestionAnswerResolution"
|
|
8452
|
+
- name: topic
|
|
8453
|
+
in: query
|
|
8454
|
+
description: Filter questions by associated site topic ID.
|
|
8455
|
+
schema:
|
|
8456
|
+
type: string
|
|
8448
8457
|
- $ref: "#/components/parameters/listPage"
|
|
8449
8458
|
- $ref: "#/components/parameters/listLimit"
|
|
8450
8459
|
responses:
|
|
@@ -8482,6 +8491,36 @@ paths:
|
|
|
8482
8491
|
application/json:
|
|
8483
8492
|
schema:
|
|
8484
8493
|
$ref: "#/components/schemas/SiteQuestion"
|
|
8494
|
+
"/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}/sources":
|
|
8495
|
+
get:
|
|
8496
|
+
operationId: listSiteQuestionSources
|
|
8497
|
+
summary: List sources for a question
|
|
8498
|
+
tags:
|
|
8499
|
+
- site-questions
|
|
8500
|
+
security:
|
|
8501
|
+
- user: []
|
|
8502
|
+
parameters:
|
|
8503
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8504
|
+
- $ref: "#/components/parameters/siteId"
|
|
8505
|
+
- $ref: "#/components/parameters/siteQuestionId"
|
|
8506
|
+
- $ref: "#/components/parameters/listPage"
|
|
8507
|
+
- $ref: "#/components/parameters/listLimit"
|
|
8508
|
+
responses:
|
|
8509
|
+
"200":
|
|
8510
|
+
description: OK
|
|
8511
|
+
content:
|
|
8512
|
+
application/json:
|
|
8513
|
+
schema:
|
|
8514
|
+
allOf:
|
|
8515
|
+
- $ref: "#/components/schemas/List"
|
|
8516
|
+
- type: object
|
|
8517
|
+
required:
|
|
8518
|
+
- items
|
|
8519
|
+
properties:
|
|
8520
|
+
items:
|
|
8521
|
+
type: array
|
|
8522
|
+
items:
|
|
8523
|
+
$ref: "#/components/schemas/SiteQuestionAnswerSource"
|
|
8485
8524
|
"/orgs/{organizationId}/sites/{siteId}/question-stats":
|
|
8486
8525
|
get:
|
|
8487
8526
|
operationId: getSiteQuestionStats
|
|
@@ -8612,6 +8651,27 @@ paths:
|
|
|
8612
8651
|
application/json:
|
|
8613
8652
|
schema:
|
|
8614
8653
|
$ref: "#/components/schemas/SiteQuestionAnswerWithResponse"
|
|
8654
|
+
"/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/thread":
|
|
8655
|
+
get:
|
|
8656
|
+
operationId: getSiteQuestionAnswerThreadById
|
|
8657
|
+
summary: Get a site answer thread by answer ID
|
|
8658
|
+
tags:
|
|
8659
|
+
- site-questions
|
|
8660
|
+
security:
|
|
8661
|
+
- user: []
|
|
8662
|
+
parameters:
|
|
8663
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8664
|
+
- $ref: "#/components/parameters/siteId"
|
|
8665
|
+
- $ref: "#/components/parameters/siteQuestionAnswerId"
|
|
8666
|
+
responses:
|
|
8667
|
+
"200":
|
|
8668
|
+
description: OK
|
|
8669
|
+
content:
|
|
8670
|
+
application/json:
|
|
8671
|
+
schema:
|
|
8672
|
+
type: array
|
|
8673
|
+
items:
|
|
8674
|
+
$ref: "#/components/schemas/SiteQuestionAnswerWithResponse"
|
|
8615
8675
|
"/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources":
|
|
8616
8676
|
get:
|
|
8617
8677
|
operationId: listSiteQuestionAnswerSources
|
|
@@ -8743,6 +8803,11 @@ paths:
|
|
|
8743
8803
|
oneOf:
|
|
8744
8804
|
- $ref: "#/components/schemas/SiteTitle"
|
|
8745
8805
|
- type: "null"
|
|
8806
|
+
localizedTitle:
|
|
8807
|
+
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.
|
|
8808
|
+
oneOf:
|
|
8809
|
+
- $ref: "#/components/schemas/LocalizedTitle"
|
|
8810
|
+
- type: "null"
|
|
8746
8811
|
styling:
|
|
8747
8812
|
type: object
|
|
8748
8813
|
properties:
|
|
@@ -18944,6 +19009,11 @@ components:
|
|
|
18944
19009
|
type: string
|
|
18945
19010
|
description: URL of the preview version of the site.
|
|
18946
19011
|
format: uri
|
|
19012
|
+
login:
|
|
19013
|
+
type: string
|
|
19014
|
+
description: |
|
|
19015
|
+
URL of the login endpoint for visitors to authenticate with the site auth backend.
|
|
19016
|
+
format: uri
|
|
18947
19017
|
required:
|
|
18948
19018
|
- app
|
|
18949
19019
|
- location
|
|
@@ -19866,10 +19936,9 @@ components:
|
|
|
19866
19936
|
description: Title of the site section
|
|
19867
19937
|
minLength: 2
|
|
19868
19938
|
maxLength: 128
|
|
19869
|
-
|
|
19939
|
+
LocalizedTitle:
|
|
19870
19940
|
type: object
|
|
19871
|
-
description: Localized
|
|
19872
|
-
x-typescript: Partial<Record<TranslationLanguage, string>>
|
|
19941
|
+
description: Localized title value, keyed by locale. Contains overrides for non-default languages only.
|
|
19873
19942
|
additionalProperties:
|
|
19874
19943
|
type: string
|
|
19875
19944
|
maxLength: 128
|
|
@@ -19880,6 +19949,14 @@ components:
|
|
|
19880
19949
|
description: Description of the site section
|
|
19881
19950
|
minLength: 0
|
|
19882
19951
|
maxLength: 256
|
|
19952
|
+
LocalizedSectionDescription:
|
|
19953
|
+
type: object
|
|
19954
|
+
description: Localized section description value, keyed by locale. Contains overrides for non-default languages only.
|
|
19955
|
+
additionalProperties:
|
|
19956
|
+
type: string
|
|
19957
|
+
maxLength: 256
|
|
19958
|
+
propertyNames:
|
|
19959
|
+
$ref: "#/components/schemas/TranslationLanguage"
|
|
19883
19960
|
SiteSectionPath:
|
|
19884
19961
|
type: string
|
|
19885
19962
|
description: Path to the section on the site
|
|
@@ -19910,6 +19987,8 @@ components:
|
|
|
19910
19987
|
$ref: "#/components/schemas/Space"
|
|
19911
19988
|
title:
|
|
19912
19989
|
type: string
|
|
19990
|
+
localizedTitle:
|
|
19991
|
+
$ref: "#/components/schemas/LocalizedTitle"
|
|
19913
19992
|
default:
|
|
19914
19993
|
type: boolean
|
|
19915
19994
|
description: Whether this is the default space for the site
|
|
@@ -19951,9 +20030,11 @@ components:
|
|
|
19951
20030
|
title:
|
|
19952
20031
|
$ref: "#/components/schemas/SiteSectionTitle"
|
|
19953
20032
|
localizedTitle:
|
|
19954
|
-
$ref: "#/components/schemas/
|
|
20033
|
+
$ref: "#/components/schemas/LocalizedTitle"
|
|
19955
20034
|
description:
|
|
19956
20035
|
$ref: "#/components/schemas/SiteSectionDescription"
|
|
20036
|
+
localizedDescription:
|
|
20037
|
+
$ref: "#/components/schemas/LocalizedSectionDescription"
|
|
19957
20038
|
default:
|
|
19958
20039
|
type: boolean
|
|
19959
20040
|
description: Whether this is the default section for the site
|
|
@@ -20004,6 +20085,8 @@ components:
|
|
|
20004
20085
|
description: Unique identifier of the site section group
|
|
20005
20086
|
title:
|
|
20006
20087
|
$ref: "#/components/schemas/SiteSectionGroupTitle"
|
|
20088
|
+
localizedTitle:
|
|
20089
|
+
$ref: "#/components/schemas/LocalizedTitle"
|
|
20007
20090
|
sections:
|
|
20008
20091
|
type: array
|
|
20009
20092
|
deprecated: true
|
|
@@ -20412,9 +20495,8 @@ components:
|
|
|
20412
20495
|
mode:
|
|
20413
20496
|
type: string
|
|
20414
20497
|
description: |
|
|
20415
|
-
Mode to use for the upgrade (default value is `commit`): - `
|
|
20498
|
+
Mode to use for the upgrade (default value is `commit`): - `commit`: a checkout session is returned or the upgrade is applied directly - `preview`: a preview invoice is always returned
|
|
20416
20499
|
enum:
|
|
20417
|
-
- auto
|
|
20418
20500
|
- commit
|
|
20419
20501
|
- preview
|
|
20420
20502
|
required:
|
|
@@ -23461,6 +23543,84 @@ components:
|
|
|
23461
23543
|
- no
|
|
23462
23544
|
- partially
|
|
23463
23545
|
- yes
|
|
23546
|
+
SiteQuestionAnswerSourceBase:
|
|
23547
|
+
type: object
|
|
23548
|
+
properties:
|
|
23549
|
+
object:
|
|
23550
|
+
type: string
|
|
23551
|
+
enum:
|
|
23552
|
+
- site-question-answer-source
|
|
23553
|
+
id:
|
|
23554
|
+
type: string
|
|
23555
|
+
description: The ID of the source.
|
|
23556
|
+
weight:
|
|
23557
|
+
type: number
|
|
23558
|
+
description: Relative weight of this source in the generated answer.
|
|
23559
|
+
title:
|
|
23560
|
+
type: string
|
|
23561
|
+
description: The title of the source.
|
|
23562
|
+
urls:
|
|
23563
|
+
type: object
|
|
23564
|
+
description: URLs associated with the site question answer.
|
|
23565
|
+
properties:
|
|
23566
|
+
location:
|
|
23567
|
+
type: string
|
|
23568
|
+
format: uri
|
|
23569
|
+
description: URL of the site question answer in the API.
|
|
23570
|
+
required:
|
|
23571
|
+
- location
|
|
23572
|
+
required:
|
|
23573
|
+
- object
|
|
23574
|
+
- id
|
|
23575
|
+
- title
|
|
23576
|
+
- weight
|
|
23577
|
+
- urls
|
|
23578
|
+
SiteQuestionAnswerSourcePage:
|
|
23579
|
+
allOf:
|
|
23580
|
+
- $ref: "#/components/schemas/SiteQuestionAnswerSourceBase"
|
|
23581
|
+
- type: object
|
|
23582
|
+
title: Page source
|
|
23583
|
+
description: Source data pointing to a page used for a site question answer.
|
|
23584
|
+
properties:
|
|
23585
|
+
type:
|
|
23586
|
+
type: string
|
|
23587
|
+
enum:
|
|
23588
|
+
- page
|
|
23589
|
+
space:
|
|
23590
|
+
type: string
|
|
23591
|
+
description: The space ID of the source page.
|
|
23592
|
+
revision:
|
|
23593
|
+
type: string
|
|
23594
|
+
description: The revision ID used for this source page.
|
|
23595
|
+
page:
|
|
23596
|
+
type: string
|
|
23597
|
+
description: The page ID of the source page.
|
|
23598
|
+
required:
|
|
23599
|
+
- type
|
|
23600
|
+
- space
|
|
23601
|
+
- revision
|
|
23602
|
+
- page
|
|
23603
|
+
SiteQuestionAnswerSourceRecord:
|
|
23604
|
+
allOf:
|
|
23605
|
+
- $ref: "#/components/schemas/SiteQuestionAnswerSourceBase"
|
|
23606
|
+
- type: object
|
|
23607
|
+
properties:
|
|
23608
|
+
type:
|
|
23609
|
+
type: string
|
|
23610
|
+
enum:
|
|
23611
|
+
- record
|
|
23612
|
+
record:
|
|
23613
|
+
type: string
|
|
23614
|
+
description: The site context record ID.
|
|
23615
|
+
required:
|
|
23616
|
+
- type
|
|
23617
|
+
- record
|
|
23618
|
+
SiteQuestionAnswerSource:
|
|
23619
|
+
oneOf:
|
|
23620
|
+
- $ref: "#/components/schemas/SiteQuestionAnswerSourcePage"
|
|
23621
|
+
- $ref: "#/components/schemas/SiteQuestionAnswerSourceRecord"
|
|
23622
|
+
discriminator:
|
|
23623
|
+
propertyName: type
|
|
23464
23624
|
SiteQuestionAnswerRelevance:
|
|
23465
23625
|
type: string
|
|
23466
23626
|
description: Relevance classification of the user question.
|
|
@@ -24295,84 +24455,6 @@ components:
|
|
|
24295
24455
|
$ref: "#/components/schemas/AIMessage"
|
|
24296
24456
|
required:
|
|
24297
24457
|
- 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
24458
|
SiteSpaceCustomizationSettings:
|
|
24377
24459
|
allOf:
|
|
24378
24460
|
- $ref: "#/components/schemas/SiteCustomizationSettings"
|