@gitbook/api 0.164.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 +93 -400
- package/dist/constants.d.ts +3 -5
- package/dist/index.cjs +23 -101
- package/dist/index.js +23 -97
- package/package.json +1 -1
- package/spec/openapi.json +492 -1269
- package/spec/openapi.yaml +163 -667
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
|
/**
|
|
@@ -1969,8 +1969,20 @@ export interface OrganizationBilling {
|
|
|
1969
1969
|
minUsers?: number;
|
|
1970
1970
|
/** The maximum number of members allowed for this organization */
|
|
1971
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;
|
|
1972
1980
|
/** The number of paid members on the current subscription. */
|
|
1973
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;
|
|
1974
1986
|
}
|
|
1975
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. */
|
|
1976
1988
|
export declare enum BillingTrialStatus {
|
|
@@ -2077,8 +2089,6 @@ export interface Organization {
|
|
|
2077
2089
|
createContent: boolean;
|
|
2078
2090
|
/** Can the user create new OpenAPI specifications. */
|
|
2079
2091
|
createOpenAPISpec: boolean;
|
|
2080
|
-
/** Can the user ingest conversations in the organization. */
|
|
2081
|
-
ingestConversations: boolean;
|
|
2082
2092
|
/** Can the user view the billing details of the organization. */
|
|
2083
2093
|
viewBilling: boolean;
|
|
2084
2094
|
/** Can the user list the members of the organization. */
|
|
@@ -2794,9 +2804,9 @@ export declare enum IntegrationScope {
|
|
|
2794
2804
|
SiteVisitorAuth = "site:visitor:auth",
|
|
2795
2805
|
SiteAdaptiveRead = "site:adaptive:read",
|
|
2796
2806
|
SiteAdaptiveWrite = "site:adaptive:write",
|
|
2807
|
+
ConversationsIngest = "conversations:ingest",
|
|
2797
2808
|
OpenapiRead = "openapi:read",
|
|
2798
|
-
OpenapiWrite = "openapi:write"
|
|
2799
|
-
ConversationsIngest = "conversations:ingest"
|
|
2809
|
+
OpenapiWrite = "openapi:write"
|
|
2800
2810
|
}
|
|
2801
2811
|
/** Permissions that should be granted to the integration */
|
|
2802
2812
|
export type IntegrationScopes = IntegrationScope[];
|
|
@@ -3569,15 +3579,6 @@ export type SiteAds = {
|
|
|
3569
3579
|
/** The ad network zone ID */
|
|
3570
3580
|
zoneId: string;
|
|
3571
3581
|
};
|
|
3572
|
-
/**
|
|
3573
|
-
* Defines if the site will be included in the agent's context.
|
|
3574
|
-
* - `excluded` means that the agent will not be able to access the site.
|
|
3575
|
-
* - `included` means that the agent will be able to access the site.
|
|
3576
|
-
*/
|
|
3577
|
-
export declare enum SiteAgentsContext {
|
|
3578
|
-
Excluded = "excluded",
|
|
3579
|
-
Included = "included"
|
|
3580
|
-
}
|
|
3581
3582
|
/** The site feature identifier */
|
|
3582
3583
|
export declare enum SiteFeatureKey {
|
|
3583
3584
|
SitesAdaptiveContent = "sites-adaptive-content",
|
|
@@ -3664,12 +3665,6 @@ export interface Site {
|
|
|
3664
3665
|
createdAt: string;
|
|
3665
3666
|
adaptiveContent?: SiteAdaptiveContent;
|
|
3666
3667
|
ads?: SiteAds;
|
|
3667
|
-
/**
|
|
3668
|
-
* Defines if the site will be included in the agent's context.
|
|
3669
|
-
* - `excluded` means that the agent will not be able to access the site.
|
|
3670
|
-
* - `included` means that the agent will be able to access the site.
|
|
3671
|
-
*/
|
|
3672
|
-
agentsContext: SiteAgentsContext;
|
|
3673
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. */
|
|
3674
3669
|
features: SiteFeature[];
|
|
3675
3670
|
/** URLs associated with the object */
|
|
@@ -4470,6 +4465,8 @@ export interface SearchSpaceResult {
|
|
|
4470
4465
|
type: 'space';
|
|
4471
4466
|
id: string;
|
|
4472
4467
|
title: string;
|
|
4468
|
+
/** Aggregated relevance score for the space. */
|
|
4469
|
+
score: number;
|
|
4473
4470
|
pages: SearchPageResult[];
|
|
4474
4471
|
}
|
|
4475
4472
|
export type CreateSpace = {
|
|
@@ -4746,173 +4743,6 @@ export interface OpenAPISpecContent {
|
|
|
4746
4743
|
filesystem: object;
|
|
4747
4744
|
url: URL;
|
|
4748
4745
|
}
|
|
4749
|
-
/**
|
|
4750
|
-
* Estimated end-user impact of a conversation issue.
|
|
4751
|
-
*
|
|
4752
|
-
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4753
|
-
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4754
|
-
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4755
|
-
*/
|
|
4756
|
-
export declare enum ConversationIssueImpact {
|
|
4757
|
-
Low = "low",
|
|
4758
|
-
Medium = "medium",
|
|
4759
|
-
High = "high"
|
|
4760
|
-
}
|
|
4761
|
-
export interface ConversationsIssuesCluster {
|
|
4762
|
-
object: 'issues-cluster';
|
|
4763
|
-
/** The ID of the conversations issues cluster */
|
|
4764
|
-
id: string;
|
|
4765
|
-
/** The label of the conversations issues cluster */
|
|
4766
|
-
label: string;
|
|
4767
|
-
createdAt: Timestamp;
|
|
4768
|
-
updatedAt: Timestamp;
|
|
4769
|
-
/** Name of the icon */
|
|
4770
|
-
icon: Icon;
|
|
4771
|
-
summary: JSONDocument;
|
|
4772
|
-
/** Whether the cluster is muted for change request creation */
|
|
4773
|
-
muted: boolean;
|
|
4774
|
-
/**
|
|
4775
|
-
* Estimated end-user impact of a conversation issue.
|
|
4776
|
-
*
|
|
4777
|
-
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4778
|
-
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4779
|
-
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4780
|
-
*/
|
|
4781
|
-
impact: ConversationIssueImpact;
|
|
4782
|
-
/**
|
|
4783
|
-
* The weekly pulse of the conversations issues cluster for the past 3 months
|
|
4784
|
-
* @maxItems 13
|
|
4785
|
-
* @minItems 13
|
|
4786
|
-
*/
|
|
4787
|
-
weeklyPulse: number[];
|
|
4788
|
-
sources: Record<string, number>;
|
|
4789
|
-
/** The stats of the conversations issues cluster */
|
|
4790
|
-
stats: {
|
|
4791
|
-
/** The number of issues in the conversations issues cluster */
|
|
4792
|
-
issues: number;
|
|
4793
|
-
/** The number of conversations in the conversations issues cluster */
|
|
4794
|
-
conversations: number;
|
|
4795
|
-
};
|
|
4796
|
-
/** URLs associated with the conversations issues cluster */
|
|
4797
|
-
urls: {
|
|
4798
|
-
/**
|
|
4799
|
-
* URL of the conversations issues cluster in the API
|
|
4800
|
-
* @format uri
|
|
4801
|
-
*/
|
|
4802
|
-
location: string;
|
|
4803
|
-
};
|
|
4804
|
-
}
|
|
4805
|
-
/** Integration source */
|
|
4806
|
-
export type ConversationSource = string | 'email';
|
|
4807
|
-
export interface Conversation {
|
|
4808
|
-
object: 'conversation';
|
|
4809
|
-
/** The ID of the conversation */
|
|
4810
|
-
id: string;
|
|
4811
|
-
/** The subject of the conversation */
|
|
4812
|
-
subject?: string;
|
|
4813
|
-
createdAt: Timestamp;
|
|
4814
|
-
processedAt?: Timestamp;
|
|
4815
|
-
/** Integration source */
|
|
4816
|
-
source: ConversationSource;
|
|
4817
|
-
/**
|
|
4818
|
-
* Estimated end-user impact of a conversation issue.
|
|
4819
|
-
*
|
|
4820
|
-
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4821
|
-
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4822
|
-
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4823
|
-
*/
|
|
4824
|
-
impact: ConversationIssueImpact;
|
|
4825
|
-
/** URLs associated with the conversation */
|
|
4826
|
-
urls: {
|
|
4827
|
-
/**
|
|
4828
|
-
* URL of the conversation in the API
|
|
4829
|
-
* @format uri
|
|
4830
|
-
*/
|
|
4831
|
-
location: string;
|
|
4832
|
-
/**
|
|
4833
|
-
* URL of the conversation in the source
|
|
4834
|
-
* @format uri
|
|
4835
|
-
*/
|
|
4836
|
-
source?: string;
|
|
4837
|
-
};
|
|
4838
|
-
}
|
|
4839
|
-
export interface ConversationMetadata {
|
|
4840
|
-
/** URL to the conversation */
|
|
4841
|
-
url?: string;
|
|
4842
|
-
attributes?: Record<string, string>;
|
|
4843
|
-
/** Date of the conversation creation */
|
|
4844
|
-
createdAt?: Timestamp;
|
|
4845
|
-
}
|
|
4846
|
-
/** A message posted in the conversation by a user or a team member. */
|
|
4847
|
-
export interface ConversationPartMessage {
|
|
4848
|
-
type: 'message';
|
|
4849
|
-
role: 'user' | 'assistant' | 'team-member';
|
|
4850
|
-
/** Markdown or HTML body of the message. */
|
|
4851
|
-
body: string;
|
|
4852
|
-
}
|
|
4853
|
-
export type ConversationPart = ConversationPartMessage;
|
|
4854
|
-
export interface ConversationInput {
|
|
4855
|
-
/**
|
|
4856
|
-
* The unique identifier for the conversation, relative to the source in which it was created.
|
|
4857
|
-
* @minLength 1
|
|
4858
|
-
* @maxLength 255
|
|
4859
|
-
*/
|
|
4860
|
-
id: string;
|
|
4861
|
-
metadata?: ConversationMetadata;
|
|
4862
|
-
/**
|
|
4863
|
-
* The subject of the conversation.
|
|
4864
|
-
* @maxLength 512
|
|
4865
|
-
*/
|
|
4866
|
-
subject?: string;
|
|
4867
|
-
parts: ConversationPart[];
|
|
4868
|
-
}
|
|
4869
|
-
export interface ConversationIssue {
|
|
4870
|
-
object: 'conversation-issue';
|
|
4871
|
-
/** The ID of the conversation issue */
|
|
4872
|
-
id: string;
|
|
4873
|
-
/** The title of the conversation issue */
|
|
4874
|
-
title: string;
|
|
4875
|
-
details: JSONDocument;
|
|
4876
|
-
/**
|
|
4877
|
-
* Estimated end-user impact of a conversation issue.
|
|
4878
|
-
*
|
|
4879
|
-
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4880
|
-
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4881
|
-
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4882
|
-
*/
|
|
4883
|
-
impact: ConversationIssueImpact;
|
|
4884
|
-
createdAt: Timestamp;
|
|
4885
|
-
ingestedAt: Timestamp;
|
|
4886
|
-
/** The ID of the conversation the issue belongs to */
|
|
4887
|
-
conversation: string;
|
|
4888
|
-
/** The ID of the cluster the issue has been linked to */
|
|
4889
|
-
cluster?: string;
|
|
4890
|
-
/** URLs associated with the conversation issue */
|
|
4891
|
-
urls: {
|
|
4892
|
-
/**
|
|
4893
|
-
* URL of the conversation issue in the API
|
|
4894
|
-
* @format uri
|
|
4895
|
-
*/
|
|
4896
|
-
location: string;
|
|
4897
|
-
};
|
|
4898
|
-
}
|
|
4899
|
-
/** State and settings of the agent */
|
|
4900
|
-
export interface AgentSetupState {
|
|
4901
|
-
/** The email address of the agent. Emails can be forwarded to it to ingest conversations. */
|
|
4902
|
-
email: string;
|
|
4903
|
-
/** The stats of the agent. */
|
|
4904
|
-
stats: {
|
|
4905
|
-
/** The number of conversations the agent has indexed. */
|
|
4906
|
-
conversations: number;
|
|
4907
|
-
/** The number of issues the agent has indexed. */
|
|
4908
|
-
issues: number;
|
|
4909
|
-
/** The number of issue clusters the agent has indexed. */
|
|
4910
|
-
issuesClusters: number;
|
|
4911
|
-
sources: Record<string, number>;
|
|
4912
|
-
};
|
|
4913
|
-
/** The settings for the agent. */
|
|
4914
|
-
settings: object;
|
|
4915
|
-
}
|
|
4916
4746
|
export interface OrganizationAgentInstructions {
|
|
4917
4747
|
object: 'agent-instructions';
|
|
4918
4748
|
/** Document containing the Docs agent instructions. */
|
|
@@ -5507,6 +5337,8 @@ export interface SiteSocialAccount {
|
|
|
5507
5337
|
display: {
|
|
5508
5338
|
/** @default true */
|
|
5509
5339
|
footer: boolean;
|
|
5340
|
+
/** @default false */
|
|
5341
|
+
header: boolean;
|
|
5510
5342
|
};
|
|
5511
5343
|
}
|
|
5512
5344
|
/**
|
|
@@ -5514,7 +5346,7 @@ export interface SiteSocialAccount {
|
|
|
5514
5346
|
* @maxItems 10
|
|
5515
5347
|
*/
|
|
5516
5348
|
export type SiteSocialAccounts = SiteSocialAccount[];
|
|
5517
|
-
export interface
|
|
5349
|
+
export interface SiteCustomizationSettingsBase {
|
|
5518
5350
|
/** Title to use for the published site. If not defined, it'll fallback to the default content title. */
|
|
5519
5351
|
title?: SiteTitle;
|
|
5520
5352
|
styling: {
|
|
@@ -5675,6 +5507,10 @@ export interface SiteCustomizationSettings {
|
|
|
5675
5507
|
trackingCookie: boolean;
|
|
5676
5508
|
};
|
|
5677
5509
|
}
|
|
5510
|
+
export type SiteCustomizationSettings = SiteCustomizationSettingsBase & {
|
|
5511
|
+
/** When the customization settings were updated. If missing, customization was not updated. */
|
|
5512
|
+
updatedAt?: Timestamp;
|
|
5513
|
+
};
|
|
5678
5514
|
export interface SiteIntegrationScript {
|
|
5679
5515
|
/** Script URL to load. */
|
|
5680
5516
|
script: URL;
|
|
@@ -5770,6 +5606,7 @@ export type SitePublishingAuthUpdate = (VisitorAuthCustomBackend | VisitorAuthIn
|
|
|
5770
5606
|
*/
|
|
5771
5607
|
fallbackURL?: string | null;
|
|
5772
5608
|
};
|
|
5609
|
+
export type SiteCustomizationSettingsInput = SiteCustomizationSettingsBase;
|
|
5773
5610
|
export type SiteSearchScope = {
|
|
5774
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. */
|
|
5775
5612
|
mode: 'default';
|
|
@@ -5791,6 +5628,8 @@ export interface SearchRecordResult {
|
|
|
5791
5628
|
id: string;
|
|
5792
5629
|
/** The title of the record. */
|
|
5793
5630
|
title: string;
|
|
5631
|
+
/** Relevance score for the record. */
|
|
5632
|
+
score: number;
|
|
5794
5633
|
/** The description of the record. */
|
|
5795
5634
|
description?: string;
|
|
5796
5635
|
/**
|
|
@@ -5950,14 +5789,37 @@ export interface SiteQuestionStatsAnswered {
|
|
|
5950
5789
|
/** Count of answers assessed as not answered. */
|
|
5951
5790
|
no: number;
|
|
5952
5791
|
}
|
|
5953
|
-
|
|
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. */
|
|
5954
5806
|
export interface SiteQuestionStats {
|
|
5955
|
-
/** Total count of
|
|
5807
|
+
/** Total count of questions included in the aggregation. */
|
|
5808
|
+
total: number;
|
|
5809
|
+
/** Total count of answers linked to the questions. */
|
|
5956
5810
|
answers: number;
|
|
5957
5811
|
/** Aggregated feedback for answers linked to a site question. */
|
|
5958
5812
|
feedback: SiteQuestionStatsFeedback;
|
|
5959
5813
|
/** Aggregated answered assessment for answers linked to a site question. */
|
|
5960
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[];
|
|
5961
5823
|
}
|
|
5962
5824
|
export interface SiteTopic {
|
|
5963
5825
|
object: 'context-topic';
|
|
@@ -5978,17 +5840,11 @@ export interface SiteTopic {
|
|
|
5978
5840
|
icon: Icon;
|
|
5979
5841
|
summary: JSONDocument;
|
|
5980
5842
|
usageSettings: ContextUsageSettings;
|
|
5981
|
-
/**
|
|
5982
|
-
* The weekly pulse of related question answers for the past 3 months
|
|
5983
|
-
* @maxItems 13
|
|
5984
|
-
* @minItems 13
|
|
5985
|
-
*/
|
|
5986
|
-
weeklyPulse: number[];
|
|
5987
5843
|
/** The number of pages associated with the topic */
|
|
5988
5844
|
pages: number;
|
|
5989
5845
|
/** The number of records in the topic */
|
|
5990
5846
|
records: number;
|
|
5991
|
-
/** Aggregated stats for
|
|
5847
|
+
/** Aggregated stats for questions and linked answers. */
|
|
5992
5848
|
questions: SiteQuestionStats;
|
|
5993
5849
|
/** URLs associated with the topic */
|
|
5994
5850
|
urls: {
|
|
@@ -6016,7 +5872,7 @@ export interface SiteQuestion {
|
|
|
6016
5872
|
/** Type classification of the user question. */
|
|
6017
5873
|
type: SiteQuestionType;
|
|
6018
5874
|
createdAt: Timestamp;
|
|
6019
|
-
/** Aggregated stats for
|
|
5875
|
+
/** Aggregated stats for questions and linked answers. */
|
|
6020
5876
|
stats: SiteQuestionStats;
|
|
6021
5877
|
/** URLs associated with the site question. */
|
|
6022
5878
|
urls: {
|
|
@@ -6677,7 +6533,8 @@ export type SiteInsightsEventSession = SiteInsightsSession & {
|
|
|
6677
6533
|
/** Context in which the event was recorded. */
|
|
6678
6534
|
export declare enum SiteInsightsDisplayContext {
|
|
6679
6535
|
Site = "site",
|
|
6680
|
-
Embed = "embed"
|
|
6536
|
+
Embed = "embed",
|
|
6537
|
+
Mcp = "mcp"
|
|
6681
6538
|
}
|
|
6682
6539
|
/** Location of the event. */
|
|
6683
6540
|
export interface SiteInsightsEventLocation {
|
|
@@ -6965,7 +6822,17 @@ export declare enum SiteInsightsVisitorBot {
|
|
|
6965
6822
|
Facebookbot = "facebookbot",
|
|
6966
6823
|
Applebot = "applebot",
|
|
6967
6824
|
Chatgpt = "chatgpt",
|
|
6968
|
-
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"
|
|
6969
6836
|
}
|
|
6970
6837
|
export type SiteInsightsQueryEventsValues = {
|
|
6971
6838
|
column: 'datetime';
|
|
@@ -7194,7 +7061,11 @@ export interface SiteRedirectDestinationPage {
|
|
|
7194
7061
|
/** Unique identifier for the page within the site space to redirect to */
|
|
7195
7062
|
pageId: string;
|
|
7196
7063
|
}
|
|
7197
|
-
export
|
|
7064
|
+
export interface SiteRedirectDestinationExternal {
|
|
7065
|
+
kind: 'external';
|
|
7066
|
+
url: URL;
|
|
7067
|
+
}
|
|
7068
|
+
export type SiteRedirectDestination = SiteRedirectDestinationSiteSection | SiteRedirectDestinationSiteSpace | SiteRedirectDestinationPage | SiteRedirectDestinationExternal;
|
|
7198
7069
|
export interface SiteRedirect {
|
|
7199
7070
|
object: 'site-redirect';
|
|
7200
7071
|
/** The unique identifier for the redirect. */
|
|
@@ -8309,7 +8180,6 @@ export type IngegrationPropertyTitle = IntegrationPropertyTitle;
|
|
|
8309
8180
|
export type UserPermissions = Index;
|
|
8310
8181
|
export type SiteRedirectDestinationSpace = SiteRedirectDestinationSiteSpace;
|
|
8311
8182
|
export type OpenAPISpecSourceURL = URL;
|
|
8312
|
-
export type AgentsSetupState = AgentSetupState;
|
|
8313
8183
|
import { EventIterator } from 'event-iterator';
|
|
8314
8184
|
export type QueryParamsType = Record<string | number, any>;
|
|
8315
8185
|
export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
@@ -9197,8 +9067,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9197
9067
|
contributor?: string;
|
|
9198
9068
|
/** If defined, only change requests with a requested reviewer for this user will be returned. */
|
|
9199
9069
|
requestedReviewer?: string;
|
|
9200
|
-
/** If defined, only change requests associated with this conversations issues cluster will be returned. */
|
|
9201
|
-
conversationsIssuesCluster?: string;
|
|
9202
9070
|
/** The field to sort change requests by. Defaults to 'updatedAt'. */
|
|
9203
9071
|
orderBy?: ChangeRequestOrderBy;
|
|
9204
9072
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -11816,8 +11684,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11816
11684
|
contributor?: string;
|
|
11817
11685
|
/** If defined, only change requests with a requested reviewer for this user will be returned. */
|
|
11818
11686
|
requestedReviewer?: string;
|
|
11819
|
-
/** If defined, only change requests associated with this conversations issues cluster will be returned. */
|
|
11820
|
-
conversationsIssuesCluster?: string;
|
|
11821
11687
|
/** The field to sort change requests by. Defaults to 'updatedAt'. */
|
|
11822
11688
|
orderBy?: ChangeRequestOrderBy;
|
|
11823
11689
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
@@ -12363,183 +12229,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12363
12229
|
message: string;
|
|
12364
12230
|
};
|
|
12365
12231
|
}>>;
|
|
12366
|
-
/**
|
|
12367
|
-
* No description
|
|
12368
|
-
*
|
|
12369
|
-
* @tags conversations
|
|
12370
|
-
* @name ListConversationsIssuesClusters
|
|
12371
|
-
* @summary List conversations issues clusters
|
|
12372
|
-
* @request GET:/orgs/{organizationId}/conversations-clusters
|
|
12373
|
-
* @secure
|
|
12374
|
-
*/
|
|
12375
|
-
listConversationsIssuesClusters: (organizationId: string, query?: {
|
|
12376
|
-
/** Identifier of the page results to fetch. */
|
|
12377
|
-
page?: string;
|
|
12378
|
-
/**
|
|
12379
|
-
* The number of results per page
|
|
12380
|
-
* @min 0
|
|
12381
|
-
* @max 1000
|
|
12382
|
-
*/
|
|
12383
|
-
limit?: number;
|
|
12384
|
-
/**
|
|
12385
|
-
* An order for the items in the list
|
|
12386
|
-
* @default "desc"
|
|
12387
|
-
*/
|
|
12388
|
-
order?: "asc" | "desc";
|
|
12389
|
-
/** @default "updatedAt" */
|
|
12390
|
-
orderBy?: "updatedAt" | "issues" | "conversations" | "impact";
|
|
12391
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12392
|
-
items: ConversationsIssuesCluster[];
|
|
12393
|
-
}, {
|
|
12394
|
-
error: {
|
|
12395
|
-
/** @format int32 */
|
|
12396
|
-
code: 404;
|
|
12397
|
-
message: string;
|
|
12398
|
-
};
|
|
12399
|
-
}>>;
|
|
12400
|
-
/**
|
|
12401
|
-
* No description
|
|
12402
|
-
*
|
|
12403
|
-
* @tags conversations
|
|
12404
|
-
* @name GetConversationsIssuesCluster
|
|
12405
|
-
* @summary Get a conversations issues cluster by its identifier
|
|
12406
|
-
* @request GET:/orgs/{organizationId}/conversations-clusters/{clusterId}
|
|
12407
|
-
* @secure
|
|
12408
|
-
*/
|
|
12409
|
-
getConversationsIssuesCluster: (organizationId: string, clusterId: string, params?: RequestParams) => Promise<HttpResponse<ConversationsIssuesCluster, any>>;
|
|
12410
|
-
/**
|
|
12411
|
-
* No description
|
|
12412
|
-
*
|
|
12413
|
-
* @tags conversations
|
|
12414
|
-
* @name UpdateConversationsIssuesCluster
|
|
12415
|
-
* @summary Update a conversations issues cluster
|
|
12416
|
-
* @request PATCH:/orgs/{organizationId}/conversations-clusters/{clusterId}
|
|
12417
|
-
* @secure
|
|
12418
|
-
*/
|
|
12419
|
-
updateConversationsIssuesCluster: (organizationId: string, clusterId: string, data: {
|
|
12420
|
-
/** Whether the cluster is muted for change request creation */
|
|
12421
|
-
muted: boolean;
|
|
12422
|
-
}, params?: RequestParams) => Promise<HttpResponse<ConversationsIssuesCluster, any>>;
|
|
12423
|
-
/**
|
|
12424
|
-
* No description
|
|
12425
|
-
*
|
|
12426
|
-
* @tags conversations
|
|
12427
|
-
* @name ListConversations
|
|
12428
|
-
* @summary List conversations
|
|
12429
|
-
* @request GET:/orgs/{organizationId}/conversations
|
|
12430
|
-
* @secure
|
|
12431
|
-
*/
|
|
12432
|
-
listConversations: (organizationId: string, query?: {
|
|
12433
|
-
/** Identifier of the page results to fetch. */
|
|
12434
|
-
page?: string;
|
|
12435
|
-
/**
|
|
12436
|
-
* The number of results per page
|
|
12437
|
-
* @min 0
|
|
12438
|
-
* @max 1000
|
|
12439
|
-
*/
|
|
12440
|
-
limit?: number;
|
|
12441
|
-
/** Filter conversations by their source identifier */
|
|
12442
|
-
source?: string;
|
|
12443
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12444
|
-
items: Conversation[];
|
|
12445
|
-
}, any>>;
|
|
12446
|
-
/**
|
|
12447
|
-
* No description
|
|
12448
|
-
*
|
|
12449
|
-
* @tags conversations
|
|
12450
|
-
* @name IngestConversation
|
|
12451
|
-
* @summary Ingest conversations
|
|
12452
|
-
* @request POST:/orgs/{organizationId}/conversations
|
|
12453
|
-
* @secure
|
|
12454
|
-
*/
|
|
12455
|
-
ingestConversation: (organizationId: string, data: ConversationInput | ConversationInput[], params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
12456
|
-
/**
|
|
12457
|
-
* No description
|
|
12458
|
-
*
|
|
12459
|
-
* @tags conversations
|
|
12460
|
-
* @name ListConversationsIssues
|
|
12461
|
-
* @summary List conversation issues
|
|
12462
|
-
* @request GET:/orgs/{organizationId}/conversations-issues
|
|
12463
|
-
* @secure
|
|
12464
|
-
*/
|
|
12465
|
-
listConversationsIssues: (organizationId: string, query?: {
|
|
12466
|
-
/** Identifier of the page results to fetch. */
|
|
12467
|
-
page?: string;
|
|
12468
|
-
/**
|
|
12469
|
-
* The number of results per page
|
|
12470
|
-
* @min 0
|
|
12471
|
-
* @max 1000
|
|
12472
|
-
*/
|
|
12473
|
-
limit?: number;
|
|
12474
|
-
/** Filter conversation issues by cluster identifier. */
|
|
12475
|
-
cluster?: string;
|
|
12476
|
-
/** Filter conversation issues by conversation identifier. */
|
|
12477
|
-
conversation?: string;
|
|
12478
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
12479
|
-
items: {
|
|
12480
|
-
issue: ConversationIssue;
|
|
12481
|
-
conversation: Conversation;
|
|
12482
|
-
}[];
|
|
12483
|
-
}, any>>;
|
|
12484
|
-
/**
|
|
12485
|
-
* No description
|
|
12486
|
-
*
|
|
12487
|
-
* @tags conversations
|
|
12488
|
-
* @name GetConversationIssueById
|
|
12489
|
-
* @summary Get a conversation issue by ID
|
|
12490
|
-
* @request GET:/orgs/{organizationId}/conversations-issues/{issueId}
|
|
12491
|
-
* @secure
|
|
12492
|
-
*/
|
|
12493
|
-
getConversationIssueById: (organizationId: string, issueId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
12494
|
-
issue: ConversationIssue;
|
|
12495
|
-
conversation: Conversation;
|
|
12496
|
-
}, {
|
|
12497
|
-
error: {
|
|
12498
|
-
/** @format int32 */
|
|
12499
|
-
code: 404;
|
|
12500
|
-
message: string;
|
|
12501
|
-
};
|
|
12502
|
-
}>>;
|
|
12503
|
-
/**
|
|
12504
|
-
* No description
|
|
12505
|
-
*
|
|
12506
|
-
* @tags conversations
|
|
12507
|
-
* @name GetConversationById
|
|
12508
|
-
* @summary Get a conversation by ID
|
|
12509
|
-
* @request GET:/orgs/{organizationId}/conversations/{conversationId}
|
|
12510
|
-
* @secure
|
|
12511
|
-
*/
|
|
12512
|
-
getConversationById: (organizationId: string, conversationId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
12513
|
-
conversation: Conversation;
|
|
12514
|
-
parts: ConversationPart[];
|
|
12515
|
-
metadata: ConversationMetadata;
|
|
12516
|
-
}, {
|
|
12517
|
-
error: {
|
|
12518
|
-
/** @format int32 */
|
|
12519
|
-
code: 404;
|
|
12520
|
-
message: string;
|
|
12521
|
-
};
|
|
12522
|
-
}>>;
|
|
12523
|
-
/**
|
|
12524
|
-
* @description Get the state of the agent.
|
|
12525
|
-
*
|
|
12526
|
-
* @tags agents, critical
|
|
12527
|
-
* @name GetAgentSetupState
|
|
12528
|
-
* @summary Get the agents setup state
|
|
12529
|
-
* @request GET:/orgs/{organizationId}/agents-setup
|
|
12530
|
-
* @secure
|
|
12531
|
-
*/
|
|
12532
|
-
getAgentSetupState: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<AgentSetupState, any>>;
|
|
12533
|
-
/**
|
|
12534
|
-
* @description Delete all the conversations, conversation issues, and issue clusters used by Docs Agent for an organization.
|
|
12535
|
-
*
|
|
12536
|
-
* @tags agents, critical
|
|
12537
|
-
* @name DeleteAgentSetup
|
|
12538
|
-
* @summary Delete the agents setup data
|
|
12539
|
-
* @request DELETE:/orgs/{organizationId}/agents-setup
|
|
12540
|
-
* @secure
|
|
12541
|
-
*/
|
|
12542
|
-
deleteAgentSetup: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
12543
12232
|
/**
|
|
12544
12233
|
* No description
|
|
12545
12234
|
*
|
|
@@ -12944,12 +12633,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
12944
12633
|
/** Basename for the site. For e.g. api */
|
|
12945
12634
|
basename?: SiteBasename;
|
|
12946
12635
|
adaptiveContent?: SiteAdaptiveContent;
|
|
12947
|
-
/**
|
|
12948
|
-
* Defines if the site will be included in the agent's context.
|
|
12949
|
-
* - `excluded` means that the agent will not be able to access the site.
|
|
12950
|
-
* - `included` means that the agent will be able to access the site.
|
|
12951
|
-
*/
|
|
12952
|
-
agentsContext?: SiteAgentsContext;
|
|
12953
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. */
|
|
12954
12637
|
defaultSiteSpace?: string;
|
|
12955
12638
|
/** ID of the site-section to be used as the default. */
|
|
@@ -13269,7 +12952,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13269
12952
|
* @request PUT:/orgs/{organizationId}/sites/{siteId}/customization
|
|
13270
12953
|
* @secure
|
|
13271
12954
|
*/
|
|
13272
|
-
updateSiteCustomizationById: (organizationId: string, siteId: string, data:
|
|
12955
|
+
updateSiteCustomizationById: (organizationId: string, siteId: string, data: SiteCustomizationSettingsInput, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, {
|
|
13273
12956
|
error: {
|
|
13274
12957
|
/** @format int32 */
|
|
13275
12958
|
code: 400;
|
|
@@ -13788,6 +13471,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13788
13471
|
* @secure
|
|
13789
13472
|
*/
|
|
13790
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>>;
|
|
13791
13484
|
/**
|
|
13792
13485
|
* No description
|
|
13793
13486
|
*
|