@gitbook/api 0.170.0 → 0.171.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 +210 -88
- package/dist/constants.d.ts +9 -7
- package/dist/index.cjs +116 -65
- package/dist/index.js +105 -58
- package/package.json +1 -1
- package/spec/openapi.json +540 -96
- package/spec/openapi.yaml +360 -94
package/dist/client.d.ts
CHANGED
|
@@ -184,6 +184,7 @@ export declare enum SiteInsightsVisitorBrowser {
|
|
|
184
184
|
}
|
|
185
185
|
export declare enum SiteInsightsEventType {
|
|
186
186
|
PageView = "page_view",
|
|
187
|
+
PageMarkdownRequest = "page_markdown_request",
|
|
187
188
|
SearchOpen = "search_open",
|
|
188
189
|
SearchTypeQuery = "search_type_query",
|
|
189
190
|
SearchOpenResult = "search_open_result",
|
|
@@ -197,7 +198,14 @@ export declare enum SiteInsightsEventType {
|
|
|
197
198
|
ApiClientRequest = "api_client_request",
|
|
198
199
|
AdClick = "ad_click",
|
|
199
200
|
AdDisplay = "ad_display",
|
|
200
|
-
TrademarkClick = "trademark_click"
|
|
201
|
+
TrademarkClick = "trademark_click",
|
|
202
|
+
LlmsRequest = "llms_request",
|
|
203
|
+
McpRequest = "mcp_request",
|
|
204
|
+
RssRequest = "rss_request"
|
|
205
|
+
}
|
|
206
|
+
export declare enum SiteInsightsLLMSVariant {
|
|
207
|
+
Standard = "standard",
|
|
208
|
+
Full = "full"
|
|
201
209
|
}
|
|
202
210
|
export declare enum SiteInsightsAdPlacement {
|
|
203
211
|
Aside = "aside"
|
|
@@ -219,6 +227,7 @@ export declare enum SiteInsightsLinkPosition {
|
|
|
219
227
|
/** Context in which the event was recorded. */
|
|
220
228
|
export declare enum SiteInsightsDisplayContext {
|
|
221
229
|
Site = "site",
|
|
230
|
+
Server = "server",
|
|
222
231
|
Embed = "embed",
|
|
223
232
|
Mcp = "mcp"
|
|
224
233
|
}
|
|
@@ -281,31 +290,38 @@ export declare enum SiteQuestionType {
|
|
|
281
290
|
Reference = "reference",
|
|
282
291
|
Unknown = "unknown"
|
|
283
292
|
}
|
|
284
|
-
/** Estimated end-user
|
|
285
|
-
export declare enum
|
|
293
|
+
/** Estimated end-user severity of a site finding. */
|
|
294
|
+
export declare enum SiteFindingSeverity {
|
|
286
295
|
Low = "low",
|
|
287
296
|
Medium = "medium",
|
|
288
297
|
High = "high"
|
|
289
298
|
}
|
|
290
299
|
/**
|
|
291
|
-
* Classification of a site
|
|
300
|
+
* Classification of a site finding:
|
|
292
301
|
* - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.
|
|
293
302
|
* - Incoherent content: The content contains information that is inconsistent or contradictory.
|
|
294
303
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
295
|
-
* - Other: Any other type of
|
|
304
|
+
* - Other: Any other type of finding not covered by the above categories.
|
|
296
305
|
*/
|
|
297
|
-
export declare enum
|
|
306
|
+
export declare enum SiteFindingType {
|
|
298
307
|
ContentOutdated = "content-outdated",
|
|
299
308
|
Incoherence = "incoherence",
|
|
300
309
|
ContentGap = "content-gap",
|
|
301
310
|
Other = "other"
|
|
302
311
|
}
|
|
303
|
-
/** Status of a site
|
|
304
|
-
export declare enum
|
|
312
|
+
/** Status of a site finding. */
|
|
313
|
+
export declare enum SiteFindingStatus {
|
|
305
314
|
Open = "open",
|
|
306
315
|
Done = "done",
|
|
307
316
|
Canceled = "canceled"
|
|
308
317
|
}
|
|
318
|
+
/** Status of a persisted site scan. */
|
|
319
|
+
export declare enum SiteScanStatus {
|
|
320
|
+
Pending = "pending",
|
|
321
|
+
Running = "running",
|
|
322
|
+
Done = "done",
|
|
323
|
+
Failed = "failed"
|
|
324
|
+
}
|
|
309
325
|
export declare enum ContextRecordType {
|
|
310
326
|
Ticket = "ticket",
|
|
311
327
|
Document = "document"
|
|
@@ -561,12 +577,6 @@ export declare enum SAMLProviderStatus {
|
|
|
561
577
|
Active = "active",
|
|
562
578
|
Pending = "pending"
|
|
563
579
|
}
|
|
564
|
-
/** Identifier of a billing meter */
|
|
565
|
-
export declare enum BillingMeter {
|
|
566
|
-
AiResponses = "ai_responses",
|
|
567
|
-
AiAgentResponses = "ai_agent_responses",
|
|
568
|
-
TranslationWords = "translation_words"
|
|
569
|
-
}
|
|
570
580
|
export declare enum BillingSwitchAction {
|
|
571
581
|
Trial = "trial",
|
|
572
582
|
Upgrade = "upgrade",
|
|
@@ -574,6 +584,12 @@ export declare enum BillingSwitchAction {
|
|
|
574
584
|
Downgrade = "downgrade",
|
|
575
585
|
SwitchInterval = "switch_interval"
|
|
576
586
|
}
|
|
587
|
+
/** Identifier of a billing meter */
|
|
588
|
+
export declare enum BillingMeter {
|
|
589
|
+
AiResponses = "ai_responses",
|
|
590
|
+
AiAgentResponses = "ai_agent_responses",
|
|
591
|
+
TranslationWords = "translation_words"
|
|
592
|
+
}
|
|
577
593
|
/**
|
|
578
594
|
* "The role of a team member.
|
|
579
595
|
* "owner": Can manage team members.
|
|
@@ -5006,13 +5022,17 @@ export interface UpgradeOrganizationBilling {
|
|
|
5006
5022
|
reason?: string;
|
|
5007
5023
|
/** Coupon or promotion code to apply to the subscription */
|
|
5008
5024
|
coupon?: BillingCoupon;
|
|
5025
|
+
/** Optional usage addons to apply when upgrading: - if set, apply provided billable addons (non-billable meters are ignored) - if omitted, keep current subscription addons (or billing addons for new subs) - if omitted during interval switch, keep addon selection and switch addon price interval - if empty, or all provided meters are ignored, remove all existing billable addons */
|
|
5026
|
+
addons?: BillingMeter[];
|
|
5009
5027
|
/** 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
5028
|
mode?: "commit" | "preview";
|
|
5011
5029
|
}
|
|
5012
5030
|
export interface BillingInvoicePreview {
|
|
5013
|
-
/**
|
|
5031
|
+
/** Final total owed for this invoice after discounts and credits. */
|
|
5014
5032
|
amount: number;
|
|
5015
|
-
/**
|
|
5033
|
+
/** Sum of invoice line items before discounts and credits are applied. */
|
|
5034
|
+
subtotal: number;
|
|
5035
|
+
/** Remaining unpaid amount on this invoice, what would be charged now. */
|
|
5016
5036
|
amountDueToday: number;
|
|
5017
5037
|
/** Current balance, if any, being stored on the customer. If positive, the customer has credit to apply to their next invoice. */
|
|
5018
5038
|
customerBalance: number;
|
|
@@ -5646,6 +5666,8 @@ export interface SiteAdaptiveTemplateCondition {
|
|
|
5646
5666
|
/** The suggested condition. */
|
|
5647
5667
|
condition: string;
|
|
5648
5668
|
}
|
|
5669
|
+
/** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
|
|
5670
|
+
export type LocalizedString = object;
|
|
5649
5671
|
/** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
|
|
5650
5672
|
export type Color = string;
|
|
5651
5673
|
export interface CustomizationThemedColor {
|
|
@@ -5732,6 +5754,8 @@ export type SiteSocialAccounts = SiteSocialAccount[];
|
|
|
5732
5754
|
export interface SiteCustomizationSettingsBase {
|
|
5733
5755
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
5734
5756
|
title?: SiteTitle;
|
|
5757
|
+
/** Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed. */
|
|
5758
|
+
localizedTitle?: LocalizedString;
|
|
5735
5759
|
styling: {
|
|
5736
5760
|
/**
|
|
5737
5761
|
* The theme to apply to the site. Supercedes the old header preset themes.
|
|
@@ -6085,55 +6109,87 @@ export interface ContextRecordInput {
|
|
|
6085
6109
|
createdAt?: Timestamp;
|
|
6086
6110
|
metadata?: Record<string, string | number>;
|
|
6087
6111
|
}
|
|
6112
|
+
/** Number of findings created by the scan, grouped by severity. */
|
|
6113
|
+
export interface SiteScanFindings {
|
|
6114
|
+
low: number;
|
|
6115
|
+
medium: number;
|
|
6116
|
+
high: number;
|
|
6117
|
+
}
|
|
6118
|
+
export interface SiteScan {
|
|
6119
|
+
object: "site-scan";
|
|
6120
|
+
/** The ID of the scan */
|
|
6121
|
+
id: string;
|
|
6122
|
+
/** Status of a persisted site scan. */
|
|
6123
|
+
status: SiteScanStatus;
|
|
6124
|
+
/** The site topic ID associated with the scan */
|
|
6125
|
+
topic: string;
|
|
6126
|
+
createdAt: Timestamp;
|
|
6127
|
+
startedAt?: Timestamp;
|
|
6128
|
+
finishedAt?: Timestamp;
|
|
6129
|
+
/** Number of findings created by the scan, grouped by severity. */
|
|
6130
|
+
findings: SiteScanFindings;
|
|
6131
|
+
/** Failure message for failed scans */
|
|
6132
|
+
failureMessage?: string;
|
|
6133
|
+
/** URLs associated with the scan */
|
|
6134
|
+
urls: {
|
|
6135
|
+
/**
|
|
6136
|
+
* URL of the scan endpoint in the API
|
|
6137
|
+
* @format uri
|
|
6138
|
+
*/
|
|
6139
|
+
location: string;
|
|
6140
|
+
};
|
|
6141
|
+
}
|
|
6088
6142
|
/**
|
|
6089
|
-
* Short
|
|
6143
|
+
* Short finding title
|
|
6090
6144
|
* @maxLength 256
|
|
6091
6145
|
*/
|
|
6092
|
-
export type
|
|
6093
|
-
export interface
|
|
6094
|
-
object: "site-
|
|
6095
|
-
/** The ID of the
|
|
6146
|
+
export type SiteFindingTitle = string;
|
|
6147
|
+
export interface SiteFinding {
|
|
6148
|
+
object: "site-finding";
|
|
6149
|
+
/** The ID of the finding */
|
|
6096
6150
|
id: string;
|
|
6097
|
-
/** The site
|
|
6151
|
+
/** The site scan ID associated with the finding */
|
|
6152
|
+
scan: string;
|
|
6153
|
+
/** The site topic ID associated with the finding */
|
|
6098
6154
|
topic: string;
|
|
6099
|
-
/** Short
|
|
6100
|
-
title:
|
|
6101
|
-
/** Number of change requests linked to the
|
|
6155
|
+
/** Short finding title */
|
|
6156
|
+
title: SiteFindingTitle;
|
|
6157
|
+
/** Number of change requests linked to the finding */
|
|
6102
6158
|
changeRequests: number;
|
|
6103
|
-
/** Number of pages linked to the
|
|
6159
|
+
/** Number of pages linked to the finding */
|
|
6104
6160
|
pages: number;
|
|
6105
|
-
/** Number of records linked to the
|
|
6161
|
+
/** Number of records linked to the finding */
|
|
6106
6162
|
records: number;
|
|
6107
|
-
/** Number of questions linked to the
|
|
6163
|
+
/** Number of questions linked to the finding */
|
|
6108
6164
|
questions: number;
|
|
6109
|
-
/** Status of a site
|
|
6110
|
-
status:
|
|
6165
|
+
/** Status of a site finding. */
|
|
6166
|
+
status: SiteFindingStatus;
|
|
6111
6167
|
/**
|
|
6112
|
-
* Classification of a site
|
|
6168
|
+
* Classification of a site finding:
|
|
6113
6169
|
* - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.
|
|
6114
6170
|
* - Incoherent content: The content contains information that is inconsistent or contradictory.
|
|
6115
6171
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
6116
|
-
* - Other: Any other type of
|
|
6172
|
+
* - Other: Any other type of finding not covered by the above categories.
|
|
6117
6173
|
*/
|
|
6118
|
-
type:
|
|
6119
|
-
/** Estimated end-user
|
|
6120
|
-
|
|
6174
|
+
type: SiteFindingType;
|
|
6175
|
+
/** Estimated end-user severity of a site finding. */
|
|
6176
|
+
severity: SiteFindingSeverity;
|
|
6121
6177
|
description: JSONDocument;
|
|
6122
|
-
/** Whether an AI agent should be able to fix this
|
|
6178
|
+
/** Whether an AI agent should be able to fix this finding directly */
|
|
6123
6179
|
autoFixable: boolean;
|
|
6124
6180
|
createdAt: Timestamp;
|
|
6125
6181
|
updatedAt: Timestamp;
|
|
6126
|
-
/** URLs associated with the
|
|
6182
|
+
/** URLs associated with the finding */
|
|
6127
6183
|
urls: {
|
|
6128
6184
|
/**
|
|
6129
|
-
* URL of the
|
|
6185
|
+
* URL of the finding list endpoint in the API
|
|
6130
6186
|
* @format uri
|
|
6131
6187
|
*/
|
|
6132
6188
|
location: string;
|
|
6133
6189
|
};
|
|
6134
6190
|
}
|
|
6135
|
-
export interface
|
|
6136
|
-
object: "site-
|
|
6191
|
+
export interface SiteFindingPage {
|
|
6192
|
+
object: "site-finding-page";
|
|
6137
6193
|
/** The space ID containing the linked page. */
|
|
6138
6194
|
spaceId: string;
|
|
6139
6195
|
page: ChangedRevisionPage;
|
|
@@ -6967,7 +7023,7 @@ export interface SiteInsightsEventLocation {
|
|
|
6967
7023
|
/** URL of the location. */
|
|
6968
7024
|
url: URL;
|
|
6969
7025
|
/**
|
|
6970
|
-
* Whether the event was tracked on the site or an embed widget.
|
|
7026
|
+
* Whether the event was tracked on the site, the server, or an embed widget.
|
|
6971
7027
|
* @default "site"
|
|
6972
7028
|
*/
|
|
6973
7029
|
displayContext?: SiteInsightsDisplayContext;
|
|
@@ -6995,6 +7051,9 @@ export interface SiteInsightsEventBase {
|
|
|
6995
7051
|
export type SiteInsightsEventPageView = SiteInsightsEventBase & {
|
|
6996
7052
|
type: "page_view";
|
|
6997
7053
|
};
|
|
7054
|
+
export type SiteInsightsEventPageMarkdownRequest = SiteInsightsEventBase & {
|
|
7055
|
+
type: "page_markdown_request";
|
|
7056
|
+
};
|
|
6998
7057
|
export type SiteInsightsEventSearchOpen = SiteInsightsEventBase & {
|
|
6999
7058
|
type: "search_open";
|
|
7000
7059
|
};
|
|
@@ -7087,7 +7146,17 @@ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
|
|
|
7087
7146
|
type: "ad_display";
|
|
7088
7147
|
ad: SiteInsightsAd;
|
|
7089
7148
|
};
|
|
7090
|
-
export type
|
|
7149
|
+
export type SiteInsightsEventLLMSRequest = SiteInsightsEventBase & {
|
|
7150
|
+
type: "llms_request";
|
|
7151
|
+
llmsVariant: SiteInsightsLLMSVariant;
|
|
7152
|
+
};
|
|
7153
|
+
export type SiteInsightsEventMCPRequest = SiteInsightsEventBase & {
|
|
7154
|
+
type: "mcp_request";
|
|
7155
|
+
};
|
|
7156
|
+
export type SiteInsightsEventRSSRequest = SiteInsightsEventBase & {
|
|
7157
|
+
type: "rss_request";
|
|
7158
|
+
};
|
|
7159
|
+
export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventPageMarkdownRequest | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventAskView | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay | SiteInsightsEventLLMSRequest | SiteInsightsEventMCPRequest | SiteInsightsEventRSSRequest;
|
|
7091
7160
|
export interface SiteInsightsQueryDateTimeColumn {
|
|
7092
7161
|
column: "datetime";
|
|
7093
7162
|
interval?: "hour" | "day" | "week" | "month";
|
|
@@ -7143,6 +7212,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
7143
7212
|
column: "eventAPIOperationPath";
|
|
7144
7213
|
} | {
|
|
7145
7214
|
column: "eventAPIOperationMethod";
|
|
7215
|
+
} | {
|
|
7216
|
+
column: "eventLLMSVariant";
|
|
7146
7217
|
} | {
|
|
7147
7218
|
column: "eventSearchQuery";
|
|
7148
7219
|
} | {
|
|
@@ -7232,6 +7303,9 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
7232
7303
|
} | {
|
|
7233
7304
|
column: "siteSection";
|
|
7234
7305
|
values: (string | null)[];
|
|
7306
|
+
} | {
|
|
7307
|
+
column: "eventLLMSVariant";
|
|
7308
|
+
values: (null | SiteInsightsLLMSVariant)[];
|
|
7235
7309
|
} | {
|
|
7236
7310
|
column: "siteSpace";
|
|
7237
7311
|
values: (string | null)[];
|
|
@@ -13577,12 +13651,60 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13577
13651
|
* No description
|
|
13578
13652
|
*
|
|
13579
13653
|
* @tags site-context
|
|
13580
|
-
* @name
|
|
13581
|
-
* @summary List all site
|
|
13582
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13654
|
+
* @name ListSiteScans
|
|
13655
|
+
* @summary List all site scans
|
|
13656
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/scans
|
|
13657
|
+
* @secure
|
|
13658
|
+
*/
|
|
13659
|
+
listSiteScans: (organizationId: EntityId, siteId: string, query?: {
|
|
13660
|
+
/** Identifier of the page results to fetch. */
|
|
13661
|
+
page?: string;
|
|
13662
|
+
/**
|
|
13663
|
+
* The number of results per page
|
|
13664
|
+
* @min 0
|
|
13665
|
+
* @max 1000
|
|
13666
|
+
*/
|
|
13667
|
+
limit?: number;
|
|
13668
|
+
/** Filter scans by associated site topic ID. */
|
|
13669
|
+
topic?: string;
|
|
13670
|
+
/** Filter scans by status. */
|
|
13671
|
+
status?: SiteScanStatus;
|
|
13672
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13673
|
+
items: SiteScan[];
|
|
13674
|
+
}, any>>;
|
|
13675
|
+
/**
|
|
13676
|
+
* No description
|
|
13677
|
+
*
|
|
13678
|
+
* @tags site-context
|
|
13679
|
+
* @name CreateSiteScan
|
|
13680
|
+
* @summary Enqueue a new site scan
|
|
13681
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/scans
|
|
13682
|
+
* @secure
|
|
13683
|
+
*/
|
|
13684
|
+
createSiteScan: (organizationId: EntityId, siteId: string, data: {
|
|
13685
|
+
/** The site topic ID to scan. */
|
|
13686
|
+
topic: string;
|
|
13687
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteScan, any>>;
|
|
13688
|
+
/**
|
|
13689
|
+
* No description
|
|
13690
|
+
*
|
|
13691
|
+
* @tags site-context
|
|
13692
|
+
* @name GetSiteScanById
|
|
13693
|
+
* @summary Get a site scan by ID
|
|
13694
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/scans/{siteScanId}
|
|
13695
|
+
* @secure
|
|
13696
|
+
*/
|
|
13697
|
+
getSiteScanById: (organizationId: EntityId, siteId: string, siteScanId: string, params?: RequestParams) => Promise<HttpResponse<SiteScan, any>>;
|
|
13698
|
+
/**
|
|
13699
|
+
* No description
|
|
13700
|
+
*
|
|
13701
|
+
* @tags site-context
|
|
13702
|
+
* @name ListSiteFindings
|
|
13703
|
+
* @summary List all site context findings
|
|
13704
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings
|
|
13583
13705
|
* @secure
|
|
13584
13706
|
*/
|
|
13585
|
-
|
|
13707
|
+
listSiteFindings: (organizationId: EntityId, siteId: string, query?: {
|
|
13586
13708
|
/** Identifier of the page results to fetch. */
|
|
13587
13709
|
page?: string;
|
|
13588
13710
|
/**
|
|
@@ -13591,49 +13713,49 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13591
13713
|
* @max 1000
|
|
13592
13714
|
*/
|
|
13593
13715
|
limit?: number;
|
|
13594
|
-
/** Filter
|
|
13716
|
+
/** Filter findings by associated site topic ID. */
|
|
13595
13717
|
topic?: string;
|
|
13596
|
-
/** Filter
|
|
13597
|
-
status?:
|
|
13598
|
-
/** Filter
|
|
13599
|
-
type?:
|
|
13600
|
-
/** Filter
|
|
13601
|
-
|
|
13718
|
+
/** Filter findings by status. */
|
|
13719
|
+
status?: SiteFindingStatus;
|
|
13720
|
+
/** Filter findings by type. */
|
|
13721
|
+
type?: SiteFindingType;
|
|
13722
|
+
/** Filter findings by estimated severity. */
|
|
13723
|
+
severity?: SiteFindingSeverity;
|
|
13602
13724
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13603
|
-
items:
|
|
13725
|
+
items: SiteFinding[];
|
|
13604
13726
|
}, any>>;
|
|
13605
13727
|
/**
|
|
13606
13728
|
* No description
|
|
13607
13729
|
*
|
|
13608
13730
|
* @tags site-context
|
|
13609
|
-
* @name
|
|
13610
|
-
* @summary Get a site
|
|
13611
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13731
|
+
* @name GetSiteFindingById
|
|
13732
|
+
* @summary Get a site finding by ID
|
|
13733
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}
|
|
13612
13734
|
* @secure
|
|
13613
13735
|
*/
|
|
13614
|
-
|
|
13736
|
+
getSiteFindingById: (organizationId: EntityId, siteId: string, siteFindingId: string, params?: RequestParams) => Promise<HttpResponse<SiteFinding, any>>;
|
|
13615
13737
|
/**
|
|
13616
13738
|
* No description
|
|
13617
13739
|
*
|
|
13618
13740
|
* @tags site-context
|
|
13619
|
-
* @name
|
|
13620
|
-
* @summary Update a site
|
|
13621
|
-
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/
|
|
13741
|
+
* @name UpdateSiteFindingById
|
|
13742
|
+
* @summary Update a site finding
|
|
13743
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}
|
|
13622
13744
|
* @secure
|
|
13623
13745
|
*/
|
|
13624
|
-
|
|
13746
|
+
updateSiteFindingById: (organizationId: EntityId, siteId: string, siteFindingId: string, data: {
|
|
13625
13747
|
status: "open" | "canceled";
|
|
13626
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
13748
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteFinding, any>>;
|
|
13627
13749
|
/**
|
|
13628
13750
|
* No description
|
|
13629
13751
|
*
|
|
13630
13752
|
* @tags site-context
|
|
13631
|
-
* @name
|
|
13632
|
-
* @summary List change requests linked to a site
|
|
13633
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13753
|
+
* @name ListChangeRequestsForSiteFinding
|
|
13754
|
+
* @summary List change requests linked to a site finding
|
|
13755
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests
|
|
13634
13756
|
* @secure
|
|
13635
13757
|
*/
|
|
13636
|
-
|
|
13758
|
+
listChangeRequestsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13637
13759
|
/** Identifier of the page results to fetch. */
|
|
13638
13760
|
page?: string;
|
|
13639
13761
|
/**
|
|
@@ -13649,22 +13771,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13649
13771
|
* No description
|
|
13650
13772
|
*
|
|
13651
13773
|
* @tags site-context
|
|
13652
|
-
* @name
|
|
13653
|
-
* @summary Process a site
|
|
13654
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/
|
|
13774
|
+
* @name TriggerChangeRequestsForSiteFinding
|
|
13775
|
+
* @summary Process a site finding into change requests
|
|
13776
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests
|
|
13655
13777
|
* @secure
|
|
13656
13778
|
*/
|
|
13657
|
-
|
|
13779
|
+
triggerChangeRequestsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13658
13780
|
/**
|
|
13659
13781
|
* No description
|
|
13660
13782
|
*
|
|
13661
13783
|
* @tags site-context
|
|
13662
|
-
* @name
|
|
13663
|
-
* @summary List pages linked to a site
|
|
13664
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13784
|
+
* @name ListPagesForSiteFinding
|
|
13785
|
+
* @summary List pages linked to a site finding
|
|
13786
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/pages
|
|
13665
13787
|
* @secure
|
|
13666
13788
|
*/
|
|
13667
|
-
|
|
13789
|
+
listPagesForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13668
13790
|
/** Identifier of the page results to fetch. */
|
|
13669
13791
|
page?: string;
|
|
13670
13792
|
/**
|
|
@@ -13674,18 +13796,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13674
13796
|
*/
|
|
13675
13797
|
limit?: number;
|
|
13676
13798
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13677
|
-
items:
|
|
13799
|
+
items: SiteFindingPage[];
|
|
13678
13800
|
}, any>>;
|
|
13679
13801
|
/**
|
|
13680
13802
|
* No description
|
|
13681
13803
|
*
|
|
13682
13804
|
* @tags site-context
|
|
13683
|
-
* @name
|
|
13684
|
-
* @summary List questions linked to a site
|
|
13685
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13805
|
+
* @name ListQuestionsForSiteFinding
|
|
13806
|
+
* @summary List questions linked to a site finding
|
|
13807
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/questions
|
|
13686
13808
|
* @secure
|
|
13687
13809
|
*/
|
|
13688
|
-
|
|
13810
|
+
listQuestionsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13689
13811
|
/** Identifier of the page results to fetch. */
|
|
13690
13812
|
page?: string;
|
|
13691
13813
|
/**
|
|
@@ -13701,12 +13823,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13701
13823
|
* No description
|
|
13702
13824
|
*
|
|
13703
13825
|
* @tags site-context
|
|
13704
|
-
* @name
|
|
13705
|
-
* @summary List records linked to a site
|
|
13706
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13826
|
+
* @name ListRecordsForSiteFinding
|
|
13827
|
+
* @summary List records linked to a site finding
|
|
13828
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/records
|
|
13707
13829
|
* @secure
|
|
13708
13830
|
*/
|
|
13709
|
-
|
|
13831
|
+
listRecordsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13710
13832
|
/** Identifier of the page results to fetch. */
|
|
13711
13833
|
page?: string;
|
|
13712
13834
|
/**
|
|
@@ -13844,12 +13966,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13844
13966
|
* No description
|
|
13845
13967
|
*
|
|
13846
13968
|
* @tags site-context
|
|
13847
|
-
* @name
|
|
13848
|
-
* @summary Delete all
|
|
13849
|
-
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/
|
|
13969
|
+
* @name DeleteSiteTopicFindings
|
|
13970
|
+
* @summary Delete all findings for a topic
|
|
13971
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/findings
|
|
13850
13972
|
* @secure
|
|
13851
13973
|
*/
|
|
13852
|
-
|
|
13974
|
+
deleteSiteTopicFindings: (organizationId: EntityId, siteId: string, siteTopicId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13853
13975
|
/**
|
|
13854
13976
|
* No description
|
|
13855
13977
|
*
|
package/dist/constants.d.ts
CHANGED
|
@@ -94,8 +94,8 @@ export declare const SITE_SECTION_GROUP_TITLE_MIN_LENGTH = 1;
|
|
|
94
94
|
export declare const TEAM_MEMBER_ROLE_ENUM: ["owner", "member"];
|
|
95
95
|
export declare const BILLING_COUPON_MAX_LENGTH = 500;
|
|
96
96
|
export declare const BILLING_COUPON_MIN_LENGTH = 1;
|
|
97
|
-
export declare const BILLING_SWITCH_ACTION_ENUM: ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
|
|
98
97
|
export declare const BILLING_METER_ENUM: ["ai_responses", "ai_agent_responses", "translation_words"];
|
|
98
|
+
export declare const BILLING_SWITCH_ACTION_ENUM: ["trial", "upgrade", "upgrade_passive", "downgrade", "switch_interval"];
|
|
99
99
|
export declare const SAMLPROVIDER_LABEL_MAX_LENGTH = 30;
|
|
100
100
|
export declare const SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
101
101
|
export declare const SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
@@ -139,10 +139,11 @@ export declare const CONTEXT_RECORD_TYPE_ENUM: ["ticket", "document"];
|
|
|
139
139
|
export declare const CONTEXT_RECORD_TITLE_MAX_LENGTH = 256;
|
|
140
140
|
export declare const CONTEXT_RECORD_TITLE_MIN_LENGTH = 1;
|
|
141
141
|
export declare const CONTEXT_RECORD_DESCRIPTION_MAX_LENGTH = 512;
|
|
142
|
-
export declare const
|
|
143
|
-
export declare const
|
|
144
|
-
export declare const
|
|
145
|
-
export declare const
|
|
142
|
+
export declare const SITE_SCAN_STATUS_ENUM: ["pending", "running", "done", "failed"];
|
|
143
|
+
export declare const SITE_FINDING_STATUS_ENUM: ["open", "done", "canceled"];
|
|
144
|
+
export declare const SITE_FINDING_TYPE_ENUM: ["content-outdated", "incoherence", "content-gap", "other"];
|
|
145
|
+
export declare const SITE_FINDING_SEVERITY_ENUM: ["low", "medium", "high"];
|
|
146
|
+
export declare const SITE_FINDING_TITLE_MAX_LENGTH = 256;
|
|
146
147
|
export declare const SITE_QUESTION_TYPE_ENUM: ["exploring", "how-to", "troubleshooting", "reference", "unknown"];
|
|
147
148
|
export declare const CONTEXT_CONNECTION_LABEL_MAX_LENGTH = 128;
|
|
148
149
|
export declare const CONTEXT_CONNECTION_LABEL_MIN_LENGTH = 0;
|
|
@@ -155,11 +156,12 @@ export declare const SITE_CORE_CHANNEL_TYPE_ENUM: ["site", "embed", "api"];
|
|
|
155
156
|
export declare const SITE_CONFIGURABLE_CHANNEL_TYPE_ENUM: ["builtin:slack", "builtin:discord"];
|
|
156
157
|
export declare const AIMESSAGE_ROLE_ENUM: ["user", "assistant", "developer"];
|
|
157
158
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
158
|
-
export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "embed", "mcp"];
|
|
159
|
+
export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "server", "embed", "mcp"];
|
|
159
160
|
export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header", "footer", "sidebar", "content"];
|
|
160
161
|
export declare const SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
161
162
|
export declare const SITE_INSIGHTS_AD_PLACEMENT_ENUM: ["aside"];
|
|
162
|
-
export declare const
|
|
163
|
+
export declare const SITE_INSIGHTS_LLMSVARIANT_ENUM: ["standard", "full"];
|
|
164
|
+
export declare const SITE_INSIGHTS_EVENT_TYPE_ENUM: ["page_view", "page_markdown_request", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click", "llms_request", "mcp_request", "rss_request"];
|
|
163
165
|
export declare const SITE_INSIGHTS_VISITOR_BROWSER_ENUM: ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|
|
164
166
|
export declare const SITE_INSIGHTS_VISITOR_DEVICE_ENUM: ["desktop", "tablet", "mobile", "unknown"];
|
|
165
167
|
export declare const SITE_INSIGHTS_VISITOR_OS_ENUM: ["windows", "macos", "linux", "android", "ios", "unknown"];
|