@gitbook/api 0.169.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 +232 -103
- 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 +562 -108
- package/spec/openapi.yaml +379 -106
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.
|
|
@@ -4339,6 +4355,11 @@ export interface Site {
|
|
|
4339
4355
|
* @format uri
|
|
4340
4356
|
*/
|
|
4341
4357
|
preview: string;
|
|
4358
|
+
/**
|
|
4359
|
+
* URL of the login endpoint for visitors to authenticate with the site auth backend.
|
|
4360
|
+
* @format uri
|
|
4361
|
+
*/
|
|
4362
|
+
login?: string;
|
|
4342
4363
|
};
|
|
4343
4364
|
}
|
|
4344
4365
|
export type IntegrationSiteInstallation = IntegrationContentInstallationBase & {
|
|
@@ -4711,8 +4732,8 @@ export interface CreateOrganization {
|
|
|
4711
4732
|
* @maxLength 128
|
|
4712
4733
|
*/
|
|
4713
4734
|
export type SiteSectionTitle = string;
|
|
4714
|
-
/** Localized
|
|
4715
|
-
export type
|
|
4735
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
4736
|
+
export type LocalizedTitle = Record<TranslationLanguage, string>;
|
|
4716
4737
|
/**
|
|
4717
4738
|
* Description of the site section
|
|
4718
4739
|
* @minLength 0
|
|
@@ -4744,8 +4765,8 @@ export interface SiteSpace {
|
|
|
4744
4765
|
section?: string;
|
|
4745
4766
|
space: Space;
|
|
4746
4767
|
title: string;
|
|
4747
|
-
/** Localized
|
|
4748
|
-
localizedTitle?:
|
|
4768
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
4769
|
+
localizedTitle?: LocalizedTitle;
|
|
4749
4770
|
/** Whether this is the default space for the site */
|
|
4750
4771
|
default?: boolean;
|
|
4751
4772
|
/** Conditional expression used to evaluate whether the site space should be shown to the site's visitor. */
|
|
@@ -4770,8 +4791,8 @@ export interface SiteSection {
|
|
|
4770
4791
|
id: string;
|
|
4771
4792
|
/** Title of the site section */
|
|
4772
4793
|
title: SiteSectionTitle;
|
|
4773
|
-
/** Localized
|
|
4774
|
-
localizedTitle?:
|
|
4794
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
4795
|
+
localizedTitle?: LocalizedTitle;
|
|
4775
4796
|
/** Description of the site section */
|
|
4776
4797
|
description?: SiteSectionDescription;
|
|
4777
4798
|
/** Localized section description value, keyed by locale. Contains overrides for non-default languages only. */
|
|
@@ -4809,8 +4830,8 @@ export interface SiteSectionGroup {
|
|
|
4809
4830
|
id: string;
|
|
4810
4831
|
/** Title of the site section group */
|
|
4811
4832
|
title: SiteSectionGroupTitle;
|
|
4812
|
-
/** Localized
|
|
4813
|
-
localizedTitle?:
|
|
4833
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
4834
|
+
localizedTitle?: LocalizedTitle;
|
|
4814
4835
|
/**
|
|
4815
4836
|
* List of site section ids that are members of the group. Use `children` instead.
|
|
4816
4837
|
* @deprecated
|
|
@@ -5001,13 +5022,17 @@ export interface UpgradeOrganizationBilling {
|
|
|
5001
5022
|
reason?: string;
|
|
5002
5023
|
/** Coupon or promotion code to apply to the subscription */
|
|
5003
5024
|
coupon?: BillingCoupon;
|
|
5004
|
-
/**
|
|
5005
|
-
|
|
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[];
|
|
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 */
|
|
5028
|
+
mode?: "commit" | "preview";
|
|
5006
5029
|
}
|
|
5007
5030
|
export interface BillingInvoicePreview {
|
|
5008
|
-
/**
|
|
5031
|
+
/** Final total owed for this invoice after discounts and credits. */
|
|
5009
5032
|
amount: number;
|
|
5010
|
-
/**
|
|
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. */
|
|
5011
5036
|
amountDueToday: number;
|
|
5012
5037
|
/** Current balance, if any, being stored on the customer. If positive, the customer has credit to apply to their next invoice. */
|
|
5013
5038
|
customerBalance: number;
|
|
@@ -5641,6 +5666,8 @@ export interface SiteAdaptiveTemplateCondition {
|
|
|
5641
5666
|
/** The suggested condition. */
|
|
5642
5667
|
condition: string;
|
|
5643
5668
|
}
|
|
5669
|
+
/** Localized string value, keyed by locale. Contains overrides for non-default languages only. */
|
|
5670
|
+
export type LocalizedString = object;
|
|
5644
5671
|
/** @pattern ^#(?:[0-9a-fA-F]{3}){1,2}$ */
|
|
5645
5672
|
export type Color = string;
|
|
5646
5673
|
export interface CustomizationThemedColor {
|
|
@@ -5727,6 +5754,8 @@ export type SiteSocialAccounts = SiteSocialAccount[];
|
|
|
5727
5754
|
export interface SiteCustomizationSettingsBase {
|
|
5728
5755
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
5729
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;
|
|
5730
5759
|
styling: {
|
|
5731
5760
|
/**
|
|
5732
5761
|
* The theme to apply to the site. Supercedes the old header preset themes.
|
|
@@ -6080,55 +6109,87 @@ export interface ContextRecordInput {
|
|
|
6080
6109
|
createdAt?: Timestamp;
|
|
6081
6110
|
metadata?: Record<string, string | number>;
|
|
6082
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
|
+
}
|
|
6083
6142
|
/**
|
|
6084
|
-
* Short
|
|
6143
|
+
* Short finding title
|
|
6085
6144
|
* @maxLength 256
|
|
6086
6145
|
*/
|
|
6087
|
-
export type
|
|
6088
|
-
export interface
|
|
6089
|
-
object: "site-
|
|
6090
|
-
/** The ID of the
|
|
6146
|
+
export type SiteFindingTitle = string;
|
|
6147
|
+
export interface SiteFinding {
|
|
6148
|
+
object: "site-finding";
|
|
6149
|
+
/** The ID of the finding */
|
|
6091
6150
|
id: string;
|
|
6092
|
-
/** The site
|
|
6151
|
+
/** The site scan ID associated with the finding */
|
|
6152
|
+
scan: string;
|
|
6153
|
+
/** The site topic ID associated with the finding */
|
|
6093
6154
|
topic: string;
|
|
6094
|
-
/** Short
|
|
6095
|
-
title:
|
|
6096
|
-
/** Number of change requests linked to the
|
|
6155
|
+
/** Short finding title */
|
|
6156
|
+
title: SiteFindingTitle;
|
|
6157
|
+
/** Number of change requests linked to the finding */
|
|
6097
6158
|
changeRequests: number;
|
|
6098
|
-
/** Number of pages linked to the
|
|
6159
|
+
/** Number of pages linked to the finding */
|
|
6099
6160
|
pages: number;
|
|
6100
|
-
/** Number of records linked to the
|
|
6161
|
+
/** Number of records linked to the finding */
|
|
6101
6162
|
records: number;
|
|
6102
|
-
/** Number of questions linked to the
|
|
6163
|
+
/** Number of questions linked to the finding */
|
|
6103
6164
|
questions: number;
|
|
6104
|
-
/** Status of a site
|
|
6105
|
-
status:
|
|
6165
|
+
/** Status of a site finding. */
|
|
6166
|
+
status: SiteFindingStatus;
|
|
6106
6167
|
/**
|
|
6107
|
-
* Classification of a site
|
|
6168
|
+
* Classification of a site finding:
|
|
6108
6169
|
* - Outdated content: The content is no longer up to date with external context and may be misleading or incorrect.
|
|
6109
6170
|
* - Incoherent content: The content contains information that is inconsistent or contradictory.
|
|
6110
6171
|
* - Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
6111
|
-
* - Other: Any other type of
|
|
6172
|
+
* - Other: Any other type of finding not covered by the above categories.
|
|
6112
6173
|
*/
|
|
6113
|
-
type:
|
|
6114
|
-
/** Estimated end-user
|
|
6115
|
-
|
|
6174
|
+
type: SiteFindingType;
|
|
6175
|
+
/** Estimated end-user severity of a site finding. */
|
|
6176
|
+
severity: SiteFindingSeverity;
|
|
6116
6177
|
description: JSONDocument;
|
|
6117
|
-
/** Whether an AI agent should be able to fix this
|
|
6178
|
+
/** Whether an AI agent should be able to fix this finding directly */
|
|
6118
6179
|
autoFixable: boolean;
|
|
6119
6180
|
createdAt: Timestamp;
|
|
6120
6181
|
updatedAt: Timestamp;
|
|
6121
|
-
/** URLs associated with the
|
|
6182
|
+
/** URLs associated with the finding */
|
|
6122
6183
|
urls: {
|
|
6123
6184
|
/**
|
|
6124
|
-
* URL of the
|
|
6185
|
+
* URL of the finding list endpoint in the API
|
|
6125
6186
|
* @format uri
|
|
6126
6187
|
*/
|
|
6127
6188
|
location: string;
|
|
6128
6189
|
};
|
|
6129
6190
|
}
|
|
6130
|
-
export interface
|
|
6131
|
-
object: "site-
|
|
6191
|
+
export interface SiteFindingPage {
|
|
6192
|
+
object: "site-finding-page";
|
|
6132
6193
|
/** The space ID containing the linked page. */
|
|
6133
6194
|
spaceId: string;
|
|
6134
6195
|
page: ChangedRevisionPage;
|
|
@@ -6962,7 +7023,7 @@ export interface SiteInsightsEventLocation {
|
|
|
6962
7023
|
/** URL of the location. */
|
|
6963
7024
|
url: URL;
|
|
6964
7025
|
/**
|
|
6965
|
-
* 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.
|
|
6966
7027
|
* @default "site"
|
|
6967
7028
|
*/
|
|
6968
7029
|
displayContext?: SiteInsightsDisplayContext;
|
|
@@ -6990,6 +7051,9 @@ export interface SiteInsightsEventBase {
|
|
|
6990
7051
|
export type SiteInsightsEventPageView = SiteInsightsEventBase & {
|
|
6991
7052
|
type: "page_view";
|
|
6992
7053
|
};
|
|
7054
|
+
export type SiteInsightsEventPageMarkdownRequest = SiteInsightsEventBase & {
|
|
7055
|
+
type: "page_markdown_request";
|
|
7056
|
+
};
|
|
6993
7057
|
export type SiteInsightsEventSearchOpen = SiteInsightsEventBase & {
|
|
6994
7058
|
type: "search_open";
|
|
6995
7059
|
};
|
|
@@ -7082,7 +7146,17 @@ export type SiteInsightsEventAdDisplay = SiteInsightsEventBase & {
|
|
|
7082
7146
|
type: "ad_display";
|
|
7083
7147
|
ad: SiteInsightsAd;
|
|
7084
7148
|
};
|
|
7085
|
-
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;
|
|
7086
7160
|
export interface SiteInsightsQueryDateTimeColumn {
|
|
7087
7161
|
column: "datetime";
|
|
7088
7162
|
interval?: "hour" | "day" | "week" | "month";
|
|
@@ -7138,6 +7212,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
7138
7212
|
column: "eventAPIOperationPath";
|
|
7139
7213
|
} | {
|
|
7140
7214
|
column: "eventAPIOperationMethod";
|
|
7215
|
+
} | {
|
|
7216
|
+
column: "eventLLMSVariant";
|
|
7141
7217
|
} | {
|
|
7142
7218
|
column: "eventSearchQuery";
|
|
7143
7219
|
} | {
|
|
@@ -7227,6 +7303,9 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
7227
7303
|
} | {
|
|
7228
7304
|
column: "siteSection";
|
|
7229
7305
|
values: (string | null)[];
|
|
7306
|
+
} | {
|
|
7307
|
+
column: "eventLLMSVariant";
|
|
7308
|
+
values: (null | SiteInsightsLLMSVariant)[];
|
|
7230
7309
|
} | {
|
|
7231
7310
|
column: "siteSpace";
|
|
7232
7311
|
values: (string | null)[];
|
|
@@ -13322,8 +13401,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13322
13401
|
updateSiteSectionGroupById: (organizationId: EntityId, siteId: string, siteSectionGroupId: string, data: {
|
|
13323
13402
|
/** Title of the site section group */
|
|
13324
13403
|
title?: SiteSectionGroupTitle;
|
|
13325
|
-
/** Localized
|
|
13326
|
-
localizedTitle?:
|
|
13404
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
13405
|
+
localizedTitle?: LocalizedTitle;
|
|
13327
13406
|
icon?: Icon | null;
|
|
13328
13407
|
}, params?: RequestParams) => Promise<HttpResponse<SiteSectionGroup, any>>;
|
|
13329
13408
|
/**
|
|
@@ -13409,8 +13488,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13409
13488
|
updateSiteSectionById: (organizationId: EntityId, siteId: string, siteSectionId: string, data: {
|
|
13410
13489
|
/** Title of the site section */
|
|
13411
13490
|
title?: SiteSectionTitle;
|
|
13412
|
-
/** Localized
|
|
13413
|
-
localizedTitle?:
|
|
13491
|
+
/** Localized title value, keyed by locale. Contains overrides for non-default languages only. */
|
|
13492
|
+
localizedTitle?: LocalizedTitle;
|
|
13414
13493
|
/** Path to the section on the site */
|
|
13415
13494
|
path?: SiteSectionPath;
|
|
13416
13495
|
/** ID of the site-space to be used as the default in this section. */
|
|
@@ -13572,12 +13651,60 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13572
13651
|
* No description
|
|
13573
13652
|
*
|
|
13574
13653
|
* @tags site-context
|
|
13575
|
-
* @name
|
|
13576
|
-
* @summary List all site
|
|
13577
|
-
* @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
|
|
13578
13682
|
* @secure
|
|
13579
13683
|
*/
|
|
13580
|
-
|
|
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
|
|
13705
|
+
* @secure
|
|
13706
|
+
*/
|
|
13707
|
+
listSiteFindings: (organizationId: EntityId, siteId: string, query?: {
|
|
13581
13708
|
/** Identifier of the page results to fetch. */
|
|
13582
13709
|
page?: string;
|
|
13583
13710
|
/**
|
|
@@ -13586,49 +13713,49 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13586
13713
|
* @max 1000
|
|
13587
13714
|
*/
|
|
13588
13715
|
limit?: number;
|
|
13589
|
-
/** Filter
|
|
13716
|
+
/** Filter findings by associated site topic ID. */
|
|
13590
13717
|
topic?: string;
|
|
13591
|
-
/** Filter
|
|
13592
|
-
status?:
|
|
13593
|
-
/** Filter
|
|
13594
|
-
type?:
|
|
13595
|
-
/** Filter
|
|
13596
|
-
|
|
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;
|
|
13597
13724
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13598
|
-
items:
|
|
13725
|
+
items: SiteFinding[];
|
|
13599
13726
|
}, any>>;
|
|
13600
13727
|
/**
|
|
13601
13728
|
* No description
|
|
13602
13729
|
*
|
|
13603
13730
|
* @tags site-context
|
|
13604
|
-
* @name
|
|
13605
|
-
* @summary Get a site
|
|
13606
|
-
* @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}
|
|
13607
13734
|
* @secure
|
|
13608
13735
|
*/
|
|
13609
|
-
|
|
13736
|
+
getSiteFindingById: (organizationId: EntityId, siteId: string, siteFindingId: string, params?: RequestParams) => Promise<HttpResponse<SiteFinding, any>>;
|
|
13610
13737
|
/**
|
|
13611
13738
|
* No description
|
|
13612
13739
|
*
|
|
13613
13740
|
* @tags site-context
|
|
13614
|
-
* @name
|
|
13615
|
-
* @summary Update a site
|
|
13616
|
-
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/
|
|
13741
|
+
* @name UpdateSiteFindingById
|
|
13742
|
+
* @summary Update a site finding
|
|
13743
|
+
* @request PATCH:/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}
|
|
13617
13744
|
* @secure
|
|
13618
13745
|
*/
|
|
13619
|
-
|
|
13746
|
+
updateSiteFindingById: (organizationId: EntityId, siteId: string, siteFindingId: string, data: {
|
|
13620
13747
|
status: "open" | "canceled";
|
|
13621
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
13748
|
+
}, params?: RequestParams) => Promise<HttpResponse<SiteFinding, any>>;
|
|
13622
13749
|
/**
|
|
13623
13750
|
* No description
|
|
13624
13751
|
*
|
|
13625
13752
|
* @tags site-context
|
|
13626
|
-
* @name
|
|
13627
|
-
* @summary List change requests linked to a site
|
|
13628
|
-
* @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
|
|
13629
13756
|
* @secure
|
|
13630
13757
|
*/
|
|
13631
|
-
|
|
13758
|
+
listChangeRequestsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13632
13759
|
/** Identifier of the page results to fetch. */
|
|
13633
13760
|
page?: string;
|
|
13634
13761
|
/**
|
|
@@ -13644,22 +13771,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13644
13771
|
* No description
|
|
13645
13772
|
*
|
|
13646
13773
|
* @tags site-context
|
|
13647
|
-
* @name
|
|
13648
|
-
* @summary Process a site
|
|
13649
|
-
* @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
|
|
13650
13777
|
* @secure
|
|
13651
13778
|
*/
|
|
13652
|
-
|
|
13779
|
+
triggerChangeRequestsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13653
13780
|
/**
|
|
13654
13781
|
* No description
|
|
13655
13782
|
*
|
|
13656
13783
|
* @tags site-context
|
|
13657
|
-
* @name
|
|
13658
|
-
* @summary List pages linked to a site
|
|
13659
|
-
* @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
|
|
13660
13787
|
* @secure
|
|
13661
13788
|
*/
|
|
13662
|
-
|
|
13789
|
+
listPagesForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13663
13790
|
/** Identifier of the page results to fetch. */
|
|
13664
13791
|
page?: string;
|
|
13665
13792
|
/**
|
|
@@ -13669,18 +13796,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13669
13796
|
*/
|
|
13670
13797
|
limit?: number;
|
|
13671
13798
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
13672
|
-
items:
|
|
13799
|
+
items: SiteFindingPage[];
|
|
13673
13800
|
}, any>>;
|
|
13674
13801
|
/**
|
|
13675
13802
|
* No description
|
|
13676
13803
|
*
|
|
13677
13804
|
* @tags site-context
|
|
13678
|
-
* @name
|
|
13679
|
-
* @summary List questions linked to a site
|
|
13680
|
-
* @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
|
|
13681
13808
|
* @secure
|
|
13682
13809
|
*/
|
|
13683
|
-
|
|
13810
|
+
listQuestionsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13684
13811
|
/** Identifier of the page results to fetch. */
|
|
13685
13812
|
page?: string;
|
|
13686
13813
|
/**
|
|
@@ -13696,12 +13823,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13696
13823
|
* No description
|
|
13697
13824
|
*
|
|
13698
13825
|
* @tags site-context
|
|
13699
|
-
* @name
|
|
13700
|
-
* @summary List records linked to a site
|
|
13701
|
-
* @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
|
|
13702
13829
|
* @secure
|
|
13703
13830
|
*/
|
|
13704
|
-
|
|
13831
|
+
listRecordsForSiteFinding: (organizationId: EntityId, siteId: string, siteFindingId: string, query?: {
|
|
13705
13832
|
/** Identifier of the page results to fetch. */
|
|
13706
13833
|
page?: string;
|
|
13707
13834
|
/**
|
|
@@ -13839,12 +13966,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13839
13966
|
* No description
|
|
13840
13967
|
*
|
|
13841
13968
|
* @tags site-context
|
|
13842
|
-
* @name
|
|
13843
|
-
* @summary Delete all
|
|
13844
|
-
* @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
|
|
13845
13972
|
* @secure
|
|
13846
13973
|
*/
|
|
13847
|
-
|
|
13974
|
+
deleteSiteTopicFindings: (organizationId: EntityId, siteId: string, siteTopicId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13848
13975
|
/**
|
|
13849
13976
|
* No description
|
|
13850
13977
|
*
|
|
@@ -13863,6 +13990,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13863
13990
|
type?: SiteQuestionType;
|
|
13864
13991
|
/** Filter questions by answer resolution. */
|
|
13865
13992
|
answered?: SiteQuestionAnswerResolution;
|
|
13993
|
+
/** Filter questions by associated site topic ID. */
|
|
13994
|
+
topic?: string;
|
|
13866
13995
|
/** Identifier of the page results to fetch. */
|
|
13867
13996
|
page?: string;
|
|
13868
13997
|
/**
|
|
@@ -14067,7 +14196,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14067
14196
|
/** 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. */
|
|
14068
14197
|
title?: SiteTitle | null;
|
|
14069
14198
|
/** Localized titles for the site variant, keyed by locale. If not defined, the localized title will not be changed. If set to null, all localized titles will be removed. */
|
|
14070
|
-
localizedTitle?:
|
|
14199
|
+
localizedTitle?: LocalizedTitle | null;
|
|
14071
14200
|
styling?: {
|
|
14072
14201
|
/** The site theme. Set to null to reset the override. */
|
|
14073
14202
|
theme?: CustomizationTheme | null;
|