@gitbook/api 0.151.0 → 0.152.1
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 +206 -39
- package/dist/constants.d.ts +4 -1
- package/dist/index.cjs +35 -2
- package/dist/index.js +31 -2
- package/package.json +1 -1
- package/spec/openapi.json +338 -102
- package/spec/openapi.yaml +227 -71
package/dist/client.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ export type MergeRule = {
|
|
|
117
117
|
/** List of user IDs. */
|
|
118
118
|
users: string[];
|
|
119
119
|
} | {
|
|
120
|
-
rule: 'require_at_least_one_review' | 'require_all_reviews_approved' | 'require_agent_review' | 'require_up_to_date_change_request' | 'require_change_request_subject' | 'require_change_request_description';
|
|
120
|
+
rule: 'require_at_least_one_review' | 'require_all_reviews_approved' | 'require_agent_review' | 'require_up_to_date_change_request' | 'require_change_request_subject' | 'require_change_request_description' | 'require_author_to_merge';
|
|
121
121
|
} | {
|
|
122
122
|
rule: 'custom';
|
|
123
123
|
/** Expression to evaluate */
|
|
@@ -532,6 +532,12 @@ export interface RevisionPageBase {
|
|
|
532
532
|
* @minLength 1
|
|
533
533
|
*/
|
|
534
534
|
title: string;
|
|
535
|
+
/**
|
|
536
|
+
* Optional custom title for the page ToC and mention entries instead of the page title.
|
|
537
|
+
* @minLength 1
|
|
538
|
+
* @maxLength 100
|
|
539
|
+
*/
|
|
540
|
+
linkTitle?: string;
|
|
535
541
|
/** Emoji of the page, if one has been set. */
|
|
536
542
|
emoji?: Emoji;
|
|
537
543
|
/** Icon of the page, if one has been set. */
|
|
@@ -1334,7 +1340,6 @@ export interface DocumentBlockUpdates {
|
|
|
1334
1340
|
data: {
|
|
1335
1341
|
/** @default "full" */
|
|
1336
1342
|
format: 'numeric' | 'full' | 'short';
|
|
1337
|
-
sticky: boolean;
|
|
1338
1343
|
};
|
|
1339
1344
|
}
|
|
1340
1345
|
export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockIf | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockOpenAPIWebhook | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep | DocumentBlockColumns | DocumentBlockColumn | DocumentBlockUpdates | DocumentBlockUpdate;
|
|
@@ -1371,10 +1376,20 @@ export interface JSONDocument {
|
|
|
1371
1376
|
[key: string]: any;
|
|
1372
1377
|
};
|
|
1373
1378
|
nodes: DocumentBlocksTopLevels[];
|
|
1379
|
+
meta?: {
|
|
1380
|
+
/** A content token that can be used to fetch the content referenced in this document from the API. */
|
|
1381
|
+
token?: string;
|
|
1382
|
+
};
|
|
1374
1383
|
}
|
|
1375
1384
|
export type Document = MarkdownDocument | {
|
|
1376
1385
|
document: JSONDocument;
|
|
1377
1386
|
} | object;
|
|
1387
|
+
/**
|
|
1388
|
+
* Page's slug in its direct parent
|
|
1389
|
+
* @minLength 0
|
|
1390
|
+
* @maxLength 100
|
|
1391
|
+
*/
|
|
1392
|
+
export type RevisionPageSlug = string;
|
|
1378
1393
|
export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
1379
1394
|
/** @deprecated */
|
|
1380
1395
|
kind: 'sheet';
|
|
@@ -1384,7 +1399,7 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1384
1399
|
app: URL;
|
|
1385
1400
|
};
|
|
1386
1401
|
/** Page's slug in its direct parent */
|
|
1387
|
-
slug:
|
|
1402
|
+
slug: RevisionPageSlug;
|
|
1388
1403
|
/** Complete path to access the page in the revision. */
|
|
1389
1404
|
path: string;
|
|
1390
1405
|
description?: string;
|
|
@@ -1887,6 +1902,12 @@ export interface OrganizationBilling {
|
|
|
1887
1902
|
pricing: OrganizationPricing;
|
|
1888
1903
|
/** Configuration for the usage-based addons */
|
|
1889
1904
|
usageAddons: Record<string, BillingMeterAddon>;
|
|
1905
|
+
/** The minimum number of members allowed for this organization. */
|
|
1906
|
+
minUsers?: number;
|
|
1907
|
+
/** The maximum number of members allowed for this organization */
|
|
1908
|
+
maxUsers?: number;
|
|
1909
|
+
/** The number of paid members on the current subscription. */
|
|
1910
|
+
paidMembers?: number;
|
|
1890
1911
|
}
|
|
1891
1912
|
/** - 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. */
|
|
1892
1913
|
export declare enum BillingTrialStatus {
|
|
@@ -2961,6 +2982,11 @@ export interface OrganizationTarget {
|
|
|
2961
2982
|
organization: string;
|
|
2962
2983
|
}
|
|
2963
2984
|
export type IntegrationInstallationTarget = OrganizationTarget;
|
|
2985
|
+
/** Network configuration for the installation */
|
|
2986
|
+
export interface IntegrationNetwork {
|
|
2987
|
+
/** Whether the installation is proxied through the backend */
|
|
2988
|
+
proxy?: boolean;
|
|
2989
|
+
}
|
|
2964
2990
|
/** Installation of an integration on an account */
|
|
2965
2991
|
export interface IntegrationInstallation {
|
|
2966
2992
|
id: string;
|
|
@@ -2997,6 +3023,8 @@ export interface IntegrationInstallation {
|
|
|
2997
3023
|
externalIds: IntegrationInstallationExternalIds;
|
|
2998
3024
|
/** Target of the integration installation */
|
|
2999
3025
|
target: IntegrationInstallationTarget;
|
|
3026
|
+
/** Network configuration for the installation */
|
|
3027
|
+
network?: IntegrationNetwork;
|
|
3000
3028
|
}
|
|
3001
3029
|
/** Common properties for all events. */
|
|
3002
3030
|
export interface BaseEvent {
|
|
@@ -3159,6 +3187,12 @@ export type SpaceVisibilityUpdatedEvent = SpaceEvent & {
|
|
|
3159
3187
|
*/
|
|
3160
3188
|
visibility: ContentVisibility;
|
|
3161
3189
|
};
|
|
3190
|
+
/** Event representing a background task trigger for an integration. */
|
|
3191
|
+
export type TaskEvent = BaseEvent & {
|
|
3192
|
+
type: 'task';
|
|
3193
|
+
/** Payload associated with the integration task. */
|
|
3194
|
+
task: object;
|
|
3195
|
+
};
|
|
3162
3196
|
export interface FetchRequest {
|
|
3163
3197
|
method: 'post' | 'get' | 'put' | 'delete';
|
|
3164
3198
|
url: string;
|
|
@@ -3302,7 +3336,7 @@ export type PageFeedbackEvent = BaseEvent & {
|
|
|
3302
3336
|
referrer: string;
|
|
3303
3337
|
};
|
|
3304
3338
|
/** Any event that can be received from GitBook. */
|
|
3305
|
-
export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent | PageFeedbackEvent;
|
|
3339
|
+
export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | TaskEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent | PageFeedbackEvent;
|
|
3306
3340
|
export interface IntegrationEvent {
|
|
3307
3341
|
/** Unique ID of the event. */
|
|
3308
3342
|
id: string;
|
|
@@ -4296,16 +4330,12 @@ export interface BillingDiscount {
|
|
|
4296
4330
|
/** Percent that will be deducted from the subtotal of the invoice */
|
|
4297
4331
|
percentOff: number;
|
|
4298
4332
|
}
|
|
4299
|
-
export interface
|
|
4300
|
-
object: 'site-
|
|
4301
|
-
site
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
/** Number of pageviews in the past 30 days */
|
|
4306
|
-
pageviews: number;
|
|
4307
|
-
};
|
|
4308
|
-
features: SiteFeature[];
|
|
4333
|
+
export interface SitePageviews {
|
|
4334
|
+
object: 'site-pageviews';
|
|
4335
|
+
/** The identifier of the site */
|
|
4336
|
+
siteId: string;
|
|
4337
|
+
/** Number of pageviews in the past 30 days */
|
|
4338
|
+
pageviews: number;
|
|
4309
4339
|
}
|
|
4310
4340
|
export interface BillingPortal {
|
|
4311
4341
|
/** URL to the billing portal for an organization */
|
|
@@ -4595,6 +4625,18 @@ export interface OpenAPISpecContent {
|
|
|
4595
4625
|
filesystem: object;
|
|
4596
4626
|
url: URL;
|
|
4597
4627
|
}
|
|
4628
|
+
/**
|
|
4629
|
+
* Estimated end-user impact of a conversation issue.
|
|
4630
|
+
*
|
|
4631
|
+
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4632
|
+
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4633
|
+
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4634
|
+
*/
|
|
4635
|
+
export declare enum ConversationIssueImpact {
|
|
4636
|
+
Low = "low",
|
|
4637
|
+
Medium = "medium",
|
|
4638
|
+
High = "high"
|
|
4639
|
+
}
|
|
4598
4640
|
export interface ConversationsIssuesCluster {
|
|
4599
4641
|
object: 'issues-cluster';
|
|
4600
4642
|
/** The ID of the conversations issues cluster */
|
|
@@ -4605,8 +4647,17 @@ export interface ConversationsIssuesCluster {
|
|
|
4605
4647
|
updatedAt: Timestamp;
|
|
4606
4648
|
/** Name of the icon */
|
|
4607
4649
|
icon: Icon;
|
|
4608
|
-
|
|
4609
|
-
|
|
4650
|
+
summary: JSONDocument;
|
|
4651
|
+
/** Whether the cluster is muted for change request creation */
|
|
4652
|
+
muted: boolean;
|
|
4653
|
+
/**
|
|
4654
|
+
* Estimated end-user impact of a conversation issue.
|
|
4655
|
+
*
|
|
4656
|
+
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4657
|
+
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4658
|
+
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4659
|
+
*/
|
|
4660
|
+
impact: ConversationIssueImpact;
|
|
4610
4661
|
/**
|
|
4611
4662
|
* The weekly pulse of the conversations issues cluster for the past 3 months
|
|
4612
4663
|
* @maxItems 13
|
|
@@ -4642,6 +4693,14 @@ export interface Conversation {
|
|
|
4642
4693
|
processedAt?: Timestamp;
|
|
4643
4694
|
/** Integration source */
|
|
4644
4695
|
source: ConversationSource;
|
|
4696
|
+
/**
|
|
4697
|
+
* Estimated end-user impact of a conversation issue.
|
|
4698
|
+
*
|
|
4699
|
+
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4700
|
+
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4701
|
+
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4702
|
+
*/
|
|
4703
|
+
impact: ConversationIssueImpact;
|
|
4645
4704
|
/** URLs associated with the conversation */
|
|
4646
4705
|
urls: {
|
|
4647
4706
|
/**
|
|
@@ -4692,8 +4751,15 @@ export interface ConversationIssue {
|
|
|
4692
4751
|
id: string;
|
|
4693
4752
|
/** The title of the conversation issue */
|
|
4694
4753
|
title: string;
|
|
4695
|
-
|
|
4696
|
-
|
|
4754
|
+
details: JSONDocument;
|
|
4755
|
+
/**
|
|
4756
|
+
* Estimated end-user impact of a conversation issue.
|
|
4757
|
+
*
|
|
4758
|
+
* - low: Minor friction or small polish issues; users can proceed with little to no guidance.
|
|
4759
|
+
* - medium: Noticeable friction or partial blocking; users can proceed with workarounds or extra guidance.
|
|
4760
|
+
* - high: Fully or near-fully blocking, severe regression, repeated failures, or risk of data loss; no viable workaround.
|
|
4761
|
+
*/
|
|
4762
|
+
impact: ConversationIssueImpact;
|
|
4697
4763
|
createdAt: Timestamp;
|
|
4698
4764
|
ingestedAt: Timestamp;
|
|
4699
4765
|
/** The ID of the conversation the issue belongs to */
|
|
@@ -5590,6 +5656,12 @@ export type AIMessageTask = {
|
|
|
5590
5656
|
spaceId: string;
|
|
5591
5657
|
/** The ID of the change request to review. */
|
|
5592
5658
|
changeRequestId: string;
|
|
5659
|
+
} | {
|
|
5660
|
+
type: 'implement_change_request';
|
|
5661
|
+
/** The ID of the space the change request is in. */
|
|
5662
|
+
spaceId: string;
|
|
5663
|
+
/** The ID of the change request to implement the task in. */
|
|
5664
|
+
changeRequestId: string;
|
|
5593
5665
|
};
|
|
5594
5666
|
/** Message emitted by the server to indicate the start of the AI response. */
|
|
5595
5667
|
export interface AIStreamResponseStart {
|
|
@@ -5599,13 +5671,25 @@ export interface AIStreamResponseStart {
|
|
|
5599
5671
|
/** When the agent is responding to a comment. */
|
|
5600
5672
|
task?: AIMessageTask;
|
|
5601
5673
|
}
|
|
5674
|
+
/** The response that generated this message. */
|
|
5675
|
+
export interface AIMessageResponseMetadata {
|
|
5676
|
+
/** The ID of the response that generated this message. */
|
|
5677
|
+
id: string;
|
|
5678
|
+
/** The ID of the previous response that this message is based on. */
|
|
5679
|
+
previous?: string;
|
|
5680
|
+
}
|
|
5602
5681
|
/** Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests. */
|
|
5603
5682
|
export interface AIStreamResponseFinish {
|
|
5604
5683
|
type: 'response_finish';
|
|
5605
5684
|
/** The ID of the message that this event is composing. */
|
|
5606
5685
|
messageId: string;
|
|
5607
|
-
/**
|
|
5686
|
+
/**
|
|
5687
|
+
* The ID of the response
|
|
5688
|
+
* @deprecated
|
|
5689
|
+
*/
|
|
5608
5690
|
responseId: string;
|
|
5691
|
+
/** The response that generated this message. */
|
|
5692
|
+
response: AIMessageResponseMetadata;
|
|
5609
5693
|
}
|
|
5610
5694
|
/** Message emitted by the server to indicate the latest block of the document. The block can either be a new block or an update to the previous block. */
|
|
5611
5695
|
export interface AIStreamResponseDocument {
|
|
@@ -5987,7 +6071,8 @@ export declare enum SiteInsightsTrademarkPlacement {
|
|
|
5987
6071
|
Sidebar = "sidebar",
|
|
5988
6072
|
Ad = "ad",
|
|
5989
6073
|
Footer = "footer",
|
|
5990
|
-
Pdf = "pdf"
|
|
6074
|
+
Pdf = "pdf",
|
|
6075
|
+
Embed = "embed"
|
|
5991
6076
|
}
|
|
5992
6077
|
export type SiteInsightsEventTrademarkClick = SiteInsightsEventBase & {
|
|
5993
6078
|
type: 'trademark_click';
|
|
@@ -6774,6 +6859,12 @@ export type InputPageBase = {
|
|
|
6774
6859
|
id?: string;
|
|
6775
6860
|
/** @minLength 1 */
|
|
6776
6861
|
title: string;
|
|
6862
|
+
/**
|
|
6863
|
+
* Optional custom title for the page ToC and mention entries instead of the page title.
|
|
6864
|
+
* @minLength 1
|
|
6865
|
+
* @maxLength 100
|
|
6866
|
+
*/
|
|
6867
|
+
linkTitle?: string;
|
|
6777
6868
|
} & ({
|
|
6778
6869
|
/** Emoji of the page. */
|
|
6779
6870
|
emoji: Emoji;
|
|
@@ -6936,6 +7027,8 @@ export interface IntegrationEnvironment {
|
|
|
6936
7027
|
/** API authentication token representing the current installation. */
|
|
6937
7028
|
installation?: string;
|
|
6938
7029
|
};
|
|
7030
|
+
/** Network configuration for the integration environment */
|
|
7031
|
+
network?: IntegrationNetwork;
|
|
6939
7032
|
}
|
|
6940
7033
|
export interface SpaceIntegrationScript {
|
|
6941
7034
|
/** Script URL to load. */
|
|
@@ -7076,6 +7169,11 @@ export interface OrganizationInfoChannel {
|
|
|
7076
7169
|
channel: 'organization';
|
|
7077
7170
|
organization: string;
|
|
7078
7171
|
}
|
|
7172
|
+
/** Subscription channel for changes in Docs Agent data in an organization. */
|
|
7173
|
+
export interface OrganizationAgentDataChannel {
|
|
7174
|
+
channel: 'organization-agent-data';
|
|
7175
|
+
organization: string;
|
|
7176
|
+
}
|
|
7079
7177
|
export interface OrganizationInviteLinksChannel {
|
|
7080
7178
|
channel: 'organization-link-invites';
|
|
7081
7179
|
organization: string;
|
|
@@ -7136,11 +7234,6 @@ export interface OrganizationSitesChannel {
|
|
|
7136
7234
|
channel: 'organization-sites';
|
|
7137
7235
|
organization: string;
|
|
7138
7236
|
}
|
|
7139
|
-
/** Channel for messages everytime a space is indexed by the AI in an organization */
|
|
7140
|
-
export interface OrganizationAIIndexationChannel {
|
|
7141
|
-
channel: 'organization-ai-indexation';
|
|
7142
|
-
organization: string;
|
|
7143
|
-
}
|
|
7144
7237
|
/** Subscription channel for changes in OpenAPI specifications in an organization. */
|
|
7145
7238
|
export interface OrganizationOpenAPISpecsChannel {
|
|
7146
7239
|
channel: 'organization-openapi-specs';
|
|
@@ -7318,7 +7411,7 @@ export interface ImportRunChannel {
|
|
|
7318
7411
|
runId: string;
|
|
7319
7412
|
}
|
|
7320
7413
|
/** Channel to subscribe to for realtime updates. */
|
|
7321
|
-
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel |
|
|
7414
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationAgentDataChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationOpenAPISpecsChannel | OrganizationTranslationsChannel | OrganizationTranslationsGlossaryChannel | OrganizationCustomFontsChannel | OrganizationAgentInstructionsChannel | OrganizationChangeRequestsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SiteAdaptiveSchemaChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteMcpServersChannel | SiteMcpServerChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncOperationChannel | OpenAPISpecChannel | SubdomainChannel | TranslationChannel | TranslationRunChannel | ImportRunChannel;
|
|
7322
7415
|
export interface TranslationRunChannelData {
|
|
7323
7416
|
channel: 'translation-run';
|
|
7324
7417
|
data: {
|
|
@@ -7354,13 +7447,6 @@ export interface ChangeRequestContentRefsChannelData {
|
|
|
7354
7447
|
updatedAt: number;
|
|
7355
7448
|
};
|
|
7356
7449
|
}
|
|
7357
|
-
export interface OrganizationAIIndexationChannelData {
|
|
7358
|
-
channel: 'organization-ai-indexation';
|
|
7359
|
-
data: {
|
|
7360
|
-
/** The space that was indexed */
|
|
7361
|
-
space: string;
|
|
7362
|
-
};
|
|
7363
|
-
}
|
|
7364
7450
|
export interface APIChannelMutationData {
|
|
7365
7451
|
channel: '*';
|
|
7366
7452
|
/** Data passed on the channels associated to API endpoints. */
|
|
@@ -7370,7 +7456,7 @@ export interface APIChannelMutationData {
|
|
|
7370
7456
|
};
|
|
7371
7457
|
}
|
|
7372
7458
|
/** Data passed through a realtime channel */
|
|
7373
|
-
export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData |
|
|
7459
|
+
export type SubscriptionChannelData = GitSyncOperationChannelData | SpaceContentRefsChannelData | ChangeRequestContentRefsChannelData | TranslationRunChannelData | ImportRunChannelData | APIChannelMutationData;
|
|
7374
7460
|
export type SiteAdaptiveDeterministicJSONSchemaClaimsProperties = SiteAdaptiveDeterministicJSONSchemaPrimitives | {
|
|
7375
7461
|
type: 'object';
|
|
7376
7462
|
description: string;
|
|
@@ -7413,6 +7499,8 @@ export interface AIMessage {
|
|
|
7413
7499
|
steps: AIMessageStep[];
|
|
7414
7500
|
/** When the agent is responding to a comment. */
|
|
7415
7501
|
task?: AIMessageTask;
|
|
7502
|
+
/** The response that generated this message. */
|
|
7503
|
+
response?: AIMessageResponseMetadata;
|
|
7416
7504
|
}
|
|
7417
7505
|
/** Payload emitted by the agent to reset the messages. */
|
|
7418
7506
|
export interface AgentStreamMessages {
|
|
@@ -8135,6 +8223,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8135
8223
|
* @default false
|
|
8136
8224
|
*/
|
|
8137
8225
|
evaluated?: boolean | "deterministic-only";
|
|
8226
|
+
/**
|
|
8227
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
8228
|
+
* - When set to `true`, the entire document will be deferenced
|
|
8229
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
8230
|
+
* @default false
|
|
8231
|
+
*/
|
|
8232
|
+
dereferenced?: boolean | "reusable-contents";
|
|
8138
8233
|
/**
|
|
8139
8234
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
8140
8235
|
* @default true
|
|
@@ -8226,6 +8321,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8226
8321
|
* @default false
|
|
8227
8322
|
*/
|
|
8228
8323
|
evaluated?: boolean | "deterministic-only";
|
|
8324
|
+
/**
|
|
8325
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
8326
|
+
* - When set to `true`, the entire document will be deferenced
|
|
8327
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
8328
|
+
* @default false
|
|
8329
|
+
*/
|
|
8330
|
+
dereferenced?: boolean | "reusable-contents";
|
|
8229
8331
|
/**
|
|
8230
8332
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
8231
8333
|
* @default true
|
|
@@ -8871,6 +8973,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8871
8973
|
* @default false
|
|
8872
8974
|
*/
|
|
8873
8975
|
evaluated?: boolean | "deterministic-only";
|
|
8976
|
+
/**
|
|
8977
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
8978
|
+
* - When set to `true`, the entire document will be deferenced
|
|
8979
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
8980
|
+
* @default false
|
|
8981
|
+
*/
|
|
8982
|
+
dereferenced?: boolean | "reusable-contents";
|
|
8874
8983
|
/**
|
|
8875
8984
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
8876
8985
|
* @default true
|
|
@@ -9138,6 +9247,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9138
9247
|
* @default false
|
|
9139
9248
|
*/
|
|
9140
9249
|
evaluated?: boolean | "deterministic-only";
|
|
9250
|
+
/**
|
|
9251
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
9252
|
+
* - When set to `true`, the entire document will be deferenced
|
|
9253
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
9254
|
+
* @default false
|
|
9255
|
+
*/
|
|
9256
|
+
dereferenced?: boolean | "reusable-contents";
|
|
9141
9257
|
/**
|
|
9142
9258
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
9143
9259
|
* @default true
|
|
@@ -9167,6 +9283,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9167
9283
|
* @default false
|
|
9168
9284
|
*/
|
|
9169
9285
|
evaluated?: boolean | "deterministic-only";
|
|
9286
|
+
/**
|
|
9287
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
9288
|
+
* - When set to `true`, the entire document will be deferenced
|
|
9289
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
9290
|
+
* @default false
|
|
9291
|
+
*/
|
|
9292
|
+
dereferenced?: boolean | "reusable-contents";
|
|
9170
9293
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
9171
9294
|
/**
|
|
9172
9295
|
* No description
|
|
@@ -9188,6 +9311,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9188
9311
|
* @default false
|
|
9189
9312
|
*/
|
|
9190
9313
|
evaluated?: boolean | "deterministic-only";
|
|
9314
|
+
/**
|
|
9315
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
9316
|
+
* - When set to `true`, the entire document will be deferenced
|
|
9317
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
9318
|
+
* @default false
|
|
9319
|
+
*/
|
|
9320
|
+
dereferenced?: boolean | "reusable-contents";
|
|
9191
9321
|
/**
|
|
9192
9322
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
9193
9323
|
* @default true
|
|
@@ -9229,6 +9359,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9229
9359
|
* @default false
|
|
9230
9360
|
*/
|
|
9231
9361
|
evaluated?: boolean | "deterministic-only";
|
|
9362
|
+
/**
|
|
9363
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
9364
|
+
* - When set to `true`, the entire document will be deferenced
|
|
9365
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
9366
|
+
* @default false
|
|
9367
|
+
*/
|
|
9368
|
+
dereferenced?: boolean | "reusable-contents";
|
|
9232
9369
|
/**
|
|
9233
9370
|
* If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
9234
9371
|
* @default true
|
|
@@ -9279,6 +9416,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9279
9416
|
* @default false
|
|
9280
9417
|
*/
|
|
9281
9418
|
evaluated?: boolean | "deterministic-only";
|
|
9419
|
+
/**
|
|
9420
|
+
* Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
|
|
9421
|
+
* - When set to `true`, the entire document will be deferenced
|
|
9422
|
+
* - When set to `reusable-contents`, only reusable contents will be deferenced.
|
|
9423
|
+
* @default false
|
|
9424
|
+
*/
|
|
9425
|
+
dereferenced?: boolean | "reusable-contents";
|
|
9282
9426
|
}, params?: RequestParams) => Promise<HttpResponse<JSONDocument, any>>;
|
|
9283
9427
|
/**
|
|
9284
9428
|
* No description
|
|
@@ -10916,10 +11060,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10916
11060
|
*/
|
|
10917
11061
|
limit?: number;
|
|
10918
11062
|
/**
|
|
10919
|
-
* If defined, only change requests matching
|
|
10920
|
-
* @default "open"
|
|
11063
|
+
* If defined, only change requests matching the statuses will be returned.
|
|
11064
|
+
* @default ["open"]
|
|
10921
11065
|
*/
|
|
10922
|
-
status?: ChangeRequestStatus;
|
|
11066
|
+
status?: ChangeRequestStatus[];
|
|
10923
11067
|
/** If defined, only change requests created by this user will be returned. */
|
|
10924
11068
|
creator?: string;
|
|
10925
11069
|
/** If defined, only change requests with contributions from this user will be returned. */
|
|
@@ -11495,7 +11639,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11495
11639
|
*/
|
|
11496
11640
|
order?: "asc" | "desc";
|
|
11497
11641
|
/** @default "updatedAt" */
|
|
11498
|
-
orderBy?: "updatedAt" | "issues" | "conversations";
|
|
11642
|
+
orderBy?: "updatedAt" | "issues" | "conversations" | "impact";
|
|
11499
11643
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
11500
11644
|
items: ConversationsIssuesCluster[];
|
|
11501
11645
|
}, {
|
|
@@ -11508,13 +11652,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11508
11652
|
/**
|
|
11509
11653
|
* No description
|
|
11510
11654
|
*
|
|
11511
|
-
* @tags
|
|
11655
|
+
* @tags conversations
|
|
11512
11656
|
* @name GetConversationsIssuesCluster
|
|
11513
11657
|
* @summary Get a conversations issues cluster by its identifier
|
|
11514
11658
|
* @request GET:/orgs/{organizationId}/conversations-clusters/{clusterId}
|
|
11515
11659
|
* @secure
|
|
11516
11660
|
*/
|
|
11517
11661
|
getConversationsIssuesCluster: (organizationId: string, clusterId: string, params?: RequestParams) => Promise<HttpResponse<ConversationsIssuesCluster, any>>;
|
|
11662
|
+
/**
|
|
11663
|
+
* No description
|
|
11664
|
+
*
|
|
11665
|
+
* @tags conversations
|
|
11666
|
+
* @name UpdateConversationsIssuesCluster
|
|
11667
|
+
* @summary Update a conversations issues cluster
|
|
11668
|
+
* @request PATCH:/orgs/{organizationId}/conversations-clusters/{clusterId}
|
|
11669
|
+
* @secure
|
|
11670
|
+
*/
|
|
11671
|
+
updateConversationsIssuesCluster: (organizationId: string, clusterId: string, data: {
|
|
11672
|
+
/** Whether the cluster is muted for change request creation */
|
|
11673
|
+
muted: boolean;
|
|
11674
|
+
}, params?: RequestParams) => Promise<HttpResponse<ConversationsIssuesCluster, any>>;
|
|
11518
11675
|
/**
|
|
11519
11676
|
* No description
|
|
11520
11677
|
*
|
|
@@ -11625,6 +11782,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
11625
11782
|
* @secure
|
|
11626
11783
|
*/
|
|
11627
11784
|
getAgentSetupState: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<AgentSetupState, any>>;
|
|
11785
|
+
/**
|
|
11786
|
+
* @description Delete all the conversations, conversation issues, and issue clusters used by Docs Agent for an organization.
|
|
11787
|
+
*
|
|
11788
|
+
* @tags agents, critical
|
|
11789
|
+
* @name DeleteAgentSetup
|
|
11790
|
+
* @summary Delete the agents setup data
|
|
11791
|
+
* @request DELETE:/orgs/{organizationId}/agents-setup
|
|
11792
|
+
* @secure
|
|
11793
|
+
*/
|
|
11794
|
+
deleteAgentSetup: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
11628
11795
|
/**
|
|
11629
11796
|
* No description
|
|
11630
11797
|
*
|
package/dist/constants.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export declare const DOCUMENT_TEXT_BACKGROUND_COLOR_ENUM: ["default", "green", "
|
|
|
17
17
|
export declare const TEXT_ALIGNMENT_ENUM: ["start", "center", "end"];
|
|
18
18
|
export declare const CARDS_IMAGE_OBJECT_FIT_ENUM: ["contain", "fill", "cover"];
|
|
19
19
|
export declare const VERTICAL_ALIGNMENT_ENUM: ["top", "middle", "bottom"];
|
|
20
|
+
export declare const REVISION_PAGE_SLUG_MAX_LENGTH = 100;
|
|
21
|
+
export declare const REVISION_PAGE_SLUG_MIN_LENGTH = 0;
|
|
20
22
|
export declare const REVISION_PAGE_LAYOUT_OPTIONS_WIDTH_ENUM: ["default", "wide"];
|
|
21
23
|
export declare const REVISION_PAGE_LAYOUT_OPTIONS_COVER_SIZE_ENUM: ["hero", "full"];
|
|
22
24
|
export declare const CHANGE_REQUEST_STATUS_ENUM: ["draft", "open", "archived", "merged"];
|
|
@@ -94,6 +96,7 @@ export declare const SAMLPROVIDER_LABEL_MIN_LENGTH = 1;
|
|
|
94
96
|
export declare const SAMLPROVIDER_ENTITY_ID_MAX_LENGTH = 1024;
|
|
95
97
|
export declare const SAMLPROVIDER_CERTIFICATE_MAX_LENGTH = 10000;
|
|
96
98
|
export declare const SAMLPROVIDER_STATUS_ENUM: ["active", "pending"];
|
|
99
|
+
export declare const CONVERSATION_ISSUE_IMPACT_ENUM: ["low", "medium", "high"];
|
|
97
100
|
export declare const TRANSLATION_STATUS_ENUM: ["pending", "running", "completed"];
|
|
98
101
|
export declare const STORAGE_UPLOAD_KIND_ENUM: ["customization_font", "import_file"];
|
|
99
102
|
export declare const FONT_FAMILY_MAX_LENGTH = 50;
|
|
@@ -125,7 +128,7 @@ export declare const SHARE_LINK_NAME_MIN_LENGTH = 0;
|
|
|
125
128
|
export declare const AIMODEL_ENUM: ["fast", "reasoning-low", "reasoning-medium", "reasoning-high"];
|
|
126
129
|
export declare const SITE_INSIGHTS_DISPLAY_CONTEXT_ENUM: ["site", "embed"];
|
|
127
130
|
export declare const SITE_INSIGHTS_LINK_POSITION_ENUM: ["announcement", "header", "footer", "sidebar", "content"];
|
|
128
|
-
export declare const SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: ["sidebar", "ad", "footer", "pdf"];
|
|
131
|
+
export declare const SITE_INSIGHTS_TRADEMARK_PLACEMENT_ENUM: ["sidebar", "ad", "footer", "pdf", "embed"];
|
|
129
132
|
export declare const SITE_INSIGHTS_AD_PLACEMENT_ENUM: ["aside"];
|
|
130
133
|
export declare const SITE_INSIGHTS_EVENT_TYPE_ENUM: ["page_view", "search_open", "search_type_query", "search_open_result", "page_post_feedback", "page_post_feedback_comment", "ask_question", "ask_view", "ask_rate_response", "link_click", "api_client_open", "api_client_request", "ad_click", "ad_display", "trademark_click"];
|
|
131
134
|
export declare const SITE_INSIGHTS_VISITOR_BROWSER_ENUM: ["chrome", "firefox", "safari", "edge", "ie", "opera", "unknown"];
|