@gitbook/api 0.170.0 → 0.172.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 +218 -90
- 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 +564 -96
- package/spec/openapi.yaml +375 -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;
|
|
@@ -5732,6 +5752,8 @@ export type SiteSocialAccounts = SiteSocialAccount[];
|
|
|
5732
5752
|
export interface SiteCustomizationSettingsBase {
|
|
5733
5753
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
5734
5754
|
title?: SiteTitle;
|
|
5755
|
+
/** Localized titles for the site, keyed by locale. If not defined, the localized title will not be changed. */
|
|
5756
|
+
localizedTitle?: LocalizedTitle;
|
|
5735
5757
|
styling: {
|
|
5736
5758
|
/**
|
|
5737
5759
|
* The theme to apply to the site. Supercedes the old header preset themes.
|
|
@@ -6085,55 +6107,87 @@ export interface ContextRecordInput {
|
|
|
6085
6107
|
createdAt?: Timestamp;
|
|
6086
6108
|
metadata?: Record<string, string | number>;
|
|
6087
6109
|
}
|
|
6110
|
+
/** Number of findings created by the scan, grouped by severity. */
|
|
6111
|
+
export interface SiteScanFindings {
|
|
6112
|
+
low: number;
|
|
6113
|
+
medium: number;
|
|
6114
|
+
high: number;
|
|
6115
|
+
}
|
|
6116
|
+
export interface SiteScan {
|
|
6117
|
+
object: "site-scan";
|
|
6118
|
+
/** The ID of the scan */
|
|
6119
|
+
id: string;
|
|
6120
|
+
/** Status of a persisted site scan. */
|
|
6121
|
+
status: SiteScanStatus;
|
|
6122
|
+
/** The site topic ID associated with the scan */
|
|
6123
|
+
topic: string;
|
|
6124
|
+
createdAt: Timestamp;
|
|
6125
|
+
startedAt?: Timestamp;
|
|
6126
|
+
finishedAt?: Timestamp;
|
|
6127
|
+
/** Number of findings created by the scan, grouped by severity. */
|
|
6128
|
+
findings: SiteScanFindings;
|
|
6129
|
+
/** Failure message for failed scans */
|
|
6130
|
+
failureMessage?: string;
|
|
6131
|
+
/** URLs associated with the scan */
|
|
6132
|
+
urls: {
|
|
6133
|
+
/**
|
|
6134
|
+
* URL of the scan endpoint in the API
|
|
6135
|
+
* @format uri
|
|
6136
|
+
*/
|
|
6137
|
+
location: string;
|
|
6138
|
+
};
|
|
6139
|
+
}
|
|
6088
6140
|
/**
|
|
6089
|
-
* Short
|
|
6141
|
+
* Short finding title
|
|
6090
6142
|
* @maxLength 256
|
|
6091
6143
|
*/
|
|
6092
|
-
export type
|
|
6093
|
-
export interface
|
|
6094
|
-
object: "site-
|
|
6095
|
-
/** The ID of the
|
|
6144
|
+
export type SiteFindingTitle = string;
|
|
6145
|
+
export interface SiteFinding {
|
|
6146
|
+
object: "site-finding";
|
|
6147
|
+
/** The ID of the finding */
|
|
6096
6148
|
id: string;
|
|
6097
|
-
/** The site
|
|
6149
|
+
/** The site scan ID associated with the finding */
|
|
6150
|
+
scan: string;
|
|
6151
|
+
/** The site topic ID associated with the finding */
|
|
6098
6152
|
topic: string;
|
|
6099
|
-
/** Short
|
|
6100
|
-
title:
|
|
6101
|
-
/** Number of change requests linked to the
|
|
6153
|
+
/** Short finding title */
|
|
6154
|
+
title: SiteFindingTitle;
|
|
6155
|
+
/** Number of change requests linked to the finding */
|
|
6102
6156
|
changeRequests: number;
|
|
6103
|
-
/** Number of pages linked to the
|
|
6157
|
+
/** Number of pages linked to the finding */
|
|
6104
6158
|
pages: number;
|
|
6105
|
-
/** Number of records linked to the
|
|
6159
|
+
/** Number of records linked to the finding */
|
|
6106
6160
|
records: number;
|
|
6107
|
-
/** Number of questions linked to the
|
|
6161
|
+
/** Number of questions linked to the finding */
|
|
6108
6162
|
questions: number;
|
|
6109
|
-
/** Status of a site
|
|
6110
|
-
status:
|
|
6163
|
+
/** Status of a site finding. */
|
|
6164
|
+
status: SiteFindingStatus;
|
|
6111
6165
|
/**
|
|
6112
|
-
* Classification of a site
|
|
6166
|
+
* Classification of a site finding:
|
|
6113
6167
|
* - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.
|
|
6114
6168
|
* - Incoherent content: The content contains information that is inconsistent or contradictory.
|
|
6115
6169
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
6116
|
-
* - Other: Any other type of
|
|
6170
|
+
* - Other: Any other type of finding not covered by the above categories.
|
|
6117
6171
|
*/
|
|
6118
|
-
type:
|
|
6119
|
-
/** Estimated end-user
|
|
6120
|
-
|
|
6172
|
+
type: SiteFindingType;
|
|
6173
|
+
/** Estimated end-user severity of a site finding. */
|
|
6174
|
+
severity: SiteFindingSeverity;
|
|
6121
6175
|
description: JSONDocument;
|
|
6122
|
-
/** Whether an AI agent should be able to fix this
|
|
6176
|
+
/** Whether an AI agent should be able to fix this finding directly */
|
|
6123
6177
|
autoFixable: boolean;
|
|
6124
6178
|
createdAt: Timestamp;
|
|
6125
6179
|
updatedAt: Timestamp;
|
|
6126
|
-
/** URLs associated with the
|
|
6180
|
+
/** URLs associated with the finding */
|
|
6127
6181
|
urls: {
|
|
6128
6182
|
/**
|
|
6129
|
-
* URL of the
|
|
6183
|
+
* URL of the finding list endpoint in the API
|
|
6130
6184
|
* @format uri
|
|
6131
6185
|
*/
|
|
6132
6186
|
location: string;
|
|
6133
6187
|
};
|
|
6134
6188
|
}
|
|
6135
|
-
export interface
|
|
6136
|
-
object: "site-
|
|
6189
|
+
export interface SiteFindingPage {
|
|
6190
|
+
object: "site-finding-page";
|
|
6137
6191
|
/** The space ID containing the linked page. */
|
|
6138
6192
|
spaceId: string;
|
|
6139
6193
|
page: ChangedRevisionPage;
|
|
@@ -6394,9 +6448,9 @@ export interface SiteQuestionAnswer {
|
|
|
6394
6448
|
topics: string[];
|
|
6395
6449
|
input: {
|
|
6396
6450
|
/** Normalized question text for this answer. */
|
|
6397
|
-
text
|
|
6451
|
+
text: string;
|
|
6398
6452
|
/** Raw question text as asked by the user. */
|
|
6399
|
-
raw
|
|
6453
|
+
raw: string;
|
|
6400
6454
|
};
|
|
6401
6455
|
thread?: {
|
|
6402
6456
|
/** The ID of the thread this answer belongs to. */
|
|
@@ -6967,7 +7021,7 @@ export interface SiteInsightsEventLocation {
|
|
|
6967
7021
|
/** URL of the location. */
|
|
6968
7022
|
url: URL;
|
|
6969
7023
|
/**
|
|
6970
|
-
* Whether the event was tracked on the site or an embed widget.
|
|
7024
|
+
* Whether the event was tracked on the site, the server, or an embed widget.
|
|
6971
7025
|
* @default "site"
|
|
6972
7026
|
*/
|
|
6973
7027
|
displayContext?: SiteInsightsDisplayContext;
|
|
@@ -6995,6 +7049,9 @@ export interface SiteInsightsEventBase {
|
|
|
6995
7049
|
export type SiteInsightsEventPageView = SiteInsightsEventBase & {
|
|
6996
7050
|
type: "page_view";
|
|
6997
7051
|
};
|
|
7052
|
+
export type SiteInsightsEventPageMarkdownRequest = SiteInsightsEventBase & {
|
|
7053
|
+
type: "page_markdown_request";
|
|
7054
|
+
};
|
|
6998
7055
|
export type SiteInsightsEventSearchOpen = SiteInsightsEventBase & {
|
|
6999
7056
|
type: "search_open";
|
|
7000
7057
|
};
|
|
@@ -7087,7 +7144,17 @@ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
|
|
|
7087
7144
|
type: "ad_display";
|
|
7088
7145
|
ad: SiteInsightsAd;
|
|
7089
7146
|
};
|
|
7090
|
-
export type
|
|
7147
|
+
export type SiteInsightsEventLLMSRequest = SiteInsightsEventBase & {
|
|
7148
|
+
type: "llms_request";
|
|
7149
|
+
llmsVariant: SiteInsightsLLMSVariant;
|
|
7150
|
+
};
|
|
7151
|
+
export type SiteInsightsEventMCPRequest = SiteInsightsEventBase & {
|
|
7152
|
+
type: "mcp_request";
|
|
7153
|
+
};
|
|
7154
|
+
export type SiteInsightsEventRSSRequest = SiteInsightsEventBase & {
|
|
7155
|
+
type: "rss_request";
|
|
7156
|
+
};
|
|
7157
|
+
export type SiteInsightsEvent = SiteInsightsEventPageView | SiteInsightsEventPageMarkdownRequest | SiteInsightsEventSearchOpen | SiteInsightsEventSearchTypeQuery | SiteInsightsEventSearchOpenResult | SiteInsightsEventPagePostFeedback | SiteInsightsEventPagePostFeedbackComment | SiteInsightsEventAskQuestion | SiteInsightsEventAskView | SiteInsightsEventAskRateResponse | SiteInsightsEventLinkClick | SiteInsightsEventAPIClientOpen | SiteInsightsEventAPIClientRequest | SiteInsightsEventTrademarkClick | SiteInsightsEventAdClick | SiteInsightsEventAdDisplay | SiteInsightsEventLLMSRequest | SiteInsightsEventMCPRequest | SiteInsightsEventRSSRequest;
|
|
7091
7158
|
export interface SiteInsightsQueryDateTimeColumn {
|
|
7092
7159
|
column: "datetime";
|
|
7093
7160
|
interval?: "hour" | "day" | "week" | "month";
|
|
@@ -7143,6 +7210,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
7143
7210
|
column: "eventAPIOperationPath";
|
|
7144
7211
|
} | {
|
|
7145
7212
|
column: "eventAPIOperationMethod";
|
|
7213
|
+
} | {
|
|
7214
|
+
column: "eventLLMSVariant";
|
|
7146
7215
|
} | {
|
|
7147
7216
|
column: "eventSearchQuery";
|
|
7148
7217
|
} | {
|
|
@@ -7232,6 +7301,9 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
7232
7301
|
} | {
|
|
7233
7302
|
column: "siteSection";
|
|
7234
7303
|
values: (string | null)[];
|
|
7304
|
+
} | {
|
|
7305
|
+
column: "eventLLMSVariant";
|
|
7306
|
+
values: (null | SiteInsightsLLMSVariant)[];
|
|
7235
7307
|
} | {
|
|
7236
7308
|
column: "siteSpace";
|
|
7237
7309
|
values: (string | null)[];
|
|
@@ -8391,6 +8463,8 @@ export interface MergeRulesEvaluationContext {
|
|
|
8391
8463
|
/** The user who is attempting to merge the change request. */
|
|
8392
8464
|
actor: User;
|
|
8393
8465
|
}
|
|
8466
|
+
/** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
|
|
8467
|
+
export type LocalizedString = Record<TranslationLanguage, string>;
|
|
8394
8468
|
export type RequestSpaceTrackPageView = SpaceTrackPageView;
|
|
8395
8469
|
export type RequestSiteTrackPageView = SiteTrackPageView;
|
|
8396
8470
|
export type RequestPublishIntegration = PublishIntegration;
|
|
@@ -13348,6 +13422,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13348
13422
|
* @name AddSectionToGroup
|
|
13349
13423
|
* @summary Add a section to a section group
|
|
13350
13424
|
* @request POST:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections
|
|
13425
|
+
* @deprecated
|
|
13351
13426
|
* @secure
|
|
13352
13427
|
*/
|
|
13353
13428
|
addSectionToGroup: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, data: {
|
|
@@ -13361,6 +13436,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13361
13436
|
* @name RemoveSectionFromGroup
|
|
13362
13437
|
* @summary Remove a section from a section group
|
|
13363
13438
|
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections/{siteSectionId}
|
|
13439
|
+
* @deprecated
|
|
13364
13440
|
* @secure
|
|
13365
13441
|
*/
|
|
13366
13442
|
removeSectionFromGroup: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, siteSectionId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
@@ -13378,6 +13454,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13378
13454
|
spaceId: string;
|
|
13379
13455
|
title?: SiteSectionTitle | null;
|
|
13380
13456
|
icon?: Icon | null;
|
|
13457
|
+
/** ID of the section group to create the section in */
|
|
13458
|
+
siteSectionGroupId?: string;
|
|
13381
13459
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
|
|
13382
13460
|
/**
|
|
13383
13461
|
* No description
|
|
@@ -13426,6 +13504,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13426
13504
|
description?: SiteSectionDescription | null;
|
|
13427
13505
|
/** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
|
|
13428
13506
|
localizedDescription?: LocalizedSectionDescription;
|
|
13507
|
+
/** ID of the section group to move the section into. Set to null to move the section to the root of the site. */
|
|
13508
|
+
siteSectionGroupId?: string | null;
|
|
13429
13509
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSection, any>>;
|
|
13430
13510
|
/**
|
|
13431
13511
|
* No description
|
|
@@ -13577,12 +13657,60 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13577
13657
|
* No description
|
|
13578
13658
|
*
|
|
13579
13659
|
* @tags site-context
|
|
13580
|
-
* @name
|
|
13581
|
-
* @summary List all site
|
|
13582
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13660
|
+
* @name ListSiteScans
|
|
13661
|
+
* @summary List all site scans
|
|
13662
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/scans
|
|
13663
|
+
* @secure
|
|
13664
|
+
*/
|
|
13665
|
+
listSiteScans: (organizationId: EntityId, siteId: string, query?: {
|
|
13666
|
+
/** Identifier of the page results to fetch. */
|
|
13667
|
+
page?: string;
|
|
13668
|
+
/**
|
|
13669
|
+
* The number of results per page
|
|
13670
|
+
* @min 0
|
|
13671
|
+
* @max 1000
|
|
13672
|
+
*/
|
|
13673
|
+
limit?: number;
|
|
13674
|
+
/** Filter scans by associated site topic ID. */
|
|
13675
|
+
topic?: string;
|
|
13676
|
+
/** Filter scans by status. */
|
|
13677
|
+
status?: SiteScanStatus;
|
|
13678
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13679
|
+
items: SiteScan[];
|
|
13680
|
+
}, any>>;
|
|
13681
|
+
/**
|
|
13682
|
+
* No description
|
|
13683
|
+
*
|
|
13684
|
+
* @tags site-context
|
|
13685
|
+
* @name CreateSiteScan
|
|
13686
|
+
* @summary Enqueue a new site scan
|
|
13687
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/scans
|
|
13688
|
+
* @secure
|
|
13689
|
+
*/
|
|
13690
|
+
createSiteScan: (organizationId: EntityId, siteId: string, data: {
|
|
13691
|
+
/** The site topic ID to scan. */
|
|
13692
|
+
topic: string;
|
|
13693
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteScan, any>>;
|
|
13694
|
+
/**
|
|
13695
|
+
* No description
|
|
13696
|
+
*
|
|
13697
|
+
* @tags site-context
|
|
13698
|
+
* @name GetSiteScanById
|
|
13699
|
+
* @summary Get a site scan by ID
|
|
13700
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/scans/{siteScanId}
|
|
13701
|
+
* @secure
|
|
13702
|
+
*/
|
|
13703
|
+
getSiteScanById: (organizationId: EntityId, siteId: string, siteScanId: string, params?: RequestParams) => Promise<HttpResponse<SiteScan, any>>;
|
|
13704
|
+
/**
|
|
13705
|
+
* No description
|
|
13706
|
+
*
|
|
13707
|
+
* @tags site-context
|
|
13708
|
+
* @name ListSiteFindings
|
|
13709
|
+
* @summary List all site context findings
|
|
13710
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings
|
|
13583
13711
|
* @secure
|
|
13584
13712
|
*/
|
|
13585
|
-
|
|
13713
|
+
listSiteFindings: (organizationId: EntityId, siteId: string, query?: {
|
|
13586
13714
|
/** Identifier of the page results to fetch. */
|
|
13587
13715
|
page?: string;
|
|
13588
13716
|
/**
|
|
@@ -13591,49 +13719,49 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13591
13719
|
* @max 1000
|
|
13592
13720
|
*/
|
|
13593
13721
|
limit?: number;
|
|
13594
|
-
/** Filter
|
|
13722
|
+
/** Filter findings by associated site topic ID. */
|
|
13595
13723
|
topic?: string;
|
|
13596
|
-
/** Filter
|
|
13597
|
-
status?:
|
|
13598
|
-
/** Filter
|
|
13599
|
-
type?:
|
|
13600
|
-
/** Filter
|
|
13601
|
-
|
|
13724
|
+
/** Filter findings by status. */
|
|
13725
|
+
status?: SiteFindingStatus;
|
|
13726
|
+
/** Filter findings by type. */
|
|
13727
|
+
type?: SiteFindingType;
|
|
13728
|
+
/** Filter findings by estimated severity. */
|
|
13729
|
+
severity?: SiteFindingSeverity;
|
|
13602
13730
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13603
|
-
items:
|
|
13731
|
+
items: SiteFinding[];
|
|
13604
13732
|
}, any>>;
|
|
13605
13733
|
/**
|
|
13606
13734
|
* No description
|
|
13607
13735
|
*
|
|
13608
13736
|
* @tags site-context
|
|
13609
|
-
* @name
|
|
13610
|
-
* @summary Get a site
|
|
13611
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13737
|
+
* @name GetSiteFindingById
|
|
13738
|
+
* @summary Get a site finding by ID
|
|
13739
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}
|
|
13612
13740
|
* @secure
|
|
13613
13741
|
*/
|
|
13614
|
-
|
|
13742
|
+
getSiteFindingById: (organizationId: EntityId, siteId: string, siteFindingId: string, params?: RequestParams) => Promise<HttpResponse<SiteFinding, any>>;
|
|
13615
13743
|
/**
|
|
13616
13744
|
* No description
|
|
13617
13745
|
*
|
|
13618
13746
|
* @tags site-context
|
|
13619
|
-
* @name
|
|
13620
|
-
* @summary Update a site
|
|
13621
|
-
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/
|
|
13747
|
+
* @name UpdateSiteFindingById
|
|
13748
|
+
* @summary Update a site finding
|
|
13749
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}
|
|
13622
13750
|
* @secure
|
|
13623
13751
|
*/
|
|
13624
|
-
|
|
13752
|
+
updateSiteFindingById: (organizationId: EntityId, siteId: string, siteFindingId: string, data: {
|
|
13625
13753
|
status: "open" | "canceled";
|
|
13626
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
13754
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteFinding, any>>;
|
|
13627
13755
|
/**
|
|
13628
13756
|
* No description
|
|
13629
13757
|
*
|
|
13630
13758
|
* @tags site-context
|
|
13631
|
-
* @name
|
|
13632
|
-
* @summary List change requests linked to a site
|
|
13633
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13759
|
+
* @name ListChangeRequestsForSiteFinding
|
|
13760
|
+
* @summary List change requests linked to a site finding
|
|
13761
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests
|
|
13634
13762
|
* @secure
|
|
13635
13763
|
*/
|
|
13636
|
-
|
|
13764
|
+
listChangeRequestsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13637
13765
|
/** Identifier of the page results to fetch. */
|
|
13638
13766
|
page?: string;
|
|
13639
13767
|
/**
|
|
@@ -13649,22 +13777,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13649
13777
|
* No description
|
|
13650
13778
|
*
|
|
13651
13779
|
* @tags site-context
|
|
13652
|
-
* @name
|
|
13653
|
-
* @summary Process a site
|
|
13654
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/
|
|
13780
|
+
* @name TriggerChangeRequestsForSiteFinding
|
|
13781
|
+
* @summary Process a site finding into change requests
|
|
13782
|
+
* @request POST:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/change-requests
|
|
13655
13783
|
* @secure
|
|
13656
13784
|
*/
|
|
13657
|
-
|
|
13785
|
+
triggerChangeRequestsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13658
13786
|
/**
|
|
13659
13787
|
* No description
|
|
13660
13788
|
*
|
|
13661
13789
|
* @tags site-context
|
|
13662
|
-
* @name
|
|
13663
|
-
* @summary List pages linked to a site
|
|
13664
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13790
|
+
* @name ListPagesForSiteFinding
|
|
13791
|
+
* @summary List pages linked to a site finding
|
|
13792
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/pages
|
|
13665
13793
|
* @secure
|
|
13666
13794
|
*/
|
|
13667
|
-
|
|
13795
|
+
listPagesForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13668
13796
|
/** Identifier of the page results to fetch. */
|
|
13669
13797
|
page?: string;
|
|
13670
13798
|
/**
|
|
@@ -13674,18 +13802,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13674
13802
|
*/
|
|
13675
13803
|
limit?: number;
|
|
13676
13804
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13677
|
-
items:
|
|
13805
|
+
items: SiteFindingPage[];
|
|
13678
13806
|
}, any>>;
|
|
13679
13807
|
/**
|
|
13680
13808
|
* No description
|
|
13681
13809
|
*
|
|
13682
13810
|
* @tags site-context
|
|
13683
|
-
* @name
|
|
13684
|
-
* @summary List questions linked to a site
|
|
13685
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13811
|
+
* @name ListQuestionsForSiteFinding
|
|
13812
|
+
* @summary List questions linked to a site finding
|
|
13813
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/questions
|
|
13686
13814
|
* @secure
|
|
13687
13815
|
*/
|
|
13688
|
-
|
|
13816
|
+
listQuestionsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13689
13817
|
/** Identifier of the page results to fetch. */
|
|
13690
13818
|
page?: string;
|
|
13691
13819
|
/**
|
|
@@ -13701,12 +13829,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13701
13829
|
* No description
|
|
13702
13830
|
*
|
|
13703
13831
|
* @tags site-context
|
|
13704
|
-
* @name
|
|
13705
|
-
* @summary List records linked to a site
|
|
13706
|
-
* @request GET:/orgs/{organizationId}/sites/{siteId}/
|
|
13832
|
+
* @name ListRecordsForSiteFinding
|
|
13833
|
+
* @summary List records linked to a site finding
|
|
13834
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/records
|
|
13707
13835
|
* @secure
|
|
13708
13836
|
*/
|
|
13709
|
-
|
|
13837
|
+
listRecordsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13710
13838
|
/** Identifier of the page results to fetch. */
|
|
13711
13839
|
page?: string;
|
|
13712
13840
|
/**
|
|
@@ -13844,12 +13972,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13844
13972
|
* No description
|
|
13845
13973
|
*
|
|
13846
13974
|
* @tags site-context
|
|
13847
|
-
* @name
|
|
13848
|
-
* @summary Delete all
|
|
13849
|
-
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/
|
|
13975
|
+
* @name DeleteSiteTopicFindings
|
|
13976
|
+
* @summary Delete all findings for a topic
|
|
13977
|
+
* @request DELETE:/orgs/{organizationId}/sites/{siteId}/topics/{siteTopicId}/findings
|
|
13850
13978
|
* @secure
|
|
13851
13979
|
*/
|
|
13852
|
-
|
|
13980
|
+
deleteSiteTopicFindings: (organizationId: EntityId, siteId: string, siteTopicId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13853
13981
|
/**
|
|
13854
13982
|
* No description
|
|
13855
13983
|
*
|
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"];
|