@gitbook/api 0.163.0 → 0.165.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 +145 -407
- package/dist/constants.d.ts +7 -7
- package/dist/index.cjs +38 -104
- package/dist/index.js +36 -100
- package/package.json +1 -1
- package/spec/openapi.json +657 -1299
- package/spec/openapi.yaml +276 -693
package/dist/client.d.ts
CHANGED
|
@@ -407,6 +407,8 @@ export interface SearchPageResult {
|
|
|
407
407
|
id: string;
|
|
408
408
|
title: string;
|
|
409
409
|
path: string;
|
|
410
|
+
/** Aggregated relevance score for the page. */
|
|
411
|
+
score: number;
|
|
410
412
|
sections?: SearchSectionResult[];
|
|
411
413
|
/** Data about the ancestors of the current page, from top-level to direct parent. */
|
|
412
414
|
ancestors: {
|
|
@@ -677,13 +679,20 @@ export interface ContentRefReusableContent {
|
|
|
677
679
|
/** The space in which the reusable content is defined. If undefined, the reusable content is assumed to be in the same space as the content reference. */
|
|
678
680
|
space?: string;
|
|
679
681
|
}
|
|
682
|
+
export interface ContentRefTag {
|
|
683
|
+
kind: 'tag';
|
|
684
|
+
/** The slug of the tag, also used as the ID, and references the tags defined on a revision. */
|
|
685
|
+
tag: string;
|
|
686
|
+
/** The space in which the tag is defined. If undefined, the tag is assumed to be in the same space as the content reference. */
|
|
687
|
+
space?: string;
|
|
688
|
+
}
|
|
680
689
|
export interface ContentRefOpenAPI {
|
|
681
690
|
kind: 'openapi';
|
|
682
691
|
/** Slug of the OpenAPI specification */
|
|
683
692
|
spec: string;
|
|
684
693
|
}
|
|
685
694
|
/** A relative reference to content in GitBook. */
|
|
686
|
-
export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefReusableContent | ContentRefOpenAPI;
|
|
695
|
+
export type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace | ContentRefReusableContent | ContentRefTag | ContentRefOpenAPI;
|
|
687
696
|
export interface DocumentInlineLink {
|
|
688
697
|
object: 'inline';
|
|
689
698
|
type: 'link';
|
|
@@ -1009,7 +1018,7 @@ export interface DocumentBlockDivider {
|
|
|
1009
1018
|
isVoid: true;
|
|
1010
1019
|
data: object;
|
|
1011
1020
|
}
|
|
1012
|
-
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockIf;
|
|
1021
|
+
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockIf | DocumentBlockColumns;
|
|
1013
1022
|
export interface DocumentBlockIf {
|
|
1014
1023
|
object: 'block';
|
|
1015
1024
|
type: 'if';
|
|
@@ -1320,13 +1329,6 @@ export interface DocumentBlockColumns {
|
|
|
1320
1329
|
nodes: DocumentBlockColumn[];
|
|
1321
1330
|
isVoid: false;
|
|
1322
1331
|
}
|
|
1323
|
-
export interface ContentRefTag {
|
|
1324
|
-
kind: 'tag';
|
|
1325
|
-
/** The slug of the tag, also used as the ID, and references the tags defined on a revision. */
|
|
1326
|
-
tag: string;
|
|
1327
|
-
/** The space in which the tag is defined. If undefined, the tag is assumed to be in the same space as the content reference. */
|
|
1328
|
-
space?: string;
|
|
1329
|
-
}
|
|
1330
1332
|
export interface DocumentBlockUpdate {
|
|
1331
1333
|
object: 'block';
|
|
1332
1334
|
type: 'update';
|
|
@@ -1813,8 +1815,6 @@ export interface ChangeRequest {
|
|
|
1813
1815
|
comments: number;
|
|
1814
1816
|
/** If true, the change request is not up-to-date with latest changes in the main content. */
|
|
1815
1817
|
outdated: boolean;
|
|
1816
|
-
/** ID of the conversations issues cluster associated with this change request. */
|
|
1817
|
-
conversationsIssuesCluster?: string;
|
|
1818
1818
|
/** URLs associated with the object */
|
|
1819
1819
|
urls: {
|
|
1820
1820
|
/**
|
|
@@ -1954,6 +1954,11 @@ export interface OrganizationBilling {
|
|
|
1954
1954
|
endDate: Timestamp | null;
|
|
1955
1955
|
/** If true, we were unable to collect the last payment */
|
|
1956
1956
|
hasPaymentFailed: boolean;
|
|
1957
|
+
/**
|
|
1958
|
+
* If true, organization can create a checkout session to subscribe/update billing.
|
|
1959
|
+
* If false, organization must resolve other billing issues before a checkout can be done.
|
|
1960
|
+
*/
|
|
1961
|
+
canCheckout: boolean;
|
|
1957
1962
|
/** If true, the billing is set to cancel at the end of its current period */
|
|
1958
1963
|
isScheduledToCancel: boolean;
|
|
1959
1964
|
/** Pricing information for the organization */
|
|
@@ -1964,8 +1969,20 @@ export interface OrganizationBilling {
|
|
|
1964
1969
|
minUsers?: number;
|
|
1965
1970
|
/** The maximum number of members allowed for this organization */
|
|
1966
1971
|
maxUsers?: number;
|
|
1972
|
+
/** The minimum number of premium sites allowed for this organization. */
|
|
1973
|
+
minPremiumSites?: number;
|
|
1974
|
+
/** The maximum number of premium sites allowed for this organization. */
|
|
1975
|
+
maxPremiumSites?: number;
|
|
1976
|
+
/** The minimum number of ultimate sites allowed for this organization. */
|
|
1977
|
+
minUltimateSites?: number;
|
|
1978
|
+
/** The maximum number of ultimate sites allowed for this organization. */
|
|
1979
|
+
maxUltimateSites?: number;
|
|
1967
1980
|
/** The number of paid members on the current subscription. */
|
|
1968
1981
|
paidMembers?: number;
|
|
1982
|
+
/** The number of paid premium sites on the current subscription. */
|
|
1983
|
+
paidPremiumSites?: number;
|
|
1984
|
+
/** The number of paid ultimate sites on the current subscription. */
|
|
1985
|
+
paidUltimateSites?: number;
|
|
1969
1986
|
}
|
|
1970
1987
|
/** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
|
|
1971
1988
|
export declare enum BillingTrialStatus {
|
|
@@ -2072,8 +2089,6 @@ export interface Organization {
|
|
|
2072
2089
|
createContent: boolean;
|
|
2073
2090
|
/** Can the user create new OpenAPI specifications. */
|
|
2074
2091
|
createOpenAPISpec: boolean;
|
|
2075
|
-
/** Can the user ingest conversations in the organization. */
|
|
2076
|
-
ingestConversations: boolean;
|
|
2077
2092
|
/** Can the user view the billing details of the organization. */
|
|
2078
2093
|
viewBilling: boolean;
|
|
2079
2094
|
/** Can the user list the members of the organization. */
|
|
@@ -2789,9 +2804,9 @@ export declare enum IntegrationScope {
|
|
|
2789
2804
|
SiteVisitorAuth = "site:visitor:auth",
|
|
2790
2805
|
SiteAdaptiveRead = "site:adaptive:read",
|
|
2791
2806
|
SiteAdaptiveWrite = "site:adaptive:write",
|
|
2807
|
+
ConversationsIngest = "conversations:ingest",
|
|
2792
2808
|
OpenapiRead = "openapi:read",
|
|
2793
|
-
OpenapiWrite = "openapi:write"
|
|
2794
|
-
ConversationsIngest = "conversations:ingest"
|
|
2809
|
+
OpenapiWrite = "openapi:write"
|
|
2795
2810
|
}
|
|
2796
2811
|
/** Permissions that should be granted to the integration */
|
|
2797
2812
|
export type IntegrationScopes = IntegrationScope[];
|
|
@@ -3564,15 +3579,6 @@ export type SiteAds = {
|
|
|
3564
3579
|
/** The ad network zone ID */
|
|
3565
3580
|
zoneId: string;
|
|
3566
3581
|
};
|
|
3567
|
-
/**
|
|
3568
|
-
* Defines if the site will be included in the agent's context.
|
|
3569
|
-
* - `excluded` means that the agent will not be able to access the site.
|
|
3570
|
-
* - `included` means that the agent will be able to access the site.
|
|
3571
|
-
*/
|
|
3572
|
-
export declare enum SiteAgentsContext {
|
|
3573
|
-
Excluded = "excluded",
|
|
3574
|
-
Included = "included"
|
|
3575
|
-
}
|
|
3576
3582
|
/** The site feature identifier */
|
|
3577
3583
|
export declare enum SiteFeatureKey {
|
|
3578
3584
|
SitesAdaptiveContent = "sites-adaptive-content",
|
|
@@ -3659,12 +3665,6 @@ export interface Site {
|
|
|
3659
3665
|
createdAt: string;
|
|
3660
3666
|
adaptiveContent?: SiteAdaptiveContent;
|
|
3661
3667
|
ads?: SiteAds;
|
|
3662
|
-
/**
|
|
3663
|
-
* Defines if the site will be included in the agent's context.
|
|
3664
|
-
* - `excluded` means that the agent will not be able to access the site.
|
|
3665
|
-
* - `included` means that the agent will be able to access the site.
|
|
3666
|
-
*/
|
|
3667
|
-
agentsContext: SiteAgentsContext;
|
|
3668
3668
|
/** A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified. */
|
|
3669
3669
|
features: SiteFeature[];
|
|
3670
3670
|
/** URLs associated with the object */
|
|
@@ -4346,6 +4346,12 @@ export interface SubscriptionChanges {
|
|
|
4346
4346
|
isPublished: boolean;
|
|
4347
4347
|
})[];
|
|
4348
4348
|
}
|
|
4349
|
+
/**
|
|
4350
|
+
* Coupon or promotion code to apply to billing operations.
|
|
4351
|
+
* @minLength 1
|
|
4352
|
+
* @maxLength 500
|
|
4353
|
+
*/
|
|
4354
|
+
export type BillingCoupon = string;
|
|
4349
4355
|
export interface UpgradeOrganizationBilling {
|
|
4350
4356
|
/** Name of the product */
|
|
4351
4357
|
product: BillingProduct;
|
|
@@ -4355,6 +4361,8 @@ export interface UpgradeOrganizationBilling {
|
|
|
4355
4361
|
changes?: SubscriptionChanges;
|
|
4356
4362
|
/** Reason that triggered the billing upgrade */
|
|
4357
4363
|
reason?: string;
|
|
4364
|
+
/** Coupon or promotion code to apply to the subscription */
|
|
4365
|
+
coupon?: BillingCoupon;
|
|
4358
4366
|
/** Mode to use for the upgrade (default value is `commit`): - `auto`: user is redirect to checkout if possible, other a preview of the auto-upgrade is returned. - `commit`: a checkout session is returned or an auto-upgrade is done - `preview`: a preview invoice is always returned */
|
|
4359
4367
|
mode?: 'auto' | 'commit' | 'preview';
|
|
4360
4368
|
}
|
|
@@ -4374,13 +4382,13 @@ export interface BillingInvoicePreview {
|
|
|
4374
4382
|
periodStart: Timestamp;
|
|
4375
4383
|
periodEnd: Timestamp;
|
|
4376
4384
|
}[];
|
|
4377
|
-
/**
|
|
4378
|
-
|
|
4379
|
-
/** The
|
|
4385
|
+
/** Discounts applied to the subscription. */
|
|
4386
|
+
discounts?: {
|
|
4387
|
+
/** The description of the applied discount. */
|
|
4380
4388
|
description: string;
|
|
4381
|
-
/** The
|
|
4389
|
+
/** The amount of the applied discount. */
|
|
4382
4390
|
amount: number;
|
|
4383
|
-
};
|
|
4391
|
+
}[];
|
|
4384
4392
|
}
|
|
4385
4393
|
export type BillingUpgrade = {
|
|
4386
4394
|
result: 'checkout';
|
|
@@ -4433,7 +4441,6 @@ export declare enum BillingSwitchAction {
|
|
|
4433
4441
|
Upgrade = "upgrade",
|
|
4434
4442
|
UpgradePassive = "upgrade_passive",
|
|
4435
4443
|
Downgrade = "downgrade",
|
|
4436
|
-
UndoCancel = "undo_cancel",
|
|
4437
4444
|
SwitchInterval = "switch_interval"
|
|
4438
4445
|
}
|
|
4439
4446
|
/** Identifier of a billing meter */
|
|
@@ -4458,6 +4465,8 @@ export interface SearchSpaceResult {
|
|
|
4458
4465
|
type: 'space';
|
|
4459
4466
|
id: string;
|
|
4460
4467
|
title: string;
|
|
4468
|
+
/** Aggregated relevance score for the space. */
|
|
4469
|
+
score: number;
|
|
4461
4470
|
pages: SearchPageResult[];
|
|
4462
4471
|
}
|
|
4463
4472
|
export type CreateSpace = {
|
|
@@ -4734,173 +4743,6 @@ export interface OpenAPISpecContent {
|
|
|
4734
4743
|
filesystem: object;
|
|
4735
4744
|
url: URL;
|
|
4736
4745
|
}
|
|
4737
|
-
/**
|
|
4738
|
-
* Estimated end-user impact of a conversation issue.
|
|
4739
|
-
*
|
|
4740
|
-
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4741
|
-
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4742
|
-
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4743
|
-
*/
|
|
4744
|
-
export declare enum ConversationIssueImpact {
|
|
4745
|
-
Low = "low",
|
|
4746
|
-
Medium = "medium",
|
|
4747
|
-
High = "high"
|
|
4748
|
-
}
|
|
4749
|
-
export interface ConversationsIssuesCluster {
|
|
4750
|
-
object: 'issues-cluster';
|
|
4751
|
-
/** The ID of the conversations issues cluster */
|
|
4752
|
-
id: string;
|
|
4753
|
-
/** The label of the conversations issues cluster */
|
|
4754
|
-
label: string;
|
|
4755
|
-
createdAt: Timestamp;
|
|
4756
|
-
updatedAt: Timestamp;
|
|
4757
|
-
/** Name of the icon */
|
|
4758
|
-
icon: Icon;
|
|
4759
|
-
summary: JSONDocument;
|
|
4760
|
-
/** Whether the cluster is muted for change request creation */
|
|
4761
|
-
muted: boolean;
|
|
4762
|
-
/**
|
|
4763
|
-
* Estimated end-user impact of a conversation issue.
|
|
4764
|
-
*
|
|
4765
|
-
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4766
|
-
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4767
|
-
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4768
|
-
*/
|
|
4769
|
-
impact: ConversationIssueImpact;
|
|
4770
|
-
/**
|
|
4771
|
-
* The weekly pulse of the conversations issues cluster for the past 3 months
|
|
4772
|
-
* @maxItems 13
|
|
4773
|
-
* @minItems 13
|
|
4774
|
-
*/
|
|
4775
|
-
weeklyPulse: number[];
|
|
4776
|
-
sources: Record<string, number>;
|
|
4777
|
-
/** The stats of the conversations issues cluster */
|
|
4778
|
-
stats: {
|
|
4779
|
-
/** The number of issues in the conversations issues cluster */
|
|
4780
|
-
issues: number;
|
|
4781
|
-
/** The number of conversations in the conversations issues cluster */
|
|
4782
|
-
conversations: number;
|
|
4783
|
-
};
|
|
4784
|
-
/** URLs associated with the conversations issues cluster */
|
|
4785
|
-
urls: {
|
|
4786
|
-
/**
|
|
4787
|
-
* URL of the conversations issues cluster in the API
|
|
4788
|
-
* @format uri
|
|
4789
|
-
*/
|
|
4790
|
-
location: string;
|
|
4791
|
-
};
|
|
4792
|
-
}
|
|
4793
|
-
/** Integration source */
|
|
4794
|
-
export type ConversationSource = string | 'email';
|
|
4795
|
-
export interface Conversation {
|
|
4796
|
-
object: 'conversation';
|
|
4797
|
-
/** The ID of the conversation */
|
|
4798
|
-
id: string;
|
|
4799
|
-
/** The subject of the conversation */
|
|
4800
|
-
subject?: string;
|
|
4801
|
-
createdAt: Timestamp;
|
|
4802
|
-
processedAt?: Timestamp;
|
|
4803
|
-
/** Integration source */
|
|
4804
|
-
source: ConversationSource;
|
|
4805
|
-
/**
|
|
4806
|
-
* Estimated end-user impact of a conversation issue.
|
|
4807
|
-
*
|
|
4808
|
-
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4809
|
-
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4810
|
-
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4811
|
-
*/
|
|
4812
|
-
impact: ConversationIssueImpact;
|
|
4813
|
-
/** URLs associated with the conversation */
|
|
4814
|
-
urls: {
|
|
4815
|
-
/**
|
|
4816
|
-
* URL of the conversation in the API
|
|
4817
|
-
* @format uri
|
|
4818
|
-
*/
|
|
4819
|
-
location: string;
|
|
4820
|
-
/**
|
|
4821
|
-
* URL of the conversation in the source
|
|
4822
|
-
* @format uri
|
|
4823
|
-
*/
|
|
4824
|
-
source?: string;
|
|
4825
|
-
};
|
|
4826
|
-
}
|
|
4827
|
-
export interface ConversationMetadata {
|
|
4828
|
-
/** URL to the conversation */
|
|
4829
|
-
url?: string;
|
|
4830
|
-
attributes?: Record<string, string>;
|
|
4831
|
-
/** Date of the conversation creation */
|
|
4832
|
-
createdAt?: Timestamp;
|
|
4833
|
-
}
|
|
4834
|
-
/** A message posted in the conversation by a user or a team member. */
|
|
4835
|
-
export interface ConversationPartMessage {
|
|
4836
|
-
type: 'message';
|
|
4837
|
-
role: 'user' | 'assistant' | 'team-member';
|
|
4838
|
-
/** Markdown or HTML body of the message. */
|
|
4839
|
-
body: string;
|
|
4840
|
-
}
|
|
4841
|
-
export type ConversationPart = ConversationPartMessage;
|
|
4842
|
-
export interface ConversationInput {
|
|
4843
|
-
/**
|
|
4844
|
-
* The unique identifier for the conversation, relative to the source in which it was created.
|
|
4845
|
-
* @minLength 1
|
|
4846
|
-
* @maxLength 255
|
|
4847
|
-
*/
|
|
4848
|
-
id: string;
|
|
4849
|
-
metadata?: ConversationMetadata;
|
|
4850
|
-
/**
|
|
4851
|
-
* The subject of the conversation.
|
|
4852
|
-
* @maxLength 512
|
|
4853
|
-
*/
|
|
4854
|
-
subject?: string;
|
|
4855
|
-
parts: ConversationPart[];
|
|
4856
|
-
}
|
|
4857
|
-
export interface ConversationIssue {
|
|
4858
|
-
object: 'conversation-issue';
|
|
4859
|
-
/** The ID of the conversation issue */
|
|
4860
|
-
id: string;
|
|
4861
|
-
/** The title of the conversation issue */
|
|
4862
|
-
title: string;
|
|
4863
|
-
details: JSONDocument;
|
|
4864
|
-
/**
|
|
4865
|
-
* Estimated end-user impact of a conversation issue.
|
|
4866
|
-
*
|
|
4867
|
-
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4868
|
-
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4869
|
-
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4870
|
-
*/
|
|
4871
|
-
impact: ConversationIssueImpact;
|
|
4872
|
-
createdAt: Timestamp;
|
|
4873
|
-
ingestedAt: Timestamp;
|
|
4874
|
-
/** The ID of the conversation the issue belongs to */
|
|
4875
|
-
conversation: string;
|
|
4876
|
-
/** The ID of the cluster the issue has been linked to */
|
|
4877
|
-
cluster?: string;
|
|
4878
|
-
/** URLs associated with the conversation issue */
|
|
4879
|
-
urls: {
|
|
4880
|
-
/**
|
|
4881
|
-
* URL of the conversation issue in the API
|
|
4882
|
-
* @format uri
|
|
4883
|
-
*/
|
|
4884
|
-
location: string;
|
|
4885
|
-
};
|
|
4886
|
-
}
|
|
4887
|
-
/** State and settings of the agent */
|
|
4888
|
-
export interface AgentSetupState {
|
|
4889
|
-
/** The email address of the agent. Emails can be forwarded to it to ingest conversations. */
|
|
4890
|
-
email: string;
|
|
4891
|
-
/** The stats of the agent. */
|
|
4892
|
-
stats: {
|
|
4893
|
-
/** The number of conversations the agent has indexed. */
|
|
4894
|
-
conversations: number;
|
|
4895
|
-
/** The number of issues the agent has indexed. */
|
|
4896
|
-
issues: number;
|
|
4897
|
-
/** The number of issue clusters the agent has indexed. */
|
|
4898
|
-
issuesClusters: number;
|
|
4899
|
-
sources: Record<string, number>;
|
|
4900
|
-
};
|
|
4901
|
-
/** The settings for the agent. */
|
|
4902
|
-
settings: object;
|
|
4903
|
-
}
|
|
4904
4746
|
export interface OrganizationAgentInstructions {
|
|
4905
4747
|
object: 'agent-instructions';
|
|
4906
4748
|
/** Document containing the Docs agent instructions. */
|
|
@@ -5495,6 +5337,8 @@ export interface SiteSocialAccount {
|
|
|
5495
5337
|
display: {
|
|
5496
5338
|
/** @default true */
|
|
5497
5339
|
footer: boolean;
|
|
5340
|
+
/** @default false */
|
|
5341
|
+
header: boolean;
|
|
5498
5342
|
};
|
|
5499
5343
|
}
|
|
5500
5344
|
/**
|
|
@@ -5502,7 +5346,7 @@ export interface SiteSocialAccount {
|
|
|
5502
5346
|
* @maxItems 10
|
|
5503
5347
|
*/
|
|
5504
5348
|
export type SiteSocialAccounts = SiteSocialAccount[];
|
|
5505
|
-
export interface
|
|
5349
|
+
export interface SiteCustomizationSettingsBase {
|
|
5506
5350
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
5507
5351
|
title?: SiteTitle;
|
|
5508
5352
|
styling: {
|
|
@@ -5663,6 +5507,10 @@ export interface SiteCustomizationSettings {
|
|
|
5663
5507
|
trackingCookie: boolean;
|
|
5664
5508
|
};
|
|
5665
5509
|
}
|
|
5510
|
+
export type SiteCustomizationSettings = SiteCustomizationSettingsBase & {
|
|
5511
|
+
/** When the customization settings were updated. If missing, customization was not updated. */
|
|
5512
|
+
updatedAt?: Timestamp;
|
|
5513
|
+
};
|
|
5666
5514
|
export interface SiteIntegrationScript {
|
|
5667
5515
|
/** Script URL to load. */
|
|
5668
5516
|
script: URL;
|
|
@@ -5758,6 +5606,7 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
|
|
|
5758
5606
|
*/
|
|
5759
5607
|
fallbackURL?: string | null;
|
|
5760
5608
|
};
|
|
5609
|
+
export type SiteCustomizationSettingsInput = SiteCustomizationSettingsBase;
|
|
5761
5610
|
export type SiteSearchScope = {
|
|
5762
5611
|
/** Search across all sections of a site, only including the default content of each section. This scope is wide and shallow. You may optionally specify a list of additional site spaces to search in alongside the default content. */
|
|
5763
5612
|
mode: 'default';
|
|
@@ -5779,6 +5628,8 @@ export interface SearchRecordResult {
|
|
|
5779
5628
|
id: string;
|
|
5780
5629
|
/** The title of the record. */
|
|
5781
5630
|
title: string;
|
|
5631
|
+
/** Relevance score for the record. */
|
|
5632
|
+
score: number;
|
|
5782
5633
|
/** The description of the record. */
|
|
5783
5634
|
description?: string;
|
|
5784
5635
|
/**
|
|
@@ -5938,14 +5789,37 @@ export interface SiteQuestionStatsAnswered {
|
|
|
5938
5789
|
/** Count of answers assessed as not answered. */
|
|
5939
5790
|
no: number;
|
|
5940
5791
|
}
|
|
5941
|
-
|
|
5792
|
+
export interface SiteQuestionStatsRelevance {
|
|
5793
|
+
relevant: number;
|
|
5794
|
+
spam: number;
|
|
5795
|
+
'off-topic': number;
|
|
5796
|
+
unclear: number;
|
|
5797
|
+
}
|
|
5798
|
+
export interface SiteQuestionStatsTypes {
|
|
5799
|
+
exploring: number;
|
|
5800
|
+
'how-to': number;
|
|
5801
|
+
troubleshooting: number;
|
|
5802
|
+
reference: number;
|
|
5803
|
+
unknown: number;
|
|
5804
|
+
}
|
|
5805
|
+
/** Aggregated stats for questions and linked answers. */
|
|
5942
5806
|
export interface SiteQuestionStats {
|
|
5943
|
-
/** Total count of
|
|
5807
|
+
/** Total count of questions included in the aggregation. */
|
|
5808
|
+
total: number;
|
|
5809
|
+
/** Total count of answers linked to the questions. */
|
|
5944
5810
|
answers: number;
|
|
5945
5811
|
/** Aggregated feedback for answers linked to a site question. */
|
|
5946
5812
|
feedback: SiteQuestionStatsFeedback;
|
|
5947
5813
|
/** Aggregated answered assessment for answers linked to a site question. */
|
|
5948
5814
|
answered: SiteQuestionStatsAnswered;
|
|
5815
|
+
relevance: SiteQuestionStatsRelevance;
|
|
5816
|
+
types: SiteQuestionStatsTypes;
|
|
5817
|
+
/**
|
|
5818
|
+
* Weekly count of related question answers for the past 3 months.
|
|
5819
|
+
* @maxItems 13
|
|
5820
|
+
* @minItems 13
|
|
5821
|
+
*/
|
|
5822
|
+
weeklyPulse: number[];
|
|
5949
5823
|
}
|
|
5950
5824
|
export interface SiteTopic {
|
|
5951
5825
|
object: 'context-topic';
|
|
@@ -5966,17 +5840,11 @@ export interface SiteTopic {
|
|
|
5966
5840
|
icon: Icon;
|
|
5967
5841
|
summary: JSONDocument;
|
|
5968
5842
|
usageSettings: ContextUsageSettings;
|
|
5969
|
-
/**
|
|
5970
|
-
* The weekly pulse of related question answers for the past 3 months
|
|
5971
|
-
* @maxItems 13
|
|
5972
|
-
* @minItems 13
|
|
5973
|
-
*/
|
|
5974
|
-
weeklyPulse: number[];
|
|
5975
5843
|
/** The number of pages associated with the topic */
|
|
5976
5844
|
pages: number;
|
|
5977
5845
|
/** The number of records in the topic */
|
|
5978
5846
|
records: number;
|
|
5979
|
-
/** Aggregated stats for
|
|
5847
|
+
/** Aggregated stats for questions and linked answers. */
|
|
5980
5848
|
questions: SiteQuestionStats;
|
|
5981
5849
|
/** URLs associated with the topic */
|
|
5982
5850
|
urls: {
|
|
@@ -6004,7 +5872,7 @@ export interface SiteQuestion {
|
|
|
6004
5872
|
/** Type classification of the user question. */
|
|
6005
5873
|
type: SiteQuestionType;
|
|
6006
5874
|
createdAt: Timestamp;
|
|
6007
|
-
/** Aggregated stats for
|
|
5875
|
+
/** Aggregated stats for questions and linked answers. */
|
|
6008
5876
|
stats: SiteQuestionStats;
|
|
6009
5877
|
/** URLs associated with the site question. */
|
|
6010
5878
|
urls: {
|
|
@@ -6665,7 +6533,8 @@ export type SiteInsightsEventSession = SiteInsightsSession & {
|
|
|
6665
6533
|
/** Context in which the event was recorded. */
|
|
6666
6534
|
export declare enum SiteInsightsDisplayContext {
|
|
6667
6535
|
Site = "site",
|
|
6668
|
-
Embed = "embed"
|
|
6536
|
+
Embed = "embed",
|
|
6537
|
+
Mcp = "mcp"
|
|
6669
6538
|
}
|
|
6670
6539
|
/** Location of the event. */
|
|
6671
6540
|
export interface SiteInsightsEventLocation {
|
|
@@ -6712,11 +6581,15 @@ export type SiteInsightsEventSearchOpenResult = SiteInsightsEventBase & {
|
|
|
6712
6581
|
type: 'search_open_result';
|
|
6713
6582
|
/** Query of the search. */
|
|
6714
6583
|
query: string;
|
|
6584
|
+
/** Target of the opened search result. */
|
|
6715
6585
|
result: {
|
|
6716
6586
|
/** ID of the concerned space. */
|
|
6717
6587
|
spaceId: string;
|
|
6718
6588
|
/** ID of the concerned page. */
|
|
6719
6589
|
pageId: string;
|
|
6590
|
+
} | {
|
|
6591
|
+
/** ID of the concerned record. */
|
|
6592
|
+
recordId: string;
|
|
6720
6593
|
};
|
|
6721
6594
|
};
|
|
6722
6595
|
export type SiteInsightsEventPagePostFeedback = SiteInsightsEventBase & {
|
|
@@ -6863,6 +6736,8 @@ export type SiteInsightsQueryEventsColumn = SiteInsightsQueryDateTimeColumn | {
|
|
|
6863
6736
|
column: 'eventAPIOperationMethod';
|
|
6864
6737
|
} | {
|
|
6865
6738
|
column: 'eventSearchQuery';
|
|
6739
|
+
} | {
|
|
6740
|
+
column: 'eventSearchResultRecordId';
|
|
6866
6741
|
} | {
|
|
6867
6742
|
column: 'eventPageFeedbackRating';
|
|
6868
6743
|
} | {
|
|
@@ -6947,7 +6822,17 @@ export declare enum SiteInsightsVisitorBot {
|
|
|
6947
6822
|
Facebookbot = "facebookbot",
|
|
6948
6823
|
Applebot = "applebot",
|
|
6949
6824
|
Chatgpt = "chatgpt",
|
|
6950
|
-
Anthropic = "anthropic"
|
|
6825
|
+
Anthropic = "anthropic",
|
|
6826
|
+
Gemini = "gemini",
|
|
6827
|
+
Perplexity = "perplexity",
|
|
6828
|
+
Cohere = "cohere",
|
|
6829
|
+
Mistral = "mistral",
|
|
6830
|
+
Deepseek = "deepseek",
|
|
6831
|
+
Meta = "meta",
|
|
6832
|
+
Bytespider = "bytespider",
|
|
6833
|
+
Ccbot = "ccbot",
|
|
6834
|
+
Amazonbot = "amazonbot",
|
|
6835
|
+
Youbot = "youbot"
|
|
6951
6836
|
}
|
|
6952
6837
|
export type SiteInsightsQueryEventsValues = {
|
|
6953
6838
|
column: 'datetime';
|
|
@@ -7038,6 +6923,9 @@ export type SiteInsightsQueryEventsValues = {
|
|
|
7038
6923
|
} | {
|
|
7039
6924
|
column: 'eventSearchQuery';
|
|
7040
6925
|
values: string[];
|
|
6926
|
+
} | {
|
|
6927
|
+
column: 'eventSearchResultRecordId';
|
|
6928
|
+
values: (string | null)[];
|
|
7041
6929
|
} | {
|
|
7042
6930
|
column: 'pageFeedbackRating';
|
|
7043
6931
|
values: {
|
|
@@ -7153,7 +7041,7 @@ export interface SiteAdsStats {
|
|
|
7153
7041
|
/**
|
|
7154
7042
|
* The source path to redirect from.
|
|
7155
7043
|
* @maxLength 512
|
|
7156
|
-
* @pattern ^\/(?:[A-Za-z0-9\-._~]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~]|%[0-9A-Fa-f]{2})+)
|
|
7044
|
+
* @pattern ^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$
|
|
7157
7045
|
*/
|
|
7158
7046
|
export type SiteRedirectSourcePath = string;
|
|
7159
7047
|
export interface SiteRedirectDestinationSiteSection {
|
|
@@ -7173,13 +7061,19 @@ export interface SiteRedirectDestinationPage {
|
|
|
7173
7061
|
/** Unique identifier for the page within the site space to redirect to */
|
|
7174
7062
|
pageId: string;
|
|
7175
7063
|
}
|
|
7176
|
-
export
|
|
7064
|
+
export interface SiteRedirectDestinationExternal {
|
|
7065
|
+
kind: 'external';
|
|
7066
|
+
url: URL;
|
|
7067
|
+
}
|
|
7068
|
+
export type SiteRedirectDestination = SiteRedirectDestinationSiteSection | SiteRedirectDestinationSiteSpace | SiteRedirectDestinationPage | SiteRedirectDestinationExternal;
|
|
7177
7069
|
export interface SiteRedirect {
|
|
7178
7070
|
object: 'site-redirect';
|
|
7179
7071
|
/** The unique identifier for the redirect. */
|
|
7180
7072
|
id: string;
|
|
7181
7073
|
/** The source path to redirect from. */
|
|
7182
7074
|
source: SiteRedirectSourcePath;
|
|
7075
|
+
/** Capture and append the wildcard-matched suffix to the destination URL. */
|
|
7076
|
+
captureWildcard: boolean;
|
|
7183
7077
|
destination: SiteRedirectDestination;
|
|
7184
7078
|
}
|
|
7185
7079
|
export interface SiteRedirectInputDestinationPath {
|
|
@@ -8286,7 +8180,6 @@ export type IngegrationPropertyTitle = IntegrationPropertyTitle;
|
|
|
8286
8180
|
export type UserPermissions = Index;
|
|
8287
8181
|
export type SiteRedirectDestinationSpace = SiteRedirectDestinationSiteSpace;
|
|
8288
8182
|
export type OpenAPISpecSourceURL = URL;
|
|
8289
|
-
export type AgentsSetupState = AgentSetupState;
|
|
8290
8183
|
import { EventIterator } from 'event-iterator';
|
|
8291
8184
|
export type QueryParamsType = Record<string | number, any>;
|
|
8292
8185
|
export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
@@ -9174,8 +9067,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9174
9067
|
contributor?: string;
|
|
9175
9068
|
/** If defined, only change requests with a requested reviewer for this user will be returned. */
|
|
9176
9069
|
requestedReviewer?: string;
|
|
9177
|
-
/** If defined, only change requests associated with this conversations issues cluster will be returned. */
|
|
9178
|
-
conversationsIssuesCluster?: string;
|
|
9179
9070
|
/** The field to sort change requests by. Defaults to 'updatedAt'. */
|
|
9180
9071
|
orderBy?: ChangeRequestOrderBy;
|
|
9181
9072
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -11793,8 +11684,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11793
11684
|
contributor?: string;
|
|
11794
11685
|
/** If defined, only change requests with a requested reviewer for this user will be returned. */
|
|
11795
11686
|
requestedReviewer?: string;
|
|
11796
|
-
/** If defined, only change requests associated with this conversations issues cluster will be returned. */
|
|
11797
|
-
conversationsIssuesCluster?: string;
|
|
11798
11687
|
/** The field to sort change requests by. Defaults to 'updatedAt'. */
|
|
11799
11688
|
orderBy?: ChangeRequestOrderBy;
|
|
11800
11689
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -12340,183 +12229,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12340
12229
|
message: string;
|
|
12341
12230
|
};
|
|
12342
12231
|
}>>;
|
|
12343
|
-
/**
|
|
12344
|
-
* No description
|
|
12345
|
-
*
|
|
12346
|
-
* @tags conversations
|
|
12347
|
-
* @name ListConversationsIssuesClusters
|
|
12348
|
-
* @summary List conversations issues clusters
|
|
12349
|
-
* @request GET:/orgs/{organizationId}/conversations-clusters
|
|
12350
|
-
* @secure
|
|
12351
|
-
*/
|
|
12352
|
-
listConversationsIssuesClusters: (organizationId: string, query?: {
|
|
12353
|
-
/** Identifier of the page results to fetch. */
|
|
12354
|
-
page?: string;
|
|
12355
|
-
/**
|
|
12356
|
-
* The number of results per page
|
|
12357
|
-
* @min 0
|
|
12358
|
-
* @max 1000
|
|
12359
|
-
*/
|
|
12360
|
-
limit?: number;
|
|
12361
|
-
/**
|
|
12362
|
-
* An order for the items in the list
|
|
12363
|
-
* @default "desc"
|
|
12364
|
-
*/
|
|
12365
|
-
order?: "asc" | "desc";
|
|
12366
|
-
/** @default "updatedAt" */
|
|
12367
|
-
orderBy?: "updatedAt" | "issues" | "conversations" | "impact";
|
|
12368
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12369
|
-
items: ConversationsIssuesCluster[];
|
|
12370
|
-
}, {
|
|
12371
|
-
error: {
|
|
12372
|
-
/** @format int32 */
|
|
12373
|
-
code: 404;
|
|
12374
|
-
message: string;
|
|
12375
|
-
};
|
|
12376
|
-
}>>;
|
|
12377
|
-
/**
|
|
12378
|
-
* No description
|
|
12379
|
-
*
|
|
12380
|
-
* @tags conversations
|
|
12381
|
-
* @name GetConversationsIssuesCluster
|
|
12382
|
-
* @summary Get a conversations issues cluster by its identifier
|
|
12383
|
-
* @request GET:/orgs/{organizationId}/conversations-clusters/{clusterId}
|
|
12384
|
-
* @secure
|
|
12385
|
-
*/
|
|
12386
|
-
getConversationsIssuesCluster: (organizationId: string, clusterId: string, params?: RequestParams) => Promise<HttpResponse<ConversationsIssuesCluster, any>>;
|
|
12387
|
-
/**
|
|
12388
|
-
* No description
|
|
12389
|
-
*
|
|
12390
|
-
* @tags conversations
|
|
12391
|
-
* @name UpdateConversationsIssuesCluster
|
|
12392
|
-
* @summary Update a conversations issues cluster
|
|
12393
|
-
* @request PATCH:/orgs/{organizationId}/conversations-clusters/{clusterId}
|
|
12394
|
-
* @secure
|
|
12395
|
-
*/
|
|
12396
|
-
updateConversationsIssuesCluster: (organizationId: string, clusterId: string, data: {
|
|
12397
|
-
/** Whether the cluster is muted for change request creation */
|
|
12398
|
-
muted: boolean;
|
|
12399
|
-
}, params?: RequestParams) => Promise<HttpResponse<ConversationsIssuesCluster, any>>;
|
|
12400
|
-
/**
|
|
12401
|
-
* No description
|
|
12402
|
-
*
|
|
12403
|
-
* @tags conversations
|
|
12404
|
-
* @name ListConversations
|
|
12405
|
-
* @summary List conversations
|
|
12406
|
-
* @request GET:/orgs/{organizationId}/conversations
|
|
12407
|
-
* @secure
|
|
12408
|
-
*/
|
|
12409
|
-
listConversations: (organizationId: string, query?: {
|
|
12410
|
-
/** Identifier of the page results to fetch. */
|
|
12411
|
-
page?: string;
|
|
12412
|
-
/**
|
|
12413
|
-
* The number of results per page
|
|
12414
|
-
* @min 0
|
|
12415
|
-
* @max 1000
|
|
12416
|
-
*/
|
|
12417
|
-
limit?: number;
|
|
12418
|
-
/** Filter conversations by their source identifier */
|
|
12419
|
-
source?: string;
|
|
12420
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12421
|
-
items: Conversation[];
|
|
12422
|
-
}, any>>;
|
|
12423
|
-
/**
|
|
12424
|
-
* No description
|
|
12425
|
-
*
|
|
12426
|
-
* @tags conversations
|
|
12427
|
-
* @name IngestConversation
|
|
12428
|
-
* @summary Ingest conversations
|
|
12429
|
-
* @request POST:/orgs/{organizationId}/conversations
|
|
12430
|
-
* @secure
|
|
12431
|
-
*/
|
|
12432
|
-
ingestConversation: (organizationId: string, data: ConversationInput | ConversationInput[], params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
12433
|
-
/**
|
|
12434
|
-
* No description
|
|
12435
|
-
*
|
|
12436
|
-
* @tags conversations
|
|
12437
|
-
* @name ListConversationsIssues
|
|
12438
|
-
* @summary List conversation issues
|
|
12439
|
-
* @request GET:/orgs/{organizationId}/conversations-issues
|
|
12440
|
-
* @secure
|
|
12441
|
-
*/
|
|
12442
|
-
listConversationsIssues: (organizationId: string, query?: {
|
|
12443
|
-
/** Identifier of the page results to fetch. */
|
|
12444
|
-
page?: string;
|
|
12445
|
-
/**
|
|
12446
|
-
* The number of results per page
|
|
12447
|
-
* @min 0
|
|
12448
|
-
* @max 1000
|
|
12449
|
-
*/
|
|
12450
|
-
limit?: number;
|
|
12451
|
-
/** Filter conversation issues by cluster identifier. */
|
|
12452
|
-
cluster?: string;
|
|
12453
|
-
/** Filter conversation issues by conversation identifier. */
|
|
12454
|
-
conversation?: string;
|
|
12455
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12456
|
-
items: {
|
|
12457
|
-
issue: ConversationIssue;
|
|
12458
|
-
conversation: Conversation;
|
|
12459
|
-
}[];
|
|
12460
|
-
}, any>>;
|
|
12461
|
-
/**
|
|
12462
|
-
* No description
|
|
12463
|
-
*
|
|
12464
|
-
* @tags conversations
|
|
12465
|
-
* @name GetConversationIssueById
|
|
12466
|
-
* @summary Get a conversation issue by ID
|
|
12467
|
-
* @request GET:/orgs/{organizationId}/conversations-issues/{issueId}
|
|
12468
|
-
* @secure
|
|
12469
|
-
*/
|
|
12470
|
-
getConversationIssueById: (organizationId: string, issueId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
12471
|
-
issue: ConversationIssue;
|
|
12472
|
-
conversation: Conversation;
|
|
12473
|
-
}, {
|
|
12474
|
-
error: {
|
|
12475
|
-
/** @format int32 */
|
|
12476
|
-
code: 404;
|
|
12477
|
-
message: string;
|
|
12478
|
-
};
|
|
12479
|
-
}>>;
|
|
12480
|
-
/**
|
|
12481
|
-
* No description
|
|
12482
|
-
*
|
|
12483
|
-
* @tags conversations
|
|
12484
|
-
* @name GetConversationById
|
|
12485
|
-
* @summary Get a conversation by ID
|
|
12486
|
-
* @request GET:/orgs/{organizationId}/conversations/{conversationId}
|
|
12487
|
-
* @secure
|
|
12488
|
-
*/
|
|
12489
|
-
getConversationById: (organizationId: string, conversationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
12490
|
-
conversation: Conversation;
|
|
12491
|
-
parts: ConversationPart[];
|
|
12492
|
-
metadata: ConversationMetadata;
|
|
12493
|
-
}, {
|
|
12494
|
-
error: {
|
|
12495
|
-
/** @format int32 */
|
|
12496
|
-
code: 404;
|
|
12497
|
-
message: string;
|
|
12498
|
-
};
|
|
12499
|
-
}>>;
|
|
12500
|
-
/**
|
|
12501
|
-
* @description Get the state of the agent.
|
|
12502
|
-
*
|
|
12503
|
-
* @tags agents, critical
|
|
12504
|
-
* @name GetAgentSetupState
|
|
12505
|
-
* @summary Get the agents setup state
|
|
12506
|
-
* @request GET:/orgs/{organizationId}/agents-setup
|
|
12507
|
-
* @secure
|
|
12508
|
-
*/
|
|
12509
|
-
getAgentSetupState: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<AgentSetupState, any>>;
|
|
12510
|
-
/**
|
|
12511
|
-
* @description Delete all the conversations, conversation issues, and issue clusters used by Docs Agent for an organization.
|
|
12512
|
-
*
|
|
12513
|
-
* @tags agents, critical
|
|
12514
|
-
* @name DeleteAgentSetup
|
|
12515
|
-
* @summary Delete the agents setup data
|
|
12516
|
-
* @request DELETE:/orgs/{organizationId}/agents-setup
|
|
12517
|
-
* @secure
|
|
12518
|
-
*/
|
|
12519
|
-
deleteAgentSetup: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
12520
12232
|
/**
|
|
12521
12233
|
* No description
|
|
12522
12234
|
*
|
|
@@ -12921,12 +12633,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12921
12633
|
/** Basename for the site. For e.g. api */
|
|
12922
12634
|
basename?: SiteBasename;
|
|
12923
12635
|
adaptiveContent?: SiteAdaptiveContent;
|
|
12924
|
-
/**
|
|
12925
|
-
* Defines if the site will be included in the agent's context.
|
|
12926
|
-
* - `excluded` means that the agent will not be able to access the site.
|
|
12927
|
-
* - `included` means that the agent will be able to access the site.
|
|
12928
|
-
*/
|
|
12929
|
-
agentsContext?: SiteAgentsContext;
|
|
12930
12636
|
/** ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section. */
|
|
12931
12637
|
defaultSiteSpace?: string;
|
|
12932
12638
|
/** ID of the site-section to be used as the default. */
|
|
@@ -13246,7 +12952,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13246
12952
|
* @request PUT:/orgs/{organizationId}/sites/{siteId}/customization
|
|
13247
12953
|
* @secure
|
|
13248
12954
|
*/
|
|
13249
|
-
updateSiteCustomizationById: (organizationId: string, siteId: string, data:
|
|
12955
|
+
updateSiteCustomizationById: (organizationId: string, siteId: string, data: SiteCustomizationSettingsInput, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, {
|
|
13250
12956
|
error: {
|
|
13251
12957
|
/** @format int32 */
|
|
13252
12958
|
code: 400;
|
|
@@ -13605,6 +13311,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13605
13311
|
* @secure
|
|
13606
13312
|
*/
|
|
13607
13313
|
upsertSiteContextRecords: (organizationId: string, siteId: string, data: ContextRecordInput[], params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
13314
|
+
/**
|
|
13315
|
+
* No description
|
|
13316
|
+
*
|
|
13317
|
+
* @tags site-context
|
|
13318
|
+
* @name GetSiteContextRecordById
|
|
13319
|
+
* @summary Get a context record
|
|
13320
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/context-records/{siteContextRecordId}
|
|
13321
|
+
* @secure
|
|
13322
|
+
*/
|
|
13323
|
+
getSiteContextRecordById: (organizationId: string, siteId: string, siteContextRecordId: string, params?: RequestParams) => Promise<HttpResponse<ContextRecord, any>>;
|
|
13608
13324
|
/**
|
|
13609
13325
|
* No description
|
|
13610
13326
|
*
|
|
@@ -13755,6 +13471,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13755
13471
|
* @secure
|
|
13756
13472
|
*/
|
|
13757
13473
|
getSiteQuestionById: (organizationId: string, siteId: string, siteQuestionId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestion, any>>;
|
|
13474
|
+
/**
|
|
13475
|
+
* No description
|
|
13476
|
+
*
|
|
13477
|
+
* @tags site-questions
|
|
13478
|
+
* @name GetSiteQuestionStats
|
|
13479
|
+
* @summary Get question stats for a site
|
|
13480
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/question-stats
|
|
13481
|
+
* @secure
|
|
13482
|
+
*/
|
|
13483
|
+
getSiteQuestionStats: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteQuestionStats, any>>;
|
|
13758
13484
|
/**
|
|
13759
13485
|
* No description
|
|
13760
13486
|
*
|
|
@@ -14344,6 +14070,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14344
14070
|
createSiteRedirect: (organizationId: string, siteId: string, data: {
|
|
14345
14071
|
/** The source path to redirect from. */
|
|
14346
14072
|
source: SiteRedirectSourcePath;
|
|
14073
|
+
/**
|
|
14074
|
+
* Capture and append the wildcard-matched suffix to the destination URL.
|
|
14075
|
+
* @default false
|
|
14076
|
+
*/
|
|
14077
|
+
captureWildcard?: boolean;
|
|
14347
14078
|
destination: SiteRedirectInputDestination;
|
|
14348
14079
|
}, params?: RequestParams) => Promise<HttpResponse<SiteRedirect, any>>;
|
|
14349
14080
|
/**
|
|
@@ -14363,6 +14094,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14363
14094
|
redirects: {
|
|
14364
14095
|
/** The source path to redirect from. */
|
|
14365
14096
|
source: SiteRedirectSourcePath;
|
|
14097
|
+
/**
|
|
14098
|
+
* Capture and append the wildcard-matched suffix to the destination URL.
|
|
14099
|
+
* @default false
|
|
14100
|
+
*/
|
|
14101
|
+
captureWildcard?: boolean;
|
|
14366
14102
|
destination: SiteRedirectInputDestination;
|
|
14367
14103
|
}[];
|
|
14368
14104
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
@@ -14424,6 +14160,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14424
14160
|
updateSiteRedirectById: (organizationId: string, siteId: string, siteRedirectId: string, data: {
|
|
14425
14161
|
/** The source path to redirect from. */
|
|
14426
14162
|
source?: SiteRedirectSourcePath;
|
|
14163
|
+
/** Capture and append the wildcard-matched suffix to the destination URL. */
|
|
14164
|
+
captureWildcard?: boolean;
|
|
14427
14165
|
destination?: SiteRedirectDestination;
|
|
14428
14166
|
}, params?: RequestParams) => Promise<HttpResponse<SiteRedirect, any>>;
|
|
14429
14167
|
/**
|